Trouble compiling on FreeBSD i386

"kazez_ultralingua" <[email protected]>
Newsgroups gmane.text.clearsilver.general
Message-ID <[email protected]>
Hello,

I'm having trouble compiling clearsilver on i386 FreeBSD. What can I do to fix the pthread 
errors I'm seeing? Also, is this line of the ./configure output a problem?

checking for apache 1.3.x... ./configure: line 1: /usr/local/sbin/httpd: No such file or 
directory
found  - disabling module build

Thanks!
Ben

=============

./configure --with-apache=/usr/pair/apache/bin/httpd --with-python=/usr/home/
ulcom/bin/python --disable-ruby

checking for gcc... gcc
checking for C compiler default output file name... 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 how to run the C preprocessor... gcc -E
checking whether ln -s works... yes
checking for ar... ar
checking for ranlib... ranlib
checking whether make sets $(MAKE)... yes
checking for a BSD-compatible install... /usr/bin/install -c
checking for Neotonic Paths... not found
checking for dirent.h that defines DIR... yes
checking for library containing opendir... none required
checking for egrep... grep -E
checking for ANSI C header files... yes
checking for sys/wait.h that is POSIX.1 compatible... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... no
checking for unistd.h... yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking stdarg.h usability... yes
checking stdarg.h presence... yes
checking for stdarg.h... yes
checking varargs.h usability... yes
checking varargs.h presence... yes
checking for varargs.h... yes
checking limits.h usability... yes
checking limits.h presence... yes
checking for limits.h... yes
checking for strings.h... (cached) yes
checking sys/ioctl.h usability... yes
checking sys/ioctl.h presence... yes
checking for sys/ioctl.h... yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking for unistd.h... (cached) yes
checking features.h usability... no
checking features.h presence... no
checking for features.h... no
checking for an ANSI C-conforming const... yes
checking for mode_t... yes
checking for off_t... yes
checking for pid_t... yes
checking for size_t... yes
checking whether time.h and sys/time.h may both be included... yes
checking whether struct tm is in sys/time.h or time.h... time.h
checking for struct tm.tm_zone... yes
checking return type of signal handlers... void
checking for strftime... yes
checking for vprintf... yes
checking for _doprnt... no
checking for wait3 that fills in rusage... yes
checking for gettimeofday... yes
checking for mktime... yes
checking for putenv... yes
checking for strerror... yes
checking for strspn... yes
checking for strtod... yes
checking for strtol... yes
checking for strtoul... yes
checking for random... yes
checking for rand... yes
checking for drand48... yes
checking for lockf... yes
checking pthread.h usability... yes
checking pthread.h presence... yes
checking for pthread.h... yes
checking build system type... i386-unknown-freebsd4.8
checking host system type... i386-unknown-freebsd4.8
checking for snprintf... yes
checking for vsnprintf... yes
checking for localtime_r... yes
checking whether localtime_r is declared... yes
checking for gmtime_r... yes
checking whether gmtime_r is declared... yes
checking for strtok_r... yes
checking whether strtok_r is declared... yes
checking for mkstemp... yes
checking for regexec... yes
checking for deflate in -lz... yes
checking for apache apxs... found /usr/local/sbin/apxs
checking for apache 1.3.x... ./configure: line 1: /usr/local/sbin/httpd: No such file or 
directory
found  - disabling module build
checking for python includes... found /usr/home/ulcom/include/python2.5
checking for perl >= 5.006... found /usr/local/bin/perl
Disabling ruby module
checking for j2sdk path... not found
checking for csharp path... not found
configure: creating ./config.status
config.status: creating rules.mk
config.status: creating cs_config.h
config.status: cs_config.h is unchanged

make all

