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.

Tcl error.

Old posts that have not been replied to for several years.
Locked
User avatar
caesar
Mint Rubber
Posts: 3778
Joined: Sun Oct 14, 2001 8:00 pm
Location: Mint Factory

Post by caesar »

I`ve installed on my server Tcl Library 8.3 and 8.4 and I still got this error :

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

Linking eggdrop...

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 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/local/lib -ltcl8.4 -lm -ldl -lnsl md5/md5c.o compat/*.o `cat mod/mod.xlibs`
strip ../eggdrop
Successful compile: eggdrop

make[1]: Leaving directory `/home/dork/eggdrop1.6.10/src'

./eggdrop: error in loading shared libraries: libtcl8.4.so: cannot open shared object file: No such file or directory
make: *** [modegg] Error 127

What could be the problem?
P
Petersen
Owner
Posts: 685
Joined: Thu Sep 27, 2001 8:00 pm
Location: Blackpool, UK

Post by Petersen »

your ld hints file is not upto date
User avatar
caesar
Mint Rubber
Posts: 3778
Joined: Sun Oct 14, 2001 8:00 pm
Location: Mint Factory

Post by caesar »

excuse me?
Once the game is over, the king and the pawn go back in the same box.
P
Petersen
Owner
Posts: 685
Joined: Thu Sep 27, 2001 8:00 pm
Location: Blackpool, UK

Post by Petersen »

man 8 ldconfig
a
asssaf1

Post by asssaf1 »

try to install tcl via RPM
its work better.
User avatar
caesar
Mint Rubber
Posts: 3778
Joined: Sun Oct 14, 2001 8:00 pm
Location: Mint Factory

Post by caesar »

I like rpm to, but where to find one?
Once the game is over, the king and the pawn go back in the same box.
D
Dank

Same problem basically

Post by Dank »

ive installed tcl8.3.2 into my home directory....

and still get this after changing the makefile to point to the tcl files

