Compiling berkeley db

IRIX/Nekoware development, porting and related topics.
Forum rules
Any posts concerning pirated software or offering to buy/sell/trade commercial software are subject to removal.
User avatar
miunk
Posts: 346
Joined: Sun Feb 08, 2004 5:17 pm
Location: quito

Compiling berkeley db

Unread postby miunk » Wed Jul 14, 2004 8:56 pm

I keep receiving unresolved symbols when configuring apache sources against an installation of berkeley db that I've already installed. I am fairly certain that my compilation of berkeley db was somehow flawed.

Configure.log yields unresolved symbols "pthread_condattr_init" amongst others. This comes after warnings that /usr/lib32/libpthread.so is not used for resolving any symbols.

Anyone seen this before? I am using gcc 3.3.3.

shrek
Posts: 260
Joined: Fri Apr 18, 2003 1:32 pm
Location: Vleuten, The Netherlands
Contact:

Unread postby shrek » Thu Jul 15, 2004 12:27 am

I recently tried to build Berkely DB using MIPSpro for Subversion, everything goes fine until I run the subversion admin tools and it complains that Berkely DB isn't working correctly... I eventually gave up on it and downloaded the freeware version ;)

hgohel
Posts: 11
Joined: Sat Sep 17, 2005 8:02 pm
Contact:

Unread postby hgohel » Sat Sep 17, 2005 8:07 pm

So far, I've been able to compile subversion, but not install it. My configure options are:

configurion --without-berkeley-db -disable-nls

Even though the build works, 'gmake install' fails. I posted a thread on USENET comp.sys.sgi.apps:

http://groups.google.com/group/comp.sys.sgi.apps/msg/09c6df1e1311e775?hl=en&

Any ideas?

User avatar
zahal
Posts: 812
Joined: Fri May 27, 2005 11:43 am

Re: Compiling berkeley db

Unread postby zahal » Sat Dec 26, 2009 11:05 am

I get similar errors compiling dbus 1.2.16:

Code: Select all


ld32: ERROR 33: Unresolved data symbol "pthread_condattr_init" -- 1st referenced by .. dbus/.libs/libdbus-convenience.a(dbus-sysdeps-pthread.o).

d32: ERROR 33: Unresolved data symbol "pthread_condattr_destroy" -- 1st referenced by .. dbus/.libs/libdbus-convenience.a(dbus-sysdeps-pthread.o).



The compiler informs that /usr/lib32/libpthread.so is not used for resolving any symbols.
I'm using gcc 4.4.2 and irix 6.5.22

Is there something missing in libpthread on 6.5.22?
Sitting in a room.....thinkin' shit up. :evil:

:O2: 400MHz R12k - :320: Dual 550MHz PIII - Apple G4 Cube dual 500MHz/GF6200 - Newton Messagepad 2100 - Apple PowerBook 2400c/G3@240 - DECstation5000/133 - Apple Workgroup Server 9150/120 G3@280 - Apple Macintosh IIfx - Apple Macintosh Color Classic (Mystic upgrade) - Sun Cobalt Cube 3 - Tadpole RDI UltraBook IIi - Digital HiNote Ultra II - HP 200LX

User avatar
porter
Posts: 2917
Joined: Wed Nov 01, 2006 11:37 pm
Location: NZ

Re: Compiling berkeley db

Unread postby porter » Sat Dec 26, 2009 11:39 am

zahal wrote:Is there something missing in libpthread on 6.5.22?


No.

Try

Code: Select all

nm /usr/lib/libpthread.so
Land of the Long White Cloud and no Software Patents.

User avatar
zahal
Posts: 812
Joined: Fri May 27, 2005 11:43 am

Re: Compiling berkeley db

Unread postby zahal » Sat Dec 26, 2009 12:12 pm

porter wrote:
zahal wrote:Is there something missing in libpthread on 6.5.22?


No.

Try

Code: Select all

nm /usr/lib/libpthread.so


