LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   XFCE sensor plugin (https://www.linuxquestions.org/questions/slackware-14/xfce-sensor-plugin-4175418427/)

slackuser600 07-24-2012 11:04 AM

XFCE sensor plugin
 
I'm unable to compile xfce4-sensors-plugin-1.0.0. I'm using the package from slackbuilds for 13.37 and I am running Slackware 13.37, 64-bit. The same package compiles fine on my 32-bit systems, but fails on a 64-bit system. So it has something to do with 64-bit, I assume.

The configure script checks out, however the compilation itself fails:

Code:

mv -f .deps/xfce4_sensors_plugin-sensors-plugin.Tpo .deps/xfce4_sensors_plugin-sensors-plugin.Po
/bin/sh ../libtool --tag=CC  --mode=link gcc -pthread -I/usr/include/xfce4/ -I/usr/include/xfce4 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/gtk-2.0 -I/usr/lib64/gtk-2.0/include -I/usr/include/pango-1.0 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng14 -I/usr/include/atk-1.0 -DPACKAGE_LOCALE_DIR=\"/usr/local/share/locale\" -I/usr/include -g -O2 ../lib/libxfce4sensors.la  -o xfce4-sensors-plugin xfce4_sensors_plugin-sensors-plugin.o 
libtool: link: gcc -pthread -I/usr/include/xfce4/ -I/usr/include/xfce4 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/gtk-2.0 -I/usr/lib64/gtk-2.0/include -I/usr/include/pango-1.0 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng14 -I/usr/include/atk-1.0 -DPACKAGE_LOCALE_DIR=\"/usr/local/share/locale\" -I/usr/include -g -O2 -o .libs/xfce4-sensors-plugin xfce4_sensors_plugin-sensors-plugin.o  ../lib/.libs/libxfce4sensors.so -pthread -Wl,-rpath -Wl,/usr/local/lib/xfce4/modules
/usr/local/lib/gcc/x86_64-unknown-linux-gnu/4.7.1/../../../../x86_64-unknown-linux-gnu/bin/ld: xfce4_sensors_plugin-sensors-plugin.o: undefined reference to symbol 'xfce_panel_plugin_get_size'
/usr/local/lib/gcc/x86_64-unknown-linux-gnu/4.7.1/../../../../x86_64-unknown-linux-gnu/bin/ld: note: 'xfce_panel_plugin_get_size' is defined in DSO /usr/lib64/libxfce4panel.so.1 so try adding it to the linker command line
/usr/lib64/libxfce4panel.so.1: could not read symbols: Invalid operation
collect2: error: ld returned 1 exit status
make[2]: *** [xfce4-sensors-plugin] Error 1

It suggests 'xfce_panel_plugin_get_size' is defined in DSO /usr/lib64/libxfce4panel.so.1 so try adding it to the linker command line, how do I do that?

cwizardone 07-24-2012 12:29 PM

Or... you could download the package from here:

http://download.tuxfamily.org/salixb...alixbang/xfce/

:)

ponce 07-24-2012 12:39 PM

maybe you are running slackware64-13.37, but you have installed gcc-4.7.1 in /usr/local and you are using that to build your packages, not the standar compiler: you can try adding to the slackbuild in a line before the CFLAGS one
Code:

LDFLAGS="-lxfce4panel" \

slackuser600 07-27-2012 04:57 PM

Quote:

Originally Posted by ponce (Post 4736922)
maybe you are running slackware64-13.37, but you have installed gcc-4.7.1 in /usr/local and you are using that to build your packages, not the standar compiler: you can try adding to the slackbuild in a line before the CFLAGS one
Code:

LDFLAGS="-lxfce4panel" \

Thanks for the suggestion.

You are completely right. I have installed GCC 4.7.1 in /usr/local/bin. How can I specify which version of GCC to use? Can I specify this as an argument to the configure script in some way?

Edit: I forgot to mention that I tried adding LDFLAGS, but the result was exactly the same as before.

ponce 07-28-2012 09:11 AM

try to export the CC variable in the shell you use to build the slackware package
Code:

export CC=/usr/bin/gcc


All times are GMT -5. The time now is 07:16 PM.