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 

Modules are not compiling....
Goto page 1, 2  Next
 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Modules & Programming
View previous topic :: View next topic  
Author Message
phill_howard
Guest





PostPosted: Mon Nov 01, 2004 6:04 pm    Post subject: Modules are not compiling.... Reply with quote

I'm runnin cygwin on XP sp2, tcl8.4, and use the configure... everything from eggdrop compiles fine, until it gets to the modules... then I get this:

***************************************************
Successful compile: eggdrop.exe

make[1]: Leaving directory `/cygdrive/d/utils/eggdrop1.6.17/src'
make[1]: Entering directory `/cygdrive/d/utils/eggdrop1.6.17/src/mod'
', needed by `modules'. Stop.arget `assoc.mod_so
make[1]: Leaving directory `/cygdrive/d/utils/eggdrop1.6.17/src/mod'
make: *** [modules] Error 2

****************************************************

It doesn't ever make anything... any ideas on whats going on here?
Back to top
Alchera
Revered One


Joined: 11 Aug 2003
Posts: 3344
Location: Ballarat Victoria, Australia

PostPosted: Mon Nov 01, 2004 7:05 pm    Post subject: Reply with quote

From ~doc\COMPILING-FAQ:
Quote:
1. Download and install Cygwin (www.cygwin.com). Make sure to install things like GCC, zlib, minires, autoconf, and automake. DO NOT install the Tcl provided by Cygwin's installer.

You'll have to look through the list of available updates to Cygwin for any extras that may be required. Not everything required is installed by default.

Also >> Run './configure --enable-strip'
_________________
Add [SOLVED] to the thread title if your issue has been.
Search | FAQ | RTM
Back to top
View user's profile Send private message Visit poster's website
KrzychuG
Master


Joined: 16 Aug 2003
Posts: 306
Location: Torun, Poland

PostPosted: Tue Nov 02, 2004 2:25 am    Post subject: Reply with quote

Try 'make static'.
_________________
Que?
Back to top
View user's profile Send private message Visit poster's website
Atomic
Voice


Joined: 24 Jun 2004
Posts: 25

PostPosted: Fri Jul 15, 2005 8:32 am    Post subject: problem Reply with quote

did we ever get a solution to this problem.....

i am having this problem also

i have eggdrop1.6.17 source cygwin everything installed "full"
without the tcl library....

i got tcl 8.4.11 installed to the same dir as cygwin

i get that exact same error....

any ideas how to fix it so the modules compile
Back to top
View user's profile Send private message
demond
Revered One


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

PostPosted: Fri Jul 15, 2005 11:17 am    Post subject: Reply with quote

paste your compile log, it can't be exactly the same
Back to top
View user's profile Send private message Visit poster's website
Atomic
Voice


Joined: 24 Jun 2004
Posts: 25

PostPosted: Fri Jul 15, 2005 11:45 am    Post subject: :/ Reply with quote

hi Smile

the error isnt exactly the same as i am on windows he was on linux
so my install directories are different.....

but basicly i have the same error...

on make config it doesnt find any modules...

so when i do make it simply wont find anything......

her is my log upto make... as you can see the error is the same..

sorry for the long post...


checking for C compiler default output file name... a.exe
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables... .exe
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking how to run the C preprocessor... gcc -E
checking for egrep... grep -E
checking for AIX... no
checking for library containing strerror... none required
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... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking minix/config.h usability... no
checking minix/config.h presence... no
checking for minix/config.h... no
checking whether the compiler understands -Wall... yes
checking whether the compiler understands -pipe... yes
checking for a BSD-compatible install... /usr/bin/install -c
checking whether make sets $(MAKE)... yes
checking for ranlib... ranlib
checking whether ln -s works... yes
checking whether head -n 1 works... yes
checking for strip... strip
configure: warning:

Stripping the executable, while saving some disk space, will make bug
reports nearly worthless. If Eggdrop crashes and you wish to report
a bug, you will need to recompile with stripping disabled.

