Login
User Name:

Password:



Register
Forgot your password?
Vote for Us!
Couple bugs
Dec 12, 2017, 5:42 pm
By Remcon
Bug in disarm( )
Nov 12, 2017, 6:54 pm
By GatewaySysop
Bug in will_fall( )
Oct 23, 2017, 1:35 am
By GatewaySysop
Bug in do_zap( ), do_brandish( )
Oct 18, 2017, 1:52 pm
By GatewaySysop
Bug in get_exp_worth( )
Oct 10, 2017, 1:26 am
By GatewaySysop
LOP 1.45
Author: Remcon
Submitted by: Remcon
LOP Heroes Edition
Author: Vladaar
Submitted by: Vladaar
Heroes sound extras
Author: Vladaar
Submitted by: Vladaar
6Dragons 4.3
Author: Vladaar
Submitted by: Vladaar
Memwatch
Author: Johan Lindh
Submitted by: Vladaar
Users Online
CommonCrawl, Bing

Members: 0
Guests: 16
Stats
Files
Topics
Posts
Members
Newest Member
477
3,705
19,232
608
LAntorcha
Today's Birthdays
There are no member birthdays today.
Related Links
» SmaugMuds.org » Codebases » SmaugFUSS » SmaugFUSS 1.9 not compiling -...
Forum Rules | Mark all | Recent Posts

SmaugFUSS 1.9 not compiling - Openbsd 5.3 AMD64
< Newer Topic :: Older Topic >

Pages:<< prev 1 next >>
Post is unread #1 Jun 7, 2013, 5:42 am
Go to the top of the page
Go to the bottom of the page

Krell
Fledgling
GroupMembers
Posts8
JoinedJun 7, 2013

when I cd smaugfuss19/src && gmake I get the following.

gmake -s smaug
Compiling o/imc.o....
cc1plus: warnings being treated as errors
In file included from imc.c:16:
/usr/include/unistd.h:363: warning: redundant redeclaration of 'off_t lseek(int, off_t, int)' in same scope
/usr/include/sys/types.h:207: warning: previous declaration of 'off_t lseek(int, off_t, int)'
/usr/include/unistd.h:402: warning: redundant redeclaration of 'int ftruncate(int, off_t)' in same scope
/usr/include/sys/types.h:208: warning: previous declaration of 'int ftruncate(int, off_t)'
/usr/include/unistd.h:419: warning: redundant redeclaration of 'int mkstemp(char*)' in same scope
/usr/include/stdlib.h:208: warning: previous declaration of 'int mkstemp(char*)'
/usr/include/unistd.h:420: warning: redundant redeclaration of 'char* mktemp(char*)' in same scope
/usr/include/stdlib.h:177: warning: previous declaration of 'char* mktemp(char*)'
/usr/include/unistd.h:424: warning: redundant redeclaration of 'int setkey(const char*)' in same scope
/usr/include/stdlib.h:193: warning: previous declaration of 'int setkey(const char*)'
/usr/include/unistd.h:430: warning: redundant redeclaration of 'int truncate(const char*, off_t)' in same scope
/usr/include/sys/types.h:209: warning: previous declaration of 'int truncate(const char*, off_t)'
/usr/include/unistd.h:499: warning: redundant redeclaration of 'char* mkdtemp(char*)' in same scope
/usr/include/stdlib.h:248: warning: previous declaration of 'char* mkdtemp(char*)'
/usr/include/unistd.h:500: warning: redundant redeclaration of 'int mkstemps(char*, int)' in same scope
/usr/include/stdlib.h:282: warning: previous declaration of 'int mkstemps(char*, int)'
gmake[1]: *** [o/imc.o] Error 1
gmake: *** [all] Error 2
       
Post is unread #2 Jun 7, 2013, 7:22 am   Last edited Jun 7, 2013, 7:39 am by Krell
Go to the top of the page
Go to the bottom of the page

Krell
Fledgling
GroupMembers
Posts8
JoinedJun 7, 2013

Okay, I removed -Werror from W_FLAGS in the src/Makefile. At least it allows it to begin compiling. Now it can't find endian.h even though it is here /usr/include/sys/endian.h and here /usr/include/amd64/endian.h on my system. I'll try telling the compiler where to find those and see what happens.


Compiling o/sha256.o....
sha256.c:35:20: error: endian.h: No such file or directory
gmake[1]: *** [o/sha256.o] Error 1
gmake: *** [all] Error 2

***edit***
Changed #if defined(__FreeBSD__) in sha256.c to #if defined(__OpenBSD__) || defined(__FreeBSD__).

Now I get

Compiling o/weather.o....
/usr/bin/ld: cannot find -ldl
collect2: ld returned 1 exit status
gmake[1]: *** [smaug] Error 1
gmake: *** [all] Error 2

Still plugging away. Should I send up a diff if I get this all figured out and compiled?

***edit1***

Okay -ldl is a linux-specific compiler option. Reading the Makefile I see that the suggestion in the comments to is to comment that option out if there are errors generated by it.

Everything compiles now, thanks. :-)
       
Pages:<< prev 1 next >>