Go Back   EQEmulator Home > EQEmulator Forums > Archives > Archive::Support > Archive::Linux Servers

Archive::Linux Servers Archive area for Linux Servers's posts that were moved here after an inactivity period of 90 days.

Reply
 
Thread Tools Display Modes
  #1  
Old 11-12-2002, 09:25 PM
steve
Discordant
 
Join Date: Jan 2002
Posts: 305
Default 3.12 compile errors on FreeBSD 4.5

Well, first off, make doesn't work to compile because I get dependency errors. So I'm using gmake instead.

Here are the errors I get:
Code:
[4:22](veeshan@shell3)[~/emu/zone]> gmake
gcc -c -Wall -Wuninitialized -Wwrite-strings -Wcast-qual -Wbad-function-cast -Wstrict-prototypes -Wnested-externs
 -Wcomment -Wcast-align -O -ggdb -m486 -pthread -pipe -D_GNU_SOURCE -DINVERSEXY
 -DFX -I/usr/include/mysql -I/usr/mysql/include ../common/EQNetwork.cpp -o ../common/EQNetwork.o
../common/EQNetwork.cpp: In method `bool EQNetworkServer::Open(short unsigned int = 0)':
../common/EQNetwork.cpp:112: aggregate `struct sockaddr_in address' has incomplete type and cannot be initialized
../common/EQNetwork.cpp:120: confused by earlier errors, bailing out
gmake: *** [../common/EQNetwork.o] Error 1
And
Code:
[4:23](veeshan@shell3)[~/emu/world]> gmake
gcc -c -Wall -Wuninitialized -Wwrite-strings -Wcast-qual -Wbad-function-cast -Wstrict-prototypes -Wnested-externs
 -Wcomment -Wcast-align -Winline -Waggregate-return -g -m486 -O3 -pthread -pipe -DFX -D_GNU_SOURCE -DINVERSEXY
 -I/usr/include/mysql -I/usr/mysql/include ../common/EQNetwork.cpp -o ../common/EQNetwork.o
