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

thomas.seglard.enata at cnp.fr thomas.seglard.enata at cnp.fr
Thu Sep 7 19:48:45 CEST 2006


Thanks for your patch. Apparently, I got the same error here but a bit 
later :

cc -g -O3 -qstrict -qcpluscmt -D_REENTRANT  -DAIX -I. 
-I/opt/gnu/hobbit-4.2.0/include -DCLIENTONLY=1 -o ../client/bbdigest 
bbdigest.o ../lib/hobbitclient.a 
gmake[1]: Leaving directory `/opt/gnu/hobbit-4.2.0/common'
CC="cc" CFLAGS="-g -O3 -qstrict -qcpluscmt -D_REENTRANT  -DAIX -I. 
-I`pwd`/include -DCLIENTONLY=1" LDFLAGS="" RPATHOPT="" SSLLIBS="" NETLIBS="" BBHOME="/opt/hobbit/client" gmake -C build all
gmake[1]: Entering directory `/opt/gnu/hobbit-4.2.0/build'
cc -o merge-lines -g -O3 -qstrict -qcpluscmt -D_REENTRANT  -DAIX -I. 
-I/opt/gnu/hobbit-4.2.0/include -DCLIENTONLY=1 merge-lines.c
cc -o merge-sects -g -O3 -qstrict -qcpluscmt -D_REENTRANT  -DAIX -I. 
-I/opt/gnu/hobbit-4.2.0/include -DCLIENTONLY=1 merge-sects.c
cc -o setup-newfiles -g -O3 -qstrict -qcpluscmt -D_REENTRANT  -DAIX -I. 
-I/opt/gnu/hobbit-4.2.0/include -DCLIENTONLY=1  setup-newfiles.c 
../lib/hobbitclient.a 
gmake[1]: Leaving directory `/opt/gnu/hobbit-4.2.0/build'
CC="cc" CFLAGS="-g -O3 -qstrict -qcpluscmt -D_REENTRANT  -DAIX -I. 
-I`pwd`/include -DCLIENTONLY=1" BBHOME="/opt/hobbit/client" 
BBHOSTIP="158.157.156.91" LOCALCLIENT="no" NETLIBS="" gmake -C client all
gmake[1]: Entering directory `/opt/gnu/hobbit-4.2.0/client'
cc -g -O3 -qstrict -qcpluscmt -D_REENTRANT  -DAIX -I. 
-I/opt/gnu/hobbit-4.2.0/include -DCLIENTONLY=1 -o logfetch logfetch.c 
../lib/hobbitclient.a
cc -g -O3 -qstrict -qcpluscmt -D_REENTRANT  -DAIX -I. 
-I/opt/gnu/hobbit-4.2.0/include -DCLIENTONLY=1 -o clientupdate 
clientupdate.c ../lib/hobbitclient.a 
cc -g -O3 -qstrict -qcpluscmt -D_REENTRANT  -DAIX -I. 
-I/opt/gnu/hobbit-4.2.0/include -DCLIENTONLY=1 -o orcahobbit orcahobbit.c ../lib/hobbitclient.a 
"orcahobbit.c", line 82.13: 1506-068 (W) Operation between types "unsigned char*" and "int" is not allowed.
"orcahobbit.c", line 83.13: 1506-068 (W) Operation between types "unsigned char*" and "int" is not allowed.
"orcahobbit.c", line 87.21: 1506-068 (W) Operation between types "unsigned char*" and "int" is not allowed.
"orcahobbit.c", line 88.21: 1506-068 (W) Operation between types "unsigned char*" and "int" is not allowed.
ld: 0711-317 ERROR: Undefined symbol: .strtok_r
ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more 
information.
gmake[1]: *** [orcahobbit] Error 8
gmake[1]: Leaving directory `/opt/gnu/hobbit-4.2.0/client'
gmake: *** [client] Error 2

Thanks for all your help and code.
Best regards,

Thomas

henrik at hswn.dk (Henrik Stoerner) a écrit sur 07/09/2006 08:13:01 :

> On Mon, Sep 04, 2006 at 07:16:41PM +0200, thomas.seglard.enata at cnp.fr 
wrote:
> 
> > 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
> 
> Ouch ... your system doesn't have the strtok_r function.
> 
> This is a standard function, but it didn't become that until the 2001 
> edition of POSIX. Apparently AIX 4.2.1 predates that.
> 
> Still, I would like the client to work on as many platforms as possible.
> Does this patch fix it for you?
> 
> 
> Regards,
> Henrik
> 
> [rattachement "client-strtok_r.patch" supprimé par Thomas 
> SEGLARD/FI6/ANFI/CNP Assurances] 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.




More information about the Xymon mailing list