Amanda-Users

amanda-2.4.4p4 compile error on solaris 8

2005-02-10 08:45:49
Subject: amanda-2.4.4p4 compile error on solaris 8
From: Rolinux <rolinux AT online DOT ie>
To: amanda-users AT amanda DOT org
Date: Thu, 10 Feb 2005 13:33:53 +0000
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

When I try to use the following config command:

[root@backup-a01 amanda-2.4.4p4]# ./configure --with-user=amanda 
--with-group=sys --with-amandahosts --with-includes=/usr/local/include 
--with-libraries=/usr/local/lib --with-tape-device=/dev/rmt/1n 
--with-tape-changer=/dev/scsi/changer/c7t1d0 
--prefix=/usr01/app/amanda-2.4.4p4 --with-config=DailyBackup 
--with-gnutar=/usr/local/bin/tar


I get the following error:

...
ld: fatal: relocations remain against allocatable but non-writable sections
collect2: ld returned 1 exit status
make[1]: *** [libamanda.la] Error 1
make[1]: Leaving directory `/export/home/mov04995/amanda-2.4.4p4/common-src'
make: *** [all-recursive] Error 1
[root@backup-a01 amanda-2.4.4p4]#


When I try to use the following config command:

[amanda@backup-a01 amanda-2.4.4p4]$ ./configure --host=sun4 
--target=sparc-sun-solaris2.8 --with-user=amanda --with-group=sys 
--with-amandahosts --with-includes=/usr/local/include 
--with-libraries=/usr/local/lib --with-tape-device=/dev/rmt/1n 
--with-tape-changer=/dev/scsi/changer/c7t1d0 
--prefix=/usr01/app/amanda-2.4.4p4 --with-config=DailyBackup 
--with-gnutar=/usr/local/bin/tar --with-gnu-ld


I get the following error:

....
 gcc -DHAVE_CONFIG_H -I. -I. -I../config -I./../regex-src -D_LARGEFILE_SOURCE 
-D_FILE_OFFSET_BITS=64 -I/usr/local/include -D_LARGEFILE_SOURCE 
-D_FILE_OFFSET_BITS=64 -g -O2 -MT sl.lo -MD -MP -MF .deps/sl.Tpo -c sl.c  
-DPIC
cc1: warning: changing search order for system directory "/usr/local/include"
cc1: warning:   as it has already been specified as a non-system directory
mv -f sl.o .libs/sl.o
 gcc -DHAVE_CONFIG_H -I. -I. -I../config -I./../regex-src -D_LARGEFILE_SOURCE 
-D_FILE_OFFSET_BITS=64 -I/usr/local/include -D_LARGEFILE_SOURCE 
-D_FILE_OFFSET_BITS=64 -g -O2 -MT sl.lo -MD -MP -MF .deps/sl.Tpo -c sl.c 
>/dev/null 2>&1
/bin/bash ../libtool --mode=link gcc  -D_LARGEFILE_SOURCE 
-D_FILE_OFFSET_BITS=64 -g -O2    -R/usr/local/lib -L/usr/local/lib  -o 
libamanda.la -rpath /usr01/app/amanda-2.4.4p4/lib -release 2.4.4p4 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  -ltermcap -lsocket -lnsl -lintl

*** Warning: inter-library dependencies are not known to be supported.
*** All declared inter-library dependencies are being dropped.
*** The inter-library dependencies that have been dropped here will be
*** automatically added whenever a program is linked with this library
*** or is declared to -dlopen it.
/usr/ccs/bin/ld -assert pure-text -Bstatic 
-o .libs/libamanda-2.4.4p4.so.0.0  .libs/alloc.o .libs/amflock.o .libs/clock.o 
.libs/debug.o .libs/dgram.o .libs/error.o .libs/file.o .libs/fileheader.o 
.libs/amfeatures.o .libs/match.o .libs/protocol.o .libs/regcomp.o 
.libs/regerror.o .libs/regexec.o .libs/regfree.o .libs/security.o 
.libs/statfs.o .libs/stream.o .libs/token.o .libs/util.o .libs/versuff.o 
.libs/version.o .libs/pipespawn.o .libs/sl.o
ld: fatal: file pure-text: open failed: No such file or directory
make[1]: *** [libamanda.la] Error 1
make[1]: Leaving directory `/export/home/mov04995/amanda-2.4.4p4/common-src'
make: *** [all-recursive] Error 1
[amanda@backup-a01 amanda-2.4.4p4]$


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
[amanda@backup-a01 amanda-2.4.4p4]$
[amanda@backup-a01 amanda-2.4.4p4]$ pkginfo -l SMCgcc
   PKGINST:  SMCgcc
      NAME:  gcc
  CATEGORY:  application
      ARCH:  sparc
   VERSION:  3.1
   BASEDIR:  /usr/local
    VENDOR:  Free Software Foundation
    PSTAMP:  Steve Christensen
  INSTDATE:  Oct 29 2002 10:59
     EMAIL:  steve AT smc.vnet DOT net
    STATUS:  completely installed
     FILES:     1801 installed pathnames
                  47 shared pathnames
                  10 linked files
                 139 directories
                  43 executables
              543124 blocks used (approx)

[amanda@backup-a01 amanda-2.4.4p4]$


Can you please help me with some ideas about how to compile this version of 
amanda on solaris 8?

Thank you very much,
Radu

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