[collectd] Trouble compiling collectd 4.10 on AIX 6.1 TL4

Aurélien REYNAUD aurelien.reynaud at atosorigin.com
Mon Jun 21 11:59:21 CEST 2010


Hello,


I got it to compile under AIX 6.1 TL2 without trouble using:

./configure --disable-dns LDFLAGS="-Wl,-brtl"

You will possibly need some patches that may not have been merged yet.
Search the list for:

[PATCH] configure.in: htonll check depends on linker
[PATCH 1/2] processes.c: fix uninitialized variableswarnings
[PATCH 2/2] snmp.c: compilation fixes for AIX
[PATCH] Fix errno thread-safety under AIX


Regards,
Aurelien Reynaud


> -----Message d'origine-----
> De : collectd-bounces at verplant.org [mailto:collectd-bounces at verplant.org]
> De la part de Héctor Rivas Gándara
> Envoyé : lundi 21 juin 2010 11:33
> À : collectd at verplant.org
> Objet : [collectd] Trouble compiling collectd 4.10 on AIX 6.1 TL4
> 
> Hello,
> 
> I am trying to compile collectd on AIX, and I am having some trouble
> with link process. Versions:
>  * collectd 4.10
>  * AIX 6100-04-01-0944
>  * gcc-4.2.0-3 (from Linux ToolBox CD)
> 
> I used this configure line:
> OBJECT_MODE=64 ./configure LDFLAGS=-Wl,-brtl CFLAGS=-maix64
> --disable-dns --disable-nagios
> 
> And make fails with an undefined symbol error (see below). Any idea or
> clue?
> 
> Making all in libltdl
>         make  all-am
> Target "all-am" is up to date.
> Making all in src
>         make  all-recursive
> Making all in libcollectdclient
>         make  all-am
> Target "all-am" is up to date.
> Making all in liboconfig
>         make  all-am
> Target "all-am" is up to date.
>         /bin/sh ../libtool --tag=CC    --mode=link
> /cgx1/SoftwareRepository/source/collectd-4.10.0/compile gcc -Wall
> -Werror -maix64   -Wl,-brtl -o collectd-nagios collectd-nagios.o  -lm
> libcollectdclient/libcollectdclient.la
> libtool: link: /cgx1/SoftwareRepository/source/collectd-4.10.0/compile
> gcc -Wall -Werror -maix64 -Wl,-brtl -o .libs/collectd-nagios
> collectd-nagios.o  -lm -Llibcollectdclient/.libs -lcollectdclient
> -Wl,-blibpath:/usr/local/stow/collectd-
> 4.10.0/lib:/opt/freeware/lib/gcc/powerpc-ibm-
> aix6.1.0.0/4.2.0/ppc64:/opt/freeware/lib/gcc/powerpc-ibm-
> aix6.1.0.0/4.2.0:/opt/freeware/lib/gcc/powerpc-ibm-
> aix6.1.0.0/4.2.0/../../..:/usr/lib:/lib
> ld: 0711-317 ERROR: Undefined symbol: .lcc_connect
> ld: 0711-317 ERROR: Undefined symbol: .lcc_string_to_identifier
> ld: 0711-317 ERROR: Undefined symbol: .lcc_strerror
> ld: 0711-317 ERROR: Undefined symbol: .lcc_disconnect
> ld: 0711-317 ERROR: Undefined symbol: .lcc_getval
> ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more
> information.
> collect2: ld returned 8 exit status
> make: 1254-004 The error code from the last command is 1.
> 
> 
> Stop.
> make: 1254-004 The error code from the last command is 1.
> 
> 
> Stop.
> make: 1254-004 The error code from the last command is 2.
> 
> 
> Stop.
> make: 1254-004 The error code from the last command is 1.
> 
> 
> Stop.
> 
> 
> --
> Atentamente
> Héctor Rivas
> 
> _______________________________________________
> collectd mailing list
> collectd at verplant.org
> http://mailman.verplant.org/listinfo/collectd




More information about the collectd mailing list