checking for gawk... gawk
checking for basename... basename
checking for uname... uname
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... yes
checking system type... CYGWIN_NT-5.1
checking system release... 1.5.18(0.132/4/2)
checking module loading capabilities...
checking dl.h usability... no
checking dl.h presence... no
checking for dl.h... no
checking dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking loader.h usability... no
checking loader.h presence... no
checking for loader.h... no
checking rld.h usability... no
checking rld.h presence... no
checking for rld.h... no
checking mach-o/dyld.h usability... no
checking mach-o/dyld.h presence... no
checking for mach-o/dyld.h... no
checking mach-o/rld.h usability... no
checking mach-o/rld.h presence... no
checking for mach-o/rld.h... no
checking for dlopen... yes
checking for load... no
checking for NSLinkModule... no
checking for shl_load... no
checking for rld_load... no
checking how to access the Win32 API... found via -mwin32
checking for /usr/lib/binmode.o... yes
checking for dirent.h that defines DIR... yes
checking for library containing opendir... none required
checking whether time.h and sys/time.h may both be included... yes
checking arpa/inet.h usability... yes
checking arpa/inet.h presence... yes
checking for arpa/inet.h... yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking limits.h usability... yes
checking limits.h presence... yes
checking for limits.h... yes
checking locale.h usability... yes
checking locale.h presence... yes
checking for locale.h... yes
checking netdb.h usability... yes
checking netdb.h presence... yes
checking for netdb.h... yes
checking netinet/in.h usability... yes
checking netinet/in.h presence... yes
checking for netinet/in.h... yes
checking std_args.h usability... no
checking std_args.h presence... no
checking for std_args.h... no
checking stdarg.h usability... yes
checking stdarg.h presence... yes
checking for stdarg.h... yes
checking stddef.h usability... yes
checking stddef.h presence... yes
checking for stddef.h... yes
checking sys/file.h usability... yes
checking sys/file.h presence... yes
checking for sys/file.h... yes
checking sys/param.h usability... yes
checking sys/param.h presence... yes
checking for sys/param.h... yes
checking sys/rusage.h usability... no
checking sys/rusage.h presence... no
checking for sys/rusage.h... no
checking sys/select.h usability... yes
checking sys/select.h presence... yes
checking for sys/select.h... yes
checking sys/socket.h usability... yes
checking sys/socket.h presence... yes
checking for sys/socket.h... yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking for unistd.h... (cached) yes
checking wchar.h usability... yes
checking wchar.h presence... yes
checking for wchar.h... yes
checking for an ANSI C-conforming const... yes
checking whether byte ordering is bigendian... no
checking for inline... inline
checking for pid_t... yes
checking for size_t... yes
checking whether struct tm is in sys/time.h or time.h... time.h
checking for struct tm.tm_zone... no
checking for tzname... yes
checking for working volatile... yes
checking for socklen_t... yes
checking for long... yes
checking size of long... 4
checking for int... yes
checking size of int... 4
checking for short... yes
checking size of short... 2
checking for clock... yes
checking for dprintf... no
checking for fsync... yes
checking for getdtablesize... yes
checking for getrusage... yes
checking for inet_aton... yes
checking for isascii... yes
checking for mbrlen... yes
checking for memcpy... yes
checking for memset... yes
checking for random... yes
checking for rename... yes
checking for setpgid... yes
checking for sigaction... yes
checking for sigemptyset... yes
checking for snprintf... yes
checking for srandom... yes
checking for strcasecmp... yes
checking for strncasecmp... yes
checking for uname... yes
checking for vsnprintf... yes
checking for sys/select.h... (cached) yes
checking for sys/socket.h... (cached) yes
checking types of arguments for select... int,fd_set *,struct timeval *
checking for vprintf... yes
checking for _doprnt... no
checking for strftime... yes
checking for stdlib.h... (cached) yes
checking for unistd.h... (cached) yes
checking for getpagesize... yes
checking for working mmap... no
checking for broken libsafe sscanf... no
checking for Tcl library... found /usr/local/lib/libtcl8.4.dll
checking for Tcl header... found /usr/local/include/tcl.h
checking whether the Tcl system has changed... yes
checking for Tcl version... 8.4
checking for Tcl patch level... 8.4.11
checking for Tcl_Free in -ltcl8.4... yes
checking for TclpFinalizeThreadData in -ltcl8.4... no
configure: creating ./config.status
config.status: creating Makefile
config.status: creating doc/Makefile
config.status: creating scripts/Makefile
config.status: creating src/Makefile
config.status: creating src/compat/Makefile
config.status: creating src/md5/Makefile
config.status: creating src/mod/Makefile
config.status: creating config.h
config.status: executing replace-if-changed commands
creating lush.h
config.status: executing catch-make-rebuild commands

