[Home] [Downloads] [Search] [Help/forum]


Register forum user name Search FAQ

Gammon Forum

[Folder]  Entire forum
-> [Folder]  SMAUG
. -> [Folder]  Compiling the server
. . -> [Subject]  compile Error Dyatopis 1.2

compile Error Dyatopis 1.2

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


Posted by Brak   (1 post)  [Biography] bio
Date Thu 09 Oct 2003 09:00 PM (UTC)
Message

[Soundwave@koden ...dystopia/src]$ make
gcc -c -Wall act_comm.c
In file included from act_comm.c:28:
merc.h:4971: warning: conflicting types for built-in function `logf'
gcc -c -Wall act_info.c
In file included from act_info.c:28:
merc.h:4971: warning: conflicting types for built-in function `logf'
act_info.c: In function `do_password':
act_info.c:3616: warning: implicit declaration of function `crypt'
act_info.c:3616: warning: passing arg 1 of `strcmp' makes pointer from integer w
ithout a cast
act_info.c:3633: warning: assignment makes pointer from integer without a cast
gcc -c -Wall act_move.c
In file included from act_move.c:27:
merc.h:4971: warning: conflicting types for built-in function `logf'
gcc -c -Wall act_obj.c
In file included from act_obj.c:27:
merc.h:4971: warning: conflicting types for built-in function `logf'
gcc -c -Wall act_wiz.c
In file included from act_wiz.c:27:
merc.h:4971: warning: conflicting types for built-in function `logf'
act_wiz.c: In function `do_hreload':
act_wiz.c:6499: warning: excess elements in array initializer
act_wiz.c:6499: warning: (near initialization for `helpfile')
act_wiz.c: In function `do_resetpassword':
act_wiz.c:6584: warning: implicit declaration of function `crypt'
act_wiz.c:6584: warning: assignment makes pointer from integer without a cast
gcc -c -Wall bit.c
In file included from bit.c:48:
merc.h:4971: warning: conflicting types for built-in function `logf'
gcc -c -Wall mccp.c
In file included from mccp.c:39:
merc.h:4971: warning: conflicting types for built-in function `logf'
gcc -c -Wall board.c
In file included from board.c:28:
merc.h:4971: warning: conflicting types for built-in function `logf'
gcc -c -Wall build.c
In file included from build.c:30:
merc.h:4971: warning: conflicting types for built-in function `logf'
gcc -c -Wall clan.c
In file included from clan.c:28:
merc.h:4971: warning: conflicting types for built-in function `logf'
gcc -c -Wall comm.c
In file included from comm.c:64:
merc.h:4971: warning: conflicting types for built-in function `logf'
comm.c: In function `lookup_address':
comm.c:1200: warning: implicit declaration of function `gethostbyaddr_r'
comm.c: In function `nanny':
comm.c:2261: warning: implicit declaration of function `crypt'
comm.c:2261: warning: passing arg 1 of `strcmp' makes pointer from integer witho
ut a cast
comm.c:2269: warning: passing arg 1 of `strcmp' makes pointer from integer witho
ut a cast
comm.c:2554: warning: assignment makes pointer from integer without a cast
comm.c:2578: warning: passing arg 1 of `strcmp' makes pointer from integer witho
ut a cast
gcc -c -Wall daemon.c
In file included from daemon.c:29:
merc.h:4971: warning: conflicting types for built-in function `logf'
gcc -c -Wall db.c
In file included from db.c:28:
merc.h:4971: warning: conflicting types for built-in function `logf'
db.c: In function `load_objects':
db.c:957: warning: deprecated use of label at end of compound statement
gcc -c -Wall angel.c
In file included from angel.c:31:
merc.h:4971: warning: conflicting types for built-in function `logf'
angel.c:693:18: missing terminating " character
angel.c: In function `do_angelicarmor':
angel.c:694: error: parse error before "Necklace"
angel.c:694: error: stray '\' in program
angel.c:694: error: stray '\' in program
angel.c:694:82: missing terminating " character
make: *** [angel.o] Error 1
[Soundwave@koden ...dystopia/src]$

I had a different version that a friend gave me I made the same changes and the other version worked. I am still very new to all of this so I am sure its just somehting small.
[Go to top] top

Posted by Samson   USA  (683 posts)  [Biography] bio
Date Reply #1 on Fri 10 Oct 2003 09:03 AM (UTC)
Message
The conflicting types for logf are because you're now using a gcc 3.3x compiler and logf has been declared globally. The only real solution to that problem is to rename logf to something else, and change all the calls to it. From your log, it doesn't appear that would be too harsh a change.

The crypt error is because you don't have an include which declares crypt. Usually this only happens on a Windows host, and generally making sure you have an #include <crypt.h> at the top of the file generating the error will solve that.

comm.c:1200: warning: implicit declaration of function `gethostbyaddr_r'

The comm.c error is more or less the same reason as the crypt error. You're missing an include file that holds this function. Off the top of my head I forget which one it should be though.

Solve those, and some of your other errors may go away. Then you can concentrate on the ones that are left.
[Go to top] top

Posted by KipKerensky   (3 posts)  [Biography] bio
Date Reply #2 on Sun 09 Nov 2003 04:09 AM (UTC)
Message
>angel.c:693:18: missing terminating " character
>angel.c: In function `do_angelicarmor':
>angel.c:694: error: parse error before "Necklace"
>angel.c:694: error: stray '\' in program
>angel.c:694: error: stray '\' in program
>angel.c:694:82: missing terminating " character

Usually the problem with this is a string, between "s, is on 2 different lines instead of one. Go to the line number given and see if something thats trying to create a string is on 2 lines instead of one. Should fix errors like that.

-Kip
[Go to top] top

Posted by Meerclar   USA  (733 posts)  [Biography] bio
Date Reply #3 on Sun 09 Nov 2003 08:23 PM (UTC)
Message
Post lines 690-700 of angel.c and we can see better whats causing this. There are a number of possible causes unforunately and without seeing the code it's hard to know what to fix.

Meerclar - Lord of Cats
Coder, Builder, and Tormenter of Mortals
Stormbringer: Rebirth
storm-bringer.org:4500
www.storm-bringer.org
[Go to top] top

Posted by Samson   USA  (683 posts)  [Biography] bio
Date Reply #4 on Sun 09 Nov 2003 11:52 PM (UTC)
Message
It's definitely because of a multiline string. gcc 3.3x doesn't like that one bit. I ran into the same thing while testing a Dystopia base with I3 and had to fix it. angel.c is one of the files with that problem, as are several of the other class files. It's not a fun thing to deal with, but it needs to get done. That's why gcc 3.2x and the other 3.x related friends it had were warning you all this time about multiline string literals being deprecated. They weren't just blowing smoke and generating false errors :)
[Go to top] 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.


13,760 views.

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

Go to topic:           Search the forum


[Go to top] top

Quick links: MUSHclient. MUSHclient help. Forum shortcuts. Posting templates. Lua modules. Lua documentation.

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

[Home]


Written by Nick Gammon - 5K   profile for Nick Gammon on Stack Exchange, a network of free, community-driven Q&A sites   Marriage equality

Comments to: Gammon Software support
[RH click to get RSS URL] Forum RSS feed ( https://gammon.com.au/rss/forum.xml )

[Best viewed with any browser - 2K]    [Hosted at HostDash]