On 28/11/11 12:43, Andrew Benton wrote: > Hello, > When I try to install nspr-4.8.9 configure fails like so: > > checking for pthread_create in -lpthreads... no > checking for pthread_create in -lpthread... no > checking for pthread_create in -lc_r... no > checking for pthread_create in -lc... no > configure: error: --with-pthreads specified for a system without pthread > support > > looking at config.log I see:configure:5934: checking for pthread_create in > -lpthread > gcc -m32 -o dummy dummy.c -Wall -lpthread > In file included from /usr/include/features.h:382:0, > from /usr/include/pthread.h:23, > from dummy.c:2: > /usr/include/gnu/stubs.h:7:27: fatal error: gnu/stubs-32.h: No such file or > directory > compilation terminated. > > The problem is the -m32 switch, it doesn't work on an x86_64 system. If > I take out the -m32 that out then the command succeeds: > > sed -i 's# -m32##' configure > > With that sed the build succeeds and installs, but is it wise? There > must be a reason that they make the CC command CC="$CC -m32" > > Either we sed configure to remove -m32, we stop using the > --with-pthreads option or we only use the the --with-pthreads option on > i386. I'll try installing it with the sed and build Firefox against it > tomorrow. > > Andy
Andy, I didn't have a problem building this on a x86_64 system. You did add the --enable-64bit parameter? Regards, Wayne. -- http://linuxfromscratch.org/mailman/listinfo/blfs-dev FAQ: http://www.linuxfromscratch.org/blfs/faq.html Unsubscribe: See the above information page
