Login
User Name:

Password:



Register
Forgot your password?
Vote for Us!
parse description bug
Dec 15, 2017, 10:08 pm
By Remcon
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
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, Yandex, Google

Members: 0
Guests: 8
Stats
Files
Topics
Posts
Members
Newest Member
477
3,706
19,240
608
LAntorcha
Today's Birthdays
There are no member birthdays today.
Related Links
» SmaugMuds.org » Codebases » AFKMud Support & Development » Compiling on FreeBSD 6.0
Forum Rules | Mark all | Recent Posts

Compiling on FreeBSD 6.0
< Newer Topic :: Older Topic > Refuses to compile.

Pages:<< prev 1 next >>
Post is unread #1 Jan 10, 2007, 12:29 pm
Go to the top of the page
Go to the bottom of the page

NuclearDog

GroupMembers
Posts5
JoinedAug 6, 2006

Compiling under FreeBSD 6.0

FreeBSD chaos.aspco.home 6.0-RELEASE FreeBSD 6.0-RELEASE #0: Thu Nov  3 09:36:13
UTC 2005     root@x64.samsco.home:/usr/obj/usr/src/sys/GENERIC  i386


The following happens...

adam:~/afkmud/src$ gmake clean
gmake all
gmake[1]: Entering directory `/usr/home/adam/afkmud/src'
Building AFKMud....
gmake -s afkmud
gmake[2]: Entering directory `/usr/home/adam/afkmud/src'
  Compiling o/mudmsg.o....
  Compiling o/shell.o....
(snip)
  Compiling o/db.o....
  Compiling o/deity.o....
  Compiling o/descriptor.o....
descriptor.cpp: In function `void new_descriptor(int)':
descriptor.cpp:1835: error: aggregate `sockaddr_in sock' has incomplete type and cannot be defined
gmake[2]: *** [o/descriptor.o] Error 1
gmake[2]: Leaving directory `/usr/home/adam/afkmud/src'
gmake[1]: *** [all] Error 2
gmake[1]: Leaving directory `/usr/home/adam/afkmud/src'
gmake: *** [clean] Error 2
adam:~/afkmud/src$


If I enable IMC support in the Makefile I instead receive the same error in imc.cpp.

Suggestions, please?

NuclearDog
       
Post is unread #2 Jan 11, 2007, 9:10 am
Go to the top of the page
Go to the bottom of the page

Darien
Fledgling
GroupMembers
Posts6
JoinedNov 5, 2006

i recommend looking at the bsd header files for sockets, as it may be different then the 'normal' of linux distributions.
       
Post is unread #3 Jan 13, 2007, 8:17 am
Go to the top of the page
Go to the bottom of the page

NuclearDog

GroupMembers
Posts5
JoinedAug 6, 2006

That would be the logical conclusion, yes... but that doesn't make AFKMud compile at all, as I can't exactly just replace BSD's header files with Linux's. Would anyone on the dev team be willing to offer some advice/help? If needed I can provide an account on a FreeBSD machine to test compiling and things...

ND
       
Post is unread #4 Jan 13, 2007, 9:06 am
Go to the top of the page
Go to the bottom of the page

Samson
Black Hand
GroupAdministrators
Posts3,639
JoinedJan 1, 2002

Semi-long shot here, but try this.

Change:
#if defined(__FreeBSD__)
#include <sys/types.h>
#include <csignal>
#endif


To:
#if defined(__FreeBSD__)
#include <sys/types.h>
#include <netinet/in.h>
#include <csignal>
#endif
       
Post is unread #5 Jan 14, 2007, 10:32 pm
Go to the top of the page
Go to the bottom of the page

NuclearDog

GroupMembers
Posts5
JoinedAug 6, 2006

Heh, that worked. Thanks for the help Samson.

And so you know, the extra #include is needed in imc.cpp too.

ND
       
Pages:<< prev 1 next >>