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

Support::Linux Servers Support forum for Linux EQEMu users.

Reply
 
Thread Tools Display Modes
  #1  
Old 07-15-2007, 12:37 AM
inkubus
Hill Giant
 
Join Date: Feb 2002
Posts: 146
Default cannot convert size_t to socklen_t for argument 3 in int getsockname

Hi i'm getting an error when compiling with gcc 3.3.5 on suse 9.3.

Any suggestions?gcc -c -Wall -Wuninitialized -Wwrite-strings -Wcast-qual -Wcomment -Wcast-align -Wno-deprecated -g -O -pthread -pipe -I../common/SocketLib -DFX -D_GNU_SOURCE -DINVERSEXY -DWORLD -DDEBUG=5 -DEQDEBUG=5 -DSHAREMEM -DCATCH_CRASH -DNO_PIDLOG -DFIELD_ITEMS -DIRC -Di386 -DAPP_OPCODE_SIZE=2 -DEMBPERL -DEMBPERL_PLUGIN -DHAS_UNION_SEMUN -I/usr/include/mysql -fmessage-length=0 -g -DPIC -fPIC -DUNDEF_HAVE_INITGROUPS -fno-strict-aliasing -D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS -DDEBUGGING -fno-strict-aliasing -pipe -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/lib/perl5/5.8.6/x86_64-linux-thread-multi/CORE ../common/TCPConnection.cpp -o ../common/TCPConnection.o
../common/TCPConnection.cpp: In member function `bool TCPConnection::GetSockName(char*, uint16*)':
../common/TCPConnection.cpp:148: error: cannot convert `size_t*' to `socklen_t*' for argument `3' to `int getsockname(int, sockaddr*, socklen_t*)'
make[1]: *** [../common/TCPConnection.o] Error 1
Reply With Quote
  #2  
Old 07-15-2007, 03:37 AM
inkubus
Hill Giant
 
Join Date: Feb 2002
Posts: 146
Default

I resolved this problem by installing suse 32-bit instead of 64-bit. So I guess if anyone else runs into this issue it's something related to that.

Cheers

Inky
Reply With Quote
  #3  
Old 07-16-2007, 10:04 AM
John Adams
Demi-God
 
Join Date: Jul 2006
Posts: 1,552
Default

I believe long ago, I too had problems compiling on FC x86_64, and went back to 32bit. I am currently trying x64 again, but it sounds like the problem persists.
Reply With Quote
  #4  
Old 02-21-2008, 06:17 AM
Darq
Fire Beetle
 
Join Date: Apr 2002
Posts: 3
Default

in common/TCPConnection.cpp

go to slightly above line 148
see #ifdef WIN32
and so on
remove all those #ifdef #elseif #endif and everything inbetween

replace with
socklen_t addrlen;
should compile on x86_64

thats the quick and dirty method of course
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 10:31 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