Posts Tagged ‘Sensor Andrew Compilation OSX Linux’


Compilation issues

In Uncategorized on October 6, 2009 by salvadormrf Tagged:

– Searched on how to get cpu temperature from macmini server with bash script

– The single solution i found was an cmd line tool extracted from hwmonitor application contents.

– Tried to install soxlib and sox cmd line tools, just to send some sensor data to XMPP server

checking for arpa/nameser_compat.h… yes
checking what warning flags to pass to the C compiler…
checking for tm_gmtoff in struct tm… yes
checking for LOUDMOUTH… ./configure: line 21239: no: command not found
configure: error: Package requirements (glib-2.0 >= 2.4.0) were not met:
./configure: line 21247: no: command not found

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively, you may set the environment variables LOUDMOUTH_CFLAGS
and LOUDMOUTH_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.

– Since to compile was giving serious problems in osx,  i tested on max server, running linux.

on compiling soxlib i get this warnings

gcc34 -L. -L/usr/lib/ -L/home/a2032005/lsys/lib/ -lglib-2.0 -lgthread-2.0 -lloudmouth-1 -lgcrypt -shared -W1,-soname, -o soxlib.o -lglib-2.0 -lgthread-2.0 -lloudmouth-1 -lgcrypt
/usr/bin/ld: skipping incompatible /usr/lib// when searching for -lc
/usr/bin/ld: skipping incompatible /usr/lib//libc.a when searching for -lc

compiles, but when im compiling sox cmd line tools, soxlib cant find libloudmouth

so using ldd to list libraries dependencies,  we found that cannot find libloudmouth

[a2032005@max lib_c]$ ldd => /lib64/ (0x00002b05066f4000) => /lib64/ (0x00002b0506992000) => not found => /usr/lib64/ (0x00002b0506b97000) => /lib64/ (0x00002b0506de4000) => /lib64/ (0x00002b050713a000) => /lib64/ (0x00002b0507344000) => /usr/lib64/ (0x00002b050755f000) => /lib64/ (0x00002b0507762000)
/lib64/ (0x00000036b1800000)

– looked for solutions for this, and tried but no luck (its gcc on 64 related issue)