This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

netbsd compile error: libtcl84.so: undefined reference

Old posts that have not been replied to for several years.
Locked
T
Terminal Insanity

netbsd compile error: libtcl84.so: undefined reference

Post by Terminal Insanity »

Code: Select all

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

Linking eggdrop: (standard build).

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  modules.o net.o rfc1459.o tcl.o tcldcc.o tclhash.o tclmisc.o tcluser.o  userent.o userrec.o users.o  -L/usr/pkg/lib -ltcl84 -lm md5/md5c.o compat/*.o `cat mod/mod.xlibs`
/usr/pkg/lib/libtcl84.so: undefined reference to `pthread_attr_destroy'
/usr/pkg/lib/libtcl84.so: undefined reference to `pthread_create'
/usr/pkg/lib/libtcl84.so: undefined reference to `pthread_getspecific'
/usr/pkg/lib/libtcl84.so: undefined reference to `pthread_attr_init'
/usr/pkg/lib/libtcl84.so: undefined reference to `pthread_exit'
/usr/pkg/lib/libtcl84.so: undefined reference to `pthread_key_delete'
/usr/pkg/lib/libtcl84.so: undefined reference to `pthread_attr_setscope'
/usr/pkg/lib/libtcl84.so: undefined reference to `pthread_cond_broadcast'
/usr/pkg/lib/libtcl84.so: undefined reference to `pthread_once'
/usr/pkg/lib/libtcl84.so: undefined reference to `pthread_key_create'
/usr/pkg/lib/libtcl84.so: undefined reference to `pthread_attr_setstacksize'
/usr/pkg/lib/libtcl84.so: undefined reference to `pthread_cond_init'
/usr/pkg/lib/libtcl84.so: undefined reference to `pthread_mutex_unlock'
/usr/pkg/lib/libtcl84.so: undefined reference to `pthread_self'
/usr/pkg/lib/libtcl84.so: undefined reference to `pthread_mutex_lock'
/usr/pkg/lib/libtcl84.so: undefined reference to `pthread_cond_wait'
/usr/pkg/lib/libtcl84.so: undefined reference to `pthread_cond_destroy'
/usr/pkg/lib/libtcl84.so: undefined reference to `pthread_mutex_init'
/usr/pkg/lib/libtcl84.so: undefined reference to `pthread_attr_setdetachstate'
/usr/pkg/lib/libtcl84.so: undefined reference to `pthread_join'
/usr/pkg/lib/libtcl84.so: undefined reference to `pthread_cond_timedwait'
/usr/pkg/lib/libtcl84.so: undefined reference to `pthread_setspecific'
*** Error code 1

Stop.
make: stopped in /home/terminal/eggdrop1.6.16/src
*** Error code 1

Stop.
make: stopped in /home/terminal/eggdrop1.6.16
T
Terminal Insanity

Post by Terminal Insanity »

i edited the Makefile and added -lpthread to the "XLIBS" line:

Code: Select all

XLIBS = -L/usr/pkg/lib -ltcl84 -lm -lpthread
and now when i run make i get this:

Code: Select all

All modules compiled.

Test run of ./eggdrop -v:
Shared object "libtcl84.so.1" not found
*** Error code 1

Stop.
make: stopped in /home/terminal/eggdrop1.6.16
T
Terminal Insanity

Post by Terminal Insanity »

okay, i symlinked libtcl84.so.1 to /usr/lib and it works.... but now i cant telnet to it lol =(
i swear im cursed to never have my eggdrop work

Code: Select all

# telnet localhost 28384
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
It just sits there... i can type and stuff but i get no prompt or anything =/

I notice the bot connects to the irc when i use the -n option.
Also, when i connect i have to wait for the DNS resolve for 127.0.0.1 to fail, and then telnet starts working

And thanks to the people in #linux on gamesurge and #eggdrop on freenode for helping me get this far =)
User avatar
Alchera
Revered One
Posts: 3344
Joined: Mon Aug 11, 2003 12:42 pm
Location: Ballarat Victoria, Australia
Contact:

Post by Alchera »

On the odd occassion that I actually get bored enough to delve into Gentoo I run an eggdrop. In my config I set "set my-ip" to my actual IP and not either "localhost" or "127.0.0.1" and never have a drama. :)
Add [SOLVED] to the thread title if your issue has been.
Search | FAQ | RTM
T
Terminal Insanity

Post by Terminal Insanity »

that doesnt seem to help =(
User avatar
Alchera
Revered One
Posts: 3344
Joined: Mon Aug 11, 2003 12:42 pm
Location: Ballarat Victoria, Australia
Contact:

Post by Alchera »

Checked your network settings? Resolv.conf is OK? Running a router/firewall?
Add [SOLVED] to the thread title if your issue has been.
Search | FAQ | RTM
Locked