need help with compiling dystopia 1.4

Posted by Relikfealith on Thu 08 Jul 2004 05:02 AM — 7 posts, 29,748 views.

#0
i am running win xp pro with lastest cygwin, and dev-c++ compilier, when compiling i get this errors.

$ make
gcc -c -Wall -g const.c
In file included from const.c:24:
merc.h:3090: warning: conflicting types for built-in function `logf'
gcc -c -Wall -g save.c
In file included from save.c:25:
merc.h:3090: warning: conflicting types for built-in function `logf'
gcc -c -Wall -g special.c
In file included from special.c:25:
merc.h:3090: warning: conflicting types for built-in function `logf'
gcc -c -Wall -g string.c
In file included from string.c:40:
merc.h:3090: warning: conflicting types for built-in function `logf'
gcc -c -Wall -g jope.c
In file included from jope.c:34:
merc.h:3090: warning: conflicting types for built-in function `logf'
gcc -c -Wall -g msp.c

merc.h:3090: warning: conflicting types for built-in function `logf'
gcc -c -Wall -g comm.c
comm.c:48:48: execinfo.h: No such file or directory
In file included from comm.c:50:
merc.h:3090: warning: conflicting types for built-in function `logf'
comm.c: In function `lookup_address':
comm.c:1141: warning: implicit declaration of function `gethostbyaddr_r'
comm.c: In function `iBacktrace':
comm.c:1554: warning: implicit declaration of function `backtrace'
comm.c:1556: warning: implicit declaration of function `backtrace_symbols'
comm.c:1556: warning: assignment makes pointer from integer without a cast
comm.c: In function `nanny':
comm.c:2352: warning: implicit declaration of function `crypt'
comm.c:2352: warning: passing arg 1 of `strcmp' makes pointer from integer witho
ut a cast
comm.c:2360: warning: passing arg 1 of `strcmp' makes pointer from integer witho
ut a cast
comm.c:2562: warning: assignment makes pointer from integer without a cast
comm.c:2587: warning: passing arg 1 of `strcmp' makes pointer from integer witho
ut a cast
make: *** [comm.o] Error 1
USA #1
The only actual error I see in that mess of warnings is

comm.c:48:48: execinfo.h: No such file or directory

and that is what you need to be most worried about. The rest can be ignored for now but its advised you chase them down eventually so its easier to see the real problems and not get lost in the ambiguous code warnings.
#2
gcc: unrecognized option `-rdynamic'
comm.o(.text+0x12c3): In function `lookup_address':
/home/relik/dystopia14/src/comm.c:1139: undefined reference to `_gethostbyaddr_r
'
comm.o(.text+0x2080): In function `iBacktrace':
/home/relik/dystopia14/src/comm.c:1552: undefined reference to `_backtrace'
comm.o(.text+0x20ae):/home/relik/dystopia14/src/comm.c:1554: undefined reference
to `_backtrace_symbols'
collect2: ld returned 1 exit status
make: *** [merc] Error 1
USA #3
Not surprising that you got those errors after a fast google search revealed those functions are declared in execinfo.h and this is a glibc specific file.
Amended on Fri 09 Jul 2004 04:48 AM by Meerclar
USA #4
Cygwin doesn't have the execinfo.h.....Where can one go about getting a copy of it?
USA #5
It doesn't have it because it's entirely possible Cygwin doesn't have the functions the header is declaring. Best bet: disable the backtracing stuff when using Cygwin.
USA #6
Backtracing? well, anywayu, mine doesn't need execinfo.h it jsut gives me an undefined reference.