egghelp.org community Forum Index
[ egghelp.org home | forum home ]
egghelp.org community
Discussion of eggdrop bots, shell accounts and tcl scripts.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

during eggdrop setup - unknown problem occurs during linking

 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Eggdrop Help
View previous topic :: View next topic  
Author Message
zen`cai
Voice


Joined: 13 Aug 2006
Posts: 4
Location: Texas

PostPosted: Sun Aug 13, 2006 12:02 pm    Post subject: during eggdrop setup - unknown problem occurs during linking Reply with quote

I am running Fedora Core 4. ActiveTcl 8.4.6 and eggdrop1.6.18

on ./configure actual command is:
./configure --with-tcllib=/usr/local/ActiveTcl/lib/libtcl8.4.a --with-tclinc=/usr/local/ActiveTcl/include/tcl.h

it accepts this and tells me to "make config" to configure modules

it accepts this also and tells me I can now compile the bot, using "make"

then on to "Yeah! That's the compiling, now the linking!"

at this point everything comes up as an "undefined reference" and the end of process is:

collect2: ld returned 1 exit status
make[1]: *** [../eggdrop] Error 1
make[1]: Leaving directory `/root/eggdrop1.6.18/src'
make: *** [static] Error 2

if I try to continue to "make install DEST=/root/eggdrop/botdir"
it tells me I have not compiled the bot yet.

any help would be greatly appreciated.
Back to top
View user's profile Send private message MSN Messenger
rosc2112
Revered One


Joined: 19 Feb 2006
Posts: 1454
Location: Northeast Pennsylvania

PostPosted: Sun Aug 13, 2006 2:23 pm    Post subject: Reply with quote

You didn't post the actual error msgs about what's not being found.
Back to top
View user's profile Send private message
zen`cai
Voice


Joined: 13 Aug 2006
Posts: 4
Location: Texas

PostPosted: Sun Aug 13, 2006 3:10 pm    Post subject: during eggdrop setup - problems occur during linking Reply with quote

my apologies ... errors follow:

---------- Yeah! That's the compiling, now the linking! ----------

Linking eggdrop (static version).

gcc -pipe -o ../eggdrop bg.o botcmd.o botmsg.o botnet.o chanprog.o cmds.o dcc.o dccutil.o dns.o flags.o language.o match.o main.o mem.o misc.o misc_file.o modul es.o net.o rfc1459.o tcl.o tcldcc.o tclhash.o tclmisc.o tcluser.o userent.o user rec.o users.o mod/*.o /usr/local/ActiveTcl/lib/libtcl8.4.a -lm -ldl -ldns -lnsl md5/md5c.o compat/*.o `cat mod/mod.xlibs`
/usr/local/ActiveTcl/lib/libtcl8.4.a(tclBinary.o)(.text+0xc3d): In function `Tcl _BinaryObjCmd':
tclBinary.c: undefined reference to `__ctype_b'
/usr/local/ActiveTcl/lib/libtcl8.4.a(tclBinary.o)(.text+0xcae):tclBinary.c: unde fined reference to `__ctype_b'
/usr/local/ActiveTcl/lib/libtcl8.4.a(tclBinary.o)(.text+0x1777): In function `Ge tFormatSpec':
tclBinary.c: undefined reference to `__ctype_b'
/usr/local/ActiveTcl/lib/libtcl8.4.a(tclCmdAH.o)(.text+0x185): In function `Tcl_ CaseObjCmd':
tclCmdAH.c: undefined reference to `__ctype_b'
/usr/local/ActiveTcl/lib/libtcl8.4.a(tclCmdAH.o)(.text+0x2735): In function `Tcl _FormatObjCmd':
tclCmdAH.c: undefined reference to `__ctype_b'
/usr/local/ActiveTcl/lib/libtcl8.4.a(tclCmdAH.o)(.text+0x2836):tclCmdAH.c: more undefined references to `__ctype_b' follow
/usr/local/ActiveTcl/lib/libtcl8.4.a(tclUtil.o)(.text+0xf80): In function `Tcl_S tringCaseMatch':
tclUtil.c: undefined reference to `__ctype_tolower'
/usr/local/ActiveTcl/lib/libtcl8.4.a(tclUtil.o)(.text+0x114e):tclUtil.c: undefin ed reference to `__ctype_tolower'
/usr/local/ActiveTcl/lib/libtcl8.4.a(tclUtil.o)(.text+0x11cf):tclUtil.c: undefin ed reference to `__ctype_tolower'
/usr/local/ActiveTcl/lib/libtcl8.4.a(tclUtil.o)(.text+0x1236):tclUtil.c: undefin ed reference to `__ctype_tolower'
/usr/local/ActiveTcl/lib/libtcl8.4.a(tclUtil.o)(.text+0x187d): In function `Tcl_ PrintDouble':
tclUtil.c: undefined reference to `__ctype_b'
/usr/local/ActiveTcl/lib/libtcl8.4.a(tclUtil.o)(.text+0x1bb5): In function `TclL ooksLikeInt':
tclUtil.c: undefined reference to `__ctype_b'
/usr/local/ActiveTcl/lib/libtcl8.4.a(tclUtil.o)(.text+0x1ee5): In function `TclC heckBadOctal':
tclUtil.c: undefined reference to `__ctype_b'
/usr/local/ActiveTcl/lib/libtcl8.4.a(tclUtil.o)(.text+0x1f13):tclUtil.c: undefin ed reference to `__ctype_b'
/usr/local/ActiveTcl/lib/libtcl8.4.a(tclUtil.o)(.text+0x1f33):tclUtil.c: undefin ed reference to `__ctype_b'
/usr/local/ActiveTcl/lib/libtcl8.4.a(tclUnixFile.o)(.text+0x95):tclUnixFile.c: m ore undefined references to `__ctype_b' follow
collect2: ld returned 1 exit status
make[1]: *** [../eggdrop] Error 1
make[1]: Leaving directory `/root/eggdrop1.6.18/src'
make: *** [static] Error 2
[root@techmonkey eggdrop1.6.18]#
Back to top
View user's profile Send private message MSN Messenger
rosc2112
Revered One


