Building amaya on solaris 2.5

Hi everybody,
I just built amaya 0.9a on solaris 2.5 and thought you might find useful
the following report of how things went.
Hope this helps,
Arnaud Le Hors - W3C Technical Staff -

Here is my experience while compiling Amaya on my Solaris 2.5 machine.

In it is said:
How to build, short version:

Here is a simple recipe explaining how to build on one of the supported

      cd to Amaya/Target directory. 

However, there is no Amaya directory in the hierarchy. I assume it's
Thot/Target and go into Thot/solaris2.

$ make
gcc -c -O -Wall -DRISC -DSVR4 -DSYSV -I/usr/X11/include
-I/nfs/u/lehors/Thot/solaris2 -DHAVE_CONFIG_H
-I/nfs/u/lehors/Thot/thotlib/internals/f -I/nfs/u/lehors/Thot/schemas 
-I/nfs/u/lehors/Thot/schemasOPERA -I/nfs/u/lehors/Thot/libjpeg
-I/nfs/u/lehors/Thot/libpng -I/nfs/u/lehors/Thot/libpng/zlib
-I/usr/X11/include  -o
In file included from /nfs/u/lehors/Thot/thotlib/include/interface.h:20,
                 from /nfs/u/lehors/Thot/thotlib/include/app.h:19,
                 from /nfs/u/lehors/Thot/thotlib/base/compilmsg.c:21:
/nfs/u/lehors/Thot/thotlib/include/thot_gui.h:152: X11/keysym.h: No such
file or directory
/nfs/u/lehors/Thot/thotlib/include/thot_gui.h:153: X11/IntrinsicP.h: No
such file or directory
/nfs/u/lehors/Thot/thotlib/include/thot_gui.h:154: X11/CoreP.h: No such
*** Error code 1
make: Fatal error: Command failed for target

I set the following in the Makefile:
MOTIFLIBS = -L/usr/dt/lib -L/usr/openwin/lib -lXm -lXt	# Solaris
STDLIBS  = -L/usr/openwin/lib -lX11 -lsocket -lnsl -lm -lc # Solaris
COMPIL_OPTIONS	= -c $(CFLAGS) $(SYSTEM_FLAGS) -I /usr/dt/include
-I/usr/openwin/include -I$(THOTDIR)/${MACHINE} -DHAVE_CONFIG_H

This time the build goes all the way through. I get to the second step
amaya' which fails with the following error:

cd /nfs/u/lehors/Thot/amaya; /nfs/u/lehors/Thot/solaris2/bin/str HTML
sh: cpp: not found
*** Error code 139
make: Fatal error: Command failed for target

cpp on solaris is in /usr/ccs/lib. I wouldn't expect people to have this
there PATH. cpp should be defined at compile time, and controlled via a
variable in the Makefile.
I add /usr/ccs/lib to my PATH though and restart 'make amaya'.

This time it works all the way through.

I try to start it:
$ bin/amaya bin/amaya: fatal: can't open file: errno=2


$ ldd bin/amaya =>    (not found) =>    /usr/lib/ =>   /usr/lib/ =>        /usr/lib/ =>   /usr/lib/ =>     /usr/lib/ =>     /usr/lib/ =>  /usr/openwin/lib/ =>    /usr/lib/ =>     /usr/lib/ =>  /usr/lib/ =>    /usr/lib/

(BTW ldd is not available on all systems, on HP it's chatr, etc...)
I start it with LD_LIBRARY_PATH=/usr/dt/lib:/usr/openwin/lib. I'm not
sure why
I need this since there is -L/usr/dt/lib in the link command of amya...

One other comment: the lack of edit/browse mode makes it difficult to
use amaya
as a simple browser since I can modify by mistake the document I'm
browsing. Could we have an option to make editing inactive ?

<The End>

Received on Friday, 31 January 1997 18:07:13 UTC