> I'm trying to build amanda-2.4.4p1 on Solaris 7 > uname -a: > SunOS u03 5.7 Generic_106541-24 sun4u sparc SUNW,Ultra-250 > > using gcc version > gcc (GCC) 3.3.2 > > and get the following build failure: > > > Making all in common-src > make[1]: Entering directory `/Disk2/eleitl/amanda-2.4.4p1/common-src' > /bin/bash ../libtool --mode=link gcc -D_LARGEFILE_SOURCE > -D_FILE_OFFSET_BITS=64 -g -O2 -o libamanda.la -rpath /usr/local/lib > -release 2.4.4p1 alloc.lo amflock.lo clock.lo debug.lo dgram.lo error.lo > file.lo fileheader.lo amfeatures.lo match.lo protocol.lo regcomp.lo > regerror.lo regexec.lo regfree.lo security.lo statfs.lo stream.lo token.lo > util.lo versuff.lo version.lo pipespawn.lo sl.lo -lgen -lm -lreadline > -ltermcap -lsocket -lnsl -lintl > rm -fr .libs/libamanda.la .libs/libamanda.* .libs/libamanda-2.4.4p1.* > /usr/ccs/bin/ld -G -h libamanda-2.4.4p1.so -o .libs/libamanda-2.4.4p1.so > alloc.lo amflock.lo clock.lo debug.lo dgram.lo error.lo file.lo fileheader.lo > amfeatures.lo match.lo protocol.lo regcomp.lo regerror.lo regexec.lo > regfree.lo security.lo statfs.lo stream.lo token.lo util.lo versuff.lo > version.lo pipespawn.lo sl.lo -lgen -lm -lreadline -ltermcap -lsocket -lnsl > -lintl -lc > ld: fatal: library -lreadline: not found > ld: fatal: File processing errors. No output written to > .libs/libamanda-2.4.4p1.so > make[1]: *** [libamanda.la] Error 1 > make[1]: Leaving directory `/Disk2/eleitl/amanda-2.4.4p1/common-src' > make: *** [all-recursive] Error 1 > > libreadline (GNU readline 4.3) is there both in /usr/lib and /usr/local/lib > > Any ideas?
You probably need to throw -L (and probably -R) flags at that linker to get it to find the library. I'd set LDFLAGS to "-L/usr/local/lib -R/usr/local/lib" in your environment, rerun configure, and see what happens then. I would think that it'd look in /usr/lib by default, but maybe not. -- John Stange, Systems Administrator National Academies Press 202-334-3514