Joined: 19 Feb 2006
Posts: 1454
Location: Northeast Pennsylvania

PostPosted: Mon Aug 14, 2006 12:06 pm    Post subject: Reply with quote

This could be because the file "ctype.h" is not being found. That symbol is also defined in xlocale.h.

Change this: --with-tcllib=/usr/local/ActiveTcl/lib/libtcl8.4.a
to --with-tcllib=/usr/local/ActiveTcl/lib and if necessary, compile with

CFLAGS='$CFLAGS -I/usr/include';CPPFLAGS='$CPPFLAGS -I/usr/include' ;./configure --with-tcllib=/usr/local/ActiveTcl/lib --other-options(you know what I mean)

which is where ctype.h and xlocale.h should be located.

You usually don't want to compile against a static lib (.a file) when compiling a dynamic binary, which should link against the shared object libs (.so file) which I assume there are .so files in the ActiveTcl lib dir. You don't need to specify the filename in the options, just the directory where they're located.
Back to top
View user's profile Send private message
demond
Revered One


Joined: 12 Jun 2004
Posts: 3073
Location: San Francisco, CA

PostPosted: Mon Aug 14, 2006 12:16 pm    Post subject: Reply with quote

-I/usr/include won't help as gcc always looks there no matter what; omitting the static lib extension probably will
_________________
connection, sharing, dcc problems? click <here>
before asking for scripting help, read <this>
use [code] tag when posting logs, code
Back to top
View user's profile Send private message Visit poster's website
rosc2112
Revered One


Joined: 19 Feb 2006
Posts: 1454
Location: Northeast Pennsylvania

PostPosted: Mon Aug 14, 2006 12:37 pm    Post subject: Reply with quote

I missed this part in my reply as well:

--with-tclinc=/usr/local/ActiveTcl/include/

instead of specifying the filename in that option.

Another note:

I'm not all that familiar with redhat type linuxes, but you might want to check /etc/ld.so.conf to see that it has the ActiveTcl lib dir in there, and the run ldconfig.
Back to top
View user's profile Send private message
zen`cai
Voice


Joined: 13 Aug 2006
Posts: 4
Location: Texas

PostPosted: Tue Aug 15, 2006 8:52 am    Post subject: Reply with quote

removing the static lib extension has this result:

configure: warning:

The file '/usr/local/ActiveTcl/lib/' given to option --with-tcllib is not valid.

configure will now attempt to autodetect both the Tcl library and header.

configure: warning:

The file '' given to option --with-tclinc is not valid.

configure will now attempt to autodetect both the Tcl library and header.

checking for Tcl library... using /lib
checking for Tcl header... using /
checking whether the Tcl system has changed... yes
checking for Tcl version...
checking for Tcl patch level...
configure: error:

Your Tcl version is much too old for Eggdrop to use. You should
download and compile a more recent version. The most reliable
current version is 8.4.6 and can be downloaded from
ftp://tcl.activestate.com/pub/tcl/tcl8_4/.

See doc/COMPILE-GUIDE's 'Tcl Detection and Installation' section
for more information.

[root@techmonkey eggdrop1.6.18]#
Back to top
View user's profile Send private message MSN Messenger
rosc2112
Revered One


Joined: 19 Feb 2006
Posts: 1454
Location: Northeast Pennsylvania

PostPosted: Tue Aug 15, 2006 12:21 pm    Post subject: Reply with quote

Take the trailing slashes off, --with-tcllib=/usr/local/ActiveTcl/lib and --with-tclinc=/usr/local/ActiveTcl/include

It may also want just --with-tcllib=/usr/local/ActiveTcl and --with-tclinc=/usr/local/ActiveTcl
Back to top
View user's profile Send private message
zen`cai
Voice


Joined: 13 Aug 2006
Posts: 4
Location: Texas

PostPosted: Fri Aug 18, 2006 5:35 pm    Post subject: Reply with quote

installing tcl-dev fixed the problem.

thanks for the help!
Back to top
View user's profile Send private message MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    egghelp.org community Forum Index -> Eggdrop Help All times are GMT - 4 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Forum hosting provided by Reverse.net

Powered by phpBB © 2001, 2005 phpBB Group
subGreen style by ktauber