LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Bluewhite64 (https://www.linuxquestions.org/questions/bluewhite64-80/)
-   -   Problem compiling Hardinfo (BW64 12.1) (https://www.linuxquestions.org/questions/bluewhite64-80/problem-compiling-hardinfo-bw64-12-1-a-652527/)

Crushing Belial 06-30-2008 04:36 AM

Problem compiling Hardinfo (BW64 12.1)
 
When I run make, I get this error when trying to compile Hardinfo,

Code:

ToscoConf (version 0.04) for hardinfo version 0.4.2.3
Determining system architecture.
Compiling hardinfo for Linux x86_64 (ARCH_x86_64).

Checking for lspci... /sbin/lspci
Checking for GTK version >= 2.6.0... found 2.12.9
Checking for libsoup version >= 2.2.7... found 2.2.105

Writing config.h...
Writing Makefile...

Done. Type "make" to compile the program.

If you get errors, probably you don't have the right libraries,
includes or utilities. However, if you're sure this is a bug in my
code, please send a patch (use "diff -u") to <leandro@linuxmag.com.br>.
ben@cosmos:~/Desktop/hardinfo-0.4.2.3$ make
gcc  -g -fPIC -pipe -Wall -g -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/freetype2 -I/usr/include/libpng12    -I/usr/include/libsoup-2.2 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/libxml2  -I. -o hardinfo -Wl,-export-dynamic hardinfo.o shell.o util.o iconcache.o loadgraph.o sha1.o md5.o menu.o stock.o callbacks.o expr.o report.o blowfish.o binreloc.o vendor.o socket.o fbench.o syncmanager.o -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgdk_pixbuf-2.0 -lpangocairo-1.0 -lpango-1.0 -lcairo -lgobject-2.0 -lgmodule-2.0 -ldl -lglib-2.0    \
                  -lsoup-2.2 -lglib-2.0 -lxml2 -lz -lm -lgnutls -lgcrypt -lgpg-error
/usr/lib/gcc/x86_64-pc-linux/4.2.3/../../../../lib/libsoup-2.2.so: undefined reference to `g_assertion_message'
collect2: ld returned 1 exit status
make: *** [all] Error 1

Anyone know what this means? Or does anyone know where I can download Hardinfo for Bluewhite64?

arny 07-01-2008 06:12 AM

Try (first v2.2.105) using one of these version of libsoup:

http://data.linux64packages.net:8080...aries/libsoup/

Crushing Belial 07-01-2008 03:43 PM

Quote:

Originally Posted by arny (Post 3200176)
Try (first v2.2.105) using one of these version of libsoup:

http://data.linux64packages.net:8080...aries/libsoup/

libsoup-2.23.1 gives me,

Code:

ToscoConf (version 0.04) for hardinfo version 0.4.2.3
Determining system architecture.
Compiling hardinfo for Linux x86_64 (ARCH_x86_64).

Checking for lspci... /sbin/lspci
Checking for GTK version >= 2.6.0... found 2.12.9
Checking for libsoup version >= 2.2.7... not found.
Disabling libsoup support. (Network Updater won't be available.)

Writing config.h...
Writing Makefile...

Done. Type "make" to compile the program.

If you get errors, probably you don't have the right libraries,
includes or utilities. However, if you're sure this is a bug in my
code, please send a patch (use "diff -u") to <leandro@linuxmag.com.br>.
ben@cosmos:~/Desktop/hardinfo-0.4.2.3$ make
gcc  -g -fPIC -pipe -Wall -g -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/freetype2 -I/usr/include/libpng12    -I. -o hardinfo -Wl,-export-dynamic hardinfo.o shell.o util.o iconcache.o loadgraph.o sha1.o md5.o menu.o stock.o callbacks.o expr.o report.o blowfish.o binreloc.o vendor.o socket.o fbench.o syncmanager.o -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgdk_pixbuf-2.0 -lpangocairo-1.0 -lpango-1.0 -lcairo -lgobject-2.0 -lgmodule-2.0 -ldl -lglib-2.0    \

hardinfo.o: In function `main':
/home/ben/Desktop/hardinfo-0.4.2.3/hardinfo.c:40: undefined reference to `g_thread_init'
syncmanager.o: In function `_soup_get_xmlrpc_value':
/home/ben/Desktop/hardinfo-0.4.2.3/syncmanager.c:157: undefined reference to `soup_xmlrpc_message_get_type'
/home/ben/Desktop/hardinfo-0.4.2.3/syncmanager.c:157: undefined reference to `soup_xmlrpc_message_parse_response'
/home/ben/Desktop/hardinfo-0.4.2.3/syncmanager.c:164: undefined reference to `soup_xmlrpc_response_get_value'
syncmanager.o: In function `_soup_get_xmlrpc_value_int':
/home/ben/Desktop/hardinfo-0.4.2.3/syncmanager.c:186: undefined reference to `soup_xmlrpc_value_get_int'
syncmanager.o: In function `_soup_get_xmlrpc_value_string':
/home/ben/Desktop/hardinfo-0.4.2.3/syncmanager.c:206: undefined reference to `soup_xmlrpc_value_get_string'
syncmanager.o: In function `_soup_xmlrpc_call':
/home/ben/Desktop/hardinfo-0.4.2.3/syncmanager.c:221: undefined reference to `soup_xmlrpc_message_new'
/home/ben/Desktop/hardinfo-0.4.2.3/syncmanager.c:226: undefined reference to `soup_xmlrpc_message_start_call'
/home/ben/Desktop/hardinfo-0.4.2.3/syncmanager.c:227: undefined reference to `soup_xmlrpc_message_end_call'
/home/ben/Desktop/hardinfo-0.4.2.3/syncmanager.c:229: undefined reference to `soup_xmlrpc_message_persist'
/home/ben/Desktop/hardinfo-0.4.2.3/syncmanager.c:231: undefined reference to `soup_message_get_type'
/home/ben/Desktop/hardinfo-0.4.2.3/syncmanager.c:231: undefined reference to `soup_session_queue_message'
syncmanager.o: In function `_soup_xmlrpc_call_with_parameters':
/home/ben/Desktop/hardinfo-0.4.2.3/syncmanager.c:248: undefined reference to `soup_xmlrpc_message_new'
/home/ben/Desktop/hardinfo-0.4.2.3/syncmanager.c:253: undefined reference to `soup_xmlrpc_message_start_call'
/home/ben/Desktop/hardinfo-0.4.2.3/syncmanager.c:257: undefined reference to `soup_xmlrpc_message_start_param'
/home/ben/Desktop/hardinfo-0.4.2.3/syncmanager.c:258: undefined reference to `soup_xmlrpc_message_write_string'
/home/ben/Desktop/hardinfo-0.4.2.3/syncmanager.c:259: undefined reference to `soup_xmlrpc_message_end_param'
/home/ben/Desktop/hardinfo-0.4.2.3/syncmanager.c:265: undefined reference to `soup_xmlrpc_message_end_call'
/home/ben/Desktop/hardinfo-0.4.2.3/syncmanager.c:266: undefined reference to `soup_xmlrpc_message_persist'
/home/ben/Desktop/hardinfo-0.4.2.3/syncmanager.c:268: undefined reference to `soup_message_get_type'
/home/ben/Desktop/hardinfo-0.4.2.3/syncmanager.c:268: undefined reference to `soup_session_queue_message'
syncmanager.o: In function `_cancel_sync':
/home/ben/Desktop/hardinfo-0.4.2.3/syncmanager.c:372: undefined reference to `soup_session_abort'
syncmanager.o: In function `sync_manager_get_proxy':
/home/ben/Desktop/hardinfo-0.4.2.3/syncmanager.c:424: undefined reference to `soup_uri_new'
syncmanager.o: In function `sync_dialog_start_sync':
/home/ben/Desktop/hardinfo-0.4.2.3/syncmanager.c:435: undefined reference to `soup_session_async_new_with_options'
collect2: ld returned 1 exit status
make: *** [all] Error 1


arny 07-02-2008 12:28 AM

OK, I made these packages. Remove your libsoup and install this two:

http://data.linux64packages.net:8080...x86_64-1ar.tgz

http://data.linux64packages.net:8080...x86_64-1ar.tgz

Crushing Belial 07-02-2008 01:03 AM

Quote:

Originally Posted by arny (Post 3201020)


Thanks a lot! I really appreciate the effort.

By the way, I noticed under "distribution", it says "unknown". I discovered a simple fix for this. Create a text file in the /etc directory called "slackware-version", and type Bluewhite64 12.1. It appears that is all Hardinfo does to figure out distro information. Maybe let the Hardinfo maintainer know about this and he can properly fix it.

arny 07-03-2008 07:16 AM

I have updated the package to display the OS correctly:

http://data.linux64packages.net:8080...x86_64-2ar.tgz


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