Linking eggdrop...

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 main.o mem.o misc.o misc_file.o modules.o n
et.o rfc1459.o tcl.o tcldcc.o tclhash.o tclmisc.o tcluser.o userent.o userrec.o
users.o -L/home/cus2/altnrg/local/lib -ltcl8.3 -lm -ldl md5/md5c.o compat/*.o
`cat mod/mod.xlibs`
strip -d ../eggdrop
Successful compile: eggdrop


./eggdrop: can't load library 'libtcl8.3.so'
*** Error code 16

Stop.
g
guppy
eggdrop engineer
Posts: 199
Joined: Mon Sep 24, 2001 8:00 pm
Location: Canada
Contact:

Post by guppy »

trying adding 'export LD_LIBRARYPATH=pathtotcllib' to your .profile or .bash_profile .. this should help fix some problems.

Jeff
D
Dank

Post by Dank »

well ive progressed since yesterday..maybe not progressed but a diff error...it wont even link today.

make: don't know how to make /home/cus2/altnrg/usr/local/lib/libtcl8.3.so. Stop
*** Error code 2

Stop.

i even did as guppy suggested in the last post
here is a uname -a
BSD/OS wind.goldengate.net 4.1 BSDI BSD/OS 4.1 Kernel #1: Mon Jul 3 21:17:57 GM
T 2000 steve@shelly.goldengate.net:/usr/src/sys/compile/SHELL i386
w
wasabi-egg

TCL Compile Error

Post by wasabi-egg »

Hi,

I am getting pretty much the same error.
---------- Yeah! that's the compiling, now the linking! ----------

Linking eggdrop...

gcc -o ../eggdrop botcmd.o botmsg.o botnet.o chanprog.o cmds.o dcc.o dccutil.o flags.o language.o main.o mem.o misc.o modules.o net.o rfc1459.o tcl.o tcldcc.o tclhash.o tclmisc.o tcluser.o userent.o userrec.o users.o md5/md5c.o -L/arpa/tz/w/wasabi/tcl8.4b1/unix -ltcl84 -lm
strip ../eggdrop
Successful compile: eggdrop


Shared object "libtcl84.so" not found
*** Error code 1

Stop.
----------------

I am not root. And don't seem to have access to ldconfig command. I am on : NetBSD 1.5.3_ALPHA.

Tried compiling different versions from 1.4.5 to 1.6.10. Still same errors. Also tried to look for precompiled bots for NetBSD. But found none.
Tried compiling with the "./configure --with-tcllib=/usr/pkg/lib --with-tclinc=/usr/pkg/include" command.
Get a config error:
-------------------------
checking space left in file database struct... (cached) 48/512 bytes
(standard is currently 48/512 bytes)
configure: warning:

The file '/usr/pkg/lib' given to option --with-tcllib is not valid.
configure will now attempt to autodetect both the Tcl library and header...

checking for Tcl library... not found
checking for Tcl header... found /usr/pkg/include/tcl.h
configure: error:

I can't find Tcl on this system.

Eggdrop now requires Tcl to compile. If you already have Tcl
installed on this system, and I just wasn't looking in the right
place for it, set the environment variables TCLLIB and TCLINC so
I will know where to find 'libtcl.a' (or 'libtcl.so') and 'tcl.h'
(respectively). Then run 'configure' again.

Read the README file if you don't know what Tcl is or how to get
it and install it.

ksh:
-----------------------------
So what I did was edit the configure script, and added the path /usr/pkg/include and /usr/pkg/lib. No luck.
The system I am using is running tcl 8.3.1. Tried compiling TCL 8.4b1 and it's predecesor. Still no luck.

I am all confused as to why I can't get it compiled correctly :evil: . Didn't think it would be this hard. Can anyone offer any type of help? It would be greatly appreciated. Thank you in advance.

wasabi-egg
p
ppslim
Revered One
Posts: 3914
Joined: Sun Sep 23, 2001 8:00 pm
Location: Liverpool, England

Post by ppslim »

Asd stated in the error output, you should try typing the file in the --with-tcllib, rather than just the directory.
w
wasabi-egg

Post by wasabi-egg »

ppslim,

I did try the --with options. But this is what I get:
---------------------------------------------------------------
[127:wasabi/temp/eggdrop1.6.10> ./configure --with-tcllib=/usr/pkg/lib --with-tclinc=/usr/pkg/include

This is Eggdrop's GNU configure script.
It's going to run a bunch of strange tests to hopefully
make your compile work without much twiddling.

checking for gcc... gcc
checking for C compiler default output... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for executable suffix...
checking for object suffix... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking how to run the C preprocessor... gcc -E
checking for AIX... no
checking for POSIXized ISC... no
checking for minix/config.h... no
checking whether the compiler understands -pipe... yes
checking whether make sets ${MAKE}... yes
checking for ranlib... ranlib
checking for a BSD compatible install... /usr/bin/install -c
checking whether ln -s works... yes
checking for strip... strip
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk
checking for basename... basename
checking for uname... uname
checking system type... NetBSD
checking system release... 1.5.3_ALPHA
checking for socket in -lsocket... no
checking for connect in -lnsl... no
checking for gethostbyname in -ldns... no
checking for dlopen in -ldl... no
checking for tan in -lm... yes
checking for pthread_mutex_init in -lpthread... no
checking for __pthread_mutex_init in -lpthread... no
checking for pthread_mutex_init in -lpthreads... no
checking for pthread_mutex_init... no
checking for dirent.h that defines DIR... yes
checking for opendir in -ldir... no
checking for sys/wait.h that is POSIX.1 compatible... yes
checking for sys/time.h... yes
checking whether time.h and sys/time.h may both be included... yes
checking for sys/select.h... yes
checking for sys/rusage.h... no
checking for unistd.h... yes
checking for dlfcn.h... yes
checking for stdarg.h... yes
checking for std_args.h... no
checking for strings.h... yes
checking for limits.h... yes
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... (cached) yes
checking for inttypes.h... yes
checking for stdint.h... no
checking for unistd.h... (cached) yes
checking for pid_t... yes
checking for size_t... yes
checking for gcc -pipe option to accept ANSI C... none needed
checking for an ANSI C-conforming const... yes
checking whether byte ordering is bigendian... no
checking for inline... inline
checking for long... yes
checking size of long... 8
checking for int... yes
checking size of int... 4
checking for clock... yes
checking for getrusage... yes
checking for setpgid... yes
checking for uname... yes
checking for sigaction... yes
checking for sigemptyset... yes
checking for rename... yes
checking for strcasecmp... yes
checking for strncasecmp... yes
checking for getdtablesize... yes
checking for memset... yes
checking for random... yes
checking for srandom... yes
checking for dlopen... yes
checking for dprintf... no
checking for snprintf... yes
checking for vsnprintf... yes
checking for isascii... yes
checking for inet_aton... yes
checking for memcpy... yes
checking for strftime... yes
checking for fsync... yes
checking for vsprintf... yes
checking for broken libsafe sscanf... no
configure: warning:

The file '/usr/pkg/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.
I suggest you download and compile a more recent version.
The most reliable current version is 8.3.3 and
can be downloaded from ftp://ftp.eggheads.org/pub/tcl/tcl8_3/
------------------------------------------------------------------------------

I am sure that's the path to the system's lib and include:
[0:wasabi/temp/eggdrop1.6.10> ls /usr/pkg/lib/libtcl*
/usr/pkg/lib/libtcl83.a /usr/pkg/lib/libtcl83.so /usr/pkg/lib/libtcl83.so.1.0
/usr/pkg/lib/libtcl83.la /usr/pkg/lib/libtcl83.so.1 /usr/pkg/lib/libtclstub83.a

[0:wasabi/temp/eggdrop1.6.10> ls /usr/pkg/include/tcl*
/usr/pkg/include/tcl.h /usr/pkg/include/tclDecls.h
---------------------------------------------------------------------------

So what am I doing wrong? Thanks for your help.

Wasabi-EGG
p
ppslim
Revered One
Posts: 3914
Joined: Sun Sep 23, 2001 8:00 pm
Location: Liverpool, England

Post by ppslim »

As stated in my previous reply, youu are specifying the directory, and not trhe file.

If you read the output of the error, it states "The file is invalid", not "The directory is invalid".

You should use /usr/pkg/lib/libtcl83.so for the library and /usr/pkg/include/tcl.h for the include file.
w
wasabi-egg

Post by wasabi-egg »

ppslim,

Sorry, didn't read that last post correctly. Tried that, with both the system's 8.3 tcl, and my own compiled tcl 8.4 in my home directory. And get pretty much the same error:

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

Linking eggdrop...

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 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/arpa/tz/w/wasabi/tcl8.4b1/unix -ltcl84 -lm md5/md5c.o compat/*.o `cat mod/mod.xlibs`
strip ../eggdrop
Successful compile: eggdrop


Shared object "libtcl84.so" not found
*** Error code 1

Stop.
--------------------------------------------------

Any other suggestions? Thank you.

Wasabi-EGG
Locked