In file included from ../common/EQNetwork.cpp:25:
/usr/include/g++/iomanip.h: In method `class smanip<TP> sapp<TP>::operator ()(TP)':
/usr/include/g++/iomanip.h:50: warning: function returns an aggregate
/usr/include/g++/iomanip.h: In method `class imanip<TP> iapp<TP>::operator ()(TP)':
/usr/include/g++/iomanip.h:106: warning: function returns an aggregate
/usr/include/g++/iomanip.h: In method `class omanip<TP> oapp<TP>::operator ()(TP)':
/usr/include/g++/iomanip.h:138: warning: function returns an aggregate
/usr/include/g++/iomanip.h: In function `class smanip<int> setbase(int)':
/usr/include/g++/iomanip.h:171: warning: function returns an aggregate
/usr/include/g++/iomanip.h: In function `class smanip<int> setfill(int)':
/usr/include/g++/iomanip.h:172: warning: function returns an aggregate
/usr/include/g++/iomanip.h: In function `class smanip<int> setprecision(int)':
/usr/include/g++/iomanip.h:173: warning: function returns an aggregate
/usr/include/g++/iomanip.h: In function `class smanip<int> setw(int)':
/usr/include/g++/iomanip.h:174: warning: function returns an aggregate
/usr/include/g++/iomanip.h: In function `class smanip<long unsigned int> resetiosflags(long unsigned int)':
/usr/include/g++/iomanip.h:176: warning: function returns an aggregate
/usr/include/g++/iomanip.h: In function `class smanip<long unsigned int> setiosflags(long unsigned int)':
/usr/include/g++/iomanip.h:177: warning: function returns an aggregate
../common/EQNetwork.cpp: In method `bool EQNetworkServer::Open(short unsigned int = 0)':
../common/EQNetwork.cpp:112: aggregate `struct sockaddr_in address' has incomplete type and cannot be initialized
../common/EQNetwork.cpp:120: confused by earlier errors, bailing out
gmake: *** [../common/EQNetwork.o] Error 1
Any clues?
Reply With Quote
  #2  
Old 11-17-2002, 03:14 PM
steve
Discordant
 
Join Date: Jan 2002
Posts: 305
Default

Anyone?
Reply With Quote
  #3  
Old 11-17-2002, 07:24 PM
Zafar
Sarnak
 
Join Date: Oct 2002
Posts: 50
Default

The errors that I get during my compilation of EQEmu, I get errors myself. I usually ignore most of them, because they seem more towards Win32 issues--and not Linux/Unix based code; correct me there if I am wrong.


Quote:
Originally Posted by steve
Anyone?
Reply With Quote
  #4  
Old 11-17-2002, 09:19 PM
steve
Discordant
 
Join Date: Jan 2002
Posts: 305
Default

It never finishes compiling, it dies and stops on those errors.
Reply With Quote
  #5  
Old 11-17-2002, 09:59 PM
seqmage
Fire Beetle
 
Join Date: Nov 2002
Posts: 4
Default

I am not a linux guru, but working with ShowEQ and getting that compiled, its a good idea to make sure your gcc libs and g++ libs are up to date.
Reply With Quote
  #6  
Old 11-18-2002, 02:24 AM
kathgar
Discordant
 
Join Date: May 2002
Posts: 434
Default

We don't have any *bsd code, I have not coded in it yet but it seems atleast the socket struct is different.. also what version of gcc are you using? some of the 3.XX versions have problems
__________________
++[>++++++<-]>[<++++++>-]<.>++++[>+++++<-]>[<
+++++>-]<+.+++++++..+++.>>+++++[<++++++>-]<+
+.<<+++++++++++++++.>.+++.------.--------.>+.
Reply With Quote
  #7  
Old 02-26-2003, 11:29 AM
emu3qaz
Fire Beetle
 
Join Date: Feb 2003
Posts: 4
Default

Try replacing:

unsigned int fromlen;

with:

socklen_t fromlen;
Reply With Quote
  #8  
Old 02-28-2003, 12:06 PM
var1ety
Sarnak
 
Join Date: Jan 2003
Posts: 59
Default

eqemu compiles out of the box on freebsd on 0.4.1 .. some more stuff got changed between 0.4.1 and 0.4.2, and again between 0.4.3, so the compile is crapping out.

i used to have a readme file included with the distro detailing what changes had to be made, but that didn't make it over from 0.4.1 to 0.4.2, or something. anyhow, you need linuxthreads installed, as well as mysql stuff, and you need to compile using gmake -f makefilefreebsd. Note, this isn't working atm with 0.4.2, as I mentioned above, but hopefully by 0.4.3 we'll be up and going again.
Reply With Quote
  #9  
Old 02-28-2003, 01:13 PM
var1ety
Sarnak
 
Join Date: Jan 2003
Posts: 59
Default fix against 0.4.2

nightly CVS isn't in a state to compile for me yet, maybe in another few days. Gonna try to hook up with some devs so I can get at it before they release so us FreeBSD users won't be out in the cold this time =)

Until then, I'm going to try to attach a diff against 0.4.2-RELEASE to allow it to compile out of the box on FreeBSD (4.8-prelease, at least). My old readme is gone, but I'll briefly summarize it here:

you need to install devel/linuxthreads to compile, in addition to mysql. The relevant headers should automatically put themselves into /usr/local/include/mysql if you don't futz with anything.

you *must* compile with make -f makefilefreebsd

Note: the problems from 0.4.1->0.4.2 consisted entirely of someone moving socket.h before types.h in several files.

as always, grab my patch from:
http://sourceforge.net/tracker/index...81&atid=430534
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

   

All times are GMT -4. The time now is 04:00 AM.


 

Everquest is a registered trademark of Daybreak Game Company LLC.
EQEmulator is not associated or affiliated in any way with Daybreak Game Company LLC.
Except where otherwise noted, this site is licensed under a Creative Commons License.
       
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3