Amanda-Users

Re: amanda-2.4.4p4 compile error on solaris 8

2005-02-10 13:06:41
Subject: Re: amanda-2.4.4p4 compile error on solaris 8
From: Jon LaBadie <jon AT jgcomp DOT com>
To: amanda-users AT amanda DOT org
Date: Thu, 10 Feb 2005 12:52:51 -0500
On Thu, Feb 10, 2005 at 04:21:35PM +0000, Rolinux wrote:
> On Thursday 10 February 2005 15:46, Jon LaBadie wrote:
> > On Thu, Feb 10, 2005 at 01:33:53PM +0000, Rolinux wrote:
> > > Hi,
> > > I try to compile amanda-2.4.4p4 on solaris 8 to get the amrecover_changer
> > > option (we run now amanda-2.4.3):
> > >
> > > [root@backup-a01 /root]# uname -a
> > > SunOS backup-a01 5.8 Generic_108528-16 sun4u sparc SUNW,Ultra-250
> >
> > ...
> >
> > > Some system details:
> > >
> > > [amanda@backup-a01 amanda-2.4.4p4]$ echo $PATH
> > > /usr/bin::/usr/local/bin:/usr/ucb:/usr/ccs/bin
> > > [amanda@backup-a01 amanda-2.4.4p4]$ echo $LD_LIBRARY_PATH
> > >
> > > [amanda@backup-a01 amanda-2.4.4p4]$
> > > [amanda@backup-a01 amanda-2.4.4p4]$ type ld
> > > ld is /usr/local/bin/ld
> >
> > Many (most?) gcc installations on Solaris use the standard
> > Sun provided assembler and linker.  Is there a specific
> > reason you are not using the Sun linker?
> >
> > Perhaps move /usr/ccs/bin in your path before /usr/local/bin.
> 
> Same error:
> 
...
> ld: fatal: relocations remain against allocatable but non-writable sections
> collect2: ld returned 1 exit status
> *** Error code 1
> make: Fatal error: Command failed for target `libamanda.la'
> Current working directory /export/home/mov04995/amanda-2.4.4p4/common-src
> *** Error code 1
> make: Fatal error: Command failed for target `all-recursive'
> [amanda@backup-a02 amanda-2.4.4p4]$ echo $PATH
> /usr/bin::/usr/ccs/bin:/usr/local/bin:/usr/ucb:/usr/local/samba/bin
> [amanda@backup-a02 amanda-2.4.4p4]$ 
> >

Does amanda know about that.  It may have recorded the location of
cc, ld, ... when you did your configure.  Did you reconfigure after
the PATH change?  BTW, before rerunning ./configure, get rid of
all previous configure information.  One way is to do a "make distclean".

> > > [amanda@backup-a01 amanda-2.4.4p4]$
> > > [amanda@backup-a01 amanda-2.4.4p4]$ pkginfo -l SMCgcc
> > >    PKGINST:  SMCgcc
> > >       NAME:  gcc
> > >   CATEGORY:  application
> >
> > ...
> >
> > > Can you please help me with some ideas about how to compile this version
> > > of amanda on solaris 8?
> >
> > Many gcc installations for Solaris include a script called something
> > like "fixheaders".  Does your gcc package have such a script and has
> > it been run?
> 
> [root@backup-a01 /]# find / -name fixheaders -print
> [root@backup-a01 /]#
> 
> No fixheaders

Did you read the part about "something like".  I did not look up in your
documentation what it was called (if it is even there or needed).  You
should have checked your installation documentation.


-- 
Jon H. LaBadie                  jon AT jgcomp DOT com
 JG Computing
 4455 Province Line Road        (609) 252-0159
 Princeton, NJ  08540-4322      (609) 683-7220 (fax)

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