View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0000399 | LDMud 3.3 | Compilation, Installation | public | 2005-08-29 05:32 | 2007-10-07 16:44 |
Reporter | boggle | Assigned To | |||
Priority | normal | Severity | minor | Reproducibility | always |
Status | resolved | Resolution | fixed | ||
Product Version | 3.3 | ||||
Summary | 0000399: erq doenst compile | ||||
Description | erq 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 Information | after 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) | ||||
Tags | No tags attached. | ||||
|
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. |
|
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 ... |
|
thanx boggle.. great news to have this fixed |
|
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] |
|
Recent Mac OS X seems to have solved this issue. ERQ with SRV support compiles without problems. |
|
Apparently the problem vanished by itself. |
Date Modified | Username | Field | Change |
---|---|---|---|
2005-08-29 05:32 | boggle | New Issue | |
2005-08-29 05:40 | boggle | Note Added: 0000386 | |
2005-08-29 05:53 | tobij | Note Added: 0000387 | |
2005-09-08 02:23 | lynx | Note Added: 0000389 | |
2005-09-27 11:48 | echox | Note Added: 0000390 | |
2007-05-04 15:40 | lynx | Note Added: 0000537 | |
2007-10-07 16:44 |
|
Status | new => resolved |
2007-10-07 16:44 |
|
Resolution | open => fixed |
2007-10-07 16:44 |
|
Assigned To | => lars |
2007-10-07 16:44 |
|
Note Added: 0000562 |