I have problems to compile siproxd (0.5.x) on my SuSE 8.2 machine.
"checking for the pthreads library -lpthreads... no
checking whether pthreads work without any flags... no
checking whether pthreads work with -Kthread... no
checking whether pthreads work with -kthread... no
checking for the pthreads library -llthread... no
checking whether pthreads work with -pthread... no
checking whether pthreads work with -pthreads... no
checking whether pthreads work with -mthreads... no
checking for the pthreads library -lpthread... no
checking whether pthreads work with --thread-safe... no
checking whether pthreads work with -mt... no
*** ERROR: pthreads is required!"
Any one a Idea?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
You should see something like
# /sbin/ldconfig -p |grep pthread
libpthread.so.0 (libc6, OS ABI: Linux 2.2.5) => /lib/libpthread.so.0
libgnomevfs-pthread.so (libc6) => /usr/lib/libgnomevfs-pthread.so
If not, install pthreads. Refer to the SUSE documentation how to acomplish this.
Regards,
/Thomas
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
# ldconfig -p |grep pthread
libpthread.so.0 (libc6, OS ABI: Linux 2.2.5) => /lib/libpthread.so.0
libgnomevfs-pthread.so (libc6) => /opt/gnome/lib/libgnomevfs-pthread.so
|||||
|||||
|||||
|||
|
# ./configure
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for gawk... (cached) gawk
checking for gcc... gcc
checking for C compiler default output... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking how to run the C preprocessor... gcc -E
checking for ranlib... ranlib
checking for a BSD-compatible install... /usr/bin/install -c
checking whether ln -s works... yes
checking for docbook2pdf... no
checking for docbook2html... no
checking "extra includes"...
checking "extra libs"...
checking build statically linked executable... no
checking building with DMALLOC support... no
checking target platform... Linux
checking whether build for FLI4L 2.0.x libc5 ... no
checking whether build for FLI4L 2.1.x uClibc... no
checking whether build for FLI4L 2.2.x uClibc... no
checking for the pthreads library -lpthreads... no
checking whether pthreads work without any flags... no
checking whether pthreads work with -Kthread... no
checking whether pthreads work with -kthread... no
checking for the pthreads library -llthread... no
checking whether pthreads work with -pthread... no
checking whether pthreads work with -pthreads... no
checking whether pthreads work with -mthreads... no
checking for the pthreads library -lpthread... no
checking whether pthreads work with --thread-safe... no
checking whether pthreads work with -mt... no
*** ERROR: pthreads is required!
(there is the complete output of ./configure)
It does NOT work.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
The following part of the config.log makes me believe that you have somehow managed to corrupt your C header files:
configure: failed program was:
| #line 3791 "configure"
| /* confdefs.h. */
|
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE "siproxd"
| #define VERSION "0.5.12"
| #define UNAME "i686-pc-linux-gnu"
| #define _LINUX
| /* end confdefs.h. */
| #include <pthread.h>
| int
| main ()
| {
| pthread_t th; pthread_join(th, 0);
| pthread_attr_init(0); pthread_cleanup_push(0, 0);
| pthread_create(0,0,0,0); pthread_cleanup_pop(0);
| ;
| return 0;
| }
configure:3832: result: no
configure:3771: checking for the pthreads library -lpthread
configure:3810: gcc -o conftest -g -O2 conftest.c -lpthread >&5
In file included from /usr/include/sched.h:32,
from /usr/include/pthread.h:20,
from configure:3803:
/usr/include/bits/sched.h:24:71: missing terminating " character
In file included from /usr/include/bits/pthreadtypes.h:23,
from /usr/include/pthread.h:25,
from configure:3803:
/usr/include/bits/sched.h:24:71: missing terminating " character
make sure that /usr/include/bits/sched.h has not been modified/corrupted and/or reinstall it.
Hint: It might be a wise idea to work under the root user *only* when it is required (like INSTALLING software). BUILDING software almost *never* required root privileges.
/Thomas
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello.
I have problems to compile siproxd (0.5.x) on my SuSE 8.2 machine.
"checking for the pthreads library -lpthreads... no
checking whether pthreads work without any flags... no
checking whether pthreads work with -Kthread... no
checking whether pthreads work with -kthread... no
checking for the pthreads library -llthread... no
checking whether pthreads work with -pthread... no
checking whether pthreads work with -pthreads... no
checking whether pthreads work with -mthreads... no
checking for the pthreads library -lpthread... no
checking whether pthreads work with --thread-safe... no
checking whether pthreads work with -mt... no
*** ERROR: pthreads is required!"
Any one a Idea?
Do you have the pthreads library installed?
Do as root:
# ldconfig -p |grep pthread
You should see something like
# /sbin/ldconfig -p |grep pthread
libpthread.so.0 (libc6, OS ABI: Linux 2.2.5) => /lib/libpthread.so.0
libgnomevfs-pthread.so (libc6) => /usr/lib/libgnomevfs-pthread.so
If not, install pthreads. Refer to the SUSE documentation how to acomplish this.
Regards,
/Thomas
# ldconfig -p |grep pthread
libpthread.so.0 (libc6, OS ABI: Linux 2.2.5) => /lib/libpthread.so.0
I cant see "ibgnomevfs-pthread.so (libc6) => /usr/lib/libgnomevfs-pthread.so"
I'll be look to update my SuSE.
THX
# ldconfig -p |grep pthread
libpthread.so.0 (libc6, OS ABI: Linux 2.2.5) => /lib/libpthread.so.0
libgnomevfs-pthread.so (libc6) => /opt/gnome/lib/libgnomevfs-pthread.so
|||||
|||||
|||||
|||
|
# ./configure
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for gawk... (cached) gawk
checking for gcc... gcc
checking for C compiler default output... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking how to run the C preprocessor... gcc -E
checking for ranlib... ranlib
checking for a BSD-compatible install... /usr/bin/install -c
checking whether ln -s works... yes
checking for docbook2pdf... no
checking for docbook2html... no
checking "extra includes"...
checking "extra libs"...
checking build statically linked executable... no
checking building with DMALLOC support... no
checking target platform... Linux
checking whether build for FLI4L 2.0.x libc5 ... no
checking whether build for FLI4L 2.1.x uClibc... no
checking whether build for FLI4L 2.2.x uClibc... no
checking for the pthreads library -lpthreads... no
checking whether pthreads work without any flags... no
checking whether pthreads work with -Kthread... no
checking whether pthreads work with -kthread... no
checking for the pthreads library -llthread... no
checking whether pthreads work with -pthread... no
checking whether pthreads work with -pthreads... no
checking whether pthreads work with -mthreads... no
checking for the pthreads library -lpthread... no
checking whether pthreads work with --thread-safe... no
checking whether pthreads work with -mt... no
*** ERROR: pthreads is required!
(there is the complete output of ./configure)
It does NOT work.
Can you send the resulting config.log file directly via email to my SF account (is too big for the forum)? I'll have a look at it.
Also please include the following information:
$ locate libpthread
$ locate pthread.h
$ uname -a
what version of glibc are you using?
$ gcc --version
/Thomas
The following part of the config.log makes me believe that you have somehow managed to corrupt your C header files:
configure: failed program was:
| #line 3791 "configure"
| /* confdefs.h. */
|
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE "siproxd"
| #define VERSION "0.5.12"
| #define UNAME "i686-pc-linux-gnu"
| #define _LINUX
| /* end confdefs.h. */
| #include <pthread.h>
| int
| main ()
| {
| pthread_t th; pthread_join(th, 0);
| pthread_attr_init(0); pthread_cleanup_push(0, 0);
| pthread_create(0,0,0,0); pthread_cleanup_pop(0);
| ;
| return 0;
| }
configure:3832: result: no
configure:3771: checking for the pthreads library -lpthread
configure:3810: gcc -o conftest -g -O2 conftest.c -lpthread >&5
In file included from /usr/include/sched.h:32,
from /usr/include/pthread.h:20,
from configure:3803:
/usr/include/bits/sched.h:24:71: missing terminating " character
In file included from /usr/include/bits/pthreadtypes.h:23,
from /usr/include/pthread.h:25,
from configure:3803:
/usr/include/bits/sched.h:24:71: missing terminating " character
make sure that /usr/include/bits/sched.h has not been modified/corrupted and/or reinstall it.
Hint: It might be a wise idea to work under the root user *only* when it is required (like INSTALLING software). BUILDING software almost *never* required root privileges.
/Thomas
Many Thanks.
Affter i add an " on line 24 in sched.h it been works without problems.
Now i have compiled the Siproxd.
Thank You, Thomas