Re: Can't compile 2.6.2p1 on Solaris 9
2009-05-04 09:06:13
Which 'make' and 'ld' are you using out of curiosity? When I build
amanda, for OpenCSW, I use the following options and I'm using GNU-make
and /usr/ccs/bin/ld, and Sun compiler and it always builds cleanly.
./configure \
--prefix=/opt/csw \
--with-user=amanda \
--with-group=sys \
--with-owner=$USER \
--enable-manpage-build \
--with-bsd-security \
--with-bsdtcp-security \
--with-bsdudp-security \
--with-ssh-security \
--with-fqdn \
--with-index-server=localhost \
--with-tape-server=localhost \
--with-gnutar=/opt/csw/bin/gtar \
--with-gnuplot=/opt/csw/bin/gnuplot
FYI, I'd set your amanda users group to 'sys' since it's the default
group permission for the raw disk devices on Solaris.
Onotsky, Steve x55328 wrote:
> Hi all,
>
>
>
> I’ve been trying to compile a client installation under Solaris 9, but
> it fails partway through, and I can’t figure out why.
>
>
>
> My configure line is as follows:
>
>
>
> ./configure --prefix=/usr/local --enable-threads=solaris
> --with-index-server=<backuphostname> --with-user=amanda
> --with-group=tape --with-tmpdir=/tmp/amanda
> --with-gnutar=/usr/local/bin/tar --with-config=Daily --disable-s3-device
> --with-amandates=/etc/amandates --without-ipv6 --without-server
> --disable-nls --with-bsdtcp-security CPPFLAGS='-I/usr/include
> -I/usr/local/include -I/usr/local/include/readline' LDFLAGS='-L/usr/lib
> -L/usr/local/lib -R/usr/lib -R/usr/local/lib'
>
>
>
> I tried removing the “--without-server” directive; no change. I’ve
> tried searching the archives and Google for pointers, but I may not be
> using the correct keywords.
>
>
>
> The failure point in the make output:
>
>
>
> gcc -Wall -Wextra -Wparentheses -Wdeclaration-after-statement
> -Wmissing-prototypes -Wstrict-prototypes -Wmissing-declarations -Wformat
> -Wformat-security -Wsign-compare -Wfloat-equal -Wold-style-definition
> -Wno-strict-aliasing -Wno-unknown-pragmas -g -O2 -fno-strict-aliasing
> -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -o genversion genversion.o
> .libs/versuff.o -L/usr/lib -L/usr/local/lib ../gnulib/.libs/libgnu.a
> -lm -lgmodule-2.0 -lgobject-2.0 -lgthread-2.0 -lpthread -lthread -lrt
> -lglib-2.0 -lresolv -lintl -lnsl -lsocket -R/usr/lib -R/usr/local/lib
>
> Undefined first referenced
>
> symbol in file
>
> g_printf genversion.o
>
> g_fprintf genversion.o
>
> ld: fatal: Symbol referencing errors. No output written to genversion
>
> collect2: ld returned 1 exit status
>
> make[2]: *** [genversion] Error 1
>
> make[2]: Leaving directory `/usr/local/src/amanda-2.6.1p1/common-src'
>
> make[1]: *** [all-recursive] Error 1
>
> make[1]: Leaving directory `/usr/local/src/amanda-2.6.1p1'
>
> make: *** [all] Error 2
>
>
>
> I’m stumped. Anyone ever run across this, or have any insight into why
> this is failing? I compiled a 2.6.1p1 server install on Linux with no
> errors.
>
>
>
> Any assistance would be greatly appreciated.
>
or
--
Darin Perusich
Unix Systems Administrator
Cognigen Corporation
395 Youngs Rd.
Williamsville, NY 14221
Phone: 716-633-3463
Email: darinper AT cognigencorp DOT com
|
|
|