View Issue Details

IDProjectCategoryView StatusLast Update
0000399LDMud 3.3Compilation, Installationpublic2007-10-07 18:44
Reporterboggle Assigned Tolars 
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionfixed 
Product Version3.3 
Summary0000399: erq doenst compile
Descriptionerq doenst compile.

mac os x 10.4.2.

gcc-3.3.

psycmuve-cvs, ldmud-3.3-709.

similar problems with ldmud-3.3-705 and gcc-4.0.
Additional Informationafter fixining #include <malloc.h> to #include <memory.h>

gcc-3.3 -I/usr/local/mysql/include -O2 -g -fstrength-reduce -fno-force-mem -fno-force-addr -DMUD_LIB='"/Volumes/Data/PsycMUVE/world"' -DBINDIR='"/Volumes/Data/PsycMUVE/bin"' -DERQ_DIR='"/Volumes/Data/PsycMUVE/run"' -I/Volumes/Data/Sources/psycMUVE-cvs-05-04-15/3-3/src erq.c -o erq -lm -lresolv
In file included from erq.c:109:
srv.c:22: error: parse error before "HEADER"
srv.c:22: warning: no semicolon at end of struct or union
srv.c:24: error: parse error before '}' token
srv.c:24: warning: data definition has no type or storage class
srv.c: In function `getsrv':
srv.c:72: error: parse error before "answer"
srv.c:76: error: `HEADER' undeclared (first use in this function)
srv.c:76: error: (Each undeclared identifier is reported only once
srv.c:76: error: for each function it appears in.)
srv.c:76: error: `hp' undeclared (first use in this function)
srv.c:111: error: `C_IN' undeclared (first use in this function)
srv.c:111: error: `answer' undeclared (first use in this function)
srv.c:121: error: parse error before ')' token
srv.c:133: error: `QFIXEDSZ' undeclared (first use in this function)
erq.c: At top level:
erq.c:269: error: conflicting types for `buf'
srv.c:23: error: previous declaration of `buf'
erq.c: In function `start_subserver':
erq.c:869: error: `ERQ_MAX_REPLY' undeclared (first use in this function)
erq.c: In function `main':
erq.c:1819: error: `ERQ_MAX_REPLY' undeclared (first use in this function)
TagsNo tags attached.

Activities

boggle

2005-08-29 07:40

reporter   ~0000386

solved the issue myself, three changes, all to srv.c

1. as already mentioned: #include <memory.h> instead of malloc.h
2. #include <arpa/nameser_compat.h> instead of #include <arpa/nameser.h>
3. #include "../../config.h"

does the trick on a mac.

tobij

2005-08-29 07:53

reporter   ~0000387

this only concerns a psycmuve erq-enhancement.

but boggles hints seem to solve the problems which prevented the srv-addons from going into the distribution, so probably ...

lynx

2005-09-08 04:23

reporter   ~0000389

thanx boggle.. great news to have this fixed

echox

2005-09-27 13:48

reporter   ~0000390

Sorry guys, but this doesn't work for me.

Mac OS X 10.4.2
powerpc-apple-darwin8-gcc-4.0.0 (GCC) 4.0.0 20041026 (Apple Computer, Inc. build 4061)
psycMUVE-cvs-05-09-23

First tried to compile the gamma release but got the errors descriped here.
Then added the fix from boggle but I get still this:

[stuff]
Making erq.
gcc -O2 -g -fstrength-reduce -fno-force-mem -fno-force-addr -DMUD_LIB='"/Users/echox/psycmuve/world"' -DBINDIR='"/Users/echox/psycmuve/bin"' -DERQ_DIR='"/Users/echox/psycmuve/run"' -I/Users/echox/src/psyc/psycMUVE-cvs-05-09-23/3-3/src erq.c -o erq -lm -lresolv
In file included from erq.c:109:
srv.c:29: error: parse error before "HEADER"
srv.c:29: warning: no semicolon at end of struct or union
srv.c:31: error: parse error before '}' token
srv.c:31: warning: data definition has no type or storage class
srv.c: In function 'getsrv':
srv.c:79: error: parse error before "answer"
srv.c:83: error: 'HEADER' undeclared (first use in this function)
srv.c:83: error: (Each undeclared identifier is reported only once
srv.c:83: error: for each function it appears in.)
srv.c:83: error: 'hp' undeclared (first use in this function)
srv.c:118: error: 'C_IN' undeclared (first use in this function)
srv.c:118: error: 'answer' undeclared (first use in this function)
srv.c:128: error: parse error before ')' token
srv.c:140: error: 'QFIXEDSZ' undeclared (first use in this function)
erq.c: At top level:
erq.c:269: error: conflicting types for 'buf'
srv.c:30: error: previous declaration of 'buf' was here
erq.c: In function 'main':
erq.c:1819: warning: pointer targets in passing argument 6 of 'recvfrom' differ in signedness
erq.c:2541: warning: pointer targets in passing argument 3 of 'accept' differ in signedness
make[2]: *** [erq] Error 1
make[1]: *** [subs] Error 2
make: *** [utils] Error 2
cp: 3-3/src/util/erq/erq: No such file or directory
[/stuff]

lynx

2007-05-04 17:40

reporter   ~0000537

Recent Mac OS X seems to have solved this issue.
ERQ with SRV support compiles without problems.

lars

2007-10-07 18:44

reporter   ~0000562

Apparently the problem vanished by itself.

Issue History

Date Modified Username Field Change
2005-08-29 07:32 boggle New Issue
2005-08-29 07:40 boggle Note Added: 0000386
2005-08-29 07:53 tobij Note Added: 0000387
2005-09-08 04:23 lynx Note Added: 0000389
2005-09-27 13:48 echox Note Added: 0000390
2007-05-04 17:40 lynx Note Added: 0000537
2007-10-07 18:44 lars Status new => resolved
2007-10-07 18:44 lars Resolution open => fixed
2007-10-07 18:44 lars Assigned To => lars
2007-10-07 18:44 lars Note Added: 0000562