Amanda-Users

RE: Can't compile 2.6.2p1 on Solaris 9

2009-05-04 16:00:51
Subject: RE: Can't compile 2.6.2p1 on Solaris 9
From: "Onotsky, Steve x55328" <Steve.Onotsky AT broadridge DOT com>
To: "Darin Perusich" <Darin.Perusich AT cognigencorp DOT com>, <amanda-users AT amanda DOT org>
Date: Mon, 4 May 2009 15:21:10 -0400
I've managed to resolve my problem; I took out the LDFLAGS and CPPFLAGS
statements and it compiled like a dream.  Apparently there was something
in one of those directories that my ld wasn't happy with.

Thanks for offering your help!
 

-----Original Message-----
From: owner-amanda-users AT amanda DOT org
[mailto:owner-amanda-users AT amanda DOT org] On Behalf Of Onotsky, Steve
x55328
Sent: May 4, 2009 12:14
To: Darin Perusich
Cc: amanda-users AT amanda DOT org
Subject: RE: Can't compile 2.6.2p1 on Solaris 9

make is GNU, version 3.80; ld appears to be a Sun-supplied version.

I should note that I built 2.6.0 on this host previously...

Thanks

 
 
-----Original Message-----
From: Darin Perusich [mailto:Darin.Perusich AT cognigencorp DOT com] 
Sent: May 4, 2009 08:55
To: Onotsky, Steve x55328
Cc: amanda-users AT amanda DOT org
Subject: Re: Can't compile 2.6.2p1 on Solaris 9

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

This message and any attachments are intended only for the use of the
addressee and
may contain information that is privileged and confidential. If the
reader of the 
message is not the intended recipient or an authorized representative of
the
intended recipient, you are hereby notified that any dissemination of
this
communication is strictly prohibited. If you have received this
communication in
error, please notify us immediately by e-mail and delete the message and
any
attachments from your system.


This message and any attachments are intended only for the use of the addressee 
and
may contain information that is privileged and confidential. If the reader of 
the 
message is not the intended recipient or an authorized representative of the
intended recipient, you are hereby notified that any dissemination of this
communication is strictly prohibited. If you have received this communication in
error, please notify us immediately by e-mail and delete the message and any
attachments from your system.


<Prev in Thread] Current Thread [Next in Thread>