Server Help Forum Index Server Help
Community forums for Subgame, ASSS, and bots
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   StatisticsStatistics   RegisterRegister 
 ProfileProfile   Login to check your private messagesLogin to check your private messages   LoginLogin (SSL) 

Server Help | ASSS Wiki (0) | Shanky.com
undefined reference

 
Post new topic   Reply to topic Printable version
 View previous topic  Zone Red Post :: Post any python examples?  View next topic  
Author Message
make and BDB
Guest


Offline

PostPosted: Sat Nov 13, 2004 9:53 pm    Post subject: undefined reference Reply to topic Reply with quote

I get these problems when I goto run make.
Code: Show/Hide
[root@S01060007954abe6e src]# make
gcc -std=gnu99 -pipe  -fPIC  -DNODQ -DNOTREAP -DNOSTRINGCHUNK -DNOMPQUEUE -DNOMMAP -o dbtool dbtool.o statcodes.o util.c -L/usr/local/BerkeleyDB.4.3/lib -Wl,-rpath,/usr/local/BerkeleyDB.4.3/lib -ldb-4
/usr/local/BerkeleyDB.4.3/lib/libdb-4.so: undefined reference to `pthread_condattr_setpshared'
/usr/local/BerkeleyDB.4.3/lib/libdb-4.so: undefined reference to `pthread_mutexattr_destroy'
/usr/local/BerkeleyDB.4.3/lib/libdb-4.so: undefined reference to `pthread_mutexattr_setpshared'
/usr/local/BerkeleyDB.4.3/lib/libdb-4.so: undefined reference to `pthread_mutexattr_init'
/usr/local/BerkeleyDB.4.3/lib/libdb-4.so: undefined reference to `pthread_mutex_trylock'
collect2: ld returned 1 exit status
make: *** [dbtool] Error 1
[root@S01060007954abe6e src]#


I am pretty sure I have the directies correct in 'Makefile' . Bad install? Me being a newb? who knows! Does any one know what is wrong or how to fix this?
Back to top
Zip
Newbie


Joined: Aug 31 2004
Posts: 9
Offline

PostPosted: Sat Nov 13, 2004 9:56 pm    Post subject: Reply to topic Reply with quote

Ermm the above was me and I mistook the subject element from IPB for the guest name. oopsie.

Anyways, here is the make file that I meant to attach previously.
And also, I forgto to mention Im running Fedora 10.1.




Makefile.txt - 6.54 KB
File downloaded or viewed 25 time(s)
Back to top
View users profile Send private message Add User to Ignore List
i88gerbils
Oldbie Server Help


Gender:Gender:Male
Joined: Dec 13 2002
Posts: 423
Location: OH
Offline

PostPosted: Sat Nov 13, 2004 11:56 pm    Post subject: Reply to topic Reply with quote

what is the output of ldd /usr/local/BerkeleyDB.4.3/lib/libdb-4.so?

Maybe it isn't linking pthreads correctly. I searched google and found some information...
_________________
Oldbie Server Help
Back to top
View users profile Send private message Add User to Ignore List Send email Visit posters website Yahoo Messenger
-Smong-
Guest


Offline

PostPosted: Sun Nov 14, 2004 6:06 am    Post subject: Reply to topic Reply with quote

I think you need to link pthreads in with your bdb. Add -lpthread somewhere, there's probably a var that stores the names of the libs in the asss Makefile.
Back to top
Grelminar
Creator of Asss


Joined: Feb 26 2003
Posts: 378
Offline

PostPosted: Mon Nov 15, 2004 12:29 am    Post subject: Reply to topic Reply with quote

I think BDB is usually built without pthread support, but I guess yours is. Smong is correct, you need to add "-lpthread" somewhere. I would try adding it to the end of the line that starts with "DB_LDFLAGS = ".
Back to top
View users profile Send private message Add User to Ignore List Send email Visit posters website
Display posts from previous:   
Post new topic   Reply to topic    Server Help Forum Index -> ASSS Questions All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum
View online users | View Statistics | View Ignored List


Software by php BB © php BB Group
Server Load: 48 page(s) served in previous 5 minutes.

phpBB Created this page in 0.459391 seconds : 32 queries executed (94.6%): GZIP compression disabled