ich möchte mmsv2 unter sarge compilieren. Dieses braucht aber libccext2.pc von commoncpp2.
Nun habe ich die neue Version (habe auch die CVS probiert) von commoncpp versucht zu compilieren...
benutze ich nur ./configure bekomme ich diese Fehlermeldung:
Code: Alles auswählen
checking for thread.h... no
checking whether gcc accepts -kthread... no
checking whether gcc accepts -pthread... yes
checking for pthread_self in -lpthread... no
checking for pthread_self in -lc_r... no
checking for pthread_kill in -lpthread... no
checking for pthread_self in -lpthreads... no
checking for pthread_self in -lthread... no
checking for pthread_self in -lgthreads... no
checking for pthread_self in -lcma... no
checking for pthread_self in -lc... no
configure: error: no library for posix threads found!
Nun habe ich dies aufgerufen: ./configure --with-pthread=/lib/libpthread.so.0
Da läuft das Script durch, jedoch bekomme ich beim make diese Fehler:
Code: Alles auswählen
vdr:/usr/src/mmsv2/mmsv2--mainline--1.0.5--patch-41/libs/commoncpp2# make
Making all in include
make[1]: Entering directory `/usr/src/mmsv2/mmsv2--mainline--1.0.5--patch-41/libs/commoncpp2/include'
make all-recursive
make[2]: Entering directory `/usr/src/mmsv2/mmsv2--mainline--1.0.5--patch-41/libs/commoncpp2/include'
Making all in cc++
make[3]: Entering directory `/usr/src/mmsv2/mmsv2--mainline--1.0.5--patch-41/libs/commoncpp2/include/cc++'
make[3]: Für das Ziel »all« ist nichts zu tun.
make[3]: Leaving directory `/usr/src/mmsv2/mmsv2--mainline--1.0.5--patch-41/libs/commoncpp2/include/cc++'
make[3]: Entering directory `/usr/src/mmsv2/mmsv2--mainline--1.0.5--patch-41/libs/commoncpp2/include'
make[3]: Für das Ziel »all-am« ist nichts zu tun.
make[3]: Leaving directory `/usr/src/mmsv2/mmsv2--mainline--1.0.5--patch-41/libs/commoncpp2/include'
make[2]: Leaving directory `/usr/src/mmsv2/mmsv2--mainline--1.0.5--patch-41/libs/commoncpp2/include'
make[1]: Leaving directory `/usr/src/mmsv2/mmsv2--mainline--1.0.5--patch-41/libs/commoncpp2/include'
Making all in src
make[1]: Entering directory `/usr/src/mmsv2/mmsv2--mainline--1.0.5--patch-41/libs/commoncpp2/src'
/bin/sh ../libtool --mode=compile g++ -DHAVE_CONFIG_H -I. -I. -I../include -I../src -DCCXX_EXPORT_LIBRARY -D_GNU_SOURCE -I/usr/include/libxml2 -I../include -g -O2 -c thread.cpp
g++ -DHAVE_CONFIG_H -I. -I. -I../include -I../src -DCCXX_EXPORT_LIBRARY -D_GNU_SOURCE -I/usr/include/libxml2 -I../include -g -O2 -c thread.cpp -fPIC -DPIC -o .libs/thread.o
In file included from /usr/include/sys/un.h:38,
from ../include/cc++/config.h:786,
from thread.cpp:38:
/usr/include/string.h:248: error: parse error before `char'
make[1]: *** [thread.lo] Fehler 1
make[1]: Leaving directory `/usr/src/mmsv2/mmsv2--mainline--1.0.5--patch-41/libs/commoncpp2/src'
make: *** [all-recursive] Fehler 1