make[1]: Entering directory `/usr/home/ulcom/ben/clearsilver-0.10.5/util'
*******************************************
** Building Dependencies
** OSNAME: FreeBSD
** (done)
gcc -g -O2 -Wall -I..  -fPIC -o neo_err.o -c neo_err.c
gcc -g -O2 -Wall -I..  -fPIC -o neo_files.o -c neo_files.c
gcc -g -O2 -Wall -I..  -fPIC -o neo_misc.o -c neo_misc.c
gcc -g -O2 -Wall -I..  -fPIC -o neo_rand.o -c neo_rand.c
gcc -g -O2 -Wall -I..  -fPIC -o ulist.o -c ulist.c
gcc -g -O2 -Wall -I..  -fPIC -o neo_hdf.o -c neo_hdf.c
gcc -g -O2 -Wall -I..  -fPIC -o neo_str.o -c neo_str.c
gcc -g -O2 -Wall -I..  -fPIC -o neo_date.o -c neo_date.c
gcc -g -O2 -Wall -I..  -fPIC -o wildmat.o -c wildmat.c
gcc -g -O2 -Wall -I..  -fPIC -o neo_hash.o -c neo_hash.c
gcc -g -O2 -Wall -I..  -fPIC -o ulocks.o -c ulocks.c
gcc -g -O2 -Wall -I..  -fPIC -o rcfs.o -c rcfs.c
gcc -g -O2 -Wall -I..  -fPIC -o skiplist.o -c skiplist.c
gcc -g -O2 -Wall -I..  -fPIC -o dict.o -c dict.c
gcc -g -O2 -Wall -I..  -fPIC -o filter.o -c filter.c
gcc -g -O2 -Wall -I..  -fPIC -o neo_net.o -c neo_net.c
gcc -g -O2 -Wall -I..  -fPIC -o neo_server.o -c neo_server.c
ar cr ../libs/libneo_utl.a neo_err.o neo_files.o neo_misc.o neo_rand.o ulist.o neo_hdf.o 
neo_str.o neo_date.o wildmat.o neo_hash.o ulocks.o rcfs.o skiplist.o dict.o filter.o 
neo_net.o neo_server.o
ranlib ../libs/libneo_utl.a
make[1]: Leaving directory `/usr/home/ulcom/ben/clearsilver-0.10.5/util'
make[1]: Entering directory `/usr/home/ulcom/ben/clearsilver-0.10.5/cs'
*******************************************
** Building Dependencies
** OSNAME: FreeBSD
** (done)
gcc -g -O2 -Wall -I..  -fPIC -o csparse.o -c csparse.c
ar cr ../libs/libneo_cs.a csparse.o
ranlib ../libs/libneo_cs.a
gcc -g -O2 -Wall -I..  -fPIC -o cstest.o -c cstest.c
gcc -o cstest cstest.o -L../libs/  -lz -lneo_cs -lneo_utl  # -lefence
../libs//libneo_utl.a(ulocks.o): In function `mCreate':
/usr/home/ulcom/ben/clearsilver-0.10.5/util/ulocks.c:123: undefined reference to 
`pthread_mutex_init'
../libs//libneo_utl.a(ulocks.o): In function `mDestroy':
/usr/home/ulcom/ben/clearsilver-0.10.5/util/ulocks.c:129: undefined reference to 
`pthread_mutex_destroy'
../libs//libneo_utl.a(ulocks.o): In function `mLock':
/usr/home/ulcom/ben/clearsilver-0.10.5/util/ulocks.c:141: undefined reference to 
`pthread_mutex_lock'
../libs//libneo_utl.a(ulocks.o): In function `mUnlock':
/usr/home/ulcom/ben/clearsilver-0.10.5/util/ulocks.c:151: undefined reference to 
`pthread_mutex_unlock'
../libs//libneo_utl.a(ulocks.o): In function `cCreate':
/usr/home/ulcom/ben/clearsilver-0.10.5/util/ulocks.c:163: undefined reference to 
`pthread_cond_init'
../libs//libneo_utl.a(ulocks.o): In function `cDestroy':
/usr/home/ulcom/ben/clearsilver-0.10.5/util/ulocks.c:168: undefined reference to 
`pthread_cond_destroy'
../libs//libneo_utl.a(ulocks.o): In function `cWait':
/usr/home/ulcom/ben/clearsilver-0.10.5/util/ulocks.c:180: undefined reference to 
`pthread_cond_wait'
../libs//libneo_utl.a(ulocks.o): In function `cBroadcast':
/usr/home/ulcom/ben/clearsilver-0.10.5/util/ulocks.c:191: undefined reference to 
`pthread_cond_broadcast'
../libs//libneo_utl.a(ulocks.o): In function `cSignal':
/usr/home/ulcom/ben/clearsilver-0.10.5/util/ulocks.c:201: undefined reference to 
`pthread_cond_signal'
make[1]: *** [cstest] Error 1
make[1]: Leaving directory `/usr/home/ulcom/ben/clearsilver-0.10.5/cs'
make[1]: Entering directory `/usr/home/ulcom/ben/clearsilver-0.10.5/cgi'
*******************************************
** Building Dependencies
** OSNAME: FreeBSD
** (done)
gcc -g -O2 -Wall -I..  -fPIC -o cgiwrap.o -c cgiwrap.c
gcc -g -O2 -Wall -I..  -fPIC -o cgi.o -c cgi.c
gcc -g -O2 -Wall -I..  -fPIC -o html.o -c html.c
gcc -g -O2 -Wall -I..  -fPIC -o date.o -c date.c
gcc -g -O2 -Wall -I..  -fPIC -o rfc2388.o -c rfc2388.c
ar cr ../libs/libneo_cgi.a cgiwrap.o cgi.o html.o date.o rfc2388.o
ranlib ../libs/libneo_cgi.a
gcc -g -O2 -Wall -I..  -fPIC -o static.o -c static.c
gcc -o cs_static.cgi static.o -L../libs/  -lneo_cgi -lneo_cs -lneo_utl  -lz
../libs//libneo_utl.a(ulocks.o): In function `mCreate':
/usr/home/ulcom/ben/clearsilver-0.10.5/util/ulocks.c:123: undefined reference to 
`pthread_mutex_init'
../libs//libneo_utl.a(ulocks.o): In function `mDestroy':
/usr/home/ulcom/ben/clearsilver-0.10.5/util/ulocks.c:129: undefined reference to 
`pthread_mutex_destroy'
../libs//libneo_utl.a(ulocks.o): In function `mLock':
/usr/home/ulcom/ben/clearsilver-0.10.5/util/ulocks.c:141: undefined reference to 
`pthread_mutex_lock'
../libs//libneo_utl.a(ulocks.o): In function `mUnlock':
/usr/home/ulcom/ben/clearsilver-0.10.5/util/ulocks.c:151: undefined reference to 
`pthread_mutex_unlock'
../libs//libneo_utl.a(ulocks.o): In function `cCreate':
/usr/home/ulcom/ben/clearsilver-0.10.5/util/ulocks.c:163: undefined reference to 
`pthread_cond_init'
../libs//libneo_utl.a(ulocks.o): In function `cDestroy':
/usr/home/ulcom/ben/clearsilver-0.10.5/util/ulocks.c:168: undefined reference to 
`pthread_cond_destroy'
../libs//libneo_utl.a(ulocks.o): In function `cWait':
/usr/home/ulcom/ben/clearsilver-0.10.5/util/ulocks.c:180: undefined reference to 
`pthread_cond_wait'
../libs//libneo_utl.a(ulocks.o): In function `cBroadcast':
/usr/home/ulcom/ben/clearsilver-0.10.5/util/ulocks.c:191: undefined reference to 
`pthread_cond_broadcast'
../libs//libneo_utl.a(ulocks.o): In function `cSignal':
/usr/home/ulcom/ben/clearsilver-0.10.5/util/ulocks.c:201: undefined reference to 
`pthread_cond_signal'
make[1]: *** [cs_static.cgi] Error 1
make[1]: Leaving directory `/usr/home/ulcom/ben/clearsilver-0.10.5/cgi'
make[1]: Entering directory `/usr/home/ulcom/ben/clearsilver-0.10.5/python'
*******************************************
** Building Dependencies
** OSNAME: FreeBSD
** (done)
rm -f neo_cgi.so
CC="gcc" LDSHARED="gcc -shared -fPIC" /usr/home/ulcom/bin/python setup.py 
build_ext --inplace
adding lib_path $(LIB_DIR)
adding lib z
running build_ext
building 'neo_cgi' extension
creating build
creating build/temp.freebsd-4.8-STABLE-i386-2.5
gcc -fno-strict-aliasing -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -fPIC -I../ -I/usr/
home/ulcom/include/python2.5 -c neo_cgi.c -o build/temp.freebsd-4.8-STABLE-
i386-2.5/neo_cgi.o
gcc -fno-strict-aliasing -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -fPIC -I../ -I/usr/
home/ulcom/include/python2.5 -c neo_cs.c -o build/temp.freebsd-4.8-STABLE-
i386-2.5/neo_cs.o
gcc -fno-strict-aliasing -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -fPIC -I../ -I/usr/
home/ulcom/include/python2.5 -c neo_util.c -o build/temp.freebsd-4.8-STABLE-
i386-2.5/neo_util.o
gcc -shared -fPIC build/temp.freebsd-4.8-STABLE-i386-2.5/neo_cgi.o build/
temp.freebsd-4.8-STABLE-i386-2.5/neo_cs.o build/temp.freebsd-4.8-STABLE-i386-2.5/
neo_util.o -L../libs/ -L../libs -lz -lneo_cgi -lneo_cs -lneo_utl -o neo_cgi.so
make[1]: Leaving directory `/usr/home/ulcom/ben/clearsilver-0.10.5/python'
Checking if your kit is complete...
Looks good
Warning: -L../libs changed to -L/usr/home/ulcom/ben/clearsilver-0.10.5/perl/../libs
Writing Makefile for ClearSilver
make[1]: Entering directory `/usr/home/ulcom/ben/clearsilver-0.10.5/perl'
cp ClearSilver.pm blib/lib/ClearSilver.pm
/usr/local/bin/perl /usr/local/lib/perl5/5.8.3/ExtUtils/xsubpp  -typemap /usr/local/lib/
perl5/5.8.3/ExtUtils/typemap -typemap typemap  ClearSilver.xs > ClearSilver.xsc && mv 
ClearSilver.xsc ClearSilver.c
Please specify prototyping behavior for ClearSilver.xs (see perlxs manual)
cc -c  -I../ -DHAS_FPSETMASK -DHAS_FLOATINGPOINT_H -fno-strict-aliasing -I/usr/
local/include -O   -DVERSION=\"0.01\" -DXS_VERSION=\"0.01\" -DPIC -fPIC "-I/usr/
local/lib/perl5/5.8.3/i386-freebsd/CORE"   ClearSilver.c
Running Mkbootstrap for ClearSilver ()
chmod 644 ClearSilver.bs
rm -f blib/arch/auto/ClearSilver/ClearSilver.so
LD_RUN_PATH="/usr/lib" cc  -shared  -L/usr/local/lib ClearSilver.o  -o blib/arch/auto/
ClearSilver/ClearSilver.so   -L/usr/home/ulcom/ben/clearsilver-0.10.5/perl/../libs -
lneo_cgi -lneo_cs -lneo_utl -lz
chmod 755 blib/arch/auto/ClearSilver/ClearSilver.so
cp ClearSilver.bs blib/arch/auto/ClearSilver/ClearSilver.bs
chmod 644 blib/arch/auto/ClearSilver/ClearSilver.bs
Manifying blib/man3/ClearSilver.3
make[1]: Leaving directory `/usr/home/ulcom/ben/clearsilver-0.10.5/perl'
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.