Centos Server Compile Eroor
#1

rver.o Zone.o -L../ShareLib -L/usr/local/lib -L/usr/local/apr/lib -L/usr/lib/mysql -m32 -lSharelib -lmysqlclient -lboost_thread-gcc44-mt-d-1_70_0 -lboost_system-gcc44-mt-d-1_70_0 -llog4cxx -laprutil-1 -lapr-1 -lrt -lstdc++ -lexpat -lz -lpthread -ljsoncpp -lcurl -ldl

Affinity.o: could not read symbols: File in wrong format

collect2: ld returned 1 exit status

make[2]: *** [GameServer] Error 1

make[2]: Leaving directory `/root/Desktop/Server/GameServer'

make[1]: *** [usa] Error 2

make[1]: Leaving directory `/root/Desktop/Server/GameServer'

make: *** [usa] Error 2

[root@localhost Server]# 

 

#2

2

 

what's wrong here

#3

I searched the forum but couldn't find anything so I'm opening a topic.

#4

U can try using 

ldconfig -p | grep libboost_thread-gcc44-mt-d-x32-1_68

If it is not found something is wrong, or you did not compile said lib, or maybe the boost version is wrong, or that x32 codename is wrong or something like that, checking if the lib exists is your starting point

#5

You said many variations of this command but it didn't write anything to the screen.  

#6

2

#7

FiXED.

#8


On 2/25/2024 at 7:47 PM, darklord said:




FiXED.




is a nice common to share solution on a forum, btw, may be the wrong makefile (some times ago it raise an error on lboost) ... but since i see the boost version 1.70, should be the wrong boost version maybe... 

#9

Absolutely. The solution to the problem was that libboost was missing.



Forum Jump:


Users browsing this thread: 1 Guest(s)