Register forum user name Search FAQ

Gammon Forum

Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to verify your details, confirm your email, resolve issues, making threats, or asking for money, are spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the password reset link.

Due to spam on this forum, all posts now need moderator approval.

 Entire forum ➜ SMAUG ➜ Compiling the server ➜ need help with compiling dystopia 1.4

need help with compiling dystopia 1.4

It is now over 60 days since the last post. This thread is closed.     Refresh page


Posted by Relikfealith   (3 posts)  Bio
Date Thu 08 Jul 2004 05:02 AM (UTC)
Message
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
Top

Posted by Meerclar   USA  (733 posts)  Bio
Date Reply #1 on Thu 08 Jul 2004 09:25 AM (UTC)
Message
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.

Meerclar - Lord of Cats
Coder, Builder, and Tormenter of Mortals
Stormbringer: Rebirth
storm-bringer.org:4500
www.storm-bringer.org
Top

Posted by Relikfealith   (3 posts)  Bio
Date Reply #2 on Thu 08 Jul 2004 08:02 PM (UTC)
Message
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
Top

Posted by Meerclar   USA  (733 posts)  Bio
Date Reply #3 on Fri 09 Jul 2004 04:44 AM (UTC)

Amended on Fri 09 Jul 2004 04:48 AM (UTC) by Meerclar

Message
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.

Meerclar - Lord of Cats
Coder, Builder, and Tormenter of Mortals
Stormbringer: Rebirth
storm-bringer.org:4500
www.storm-bringer.org
Top

Posted by Aha McCoy   USA  (11 posts)  Bio
Date Reply #4 on Sun 27 Feb 2005 09:06 PM (UTC)
Message
Cygwin doesn't have the execinfo.h.....Where can one go about getting a copy of it?
Top

Posted by Samson   USA  (683 posts)  Bio
Date Reply #5 on Sun 27 Feb 2005 09:11 PM (UTC)
Message
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.
Top

Posted by Aha McCoy   USA  (11 posts)  Bio
Date Reply #6 on Sun 27 Feb 2005 10:04 PM (UTC)
Message
Backtracing? well, anywayu, mine doesn't need execinfo.h it jsut gives me an undefined reference.
Top

The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).

To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.


22,929 views.

It is now over 60 days since the last post. This thread is closed.     Refresh page

Go to topic:           Search the forum


[Go to top] top

Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.