Operating System: CYGWIN_NT-5.1 1.5.18(0.132/4/2)

If you experiance any problems compiling Eggdrop, please read the
compile guide, found in doc/COMPILE-GUIDE.

Type 'make config' to configure the modules, or type 'make iconfig'
to interactively choose which modules to compile.


Cause & Effect@effect /cygdrive/c/eggdrop
$ make config
Detecting modules.................... done.
Calculating dependencies................... done.
Building ./src/mod/Makefile... done.
make[1]: Entering directory `/cygdrive/c/eggdrop/src/mod'

make[1]: Leaving directory `/cygdrive/c/eggdrop/src/mod'
Building ./src/mod/Makefile... done.

You can now compile the bot, using "make".


Cause & Effect@effect /cygdrive/c/eggdrop
$ make
make[1]: Entering directory `/cygdrive/c/eggdrop/src'
This may take a while. Go get some runts.

gcc -pipe -mwin32 -g -O2 -Wall -I.. -I.. -DHAVE_CONFIG_H -c bg.c
gcc -pipe -mwin32 -g -O2 -Wall -I.. -I.. -DHAVE_CONFIG_H -c botcmd.c
gcc -pipe -mwin32 -g -O2 -Wall -I.. -I.. -DHAVE_CONFIG_H -c botmsg.c
gcc -pipe -mwin32 -g -O2 -Wall -I.. -I.. -DHAVE_CONFIG_H -c botnet.c
gcc -pipe -mwin32 -g -O2 -Wall -I.. -I.. -DHAVE_CONFIG_H -c chanprog.c
gcc -pipe -mwin32 -g -O2 -Wall -I.. -I.. -DHAVE_CONFIG_H -c cmds.c
gcc -pipe -mwin32 -g -O2 -Wall -I.. -I.. -DHAVE_CONFIG_H -c dcc.c
gcc -pipe -mwin32 -g -O2 -Wall -I.. -I.. -DHAVE_CONFIG_H -c dccutil.c
gcc -pipe -mwin32 -g -O2 -Wall -I.. -I.. -DHAVE_CONFIG_H -c dns.c
gcc -pipe -mwin32 -g -O2 -Wall -I.. -I.. -DHAVE_CONFIG_H -c flags.c
gcc -pipe -mwin32 -g -O2 -Wall -I.. -I.. -DHAVE_CONFIG_H -c language.c
gcc -pipe -mwin32 -g -O2 -Wall -I.. -I.. -DHAVE_CONFIG_H -c match.c
gcc -pipe -mwin32 -g -O2 -Wall -I.. -I.. -DHAVE_CONFIG_H \
'-DCCFLAGS="gcc -pipe -mwin32 -g -O2 -Wall -I.. -I.. -DHAVE_CONFIG_H "' \
'-DLDFLAGS="gcc -pipe -mwin32"' \
'-DSTRIPFLAGS="strip"' -c ./main.c
gcc -pipe -mwin32 -g -O2 -Wall -I.. -I.. -DHAVE_CONFIG_H -c mem.c
gcc -pipe -mwin32 -g -O2 -Wall -I.. -I.. -DHAVE_CONFIG_H -c misc.c
gcc -pipe -mwin32 -g -O2 -Wall -I.. -I.. -DHAVE_CONFIG_H -c misc_file.c
gcc -pipe -mwin32 -g -O2 -Wall -I.. -I.. -DHAVE_CONFIG_H -c modules.c
gcc -pipe -mwin32 -g -O2 -Wall -I.. -I.. -DHAVE_CONFIG_H -c net.c
gcc -pipe -mwin32 -g -O2 -Wall -I.. -I.. -DHAVE_CONFIG_H -c rfc1459.c
gcc -pipe -mwin32 -g -O2 -Wall -I.. -I.. -DHAVE_CONFIG_H -c tcl.c
tcl.c:492: warning: dereferencing type-punned pointer will break strict-aliasing
rules
tcl.c: In function `readtclprog':
tcl.c:741: warning: assignment discards qualifiers from pointer target type
gcc -pipe -mwin32 -g -O2 -Wall -I.. -I.. -DHAVE_CONFIG_H -c tcldcc.c
gcc -pipe -mwin32 -g -O2 -Wall -I.. -I.. -DHAVE_CONFIG_H -c tclhash.c
gcc -pipe -mwin32 -g -O2 -Wall -I.. -I.. -DHAVE_CONFIG_H -c tclmisc.c
gcc -pipe -mwin32 -g -O2 -Wall -I.. -I.. -DHAVE_CONFIG_H -c tcluser.c
gcc -pipe -mwin32 -g -O2 -Wall -I.. -I.. -DHAVE_CONFIG_H -c userent.c
userent.c: In function `del_entry_type':
userent.c:1135: warning: dereferencing type-punned pointer will break strict-ali
asing rules
gcc -pipe -mwin32 -g -O2 -Wall -I.. -I.. -DHAVE_CONFIG_H -c userrec.c
gcc -pipe -mwin32 -g -O2 -Wall -I.. -I.. -DHAVE_CONFIG_H -c users.c
make[2]: Entering directory `/cygdrive/c/eggdrop/src/md5'
gcc -pipe -mwin32 -g -O2 -Wall -I. -I../.. -I../.. -I../../src -DHAVE_CONFIG_H
-c md5c.c
make[2]: Leaving directory `/cygdrive/c/eggdrop/src/md5'
make[2]: Entering directory `/cygdrive/c/eggdrop/src/compat'
gcc -pipe -mwin32 -g -O2 -Wall -I../.. -I../.. -I../../src -DHAVE_CONFIG_H -c
inet_aton.c
gcc -pipe -mwin32 -g -O2 -Wall -I../.. -I../.. -I../../src -DHAVE_CONFIG_H -c
snprintf.c
gcc -pipe -mwin32 -g -O2 -Wall -I../.. -I../.. -I../../src -DHAVE_CONFIG_H -c
memset.c
gcc -pipe -mwin32 -g -O2 -Wall -I../.. -I../.. -I../../src -DHAVE_CONFIG_H -c
memcpy.c
gcc -pipe -mwin32 -g -O2 -Wall -I../.. -I../.. -I../../src -DHAVE_CONFIG_H -c
strcasecmp.c
gcc -pipe -mwin32 -g -O2 -Wall -I../.. -I../.. -I../../src -DHAVE_CONFIG_H -c
strftime.c
make[2]: Leaving directory `/cygdrive/c/eggdrop/src/compat'

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

Linking eggdrop (standard build).

gcc -pipe -mwin32 -o ../eggdrop.exe bg.o botcmd.o botmsg.o botnet.o chanprog.o c
mds.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 us
erent.o userrec.o users.o -L/usr/local/lib -ltcl8.4 -lm /usr/lib/binmode.o md5
/md5c.o compat/*.o `cat mod/mod.xlibs`
strip ../eggdrop.exe

Successful compile: eggdrop.exe

make[1]: Leaving directory `/cygdrive/c/eggdrop/src'
make[1]: Entering directory `/cygdrive/c/eggdrop/src/mod'
', needed by `modules'. Stop.arget `assoc.mod_so
make[1]: Leaving directory `/cygdrive/c/eggdrop/src/mod'
make: *** [modules] Error 2



no point in doing make install DEST="dir"
as the modules are not present.... :/

please help.... thank you
Back to top
View user's profile Send private message
demond
Revered One


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

PostPosted: Fri Jul 15, 2005 12:05 pm    Post subject: Reply with quote

did you try `make static'? you can't have dynamically loadable eggdrop modules under windows
Back to top
View user's profile Send private message Visit poster's website
Atomic
Voice


