<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-gb">
	<link rel="self" type="application/atom+xml" href="https://forum.eggheads.org/app.php/feed/topic/19316" />

	<title>egghelp/eggheads community</title>
	<subtitle>Discussion of eggdrop bots, shell accounts and tcl scripts.</subtitle>
	<link href="https://forum.eggheads.org/index.php" />
	<updated>2013-01-29T00:29:30-04:00</updated>

	<author><name><![CDATA[egghelp/eggheads community]]></name></author>
	<id>https://forum.eggheads.org/app.php/feed/topic/19316</id>

		<entry>
		<author><name><![CDATA[Landora1311]]></name></author>
		<updated>2013-01-29T00:29:30-04:00</updated>

		<published>2013-01-29T00:29:30-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=100818#p100818</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=100818#p100818"/>
		<title type="html"><![CDATA[Compiling Problem [error: parse error before...]]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=100818#p100818"><![CDATA[
Hi guys,<br><br>Comming to ask for help today, after a long search here, and on entire web, no solution found ...<br><br>I tryed to compile a 1.6.21 version of eggdrop for Windows.<br><br>I'm using last release of cygwin and tcl 8.5.11, then i followed instructions provided on <a href="http://windrop.sourceforge.net/compile16.html" class="postlink">http://windrop.sourceforge.net/compile16.html</a>. (i tryed to compil with and without the eggdrop1.6.21.patch<br><br>The C language is show as cypted for me (hihi), so if someone got the solution, he will be the best !!<br><br>There is logs ... (note i split a part of the last log, because was so huge !!)<br> <div class="codebox"><p>Code: </p><pre><code>admin@TCLserver /$ tar -zxf tcl-8.5.11.tar.gzadmin@TCLserver /$ cd /home/adminadmin@TCLserver ~$ tar -zxf eggdrop1.6.21.tar.gzadmin@TCLserver ~$ cp eggdrop1.6.21.patch eggdrop1.6.21admin@TCLserver ~$ cd eggdrop1.6.21admin@TCLserver ~/eggdrop1.6.21$ patch -p0 &lt;  eggdrop1.6.21.patchpatching file src/main.cHunk #1 succeeded at 1094 (offset -20 lines).Hunk #2 succeeded at 1116 (offset -20 lines).</code></pre></div><div class="codebox"><p>Code: </p><pre><code>admin@TCLserver ~/eggdrop1.6.21$ ./configure --enable-strip --with-handlen=32 --with-tclinc='/usr/local/include/tcl.h' --with-tcllib='/usr/local/lib/libtcl8.5.dll'This is Eggdrop's GNU configure script.It's going to run a bunch of tests to hopefully make your compilework without much twiddling.checking for gcc... gccchecking whether the C compiler works... yeschecking for C compiler default output file name... a.exechecking for suffix of executables... .exechecking whether we are cross compiling... nochecking for suffix of object files... ochecking whether we are using the GNU C compiler... yeschecking whether gcc accepts -g... yeschecking for gcc option to accept ISO C89... none neededchecking how to run the C preprocessor... gcc -Echecking for grep that handles long lines and -e... /usr/bin/grepchecking for egrep... /usr/bin/grep -Echecking for ANSI C header files... yeschecking for sys/types.h... yeschecking for sys/stat.h... yeschecking for stdlib.h... yeschecking for string.h... yeschecking for memory.h... yeschecking for strings.h... yeschecking for inttypes.h... yeschecking for stdint.h... yeschecking for unistd.h... yeschecking minix/config.h usability... nochecking minix/config.h presence... nochecking for minix/config.h... nochecking whether it is safe to define __EXTENSIONS__... yeschecking for library containing strerror... none requiredchecking for icc... nochecking whether the compiler understands -pipe... yeschecking whether the compiler understands -Wall... yeschecking for a BSD-compatible install... /usr/bin/install -cchecking whether make sets $(MAKE)... yeschecking for ranlib... ranlibchecking whether ln -s works... yeschecking whether head -n 1 works... yeschecking for strip... stripchecking for gawk... gawkchecking for basename... basenamechecking for uname... unameconfigure: 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 socket in -lsocket... nochecking for connect in -lnsl... nochecking for gethostbyname in -ldns... nochecking for dlopen in -ldl... yeschecking for tan in -lm... yeschecking for pthread_mutex_init in -lpthread... yeschecking build system type... i686-pc-cygwinchecking host system type... i686-pc-cygwinchecking target system type... i686-pc-cygwinchecking system type... CYGWIN_NT-5.2checking system release... 1.7.17(0.262/5/3)checking module loading capabilities...checking dl.h usability... nochecking dl.h presence... nochecking for dl.h... nochecking dlfcn.h usability... yeschecking dlfcn.h presence... yeschecking for dlfcn.h... yeschecking loader.h usability... nochecking loader.h presence... nochecking for loader.h... nochecking rld.h usability... nochecking rld.h presence... nochecking for rld.h... nochecking mach-o/dyld.h usability... nochecking mach-o/dyld.h presence... nochecking for mach-o/dyld.h... nochecking mach-o/rld.h usability... nochecking mach-o/rld.h presence... nochecking for mach-o/rld.h... nochecking for dlopen... yeschecking for load... nochecking for NSLinkModule... nochecking for shl_load... nochecking for rld_load... nochecking for /usr/lib/binmode.o... yeschecking for dirent.h that defines DIR... yeschecking for library containing opendir... none requiredchecking whether time.h and sys/time.h may both be included... yeschecking arpa/inet.h usability... yeschecking arpa/inet.h presence... yeschecking for arpa/inet.h... yeschecking fcntl.h usability... yeschecking fcntl.h presence... yeschecking for fcntl.h... yeschecking limits.h usability... yeschecking limits.h presence... yeschecking for limits.h... yeschecking locale.h usability... yeschecking locale.h presence... yeschecking for locale.h... yeschecking netdb.h usability... yeschecking netdb.h presence... yeschecking for netdb.h... yeschecking netinet/in.h usability... yeschecking netinet/in.h presence... yeschecking for netinet/in.h... yeschecking stdio.h usability... yeschecking stdio.h presence... yeschecking for stdio.h... yeschecking stdarg.h usability... yeschecking stdarg.h presence... yeschecking for stdarg.h... yeschecking stddef.h usability... yeschecking stddef.h presence... yeschecking for stddef.h... yeschecking sys/file.h usability... yeschecking sys/file.h presence... yeschecking for sys/file.h... yeschecking sys/param.h usability... yeschecking sys/param.h presence... yeschecking for sys/param.h... yeschecking sys/rusage.h usability... nochecking sys/rusage.h presence... nochecking for sys/rusage.h... nochecking sys/select.h usability... yeschecking sys/select.h presence... yeschecking for sys/select.h... yeschecking sys/socket.h usability... yeschecking sys/socket.h presence... yeschecking for sys/socket.h... yeschecking sys/time.h usability... yeschecking sys/time.h presence... yeschecking for sys/time.h... yeschecking for unistd.h... (cached) yeschecking wchar.h usability... yeschecking wchar.h presence... yeschecking for wchar.h... yeschecking for an ANSI C-conforming const... yeschecking whether byte ordering is bigendian... nochecking for inline... inlinechecking for intptr_t... yeschecking for pid_t... yeschecking for size_t... yeschecking whether struct tm is in sys/time.h or time.h... time.hchecking for struct tm.tm_zone... nochecking whether tzname is declared... yeschecking for tzname... yeschecking for working volatile... yeschecking for socklen_t... yeschecking size of long... 4checking size of int... 4checking size of short... 2checking for clock... yeschecking for dprintf... yeschecking for fsync... yeschecking for getdtablesize... yeschecking for getrusage... yeschecking for inet_aton... yeschecking for isascii... yeschecking for mbrlen... yeschecking for memcpy... yeschecking for memset... yeschecking for random... yeschecking for rand... yeschecking for lrand48... yeschecking for rename... yeschecking for setpgid... yeschecking for sigaction... yeschecking for sigemptyset... yeschecking for snprintf... yeschecking for strcasecmp... yeschecking for strncasecmp... yeschecking for strdup... yeschecking for uname... yeschecking for vsnprintf... yeschecking for sys/select.h... (cached) yeschecking for sys/socket.h... (cached) yeschecking types of arguments for select... int,fd_set *,struct timeval *checking for vprintf... yeschecking for _doprnt... nochecking for strftime... yeschecking for stdlib.h... (cached) yeschecking for unistd.h... (cached) yeschecking for sys/param.h... (cached) yeschecking for getpagesize... yeschecking for working mmap... yeschecking for Tcl library... using /usr/local/lib/libtcl8.5.dllchecking for Tcl header... using /usr/local/include/tcl.hchecking whether the Tcl system has changed... yeschecking for Tcl version... 8.5checking for Tcl patch level... 8.5.11checking for Tcl_Free in -ltcl8.5... yeschecking for Tcl_GetCurrentThread in -ltcl8.5... yeschecking for Tcl_GetThreadData in -ltcl8.5... yeschecking for Tcl_SetNotifier in -ltcl8.5... yeschecking for Tcl_NotifierProcs.initNotifierProc... yesconfigure: creating ./config.statusconfig.status: creating Makefileconfig.status: creating doc/Makefileconfig.status: creating scripts/Makefileconfig.status: creating src/Makefileconfig.status: creating src/compat/Makefileconfig.status: creating src/md5/Makefileconfig.status: creating src/mod/Makefileconfig.status: creating config.hconfig.status: executing replace-if-changed commandscreating lush.hconfig.status: executing catch-make-rebuild commandsOperating System: CYGWIN_NT-5.2 1.7.17(0.262/5/3)If you experience any problems compiling Eggdrop, please read thecompile guide, found in doc/COMPILE-GUIDE.Type 'make config' to configure the modules, or type 'make iconfig'to interactively choose which modules to compile.</code></pre></div><div class="codebox"><p>Code: </p><pre><code>admin@TCLserver ~/eggdrop1.6.21$ make configDetecting modules.................... done.Calculating dependencies................... done.Building ./src/mod/Makefile... done.make[1]: Entering directory `/home/admin/eggdrop1.6.21/src/mod'Configuring module 'compress'.configure: creating cache ../../../config.cachechecking for gcc... gccchecking whether the C compiler works... yeschecking for C compiler default output file name... a.exechecking for suffix of executables... .exechecking whether we are cross compiling... nochecking for suffix of object files... ochecking whether we are using the GNU C compiler... yeschecking whether gcc accepts -g... yeschecking for gcc option to accept ISO C89... none neededchecking for gzopen in -lz... yeschecking how to run the C preprocessor... gcc -Echecking for grep that handles long lines and -e... /usr/bin/grepchecking for egrep... /usr/bin/grep -Echecking for ANSI C header files... yeschecking for sys/types.h... yeschecking for sys/stat.h... yeschecking for stdlib.h... yeschecking for string.h... yeschecking for memory.h... yeschecking for strings.h... yeschecking for inttypes.h... yeschecking for stdint.h... yeschecking for unistd.h... yeschecking zlib.h usability... yeschecking zlib.h presence... yeschecking for zlib.h... yesconfigure: updating cache ../../../config.cacheconfigure: creating ./config.statusconfig.status: creating MakefileConfiguring module 'dns'.configure: loading cache ../../../config.cachechecking for gcc... (cached) gccchecking whether the C compiler works... yeschecking for C compiler default output file name... a.exechecking for suffix of executables... .exechecking whether we are cross compiling... nochecking for suffix of object files... (cached) ochecking whether we are using the GNU C compiler... (cached) yeschecking whether gcc accepts -g... (cached) yeschecking for gcc option to accept ISO C89... (cached) none neededchecking for sys/types.h... (cached) yeschecking for netinet/in.h... yeschecking for arpa/nameser.h... yeschecking for netdb.h... yeschecking for resolv.h... yeschecking for a working resolver library... yes ()configure: updating cache ../../../config.cacheconfigure: creating ./config.statusconfig.status: creating Makefilemake[1]: Leaving directory `/home/admin/eggdrop1.6.21/src/mod'Building ./src/mod/Makefile... done.You can now compile the bot, using "make".</code></pre></div><div class="codebox"><p>Code: </p><pre><code>admin@TCLserver ~/eggdrop1.6.21$ make eggdropmake[1]: Entering directory `/home/admin/eggdrop1.6.21/src'This may take a while. Go get some runts.gcc -g -O2 -pipe -Wall -I.. -I.. -DHAVE_CONFIG_H   -c bg.cgcc -g -O2 -pipe -Wall -I.. -I.. -DHAVE_CONFIG_H   -c botcmd.cgcc -g -O2 -pipe -Wall -I.. -I.. -DHAVE_CONFIG_H   -c botmsg.cgcc -g -O2 -pipe -Wall -I.. -I.. -DHAVE_CONFIG_H   -c botnet.cgcc -g -O2 -pipe -Wall -I.. -I.. -DHAVE_CONFIG_H   -c chanprog.cgcc -g -O2 -pipe -Wall -I.. -I.. -DHAVE_CONFIG_H   -c cmds.cgcc -g -O2 -pipe -Wall -I.. -I.. -DHAVE_CONFIG_H   -c dcc.cgcc -g -O2 -pipe -Wall -I.. -I.. -DHAVE_CONFIG_H   -c dccutil.cgcc -g -O2 -pipe -Wall -I.. -I.. -DHAVE_CONFIG_H   -c dns.cgcc -g -O2 -pipe -Wall -I.. -I.. -DHAVE_CONFIG_H   -c flags.cgcc -g -O2 -pipe -Wall -I.. -I.. -DHAVE_CONFIG_H   -c language.cgcc -g -O2 -pipe -Wall -I.. -I.. -DHAVE_CONFIG_H   -c match.cgcc -g -O2 -pipe -Wall -I.. -I.. -DHAVE_CONFIG_H   \'-DCCFLAGS="gcc -g -O2 -pipe -Wall -I.. -I.. -DHAVE_CONFIG_H  "' \'-DLDFLAGS="gcc"' \'-DSTRIPFLAGS="strip"' -c ./main.cIn file included from /usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/windef.h:139,                 from /usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/windows.h:69,                 from ./main.c:68:/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/winnt.h:207: error: parse error before '*' token/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/winnt.h:208: error: parse error before '*' token/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/winnt.h:209: error: parse error before '*' token/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/winnt.h:210: error: parse error before '*' token/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/winnt.h:211: error: parse error before '*' token/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/winnt.h:212: error: parse error before '*' token/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/winnt.h:213: error: parse error before '*' token/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/winnt.h:236: error: parse error before "LPTCH"/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/winnt.h:237: error: parse error before "PTSTR"/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/winnt.h:238: error: parse error before "PCTSTR"/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/winnt.h:244: error: parse error before '*' token/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/winnt.h:245: error: parse error before '*' token/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/winnt.h:257: error: parse error before "HRESULT"/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/winnt.h:326: error: parse error before "LONG"/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/winnt.h:330: error: parse error before "LONG"/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/winnt.h:333: error: parse error before '}' token/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/winnt.h:335: error: parse error before '*' token/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/winnt.h:353: error: parse error before "LONG"In file included from /usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/windef.h:139,                 from /usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/windows.h:69,                 from ./main.c:68:/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/winnt.h:1811: error: parse error before '*' token/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/winnt.h:1812: error: parse error before '*' token/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/winnt.h:1814: error: parse error before '*' token/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/winnt.h: In function `_interlockedbittestandset':/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/winnt.h:1817: error: `Base' undeclared (first use in this function)/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/winnt.h:1817: error: (Each undeclared identifier is reported only once/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/winnt.h:1817: error: for each function it appears in.)/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/winnt.h:1818: error: `Bit' undeclared (first use in this function)/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/winnt.h: At top level:/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/winnt.h:1822: error: parse error before '*' token/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/winnt.h: In function `_interlockedbittestandreset':/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/winnt.h:1825: error: `Base' undeclared (first use in this function)/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/winnt.h:1826: error: `Bit' undeclared (first use in this function)/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/winnt.h: At top level:/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/winnt.h:1831: error: parse error before '*' token/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/winnt.h:1833: error: parse error before '*' token/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/winnt.h: In function `InterlockedBitTestAndComplement':/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/winnt.h:1836: error: `Base' undeclared (first use in this function)/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/winnt.h:1837: error: `Bit' undeclared (first use in this function)/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/winnt.h: In function `MemoryBarrier':/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/winnt.h:1883: error: `LONG' undeclared (first use in this function)/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/winnt.h:1883: error: parse error before "Barrier"/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/winnt.h:1885: error: `Barrier' undeclared (first use in this function)/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/winnt.h: At top level:/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/winnt.h:1984: error: parse error before "InterlockedIncrement"/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/winnt.h:1985: error: parse error before "InterlockedDecrement"/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/winnt.h:1986: error: parse error before "InterlockedExchange"/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/winnt.h:1989: error: parse error before "InterlockedIncrement"/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/winnt.h:1997: error: parse error before "InterlockedDecrement"/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/winnt.h:2005: error: parse error before "InterlockedExchange"In file included from /usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/windef.h:139,                 from /usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/windows.h:69,                 from ./main.c:68:/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/winnt.h:2521: error: parse error before "LUID"/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/winnt.h:2523: error: parse error before '}' token/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/winnt.h:2524: error: parse error before "LUID_AND_ATTRIBUTES_ARRAY"/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/winnt.h:2525: error: parse error before '*' tokenIn file included from /usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/windef.h:139,                 from /usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/windows.h:69,                 from ./main.c:68:............ a lot of error lines ............./usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/imm.h:217: error: parse error before "LPCSTR"/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/imm.h:219: error: parse error before "LPSTYLEBUFA"/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/imm.h:221: error: parse error before "LPCSTR"/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/imm.h:225: error: parse error before "LPIMEMENUITEMINFOA"./main.c:695: warning: 'patch' defined but not used{standard input}: Assembler messages:{standard input}:4963: Warning: size of "_cStreamName" is already 16; not changing to 592{standard input}:5705: Warning: size of "_szTip" is already 512; not changing to 256{standard input}:5706: Warning: size of "_szInfo" is already 1024; not changing to 512{standard input}:5707: Warning: size of "_szInfoTitle" is already 256; not changing to 128{standard input}:6815: Warning: size of "_dwReserved" is already 32; not changing to 16Makefile:60: recipe for target `main.o' failedmake[1]: *** [main.o] Error 1make[1]: Leaving directory `/home/admin/eggdrop1.6.21/src'Makefile:202: recipe for target `modegg' failedmake: *** [modegg] Error 2</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12181">Landora1311</a> — Tue Jan 29, 2013 12:29 am</p><hr />
]]></content>
	</entry>
	</feed>
