[hobbit] [continuation] Client compilation failed on AIX 4.2.1

Jeff Newman jeffnewman75 at gmail.com
Mon Sep 11 19:44:22 CEST 2006


Any update on this?

On 9/7/06, Jeff Newman <jeffnewman75 at gmail.com> wrote:
> Thomas - I have an even older version of gcc (2.8.1) - hard to find
> pre-compiled binaries for gcc for aix 4.2.1 :-) However, I do *not*
> have the cpp problem that you have, my problem is with strtok_r.
>
> Henrik - the patch did not fix it. I did a make clean and then make
> again. Here is the complete output from make:
>
> # /usr/local/bin/make
> MAKE="/usr/local/bin/make" CC="gcc " CFLAGS="-O -D_REENTRANT -DAIX -I.
> -I`pwd`/include -DCLIENTONLY=1" LDFLAGS="" `pwd`/build/genconfig.sh
> Checking for socklen_t
> Checking for snprintf
> Checking for vsnprintf
> Checking for rpc/rpcent.h
> Checking for sys/select.h
> Checking for u_int32_t typedef
> Checking for PATH_MAX definition
> Checking for SHUT_RD/WR/RDWR definitions
> config.h created
> CC="gcc " CFLAGS="-O -D_REENTRANT -DAIX -I. -I`pwd`/include
> -DCLIENTONLY=1" LDFLAGS="" OSDEF="-DAIX" RPATHOPT="" PCREINCDIR=""
> SSLFLAGS="" SSLINCDIR="" SSLLIBS="" NETLIBS=""
> BBTOPDIR="/usr/local/hobbit" BBLOGDIR="" BBHOSTNAME=""
> BBHOSTIP="167.76.113.220" BBHOSTOS="" LOCALCLIENT="no"
> /usr/local/bin/make -C lib client
> make[1]: Entering directory `/usr/local/hobbit/stage/hobbit-4.2.0/lib'
> gcc -O -D_REENTRANT -DAIX -I.
> -I/usr/local/hobbit/stage/hobbit-4.2.0/include -DCLIENTONLY=1 -I.
> -I../include  -o test-endianness test-endianness.c
> gcc -O -D_REENTRANT -DAIX -I.
> -I/usr/local/hobbit/stage/hobbit-4.2.0/include -DCLIENTONLY=1 -I.
> -I../include    -c -o osdefs.o osdefs.c
> gcc -O -D_REENTRANT -DAIX -I.
> -I/usr/local/hobbit/stage/hobbit-4.2.0/include -DCLIENTONLY=1 -I.
> -I../include    -c -o cgiurls.o cgiurls.c
> gcc -O -D_REENTRANT -DAIX -I.
> -I/usr/local/hobbit/stage/hobbit-4.2.0/include -DCLIENTONLY=1 -I.
> -I../include  -DCLIENTONLY -c -o color-client.o color.c
> gcc -O -D_REENTRANT -DAIX -I.
> -I/usr/local/hobbit/stage/hobbit-4.2.0/include -DCLIENTONLY=1 -I.
> -I../include    -c -o digest.o digest.c
> gcc -O -D_REENTRANT -DAIX -I.
> -I/usr/local/hobbit/stage/hobbit-4.2.0/include -DCLIENTONLY=1 -I.
> -I../include    -c -o encoding.o encoding.c
> gcc -O -D_REENTRANT -DAIX -I.
> -I/usr/local/hobbit/stage/hobbit-4.2.0/include -DCLIENTONLY=1 -I.
> -I../include  -DBBTOPDIR=\"/usr/local/hobbit\" -DBBLOGDIR=\"\"
> -DBBHOSTNAME=\"\" -DBBHOSTIP=\"167.76.113.220\" -DBBHOSTOS=\"\"
> -DBUILD_HOME=\"/usr/local/hobbit/client\" -c -o environ-client.o
> environ.c
> gcc -O -D_REENTRANT -DAIX -I.
> -I/usr/local/hobbit/stage/hobbit-4.2.0/include -DCLIENTONLY=1 -I.
> -I../include    -c -o errormsg.o errormsg.c
> gcc -O -D_REENTRANT -DAIX -I.
> -I/usr/local/hobbit/stage/hobbit-4.2.0/include -DCLIENTONLY=1 -I.
> -I../include    -c -o ipaccess.o ipaccess.c
> gcc -O -D_REENTRANT -DAIX -I.
> -I/usr/local/hobbit/stage/hobbit-4.2.0/include -DCLIENTONLY=1 -I.
> -I../include  -c -o loadhosts.o loadhosts.c
> loadhosts.c: In function `bbh_item_id':
> loadhosts.c:528: warning: return discards `const' from pointer target type
> gcc -O -D_REENTRANT -DAIX -I.
> -I/usr/local/hobbit/stage/hobbit-4.2.0/include -DCLIENTONLY=1 -I.
> -I../include    -c -o md5.o md5.c
> gcc -O -D_REENTRANT -DAIX -I.
> -I/usr/local/hobbit/stage/hobbit-4.2.0/include -DCLIENTONLY=1 -I.
> -I../include    -c -o memory.o memory.c
> gcc -O -D_REENTRANT -DAIX -I.
> -I/usr/local/hobbit/stage/hobbit-4.2.0/include -DCLIENTONLY=1 -I.
> -I../include    -c -o misc.o misc.c
> gcc -O -D_REENTRANT -DAIX -I.
> -I/usr/local/hobbit/stage/hobbit-4.2.0/include -DCLIENTONLY=1 -I.
> -I../include    -c -o rbtr.o rbtr.c
> gcc -O -D_REENTRANT -DAIX -I.
> -I/usr/local/hobbit/stage/hobbit-4.2.0/include -DCLIENTONLY=1 -I.
> -I../include  `./test-endianness` -c -o rmd160c.o rmd160c.c
> gcc -O -D_REENTRANT -DAIX -I.
> -I/usr/local/hobbit/stage/hobbit-4.2.0/include -DCLIENTONLY=1 -I.
> -I../include    -c -o sendmsg.o sendmsg.c
> sendmsg.c: In function `sendtobbd':
> sendmsg.c:324: warning: passing arg 5 of `getsockopt' from
> incompatible pointer type
> gcc -O -D_REENTRANT -DAIX -I.
> -I/usr/local/hobbit/stage/hobbit-4.2.0/include -DCLIENTONLY=1 -I.
> -I../include  `./test-endianness` -c -o sha1.o sha1.c
> gcc -O -D_REENTRANT -DAIX -I.
> -I/usr/local/hobbit/stage/hobbit-4.2.0/include -DCLIENTONLY=1 -I.
> -I../include    -c -o sig.o sig.c
> gcc -O -D_REENTRANT -DAIX -I.
> -I/usr/local/hobbit/stage/hobbit-4.2.0/include -DCLIENTONLY=1 -I.
> -I../include    -c -o stackio.o stackio.c
> gcc -O -D_REENTRANT -DAIX -I.
> -I/usr/local/hobbit/stage/hobbit-4.2.0/include -DCLIENTONLY=1 -I.
> -I../include    -c -o strfunc.o strfunc.c
> gcc -O -D_REENTRANT -DAIX -I.
> -I/usr/local/hobbit/stage/hobbit-4.2.0/include -DCLIENTONLY=1 -I.
> -I../include    -c -o suid.o suid.c
> gcc -O -D_REENTRANT -DAIX -I.
> -I/usr/local/hobbit/stage/hobbit-4.2.0/include -DCLIENTONLY=1 -I.
> -I../include  -DCLIENTONLY -c -o timefunc-client.o timefunc.c
> ar cr hobbitclient.a osdefs.o cgiurls.o color-client.o digest.o
> encoding.o environ-client.o errormsg.o ipaccess.o loadhosts.o md5.o
> memory.o misc.o rbtr.o rmd160c.o sendmsg.o sha1.o sig.o stackio.o
> strfunc.o suid.o timefunc-client.o
> ranlib hobbitclient.a || echo ""
> make[1]: Leaving directory `/usr/local/hobbit/stage/hobbit-4.2.0/lib'
> CC="gcc " CFLAGS="-O -D_REENTRANT -DAIX -I. -I`pwd`/include
> -DCLIENTONLY=1" LDFLAGS="" RPATHOPT="" SSLFLAGS="" SSLINCDIR=""
> SSLLIBS="" NETLIBS="" BBHOME="/usr/local/hobbit/client"
> /usr/local/bin/make -C common client
> make[1]: Entering directory `/usr/local/hobbit/stage/hobbit-4.2.0/common'
> /usr/local/bin/gcc -O -D_REENTRANT -DAIX -I.
> -I/usr/local/hobbit/stage/hobbit-4.2.0/include -DCLIENTONLY=1 -c -o
> bb.o bb.c
> /usr/local/bin/gcc -O -D_REENTRANT -DAIX -I.
> -I/usr/local/hobbit/stage/hobbit-4.2.0/include -DCLIENTONLY=1 -o
> ../client/bb bb.o ../lib/hobbitclient.a
> /usr/local/bin/gcc -O -D_REENTRANT -DAIX -I.
> -I/usr/local/hobbit/stage/hobbit-4.2.0/include -DCLIENTONLY=1 -c -o
> hobbitlaunch.o hobbitlaunch.c
> /usr/local/bin/gcc -O -D_REENTRANT -DAIX -I.
> -I/usr/local/hobbit/stage/hobbit-4.2.0/include -DCLIENTONLY=1 -o
> ../client/hobbitlaunch hobbitlaunch.o ../lib/hobbitclient.a
> /usr/local/bin/gcc -O -D_REENTRANT -DAIX -I.
> -I/usr/local/hobbit/stage/hobbit-4.2.0/include -DCLIENTONLY=1 -c -o
> bbcmd.o bbcmd.c
> /usr/local/bin/gcc -O -D_REENTRANT -DAIX -I.
> -I/usr/local/hobbit/stage/hobbit-4.2.0/include -DCLIENTONLY=1 -o
> ../client/bbcmd bbcmd.o ../lib/hobbitclient.a
> /usr/local/bin/gcc -O -D_REENTRANT -DAIX -I.
> -I/usr/local/hobbit/stage/hobbit-4.2.0/include -DCLIENTONLY=1 -c -o
> bbhostgrep.o bbhostgrep.c
> /usr/local/bin/gcc -O -D_REENTRANT -DAIX -I.
> -I/usr/local/hobbit/stage/hobbit-4.2.0/include -DCLIENTONLY=1 -o
> ../client/bbhostgrep bbhostgrep.o ../lib/hobbitclient.a
> /usr/local/bin/gcc -O -D_REENTRANT -DAIX -I.
> -I/usr/local/hobbit/stage/hobbit-4.2.0/include -DCLIENTONLY=1 -c -o
> bbhostshow.o bbhostshow.c
> /usr/local/bin/gcc -O -D_REENTRANT -DAIX -I.
> -I/usr/local/hobbit/stage/hobbit-4.2.0/include -DCLIENTONLY=1 -o
> ../client/bbhostshow bbhostshow.o ../lib/hobbitclient.a
> /usr/local/bin/gcc -O -D_REENTRANT -DAIX -I.
> -I/usr/local/hobbit/stage/hobbit-4.2.0/include -DCLIENTONLY=1 -c -o
> bbdigest.o bbdigest.c
> /usr/local/bin/gcc -O -D_REENTRANT -DAIX -I.
> -I/usr/local/hobbit/stage/hobbit-4.2.0/include -DCLIENTONLY=1 -o
> ../client/bbdigest bbdigest.o ../lib/hobbitclient.a
> make[1]: Leaving directory `/usr/local/hobbit/stage/hobbit-4.2.0/common'
> CC="gcc " CFLAGS="-O -D_REENTRANT -DAIX -I. -I`pwd`/include
> -DCLIENTONLY=1" LDFLAGS="" RPATHOPT="" SSLLIBS="" NETLIBS=""
> BBHOME="/usr/local/hobbit/client" /usr/local/bin/make -C build all
> make[1]: Entering directory `/usr/local/hobbit/stage/hobbit-4.2.0/build'
> gcc  -o merge-lines -O -D_REENTRANT -DAIX -I.
> -I/usr/local/hobbit/stage/hobbit-4.2.0/include -DCLIENTONLY=1
> merge-lines.c
> gcc  -o merge-sects -O -D_REENTRANT -DAIX -I.
> -I/usr/local/hobbit/stage/hobbit-4.2.0/include -DCLIENTONLY=1
> merge-sects.c
> gcc  -o setup-newfiles -O -D_REENTRANT -DAIX -I.
> -I/usr/local/hobbit/stage/hobbit-4.2.0/include -DCLIENTONLY=1
> setup-newfiles.c ../lib/hobbitclient.a
> make[1]: Leaving directory `/usr/local/hobbit/stage/hobbit-4.2.0/build'
> CC="gcc " CFLAGS="-O -D_REENTRANT -DAIX -I. -I`pwd`/include
> -DCLIENTONLY=1" BBHOME="/usr/local/hobbit/client"
> BBHOSTIP="167.76.113.220" LOCALCLIENT="no" NETLIBS=""
> /usr/local/bin/make -C client all
> make[1]: Entering directory `/usr/local/hobbit/stage/hobbit-4.2.0/client'
> gcc  -O -D_REENTRANT -DAIX -I.
> -I/usr/local/hobbit/stage/hobbit-4.2.0/include -DCLIENTONLY=1 -o
> logfetch logfetch.c ../lib/hobbitclient.a
> gcc  -O -D_REENTRANT -DAIX -I.
> -I/usr/local/hobbit/stage/hobbit-4.2.0/include -DCLIENTONLY=1 -o
> clientupdate clientupdate.c ../lib/hobbitclient.a
> gcc  -O -D_REENTRANT -DAIX -I.
> -I/usr/local/hobbit/stage/hobbit-4.2.0/include -DCLIENTONLY=1 -o
> orcahobbit orcahobbit.c ../lib/hobbitclient.a
> orcahobbit.c: In function `main':
> orcahobbit.c:82: warning: assignment makes pointer from integer without a cast
> orcahobbit.c:83: warning: assignment makes pointer from integer without a cast
> orcahobbit.c:87: warning: assignment makes pointer from integer without a cast
> orcahobbit.c:88: warning: assignment makes pointer from integer without a cast
> collect2: ld returned 8 exit status
> ld: 0711-317 ERROR: Undefined symbol: .strtok_r
> ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more information.
> make[1]: *** [orcahobbit] Error 1
> make[1]: Leaving directory `/usr/local/hobbit/stage/hobbit-4.2.0/client'
> make: *** [client] Error 2
> #
>
>
>
>
> On 9/7/06, thomas.seglard.enata at cnp.fr <thomas.seglard.enata at cnp.fr> wrote:
> > Hi,
> >
> > I'm just asking how do you have install gcc on aix 4.2.1 ? I got gcc 2.95 and this error when compiling :
> >
> > sigma </opt/gnu/hobbit-4.2.0 >#gmake
> > CC="gcc" CFLAGS="-O -D_REENTRANT -DAIX -I. -I`pwd`/include -DCLIENTONLY=1"
> > LDFLAGS="" OSDEF="-DAIX" RPATHOPT="" PCREINCDIR="" SSLFLAGS=""
> > SSLINCDIR="" SSLLIBS="" NETLIBS="" BBTOPDIR="/opt/hobbit" BBLOGDIR=""
> > BBHOSTNAME="" BBHOSTIP="158.157.156.91" BBHOSTOS="" LOCALCLIENT="no" gmake
> > -C lib client
> > gmake[1]: Entering directory `/opt/gnu/hobbit-4.2.0/lib'
> > gcc -O -D_REENTRANT -DAIX -I. -I/opt/gnu/hobbit-4.2.0/include
> > -DCLIENTONLY=1 -I. -I../include  -o test-endianness test-endianness.c
> > cpp: installation problem, cannot exec `cpp': The parameter or environment lists are too long.
> > gmake[1]: *** [test-endianness] Error 1
> > gmake[1]: Leaving directory `/opt/gnu/hobbit-4.2.0/lib'
> > gmake: *** [lib-client] Error 2
> >
> > Thanks !
> >
> > Thomas
> >
> > "Jeff Newman" <jeffnewman75 at gmail.com> a écrit sur 07/09/2006 01:01:41 :
> >
> > > I also just tried compiling on an AIX 4.2.1 box (with gcc)
> > > and got the same exact error:
> > >
> > > make[1]: Entering directory
> > `/usr/local/hobbit/stage/hobbit-4.2.0/common'
> > > gcc -O -D_REENTRANT -DAIX -I. -I/usr/local/hobbit/stage/hobbit-4.2.
> > > 0/include -DC
> > > LIENTONLY=1 -c -o bb.o bb.c
> > > gcc -O -D_REENTRANT -DAIX -I. -I/usr/local/hobbit/stage/hobbit-4.2.
> > > 0/include -DC
> > > LIENTONLY=1 -o ../client/bb bb.o ../lib/hobbitclient.a
> > > collect2: ld returned 8 exit status
> > > ld: 0711-317 ERROR: Undefined symbol: .strtok_r
> > > ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more
> > information.
> > > make[1]: *** [../client/bb] Error 1
> > > make[1]: Leaving directory `/usr/local/hobbit/stage/hobbit-4.2.0/common'
> > > make: *** [common-client] Error 2
> > > #
> > >
> > > On 9/4/06, thomas.seglard.enata at cnp.fr <thomas.seglard.enata at cnp.fr>
> > wrote:
> > > > Hello,
> > > >
> > > > it's me again with all my troubles on AIX 4.2.1... Sorry ! Now, I'm
> > just
> > > > using the C compiler from IBM. Here is the new output :
> > > >
> > > > gmake[1]: Entering directory `/opt/gnu/hobbit/common'
> > > > cc -g -O3 -qstrict -qcpluscmt -D_REENTRANT  -DAIX -I.
> > > > -I/opt/gnu/hobbit/include -DCLIENTONLY=1 -c -o bb.o bb.c
> > > > cc -g -O3 -qstrict -qcpluscmt -D_REENTRANT  -DAIX -I.
> > > > -I/opt/gnu/hobbit/include -DCLIENTONLY=1 -o ../client/bb bb.o
> > > > ../lib/hobbitclient.a
> > > > ld: 0711-317 ERROR: Undefined symbol: .strtok_r
> > > > ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more
> > > > information.
> > > > gmake[1]: *** [../client/bb] Error 8
> > > > gmake[1]: Leaving directory `/opt/gnu/hobbit/common'
> > > > gmake: *** [common-client] Error 2
> > > >
> > > > So, if you know something about this error, please tell me !
> > > > Best regards,
> > > >
> > > > Thomas
> > > >
> > > >
> > >
> > > To unsubscribe from the hobbit list, send an e-mail to
> > > hobbit-unsubscribe at hswn.dk
> > >
> > >
> >
> >
> >
> > Ce message (et toutes ses pieces jointes eventuelles) est confidentiel et etabli a l'intention exclusive de ses destinataires.
> > Toute utilisation de ce message non conforme a sa destination, toute diffusion ou toute publication, totale ou partielle, est
> > interdite, sauf autorisation expresse.
> > L'internet ne permettant pas d'assurer l'integrite de ce message, CNP Assurances et ses filiales declinent toute responsabilite
> > au titre de ce message, s'il a ete altere, deforme ou falsifie.
> >
> > *****
> >
> > This message and any attachments (the "message") are confidential and intended solely for the addressees.
> > Any unauthorised use or dissemination is prohibited.
> > E-mails are susceptible to alteration.
> > Neither CNP Assurances nor any of its subsidiaries or affiliates shall be liable for the message if altered, changed or falsified.
> >
> >
> > To unsubscribe from the hobbit list, send an e-mail to
> > hobbit-unsubscribe at hswn.dk
> >
> >
> >
>



More information about the Xymon mailing list