Problems compiling Amanda 2.5.1p1 on HP/UX 11.11 RA-Risc with GCC - HP UX

This is a discussion on Problems compiling Amanda 2.5.1p1 on HP/UX 11.11 RA-Risc with GCC - HP UX ; hi folks, run into trouble compiling amanda 2.5.1p1 from source on HP/UX 11.11 PA-Risc: # uname -a HP-UX elrz05 B.11.11 U 9000/800 565796537 unlimited-user license got GCC + Binutils as depot from HP website: # gcc -v Using built-in specs. ...

+ Reply to Thread
Results 1 to 2 of 2

Thread: Problems compiling Amanda 2.5.1p1 on HP/UX 11.11 RA-Risc with GCC

  1. Problems compiling Amanda 2.5.1p1 on HP/UX 11.11 RA-Risc with GCC

    hi folks,

    run into trouble compiling amanda 2.5.1p1 from source on HP/UX 11.11
    PA-Risc:

    # uname -a
    HP-UX elrz05 B.11.11 U 9000/800 565796537 unlimited-user license

    got GCC + Binutils as depot from HP website:

    # gcc -v
    Using built-in specs.
    Target: hppa64-hp-hpux11.11
    Configured with: /tmp/gcc-4.1.1.tar.gz/gcc-4.1.1/configure
    --host=hppa64-hp-hpux11.11 --target=hppa64-hp-hpux11.11
    --build=hppa64-hp-hpux11.11 --prefix=/opt/hp-gcc64-4.1.1
    --enable-languages=c,c++ --with-gnu-as --without-gnu-ld
    --with-ld=/usr/ccs/bin/ld --enable-threads=posix
    Thread model: posix
    gcc version 4.1.

    configured amanda as follows:
    # ./configure --with-user=backup --with-group=backup

    after that tried to build amanda:
    # make

    got the following linker error:

    /bin/sh ../libtool --tag=CC --mode=link gcc -Wall -Wextra
    -Wparentheses -Wdeclaration-after-statement -Wmissing-prototypes
    -Wstrict-prototypes -Wmissing-declarations -Wformat -Wsign-compare
    -Wfloat-equal -Wold-style-definition -D_FILE_OFFSET_BITS=64
    -D_GNU_SOURCE -o amrestore amrestore.o librestore.la
    ../common-src/libamanda.la -lgen -lm -lcurses -lnsl
    libtool: link: warning: this platform does not like uninstalled shared
    libraries
    libtool: link: `amrestore' will be relinked during installation
    gcc -Wall -Wextra -Wparentheses -Wdeclaration-after-statement
    -Wmissing-prototypes -Wstrict-prototypes -Wmissing-declarations
    -Wformat -Wsign-compare -Wfloat-equal -Wold-style-definition
    -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -o .libs/amrestore amrestore.o
    ../.libs/librestore.sl
    /eurolog/software/amanda-2.5.1p1/common-src/.libs/libamanda.sl
    /eurolog/software/amanda-2.5.1p1/tape-src/.libs/libamtape.sl
    -L/eurolog/software/amanda-2.5.1p1/restore-src/.libs:/eurolog/software/amanda-2.5.1p1/common-src/.libs:/eurolog/software/amanda-2.5.1p1/tape-src/.libs:/eurolog/software/amanda-2.5.1p1/server-src/.libs:/eurolog/software/amanda-2.5.1p1/amandad-src/.libs:/usr/local/lib
    /eurolog/software/amanda-2.5.1p1/server-src/.libs/libamserver.sl
    .../common-src/.libs/libamanda.sl -lgen -lm -lcurses -lnsl -Wl,+b
    -Wl,/eurolog/software/amanda-2.5.1p1/restore-src/.libs:/eurolog/software/amanda-2.5.1p1/common-src/.libs:/eurolog/software/amanda-2.5.1p1/tape-src/.libs:/eurolog/software/amanda-2.5.1p1/server-src/.libs:/usr/local/lib
    ld: Unsatisfied symbol "strtoll" in file amrestore.o
    1 errors.
    collect2: ld returned 1 exit status
    *** Error exit code 1


    any hints?
    thanks a lot. j.


  2. Re: Problems compiling Amanda 2.5.1p1 on HP/UX 11.11 RA-Risc with GCC

    juergen.brunk@gmx.de wrote:
    > ld: Unsatisfied symbol "strtoll" in file amrestore.o
    > 1 errors.
    > collect2: ld returned 1 exit status
    > *** Error exit code 1


    > any hints?


    Yes, I suspect you need to find a replacement strtoll as HP-UX 11.11
    does not have that routine.

    I'm guessing that strtoll is "string to long long" - it intends to
    convert its argument to a "long long" or 64-bit integral type.
    Probably for what is an otherwise ILP32 (Int, Long, Pointer 32-bit)
    application. IIRC, if you compile 64-bit, the output of strtol would
    match that of strtoll as in "64-bit" the model is "LP64" or Long,
    Pointer 64-bit.

    Another option would be to upgrade to 11.23, which does appear to have
    a strtoll routine. It _may_ be the case that there is an 11.11 patch
    to provide strtoll - you would need to search the ITRC patch lists for
    such a thing.

    rick jones
    --
    denial, anger, bargaining, depression, acceptance, rebirth...
    where do you want to be today?
    these opinions are mine, all mine; HP might not want them anyway...
    feel free to post, OR email to rick.jones2 in hp.com but NOT BOTH...

+ Reply to Thread