No symbols there, but nevermind, issue was with command line option to use pthread.
Using -pthread instead of -lpthread compilation is succesful.
Sitting in a room.....thinkin' shit up. :evil:

:O2: 400MHz R12k - :320: Dual 550MHz PIII - Apple G4 Cube dual 500MHz/GF6200 - Newton Messagepad 2100 - Apple PowerBook 2400c/G3@240 - DECstation5000/133 - Apple Workgroup Server 9150/120 G3@280 - Apple Macintosh IIfx - Apple Macintosh Color Classic (Mystic upgrade) - Sun Cobalt Cube 3 - Tadpole RDI UltraBook IIi - Digital HiNote Ultra II - HP 200LX

User avatar
porter
Posts: 2917
Joined: Wed Nov 01, 2006 11:37 pm
Location: NZ

Re: Compiling berkeley db

Unread postby porter » Sat Dec 26, 2009 12:18 pm

I meant lib32...

Code: Select all

bash-2.05b$ nm /usr/lib32/libpthread.so | grep MIPS_TEXT | grep pthread
[36]    | 201609564|     596|FUNC |GLOB |DEFAULT  |MIPS_TEXT|pthread_cancel
[37]    | 201610708|     476|FUNC |GLOB |DEFAULT  |MIPS_TEXT|pthread_setcanceltype
[39]    | 201611796|      32|FUNC |GLOB |DEFAULT  |MIPS_TEXT|pthread_condattr_init
[40]    | 201611828|       8|FUNC |GLOB |DEFAULT  |MIPS_TEXT|pthread_condattr_destroy
[41]    | 201611836|      24|FUNC |GLOB |DEFAULT  |MIPS_TEXT|pthread_condattr_getpshared
[42]    | 201611860|      68|FUNC |GLOB |DEFAULT  |MIPS_TEXT|pthread_condattr_setpshared
[43]    | 201618324|     180|FUNC |GLOB |DEFAULT  |MIPS_TEXT|pthread_atfork
[44]    | 201621408|     540|FUNC |GLOB |DEFAULT  |MIPS_TEXT|pthread_key_create
[45]    | 201621948|     212|FUNC |GLOB |DEFAULT  |MIPS_TEXT|pthread_setspecific
[46]    | 201622160|     144|FUNC |GLOB |DEFAULT  |MIPS_TEXT|__pthread_getspecific_addr
[47]    | 201622304|      44|FUNC |GLOB |DEFAULT  |MIPS_TEXT|pthread_getspecific
[48]    | 201622348|      80|FUNC |GLOB |DEFAULT  |MIPS_TEXT|pthread_key_delete
[50]    | 201626248|      24|FUNC |GLOB |DEFAULT  |MIPS_TEXT|pthread_mutexattr_getpshared
[51]    | 201626364|     164|FUNC |GLOB |DEFAULT  |MIPS_TEXT|pthread_mutexattr_setprotocol
[52]    | 201626528|      16|FUNC |GLOB |DEFAULT  |MIPS_TEXT|pthread_mutexattr_getprotocol
[53]    | 201626624|     148|FUNC |GLOB |DEFAULT  |MIPS_TEXT|pthread_mutexattr_settype
[54]    | 201626772|      16|FUNC |GLOB |DEFAULT  |MIPS_TEXT|pthread_mutexattr_gettype
[55]    | 201634464|     488|FUNC |GLOB |DEFAULT  |MIPS_TEXT|pthread_mutex_setprioceiling
[56]    | 201634952|      16|FUNC |GLOB |DEFAULT  |MIPS_TEXT|pthread_mutex_getprioceiling
[57]    | 201635504|     436|FUNC |GLOB |DEFAULT  |MIPS_TEXT|pthread_once
[58]    | 201638768|      12|FUNC |GLOB |DEFAULT  |MIPS_TEXT|pthread_equal
[59]    | 201638780|     944|FUNC |GLOB |DEFAULT  |MIPS_TEXT|pthread_join
[60]    | 201639724|     448|FUNC |GLOB |DEFAULT  |MIPS_TEXT|pthread_detach
[62]    | 201644560|      16|FUNC |GLOB |DEFAULT  |MIPS_TEXT|pthread_attr_getstacksize
[63]    | 201644588|      16|FUNC |GLOB |DEFAULT  |MIPS_TEXT|pthread_attr_getstackaddr
[64]    | 201644604|      12|FUNC |GLOB |DEFAULT  |MIPS_TEXT|pthread_attr_setguardsize
[65]    | 201644616|      16|FUNC |GLOB |DEFAULT  |MIPS_TEXT|pthread_attr_getguardsize
[66]    | 201644696|      20|FUNC |GLOB |DEFAULT  |MIPS_TEXT|pthread_attr_getdetachstate
[67]    | 201645132|      64|FUNC |GLOB |DEFAULT  |MIPS_TEXT|pthread_attr_getscope
[68]    | 201645196|      68|FUNC |GLOB |DEFAULT  |MIPS_TEXT|pthread_attr_setinheritsched
[69]    | 201645264|      24|FUNC |GLOB |DEFAULT  |MIPS_TEXT|pthread_attr_getinheritsched
[70]    | 201645288|      84|FUNC |GLOB |DEFAULT  |MIPS_TEXT|pthread_attr_setschedpolicy
[71]    | 201645372|      24|FUNC |GLOB |DEFAULT  |MIPS_TEXT|pthread_attr_getschedpolicy
[72]    | 201645396|     192|FUNC |GLOB |DEFAULT  |MIPS_TEXT|pthread_attr_setschedparam
[73]    | 201645588|      24|FUNC |GLOB |DEFAULT  |MIPS_TEXT|pthread_attr_getschedparam
[75]    | 201645864|      32|FUNC |GLOB |DEFAULT  |MIPS_TEXT|pthread_rwlockattr_init
[76]    | 201645896|       8|FUNC |GLOB |DEFAULT  |MIPS_TEXT|pthread_rwlockattr_destroy
[77]    | 201645904|      24|FUNC |GLOB |DEFAULT  |MIPS_TEXT|pthread_rwlockattr_getpshared
[78]    | 201645928|      68|FUNC |GLOB |DEFAULT  |MIPS_TEXT|pthread_rwlockattr_setpshared
[79]    | 201646204|     124|FUNC |GLOB |DEFAULT  |MIPS_TEXT|pthread_rwlock_destroy
[80]    | 201646328|      88|FUNC |GLOB |DEFAULT  |MIPS_TEXT|pthread_rwlock_tryrdlock
[81]    | 201646416|      88|FUNC |GLOB |DEFAULT  |MIPS_TEXT|pthread_rwlock_trywrlock
[82]    | 201669056|     140|FUNC |GLOB |DEFAULT  |MIPS_TEXT|pthread_getrunon_np
[83]    | 201669196|     132|FUNC |GLOB |DEFAULT  |MIPS_TEXT|pthread_setrunon_np
[84]    | 201669328|     260|FUNC |GLOB |DEFAULT  |MIPS_TEXT|pthread_getschedparam
[85]    | 201669588|     628|FUNC |GLOB |DEFAULT  |MIPS_TEXT|pthread_setschedparam
[265]   | 201610160|     548|FUNC |GLOB |DEFAULT  |MIPS_TEXT|pthread_setcancelstate
[266]   | 201611184|     280|FUNC |GLOB |DEFAULT  |MIPS_TEXT|pthread_testcancel
[267]   | 201611464|      16|FUNC |GLOB |DEFAULT  |MIPS_TEXT|__pthread_cancel_list
[268]   | 201611928|      76|FUNC |GLOB |DEFAULT  |MIPS_TEXT|pthread_cond_init
[269]   | 201612004|     144|FUNC |GLOB |DEFAULT  |MIPS_TEXT|pthread_cond_destroy
[270]   | 201612148|     476|FUNC |GLOB |DEFAULT  |MIPS_TEXT|pthread_cond_signal
[271]   | 201612792|     664|FUNC |GLOB |DEFAULT  |MIPS_TEXT|pthread_cond_broadcast
[272]   | 201613620|     652|FUNC |GLOB |DEFAULT  |MIPS_TEXT|pthread_cond_wait
[273]   | 201614732|    1380|FUNC |GLOB |DEFAULT  |MIPS_TEXT|pthread_cond_timedwait
[274]   | 201626200|      40|FUNC |GLOB |DEFAULT  |MIPS_TEXT|pthread_mutexattr_init
[275]   | 201626240|       8|FUNC |GLOB |DEFAULT  |MIPS_TEXT|pthread_mutexattr_destroy
[276]   | 201626272|      92|FUNC |GLOB |DEFAULT  |MIPS_TEXT|pthread_mutexattr_setpshared
[277]   | 201626544|      64|FUNC |GLOB |DEFAULT  |MIPS_TEXT|pthread_mutexattr_setprioceiling
[278]   | 201626608|      16|FUNC |GLOB |DEFAULT  |MIPS_TEXT|pthread_mutexattr_getprioceiling
[279]   | 201626900|     104|FUNC |GLOB |DEFAULT  |MIPS_TEXT|pthread_mutex_init
[280]   | 201627004|     148|FUNC |GLOB |DEFAULT  |MIPS_TEXT|pthread_mutex_destroy
[281]   | 201627152|     336|FUNC |GLOB |DEFAULT  |MIPS_TEXT|pthread_mutex_trylock
[282]   | 201628084|     396|FUNC |GLOB |DEFAULT  |MIPS_TEXT|pthread_mutex_lock
[283]   | 201631252|     404|FUNC |GLOB |DEFAULT  |MIPS_TEXT|pthread_mutex_unlock
[284]   | 201638216|      80|FUNC |GLOB |DEFAULT  |MIPS_TEXT|pthread_self
[285]   | 201638296|     472|FUNC |GLOB |DEFAULT  |MIPS_TEXT|pthread_create
[286]   | 201640172|     408|FUNC |GLOB |DEFAULT  |MIPS_TEXT|pthread_exit
[287]   | 201644464|      56|FUNC |GLOB |DEFAULT  |MIPS_TEXT|pthread_attr_init
[288]   | 201644520|       8|FUNC |GLOB |DEFAULT  |MIPS_TEXT|pthread_attr_destroy
[289]   | 201644528|      32|FUNC |GLOB |DEFAULT  |MIPS_TEXT|pthread_attr_setstacksize
[290]   | 201644576|      12|FUNC |GLOB |DEFAULT  |MIPS_TEXT|pthread_attr_setstackaddr
[291]   | 201644632|      64|FUNC |GLOB |DEFAULT  |MIPS_TEXT|pthread_attr_setdetachstate
[292]   | 201644716|     416|FUNC |GLOB |DEFAULT  |MIPS_TEXT|pthread_attr_setscope
[293]   | 201645996|     208|FUNC |GLOB |DEFAULT  |MIPS_TEXT|pthread_rwlock_init
[294]   | 201646504|     772|FUNC |GLOB |DEFAULT  |MIPS_TEXT|pthread_rwlock_rdlock
[295]   | 201647604|     760|FUNC |GLOB |DEFAULT  |MIPS_TEXT|pthread_rwlock_wrlock
[296]   | 201648644|     688|FUNC |GLOB |DEFAULT  |MIPS_TEXT|pthread_rwlock_unlock
[297]   | 201651620|     784|FUNC |GLOB |DEFAULT  |MIPS_TEXT|pthread_kill
[298]   | 201652404|     644|FUNC |GLOB |DEFAULT  |MIPS_TEXT|pthread_sigmask
[299]   | 201668404|      40|FUNC |GLOB |DEFAULT  |MIPS_TEXT|pthread_getconcurrency
[300]   | 201668444|     612|FUNC |GLOB |DEFAULT  |MIPS_TEXT|pthread_setconcurrency
Land of the Long White Cloud and no Software Patents.


Return to “SGI: Development”

Who is online

Users browsing this forum: No registered users and 2 guests