#3 HPUX 11i traceroute does not compile

open
nobody
None
5
2003-11-21
2003-11-21
Philip Reyniers
No

OS: HPUX 11i
***************************************************
Compiler Information:
***************************************************
# gcc -v
Reading specs from
/usr/local/lib/gcc-lib/hppa2.0n-hp-hpux11.00/3.3.1/specs
Configured with: ./configure --prefix=/usr/local
--exec-prefix=/usr/local --disable-threads
--disable-shared --with-gnu-as
--enable-languages=c,c++,f77 --disable-nls
Thread model: single
gcc version 3.3.1

***************************************************
Make Information:
***************************************************
# gmake -v
GNU Make 3.80

***************************************************
Error:
***************************************************

====== Doing traceroute ======
cd traceroute; gmake
gmake[1]: Entering directory
`/build/REMSTATS/remstats-1.0.9b/traceroute'
gcc -o traceroute -g -O2 -DHAVE_CONFIG_H traceroute.c
-lnsl -lm -I.
/usr/ccs/bin/ld: Unsatisfied symbols:
setlinebuf (first referenced in
/var/tmp//cciw7Fnc.o) (code)
collect2: ld returned 1 exit status
gmake[1]: *** [traceroute] Error 1
gmake[1]: Leaving directory
`/build/REMSTATS/remstats-1.0.9b/traceroute'
gmake: *** [traceroute/traceroute] Error 2

***************************************************
Possible Work Around:
***************************************************

I am in need of some help on this one guys. Is there
anyone that can help?

I have tried both remstats-1.0.9b and 1.0.13a and have
the same problem.

Discussion

  • Logged In: YES
    user_id=899237

    Followup:

    After looking at the traceroute.c source, I have decided to
    add the following lines after the last include and inside your
    prototype section at line number 192:

    int
    setlinebuf (FILE *fp)
    {
    (void) setvbuf (fp, NULL, _IOLBF, 0);
    return(0);
    }

    Ran gmake and everything compiles and installs. You might
    want to wrapper this into your next release. It is a HP thing.

    Peace Out.

    Senior Solutions Architect
    Hewlett-Packard