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 

Compiling problems

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


Joined: 23 Jul 2009
Posts: 3

PostPosted: Thu Jul 23, 2009 11:56 pm    Post subject: Compiling problems Reply with quote

Hi,

I've been looking for a ipv6 eggdrop on my debian-box so I tried to compile last version + patch without success.
Error is:
Code:
dns.c:42: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘alarmret’
dns.c: In function ‘block_dns_hostbyip’:
dns.c:452: warning: implicit declaration of function ‘sigsetjmp’
dns.c:452: error: ‘alarmret’ undeclared (first use in this function)
dns.c:452: error: (Each undeclared identifier is reported only once
dns.c:452: error: for each function it appears in.)
dns.c: In function ‘block_dns_ipbyhost’:
dns.c:474: warning: implicit declaration of function ‘inet_aton’
dns.c:478: error: ‘alarmret’ undeclared (first use in this function)
dns.c: At top level:
tclhash.h:70: warning: inline function ‘garbage_collect_tclhash’ declared but never defined
proto.h:255: warning: inline function ‘open_listen’ declared but never defined
make[1]: *** [dns.o] Erreur 1
make[1]: quittant le répertoire « /home/wiz/.eggdrop/1.6.19/eggdrop1.6.19/src »
make: *** [modegg] Erreur 2

I wondered if it was caused by my box's setup, but using an archlinux box, 32 or 64 bits, with or without ipv6 gives me no luck.

Did someone encountered same problem before ?
Back to top
View user's profile Send private message
nml375
Revered One


Joined: 04 Aug 2006
Posts: 2857

PostPosted: Fri Jul 24, 2009 12:28 pm    Post subject: Reply with quote

Hi,
Do you get any warnings regarding including setjmp.h prior to that error?
_________________
NML_375, idling at #eggdrop@IrcNET
Back to top
View user's profile Send private message
Wiz
Voice


Joined: 23 Jul 2009
Posts: 3

PostPosted: Fri Jul 24, 2009 3:30 pm    Post subject: Reply with quote

Thanks for your reply, but I didn't got any.
Here is the complete output :
Quote:

wiz@haxx:~/.eggdrop/1.6.19/eggdrop1.6.19$ make distclean ; ./configure --enable-tcl-threads --enable-ipv6 && make config && make
make: *** Pas de règle pour fabriquer la cible « distclean ». Arrêt.

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

checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
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 gawk... no
checking for mawk... mawk
checking for basename... basename
checking for uname... uname
checking for socket in -lsocket... no
checking for connect in -lnsl... yes
checking for gethostbyname in -ldns... no
checking for dlopen in -ldl... yes
checking for tan in -lm... yes
checking for pthread_mutex_init in -lpthread... yes
checking system type... Linux
checking system release... 2.6.28.4-xxxx-std-ipv6-64
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 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 stdio.h usability... yes
checking stdio.h presence... yes
checking for stdio.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... 8
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... yes
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... yes
checking for broken libsafe sscanf... no
checking for Tcl library... found /usr/lib/libtcl8.5.so
checking for Tcl header... found /usr/include/tcl8.5/tcl.h
checking whether the Tcl system has changed... yes
checking for Tcl version... 8.5
checking for Tcl patch level... 8.5.7
checking for Tcl_Free in -ltcl8.5... yes
checking for TclpFinalizeThreadData in -ltcl8.5... 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: Linux 2.6.28.4-xxxx-std-ipv6-64

If you experience 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.

Detecting modules.................... done.
Calculating dependencies................... done.
Building ./src/mod/Makefile... done.
make[1]: entrant dans le répertoire « /home/wiz/.eggdrop/1.6.19/eggdrop1.6.19/src/mod »

Configuring module 'compress'.
configure: creating cache ../../../config.cache
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
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 for gzopen in -lz... yes
checking how to run the C preprocessor... gcc -E
checking for egrep... grep -E
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 zlib.h usability... yes
checking zlib.h presence... yes
checking for zlib.h... yes
updating cache ../../../config.cache
configure: creating ./config.status
config.status: creating Makefile

Configuring module 'dns'.
configure: loading cache ../../../config.cache
checking for gcc... (cached) gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... (cached) o
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ANSI C... (cached) none needed
checking for res_init... no
checking for res_init in -lresolv... no
checking for res_init in -lbind... no
checking for __res_init... yes
checking for res_mkquery... no
checking for res_mkquery in -lresolv... no
checking for res_mkquery in -lbind... no
checking for __res_mkquery... no
checking for __res_mkquery in -lresolv... yes
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
updating cache ../../../config.cache
configure: creating ./config.status
config.status: creating Makefile

make[1]: quittant le répertoire « /home/wiz/.eggdrop/1.6.19/eggdrop1.6.19/src/mod »
Building ./src/mod/Makefile... done.

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

make[1]: entrant dans le répertoire « /home/wiz/.eggdrop/1.6.19/eggdrop1.6.19/src »

This may take a while. Go get some runts.

