Well got this piece of what i would have thought would have been great code
trying to compile. did the config thing and all (not a complete idiot)
then
so I know I have the file
Looking in makefile
the line looks ok to me
So i look at the bottom of the makefile and see a blurb about openbsd and using gmake,
which is what I use and honestly I think everyone should use :) (security is precious)
and I get this error
So I compile it again so see if i get more errors using the ignore error option
so the culprit is closesocket.
Well heres a little background
OpenBSD 3.0
tried both dawnsrc1.69o and dawnsrc1.69p
No problems compiling anything including smaug
tried the same code in cygwin (fresh install and freshly untarred code unix style) no luck in cygwin
I noticed in another post someone mentioned build 1.69q, haven't been able to find it
I probably won't get an answer but it's worth a try
trying to compile. did the config thing and all (not a complete idiot)
then
bash-2.05$ make
c++ -c -Wall -g -O com_time.cpp -o obj/com_time.o
c++: com_time.cpp: No such file or directory
c++: No input files
*** Error code 1
Stop in /home/mud/dawn (line 44 of /home/mud/dawn/makefile).
bash-2.05$ ls -l com*
-rw-r--r-- 1 mud mud 2246 Dec 29 08:36 com_time.cpp
-rw-r--r-- 1 mud mud 16048 Dec 29 08:36 comedit.cpp
-rw-r--r-- 1 mud mud 1850 Dec 29 08:36 comedit.h
-rw-r--r-- 1 mud mud 114538 Dec 29 16:00 comm.cpp
-rw-r--r-- 1 mud mud 12029 Dec 29 08:36 comm.h
bash-2.05$
so I know I have the file
Looking in makefile
dawn: $(sort $(O_FILES))
>>>> LINE 44>>>> $(CPP) -c $(C_FLAGS) com_time.cpp -o $(OBJDIR)/com_time.o
-rm -f ../dawn
$(CPP) $(L_FLAGS) $(LIBS) -o ../dawn \
$(addprefix $(OBJDIR)/,$(O_FILES)) $(OBJDIR)/com_time.o
the line looks ok to me
So i look at the bottom of the makefile and see a blurb about openbsd and using gmake,
which is what I use and honestly I think everyone should use :) (security is precious)
and I get this error
c++ -c -Wall -g -O comm.cpp -o obj/comm.o
comm.cpp: In function `int main(int, char **)':
comm.cpp:613: implicit declaration of function `int closesocket(...)'
gmake: *** [comm.o] Error 1
So I compile it again so see if i get more errors using the ignore error option
bash# gmake -i
c++ -c -Wall -g -O comm.cpp -o obj/comm.o
comm.cpp: In function `int main(int, char **)':
comm.cpp:613: implicit declaration of function `int closesocket(...)'
gmake: [comm.o] Error 1 (ignored)
******
more code going ok
******
descript.cpp: In method `void descriptor_data::dclose()':
descript.cpp:211: implicit declaration of function `int closesocket(...)'
gmake: [descript.o] Error 1 (ignored)
******
more code going ok
******
hreboot.cpp: In function `void hotreboot_game_environment_transfer()':
hreboot.cpp:528: implicit declaration of function `int closesocket(...)'
gmake: [hreboot.o] Error 1 (ignored)
******
more code going ok
******
save.cpp: In function `void fwrite_char(char_data *, FILE *)':
save.cpp:318: passing `long int *' as argument 1 of `ctime(const time_t *)'
save.cpp:436: warning: long int format, int arg (arg 3)
gmake: [save.o] Error 1 (ignored)
so the culprit is closesocket.
Well heres a little background
OpenBSD 3.0
tried both dawnsrc1.69o and dawnsrc1.69p
No problems compiling anything including smaug
tried the same code in cygwin (fresh install and freshly untarred code unix style) no luck in cygwin
I noticed in another post someone mentioned build 1.69q, haven't been able to find it
I probably won't get an answer but it's worth a try