Joined: 24 Jun 2004
Posts: 25

PostPosted: Fri Jul 15, 2005 1:05 pm    Post subject: :/ Reply with quote

yep tried that same thing happens.... doesnt detect the modules

Sad

dunno if this is it but versions of

on the help page it says

-minires (Version 0.97-1) i have version 1.00-1
-minires-devel (Version 0.97-1) i have version 1.00-1 of this also

could that be the problem.....
Back to top
View user's profile Send private message
demond
Revered One


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

PostPosted: Fri Jul 15, 2005 2:03 pm    Post subject: Reply with quote

have you read this?
Back to top
View user's profile Send private message Visit poster's website
Atomic
Voice


Joined: 24 Jun 2004
Posts: 25

PostPosted: Fri Jul 15, 2005 3:13 pm    Post subject: :/ Reply with quote

yeah about a million times..... there is a fault on that page

these eggdrops will not compile the modules using tcl 8.4.11
the modules simply will not compile......

problem is now solved......

i downgraded the tcl version to 8.3.5 and the eggdrop1.6.17 now compiles
the modules correctly........

thanks for the help Smile

here is what i did for all that want to know......

i downloaded cygwin and installed everything except the tcl/tk library
then i found the TCL 8.3.5 library and installed that to the cygwin directory

then everything else you can read yourself from the link
demond gave in the last post Smile hf and gl

