The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Advanced & Expert Users
.
google unix.com



UNIX for Advanced & Expert Users Expert-to-Expert. Learn advanced UNIX, UNIX commands, Linux, Operating Systems, System Administration, Programming, Shell, Shell Scripts, Solaris, Linux, HP-UX, AIX, OS X, BSD.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Help with SunStudio Compile for firefox - static build biea SUN Solaris 3 02-14-2008 06:38 PM
C compile error kuampang High Level Programming 3 11-30-2006 12:30 AM
how to solve error : Bind: Address Already in Use bhakti High Level Programming 2 07-27-2006 04:12 PM
ldap bind error mridula High Level Programming 2 12-06-2005 06:13 PM
bind() error Virtuosso IP Networking 2 06-07-2002 06:17 AM

 
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1 (permalink)  
Old 07-26-2005
MixmasterMike MixmasterMike is offline
Registered User
  
 

Join Date: Jul 2005
Posts: 1
lpthread error when trying to compile static BIND

Hi,

Ive run into a hurdle trying to compile a static build of BIND-9.3.1.

./configure
completes fine and then i kick off make with:
env CFLAGS=" -static -z muldefs -g -O2" make -e

It gets about halfway before dying with the following error:

make[2]: Entering directory `/usr/local/install/BIND/bind-9.3.1/lib/dns'
gcc -static -z muldefs -g -O2 -I/usr/local/install/BIND/bind-9.3.1 -I. -Iinclude -I/usr/local/install/BIND/bind-9.3.1/lib/dns/include -I../../lib/dns/include -I/usr/local/install/BIND/bind-9.3.1/lib/isc/include -I../../lib/isc -I../../lib/isc/include -I../../lib/isc/unix/include -I../../lib/isc/pthreads/include -D_REENTRANT -DUSE_MD5 -D_XPG4_2 -D__EXTENSIONS__ -W -Wall -Wmissing-prototypes -Wcast-qual -Wwrite-strings -Wformat -o gen ./gen.c -lnsl -lsocket -lpthread -lthread
ld: fatal: library -lpthread: not found
ld: fatal: library -lthread: not found
ld: fatal: File processing errors. No output written to gen
collect2: ld returned 1 exit status
make[2]: *** [gen] Error 1
make[2]: Leaving directory `/usr/local/install/BIND/bind-9.3.1/lib/dns'
make[1]: *** [subdirs] Error 1
make[1]: Leaving directory `/usr/local/install/BIND/bind-9.3.1/lib'
make: *** [subdirs] Error 1


It looks like it cant find a library group somewhere but im not sure where. Any ideas would be appreciated.

Im running a SPARC Solaris 9, with the GCC, Make and PERL packages from Sunfreeware.
PATH=/usr/local/bin:/usr/ccs/bin:/usr/ccs/lib:/usr/include:/usr/ucb:/usr/local/samba/bin:/usr/local/samba/sbin:/usr/sbin:/usr/bin

Regards,
Michael
 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 07:15 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0