Error on start: undefined symbol: xchat_hook_print

Discussion about XChat on Linux and other unix like systems.

Error on start: unde

Postby DiskMan » 24 Aug 2005 09:10

Compiled Xchat-2.4.4 using the following software:
Kernel-2.6.11.6 [alpha linux]
Compaq C 6.5.9
Binutils-2.19.0
Make-3.8

Everything compiles fine and with out issue but when I fire up Xchat, I receive the following error on boot and all my plugins fail to load:

[03:00] AutoLoad failed for: /usr/lib/xchat/plugins/systray.so
[03:00] /usr/lib/xchat/plugins/systray.so: undefined symbol: xchat_hook_print
[03:00] AutoLoad failed for: /usr/lib/xchat/plugins/python.so
[03:00] /usr/lib/xchat/plugins/python.so: undefined symbol: xchat_hook_print
[03:00] AutoLoad failed for: /usr/lib/xchat/plugins/perl.so
[03:00] /usr/lib/xchat/plugins/perl.so: undefined symbol: xchat_hook_print
[03:00] AutoLoad failed for: /usr/lib/xchat/plugins/tcl.so
[03:00] /usr/lib/xchat/plugins/tcl.so: undefined symbol: xchat_hook_print

Never had this issue with Xchat-2.4.3 or ANY of the previous versions but on 2.4.4 its pretty much a show stopper when it comes to loading plugins. I did do a diff -Naur on both 2.4.4 and 2.3.4 and noticed that plugin.c appears to be the file thats causing the 'issues' but then again, I'm not a programmer =) Any tips, ideas, tricks?
User avatar
DiskMan
 
Posts: 2
Joined: 24 Aug 2005 09:03
Location: Kansas City, Mo

Postby peterz » 24 Aug 2005 12:32

Probably something to do with the src/version-script file. Why not use gcc?

Make sure it links with: -Wl,--export-dynamic, or what ever Compaq C's version of that flag is.

Code: Select all
$ld --help
...
  -E, --export-dynamic        Export all dynamic symbols
...


This should be automatic via "pkg-config gmodule-2.0 --libs".
User avatar
peterz
 
Posts: 1035
Joined: 09 Jun 2004 13:51
Location: Australia

That did the trick..

Postby DiskMan » 24 Aug 2005 18:39

Went ahead and added the ldflags and everything compiles and runs like a charm... If you're wondering why I use Compaq C, well I thought it would be obvious... Binaries/lib's run MUCHO faster and they tend to be somewhat less buggy. I"m sure the same is for LCC to [Intel C].

For those who would like to download them for their own use, here you go... Just make sure you have libots installed:

ftp://southkc.net/linux-related/com:
xchat-2.4.4-0.ccc.ev56.rpm
xchat-perl-2.4.4-0.ccc.ev56.rpm
xchat-python-2.4.4-0.ccc.ev56.rpm
xchat-tcl-2.4.4-0.ccc.ev56.rpm
User avatar
DiskMan
 
Posts: 2
Joined: 24 Aug 2005 09:03
Location: Kansas City, Mo

Postby peterz » 25 Aug 2005 04:49

What does it print when you type:
Code: Select all
pkg-config gmodule-2.0 --libs | sed 's/ -lgmodule-2.0//'

Because that's what configure uses.
User avatar
peterz
 
Posts: 1035
Joined: 09 Jun 2004 13:51
Location: Australia


Return to XChat

Who is online

Users browsing this forum: No registered users and 4 guests