atomic
Back to top
View user's profile Send private message
Atomic
Voice


Joined: 24 Jun 2004
Posts: 25

PostPosted: Fri Jul 15, 2005 3:48 pm    Post subject: :/ Reply with quote

ok how to make the bot faster....

currently in 10 channels with a few lame scripts for output
i need it to put out this output faster....

looked on the forum and found 1 referrance to this
so i have altered the server.c file and compiled...
im sure you know the variables im talking about....
so yep this made it alittle faster....

but how to make it faster still.....
ummm this bot runs on my own personal ircd
so......

anyone know anything i can do....
Back to top
View user's profile Send private message
demond
Revered One


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

PostPosted: Fri Jul 15, 2005 3:57 pm    Post subject: Reply with quote

hmm that's weird, I would've betted it's a make(1) problem

they probably messed up the Tcl 8.4.10 and up detection in the configure script; or perhaps a problem with Makefile.in
Back to top
View user's profile Send private message Visit poster's website
demond
Revered One


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

PostPosted: Fri Jul 15, 2005 4:11 pm    Post subject: Re: :/ Reply with quote

Atomic wrote:
ok how to make the bot faster....

currently in 10 channels with a few lame scripts for output
i need it to put out this output faster....

looked on the forum and found 1 referrance to this
so i have altered the server.c file and compiled...
im sure you know the variables im talking about....
so yep this made it alittle faster....

but how to make it faster still.....
ummm this bot runs on my own personal ircd
so......

anyone know anything i can do....


this is off-topic, and should be asked elsewhere (on these forums)

but generally, you make your bots faster by using better scripts; patching server.c won't help (unless you get rid of the entire queue system, which would be a stupid thing to do); you might also want to use [putdccraw] with server idx 0 in your scripts - that bypasses upper level output queues

if the server you use is your own, try also to increase SendQ for the client class your bot belongs to

again, if you need further help on this, please do not reply here, start a new thread in the main forum
Back to top
View user's profile Send private message Visit poster's website
Galadhrim
Op


Joined: 11 Apr 2003
Posts: 123
Location: Netherlands, Enschede

PostPosted: Sat Jul 16, 2005 4:38 am    Post subject: Reply with quote

I thought I had dynamic loaded modules under Windows... But then again I compiled that about 3 years ago Smile I do remember TCL not working properly and needing to use an old version.
Back to top
View user's profile Send private message
demond
Revered One


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

PostPosted: Sat Jul 16, 2005 5:24 am    Post subject: Reply with quote

Galadhrim wrote:
I thought I had dynamic loaded modules under Windows... But then again I compiled that about 3 years ago Smile I do remember TCL not working properly and needing to use an old version.


nope, eggdrop/windrop doesn't support its modules as DLLs, all gets bundled in the EXE

you probably meant Cygwin's DLL
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    egghelp.org community Forum Index -> Modules & Programming All times are GMT - 4 Hours
Goto page 1, 2  Next
Page 1 of 2

 
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