PDA

View Full Version : Compile error Zabbix 1.4.2 (pthread_self)


qix
18-10-2007, 17:42
Hello all,

I'm running into a comple error.
Anybody tackled this before?

/usr/lib/libmysqlclient.a(yassl_int.o): In function `yaSSL::yassl_int_cpp_local2::GetSelf()':
(.text+0x1ae3): undefined reference to `pthread_self'
/usr/lib/libgssapi_krb5.a(rel_cred.o): In function `krb5_gss_release_cred':
(.text+0x284): undefined reference to `pthread_self'
/usr/lib/libgssapi_krb5.a(rel_cred.o): In function `krb5_gss_release_cred':
(.text+0x2c7): undefined reference to `pthread_self'
/usr/lib/libgssapi_krb5.a(rel_cred.o): In function `krb5_gss_release_cred':
(.text+0x32a): undefined reference to `pthread_self'
/usr/lib/libgssapi_krb5.a(gss_libinit.o): In function `gssint_lib_fini':
(.text+0x3b9): undefined reference to `pthread_self'
/usr/lib/libgssapi_krb5.a(gss_libinit.o):(.text+0x3d5): more undefined references to `pthread_self' follow
collect2: ld returned 1 exit status
make[3]: *** [zabbix_server] Error 1
make[3]: Leaving directory `/usr/src/zabbix/zabbix-1.4.2/src/zabbix_server'
make[2]: *** [install-recursive] Error 1
make[2]: Leaving directory `/usr/src/zabbix/zabbix-1.4.2/src/zabbix_server'
make[1]: *** [install-recursive] Error 1
make[1]: Leaving directory `/usr/src/zabbix/zabbix-1.4.2/src'
make: *** [install-recursive] Error 1

I'm running Debian 4.0.
Config runs without a hitch with the following params:
./configure --enable-agent --enable-server --with-mysql --with-net-snmp --with-libcurl --enable-static --prefix=/opt/zabbix/zabbix-1.4.2/

Any hints greatly appreciated!

qix
22-10-2007, 15:04
with a


./configure --enable-agent --enable-static --prefix=/opt/zabbix/zabbix-1.4.2/


The agent compiles just fine, although I haven't tested it yet.
So the problem seems to be in the server.

qix
22-10-2007, 15:56
./configure --enable-server --with-mysql --with-snmp --with-libcurl --prefix=/opt/zabbix/zabbix-1.4.2/

Compiles just fine as well.

So it drills down to the Zabbix server in combination with '--enable-static'.

Any solutions to this problem?

I would like to be able to compile the code on my test system and than just copy the bins to my production servers.

Niels
15-11-2007, 09:30
Did you solve this?

I have a similar problem with 1.4/r5006:
/usr/lib/libmysqlclient.a(yassl_int.o): In function `yaSSL::yassl_int_cpp_local2::GetSelf()':
(.text+0x1ae3): undefined reference to `pthread_self'
/usr/lib/libmysqlclient.a(my_compress.o): In function `my_uncompress':
(.text+0x61): undefined reference to `uncompress'
/usr/lib/libmysqlclient.a(my_compress.o): In function `my_compress_alloc':
(.text+0x10e): undefined reference to `compress'
collect2: ld returned 1 exit status
make[3]: *** [zabbix_server] Error 1
make[3]: Leaving directory `/root/zabbix-1.4/src/zabbix_server'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/root/zabbix-1.4/src/zabbix_server'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/root/zabbix-1.4/src'
make: *** [all-recursive] Error 1

qix
15-11-2007, 10:36
Unfortunately, I have not.
I still need to compile Zabbix on every server individually, with off course leaves a lot of room for errors when upgrading.... :(
Also, I don't know why Zabbix would need the Kerberos libraries, so it seems like I should not need to run into this error.

I have no clue to what the error means, so I was kinda hoping Alexei or one of the other developers might know more about this.

Niels
15-11-2007, 10:46
I'm sure Alexei knows what to do -- we just need to get his attention! ;)

I'll make a bugreport later today if nothing further happens. I'll google for similar errors.

Edit: ZBX-177

qix
20-12-2007, 16:22
Tried it with 1.4.4, no change.