gcc -pipe -Wall -g -std=c99 -Wall -I.. -I.. -DHAVE_CONFIG_H -c bg.c
tclhash.h:70: warning: inline function ‘garbage_collect_tclhash’ declared but never defined
proto.h:255: warning: inline function ‘open_listen’ declared but never defined
tclhash.h:70: warning: inline function ‘garbage_collect_tclhash’ declared but never defined
proto.h:255: warning: inline function ‘open_listen’ declared but never defined
gcc -pipe -Wall -g -std=c99 -Wall -I.. -I.. -DHAVE_CONFIG_H -c botcmd.c
tclhash.h:70: warning: inline function ‘garbage_collect_tclhash’ declared but never defined
proto.h:255: warning: inline function ‘open_listen’ declared but never defined
tclhash.h:70: warning: inline function ‘garbage_collect_tclhash’ declared but never defined
proto.h:255: warning: inline function ‘open_listen’ declared but never defined
gcc -pipe -Wall -g -std=c99 -Wall -I.. -I.. -DHAVE_CONFIG_H -c botmsg.c
tclhash.h:70: warning: inline function ‘garbage_collect_tclhash’ declared but never defined
proto.h:255: warning: inline function ‘open_listen’ declared but never defined
tclhash.h:70: warning: inline function ‘garbage_collect_tclhash’ declared but never defined
proto.h:255: warning: inline function ‘open_listen’ declared but never defined
gcc -pipe -Wall -g -std=c99 -Wall -I.. -I.. -DHAVE_CONFIG_H -c botnet.c
tclhash.h:70: warning: inline function ‘garbage_collect_tclhash’ declared but never defined
proto.h:255: warning: inline function ‘open_listen’ declared but never defined
tclhash.h:70: warning: inline function ‘garbage_collect_tclhash’ declared but never defined
proto.h:255: warning: inline function ‘open_listen’ declared but never defined
gcc -pipe -Wall -g -std=c99 -Wall -I.. -I.. -DHAVE_CONFIG_H -c chanprog.c
chanprog.c: In function ‘isowner’:
chanprog.c:673: warning: the address of ‘owner’ will always evaluate as ‘true’
chanprog.c: At top level:
tclhash.h:70: warning: inline function ‘garbage_collect_tclhash’ declared but never defined
proto.h:255: warning: inline function ‘open_listen’ declared but never defined
tclhash.h:70: warning: inline function ‘garbage_collect_tclhash’ declared but never defined
proto.h:255: warning: inline function ‘open_listen’ declared but never defined
gcc -pipe -Wall -g -std=c99 -Wall -I.. -I.. -DHAVE_CONFIG_H -c cmds.c
tclhash.h:70: warning: inline function ‘garbage_collect_tclhash’ declared but never defined
proto.h:255: warning: inline function ‘open_listen’ declared but never defined
tclhash.h:70: warning: inline function ‘garbage_collect_tclhash’ declared but never defined
proto.h:255: warning: inline function ‘open_listen’ declared but never defined
gcc -pipe -Wall -g -std=c99 -Wall -I.. -I.. -DHAVE_CONFIG_H -c dcc.c
tclhash.h:70: warning: inline function ‘garbage_collect_tclhash’ declared but never defined
proto.h:255: warning: inline function ‘open_listen’ declared but never defined
tclhash.h:70: warning: inline function ‘garbage_collect_tclhash’ declared but never defined
proto.h:255: warning: inline function ‘open_listen’ declared but never defined
gcc -pipe -Wall -g -std=c99 -Wall -I.. -I.. -DHAVE_CONFIG_H -c dccutil.c
dccutil.c: In function ‘makepass’:
dccutil.c:472: warning: implicit declaration of function ‘random’
dccutil.c: At top level:
tclhash.h:70: warning: inline function ‘garbage_collect_tclhash’ declared but never defined
proto.h:255: warning: inline function ‘open_listen’ declared but never defined
tclhash.h:70: warning: inline function ‘garbage_collect_tclhash’ declared but never defined
proto.h:255: warning: inline function ‘open_listen’ declared but never defined
gcc -pipe -Wall -g -std=c99 -Wall -I.. -I.. -DHAVE_CONFIG_H -c dns.c
dns.c:42: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘alarmret’
dns.c: In function ‘block_dns_hostbyip’:
dns.c:452: warning: implicit declaration of function ‘sigsetjmp’
dns.c:452: error: ‘alarmret’ undeclared (first use in this function)
dns.c:452: error: (Each undeclared identifier is reported only once
dns.c:452: error: for each function it appears in.)
dns.c: In function ‘block_dns_ipbyhost’:
dns.c:474: warning: implicit declaration of function ‘inet_aton’
dns.c:478: error: ‘alarmret’ undeclared (first use in this function)
dns.c: At top level:
tclhash.h:70: warning: inline function ‘garbage_collect_tclhash’ declared but never defined
proto.h:255: warning: inline function ‘open_listen’ declared but never defined
make[1]: *** [dns.o] Erreur 1
make[1]: quittant le répertoire « /home/wiz/.eggdrop/1.6.19/eggdrop1.6.19/src »
make: *** [modegg] Erreur 2
wiz@haxx:~/.eggdrop/1.6.19/eggdrop1.6.19$
Back to top
View user's profile Send private message
nml375
Revered One


Joined: 04 Aug 2006
Posts: 2857

PostPosted: Fri Jul 24, 2009 5:00 pm    Post subject: Reply with quote

The error might be due to the -std=c99 language standard option passed to gcc. I can't figure out why it's been added though...
_________________
NML_375, idling at #eggdrop@IrcNET
Back to top
View user's profile Send private message
Wiz
Voice


Joined: 23 Jul 2009
Posts: 3

PostPosted: Mon Jul 27, 2009 11:54 am    Post subject: Reply with quote

Well thanks a lot, that was that !
The .zshrc on theses machines where all having an alias adding -std=c99 to CFLAGS.
Back to top
View user's profile Send private message
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