It compiles, but when it does the linking I get the following error message:
tcl.o: In function `utf_converter':
/home/bencze/eggdrop1.6.10/src/tcl.c:311: undefined reference to `Tcl_GetByteArrayFromObj'
tcl.o: In function `init_tcl':
/home/bencze/eggdrop1.6.10/src/tcl.c:602: undefined reference to `Tcl_UtfToLower'
/home/bencze/eggdrop1.6.10/src/tcl.c:603: undefined reference to `Tcl_SetSystemEncoding'
/home/bencze/eggdrop1.6.10/src/tcl.c:617: undefined reference to `Tcl_SetSystemEncoding'
/home/bencze/eggdrop1.6.10/src/tcl.c:630: undefined reference to `Tcl_GetEncoding'
tclmisc.o: In function `tcl_md5':
/home/bencze/eggdrop1.6.10/src/tclmisc.c:598: undefined reference to `Tcl_GetByteArrayFromObj'
collect2: ld returned 1 exit status
make[1]: *** [../eggdrop] Error 1
make[1]: Leaving directory `/home/bencze/eggdrop1.6.10/src'
make: *** [static] Error 2
Anyone has a suggestion what could I do? Do I need some special package installed or what? I have Tcl tcl-8.3.1-34 installed.
Thank you,
Bencze.
This error usualy occurs when the tcl.h file being included into the eggdrop source code, is of a lower version to the libtcl.so being used.
During the ./configure faze, you should check that the version of tcl.h and libtcl.so are the same, and if not, make sure that traces of old versions are fully illiminated.
The ./configure faze will tell you exactly where if has located the files, and the name.
Actually I had to 'locate' them because the configure script haven't found them. I've set 2 variables, LIBTCL and LIBINC or something like this, as some help file is saying... maybe I just reinstall Tcl?
Somehow my version of ldconfig doesn't support the -m flag so that didn't work for me.
Then I came across this document and found out that it has a config file.
By default, it scans a set of built-in system directories, directories listed in /etc/ld.so.conf
So all I had to do to make it find the libary was to add the path to the libary in "ld.so.conf"
I ran ldconfig again and then make could complete the linking of the libaries.
It took me 4 hours to compile eggdrop becaase of this unfortunate error