New version of hobbit_perl_client (beastat.pl netapp.pl and dbcheck.pl)
list Francesco Duranti
Hi all... I've just released the new version of those clients (now in a single package) at http://sourceforge.net/projects/hobbit-perl-cl/ Some new function related to this version (not a full list of news because the big work in this release was to move all the function shared by the scripts to a single library to mantain them better): - Timeout connecting/querying databases implemented - Timeout in command execution - mysql support for dbcheck.pl - aggregate and cluster support for netapp.pl - Implementation of /GROUP directive of bb command on a per filers/database/weblogicserver base - some bug fixes Francesco
list Thomas Seglard
Hi Francesco, once again, thanks for all your great work ! I got just one question for you. When I tried to launch beastat.pl for the first time on my hobbit server, I have an output with this error : [hobbit at psi200 ext]$ ./beastat.pl psu155 5000 vantage vantage Mon Sep 4 14:25:27 2006:ERROR: BBTMP environment not defined Do I need to manually set this variable ? Sincerly, Thomas "Francesco Duranti" <user-7104dcecbfef@xymon.invalid> a écrit sur 02/09/2006 01:59:22 :
▸
Hi all... I've just released the new version of those clients (now in a single package) at http://sourceforge.net/projects/hobbit-perl-cl/ Some new function related to this version (not a full list of news because the big work in this release was to move all the function shared by the scripts to a single library to mantain them better): - Timeout connecting/querying databases implemented - Timeout in command execution - mysql support for dbcheck.pl - aggregate and cluster support for netapp.pl - Implementation of /GROUP directive of bb command on a per filers/database/weblogicserver base - some bug fixes Francesco
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.
list Henrik Størner
▸
On Mon, Sep 04, 2006 at 02:39:56PM +0200, user-bb3e9041f07f@xymon.invalid wrote:
Hi Francesco, once again, thanks for all your great work ! I got just one question for you. When I tried to launch beastat.pl for the first time on my hobbit server, I have an output with this error : [hobbit at psi200 ext]$ ./beastat.pl psu155 5000 vantage vantage Mon Sep 4 14:25:27 2006:ERROR: BBTMP environment not defined Do I need to manually set this variable ?
BBTMP is one of the environment variables provided by Hobbit's
"hobbitlaunch" utility. So normally this should not need to be set.
You can emulate this with the "bbcmd" tool, i.e. try running it with
bbcmd ./beastat.pl psu155 5000 vantage vantage
Regards,
Henrik
list Francesco Duranti
You can also run "bbcmd bash" to have a shell with all the env variable for hobbit and then you can run the ext script from that shell. Francesco
▸
On Mon, Sep 04, 2006 at 02:39:56PM +0200, user-bb3e9041f07f@xymon.invalid wrote:Hi Francesco,once again, thanks for all your great work ! > I got just one question for you. When I tried to launch beastat.pl for the first time on my hobbit server, I have an output with this error : [hobbit at psi200 ext]$ ./beastat.pl psu155 5000 vantage vantage Mon Sep > 4 14:25:27 2006:ERROR: BBTMP environment not defined Do I need to manually set this variable ?BBTMP is one of the environment variables provided by Hobbit's "hobbitlaunch" utility. So normally this should not need to be set. You can emulate this with the "bbcmd" tool, i.e. try running it with bbcmd ./beastat.pl psu155 5000 vantage vantage Regards, Henrik
list Thomas Seglard
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
▸
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.
list T.J. Yang
Currently on http://www.hswn.dk/hobbit/servers/servers.html, it only show one type of Linux OS. Understand that it would be tough for Henrik to have all kind of different OS in his test network. Is it possible we can contribute to provide a comprenhsive list of OS hobbit client can run on ? Since hobbit support "pull", we should be able to contribute the different OS running hobbit client from our home test network. I am not sure if others are interested about this project, also not sure if Henrik is interested to accept bb client messages from different OS. T.J. Yang
list Ralph Mitchell
▸
On 9/5/06, T.J. Yang <user-8e841282cda5@xymon.invalid> wrote:
Currently on http://www.hswn.dk/hobbit/servers/servers.html, it only show one type of Linux OS. Understand that it would be tough for Henrik to have all kind of different OS in his test network. Is it possible we can contribute to provide a comprenhsive list of OS hobbit client can run on ? Since hobbit support "pull", we should be able to contribute the different OS running hobbit client from our home test network.
I have both server and client Hobbit running on both x86 and Sparc Gentoo Linux systems. They're all behind multiple layers of firewalls, though, so there's no hope of anyone outside pulling info from them... :) Ralph Mitchell
list T.J. Yang
▸
From: "Ralph Mitchell" <user-00a5e44c48c0@xymon.invalid> Reply-To: user-ae9b8668bcde@xymon.invalid To: user-ae9b8668bcde@xymon.invalid Subject: Re: [hobbit] Increate the number of OS presence on http://www.hswn.dk/hobbit/ Date: Tue, 5 Sep 2006 08:54:44 -0500 On 9/5/06, T.J. Yang <user-8e841282cda5@xymon.invalid> wrote:Currently on http://www.hswn.dk/hobbit/servers/servers.html, it only show one type of Linux OS. Understand that it would be tough for Henrik to have all kind of different OS in his test network. Is it possible we can contribute to provide a comprenhsive list of OS hobbit client can run on ? Since hobbit support "pull", we should be able to contribute the different OS running hobbit client from our home test network.I have both server and client Hobbit running on both x86 and Sparc Gentoo Linux systems. They're all behind multiple layers of firewalls, though, so there's no hope of anyone outside pulling info from them... :)
For OS on intel cpu, it is easier becuase we can use free vmware server to host lots of OS types and keep one intel box on all the time is affordable. Problem is OS and versions running on sparc,parisc and other CPUs, it will be expensive to keep those machines on even hardware are avaiable. Regards tj yang
Ralph Mitchell
list Gary B.
▸
On 9/5/06, T.J. Yang <user-8e841282cda5@xymon.invalid> wrote:Currently on http://www.hswn.dk/hobbit/servers/servers.html, it only show one type of Linux OS. Understand that it would be tough for Henrik to have all kind of different OS in his test network. Is it possible we can contribute to provide a comprenhsive list of OS hobbit client can run on ? Since hobbit support "pull", we should be able to contribute the different OS running hobbit client from our home test network.
If you're just asking which OSes the client has been confirmed to run on, I can tell you that it also works fine on various version of OpenBSD, from 3.5 and up. It also runs on Solaris 8 (sparc hardware), and several versions of Red Hat AS. I can provide more detailed information if you're interested.
list Rich Smrcina
I have it running on SLES9.
▸
Gary B. wrote:On 9/5/06, T.J. Yang <user-8e841282cda5@xymon.invalid> wrote:Currently on http://www.hswn.dk/hobbit/servers/servers.html, it only show one type of Linux OS. Understand that it would be tough for Henrik to have all kind of different OS in his test network. Is it possible we can contribute to provide a comprenhsive list of OS hobbit client can run on ? Since hobbit support "pull", we should be able to contribute the different OS running hobbit client from our home test network.If you're just asking which OSes the client has been confirmed to run on, I can tell you that it also works fine on various version of OpenBSD, from 3.5 and up. It also runs on Solaris 8 (sparc hardware), and several versions of Red Hat AS. I can provide more detailed information if you're interested.
--
Rich Smrcina VM Assist, Inc. Phone: XXX-XXX-XXXX Ans Service: XXX-XXX-XXXX user-61add9955ef9@xymon.invalid Catch the WAVV! http://www.wavv.org WAVV 2007 - Green Bay, WI - May 18-22, 2007
list Ulric Eriksson
I don't know how interesting that would be. The Sourceforge page says "All POSIX". For the record, if our migration works out well, there will be Hobbit clients on a few hundred hosts running various Unixes. For now it's just one. And me, slowly migrating ext scripts and figuring out how things work. Ulric
list Jeff Newman
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, user-bb3e9041f07f@xymon.invalid <user-bb3e9041f07f@xymon.invalid> 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
list Henrik Størner
▸
On Mon, Sep 04, 2006 at 07:16:41PM +0200, user-bb3e9041f07f@xymon.invalid 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
-------------- next part --------------
--- lib/Makefile 2006/07/04 11:32:14 1.50
+++ lib/Makefile 2006/09/07 06:06:37
@@ -3,7 +3,7 @@
BBGENLIBOBJS = osdefs.o acklog.o availability.o calc.o cgi.o cgiurls.o clientlocal.o color.o digest.o encoding.o environ.o errormsg.o eventlog.o files.o headfoot.o hobbitrrd.o htmllog.o ipaccess.o loadalerts.o loadhosts.o loadnkconf.o links.o matching.o md5.o memory.o misc.o netservices.o rbtr.o reportlog.o rmd160c.o sendmsg.o sha1.o sig.o stackio.o strfunc.o suid.o timefunc.o timing.o url.o
-CLIENTLIBOBJS = osdefs.o cgiurls.o color.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.o
+CLIENTLIBOBJS = 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
ifeq ($(LOCALCLIENT),yes)
CLIENTLIBOBJS += matching.o
endif
@@ -53,6 +53,12 @@
environ-client.o: environ.c
$(CC) $(CFLAGS) -DBBTOPDIR=\"$(BBTOPDIR)\" -DBBLOGDIR=\"$(BBLOGDIR)\" -DBBHOSTNAME=\"$(BBHOSTNAME)\" -DBBHOSTIP=\"$(BBHOSTIP)\" -DBBHOSTOS=\"$(BBHOSTOS)\" -DBUILD_HOME=\"$(BBTOPDIR)/client\" -c -o $@ environ.c
+color-client.o: color.c
+ $(CC) $(CFLAGS) -DCLIENTONLY -c -o $@ $<
• +timefunc-client.o: timefunc.c
+ $(CC) $(CFLAGS) -DCLIENTONLY -c -o $@ $<
• loadhosts: loadhosts.c libbbgen.a
$(CC) $(CFLAGS) -DSTANDALONE -o $@ loadhosts.c ./libbbgen.a
--- lib/color.c 2006/05/03 21:12:33 1.12
+++ lib/color.c 2006/09/07 06:07:06
@@ -111,6 +111,7 @@
return filename;
}
+#ifndef CLIENTONLY
int colorset(char *colspec, int excludeset)
{
char *cspeccopy = strdup(colspec);
@@ -131,4 +132,5 @@
ac = (ac & ~excludeset);
return ac;
}
+#endif
--- lib/timefunc.c 2006/07/20 16:06:41 1.31
+++ lib/timefunc.c 2006/09/07 06:07:54
@@ -245,6 +245,7 @@
return found;
}
+#ifndef CLIENTONLY
char *check_downtime(char *hostname, char *testname)
{
namelist_t *hinfo = hostinfo(hostname);
@@ -300,6 +301,7 @@
return NULL;
}
+#endif
int periodcoversnow(char *tag)
{
list Thomas Seglard
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" <user-e96740e73ca8@xymon.invalid> 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, user-bb3e9041f07f@xymon.invalid <user-bb3e9041f07f@xymon.invalid> 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
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.
list Thomas Seglard
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
user-ce4a2c883f75@xymon.invalid (Henrik Stoerner) a écrit sur 07/09/2006 08:13:01 :
▸
On Mon, Sep 04, 2006 at 07:16:41PM +0200, user-bb3e9041f07f@xymon.invalid 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_rOuch ... 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
user-095ef1c764a2@xymon.invalid▸
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.
list Jeff Newman
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, user-bb3e9041f07f@xymon.invalid <user-bb3e9041f07f@xymon.invalid> 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" <user-e96740e73ca8@xymon.invalid> 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, user-bb3e9041f07f@xymon.invalid <user-bb3e9041f07f@xymon.invalid> 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, ThomasCe 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.
list Jeff Newman
Any update on this?
▸
On 9/7/06, Jeff Newman <user-e96740e73ca8@xymon.invalid> 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, user-bb3e9041f07f@xymon.invalid <user-bb3e9041f07f@xymon.invalid> 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" <user-e96740e73ca8@xymon.invalid> 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, user-bb3e9041f07f@xymon.invalid <user-bb3e9041f07f@xymon.invalid> 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, ThomasCe 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.
list Thomas Seglard
Hello, I'm sorry to insist but the patch doesn't fix the compilation. Do you have some kind of workaround ? I compiled a client on AIX 4.3.3 and test it on AIX 4.2.1 but it didn't work. If I remember it worked for hobbit 4.1.2p1. So, I don't know what to do.
▸
Regards,
Thomas
user-ce4a2c883f75@xymon.invalid (Henrik Stoerner) a écrit sur 07/09/2006 08:13:01 :
On Mon, Sep 04, 2006 at 07:16:41PM +0200, user-bb3e9041f07f@xymon.invalid 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_rOuch ... 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 user-095ef1c764a2@xymon.invalid
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.