Subject: pkg/27796: www/apache2 build missing -lpthread in support and modules
To: None <gnats-bugs@gnats.NetBSD.org>
From: S.P.Zeidler <spz@serpens.de>
List: pkgsrc-bugs
Date: 11/02/2004 17:16:46
>Number:         27796
>Category:       pkg
>Synopsis:       www/apache2 build fails on the below system due to missing -lpthread
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Nov 02 16:17:01 UTC 2004
>Closed-Date:
>Last-Modified:
>Originator:     S.P.Zeidler
>Release:        NetBSD 2.0_RC1
>Organization:
dis-
>Environment:
System: NetBSD serpens.de 2.0_RC1 NetBSD 2.0_RC1 (SERPENS) #0: Thu Sep 23 22:44:19 CEST 2004 spz@aquila:/home/netbsd/obj.amiga/sys/arch/amiga/compile/SERPENS amiga
Architecture: m68k
Machine: amiga
>Description:
	
[...]
Making all in support
/usr/pkg/libexec/apr/libtool --silent --mode=link gcc    -O2 -I/usr/include -I/usr/pkg/include  -DNETBSD -DAP_HAVE_DESIGNATED_INITIALIZER -I/usr/include -I/usr/pkg/include  -I/usr/pkg/include/apr-0 -I/usr/pkg/include -I. -I/usr/pkg/src/www/apache2/work/httpd-2.0.52/os/unix -I/usr/pkg/src/www/apache2/work/httpd-2.0.52/server/mpm/prefork -I/usr/pkg/src/www/apache2/work/httpd-2.0.52/modules/http -I/usr/pkg/src/www/apache2/work/httpd-2.0.52/modules/filters -I/usr/pkg/src/www/apache2/work/httpd-2.0.52/modules/proxy -I/usr/pkg/src/www/apache2/work/httpd-2.0.52/include -I/usr/pkg/src/www/apache2/work/httpd-2.0.52/modules/generators -I/usr/pkg/src/www/apache2/work/httpd-2.0.52/server -I/usr/include/openssl -I/usr/pkg/src/www/apache2/work/httpd-2.0.52/modules/dav/main -export-dynamic   -L/usr/lib -Wl,-R/usr/lib -L/usr/pkg/lib -Wl,-R/usr/pkg/lib -o htpasswd  htpasswd.lo   -lssl -lcrypto /usr/pkg/src/www/apache2/work/httpd-2.0.52/srclib/pcre/libpcre.la /usr/pkg/lib/libaprutil-0.la -lex!
 pat /usr/pkg/lib/libapr-0.la -lm -lcrypt -lresolv
/usr/pkg/src/www/apache2/work/.buildlink/lib/libapr-0.so: undefined reference to `pthread_cond_signal'
/usr/pkg/src/www/apache2/work/.buildlink/lib/libapr-0.so: undefined reference to `pthread_create'
/usr/pkg/src/www/apache2/work/.buildlink/lib/libapr-0.so: undefined reference to `pthread_getspecific'
/usr/pkg/src/www/apache2/work/.buildlink/lib/libapr-0.so: undefined reference to `pthread_attr_init'
/usr/pkg/src/www/apache2/work/.buildlink/lib/libapr-0.so: undefined reference to `pthread_exit'
/usr/pkg/src/www/apache2/work/.buildlink/lib/libapr-0.so: undefined reference to `pthread_equal'
/usr/pkg/src/www/apache2/work/.buildlink/lib/libapr-0.so: undefined reference to `pthread_detach'
/usr/pkg/src/www/apache2/work/.buildlink/lib/libapr-0.so: undefined reference to `pthread_cond_broadcast'
/usr/pkg/src/www/apache2/work/.buildlink/lib/libapr-0.so: undefined reference to `pthread_once'
/usr/pkg/src/www/apache2/work/.buildlink/lib/libapr-0.so: undefined reference to `pthread_key_create'
/usr/pkg/src/www/apache2/work/.buildlink/lib/libapr-0.so: undefined reference to `pthread_sigmask'
/usr/pkg/src/www/apache2/work/.buildlink/lib/libapr-0.so: undefined reference to `pthread_cond_init'
/usr/pkg/src/www/apache2/work/.buildlink/lib/libapr-0.so: undefined reference to `pthread_attr_getdetachstate'
/usr/pkg/src/www/apache2/work/.buildlink/lib/libaprutil-0.so: undefined reference to `pthread_mutex_unlock'
/usr/pkg/src/www/apache2/work/.buildlink/lib/libapr-0.so: undefined reference to `pthread_self'
/usr/pkg/src/www/apache2/work/.buildlink/lib/libapr-0.so: undefined reference to `pthread_mutex_destroy'
/usr/pkg/src/www/apache2/work/.buildlink/lib/libaprutil-0.so: undefined reference to `pthread_mutex_lock'
/usr/pkg/src/www/apache2/work/.buildlink/lib/libapr-0.so: undefined reference to `pthread_cond_wait'
/usr/pkg/src/www/apache2/work/.buildlink/lib/libapr-0.so: undefined reference to `pthread_mutex_trylock'
/usr/pkg/src/www/apache2/work/.buildlink/lib/libapr-0.so: undefined reference to `pthread_cond_destroy'
/usr/pkg/src/www/apache2/work/.buildlink/lib/libapr-0.so: undefined reference to `pthread_mutex_init'
/usr/pkg/src/www/apache2/work/.buildlink/lib/libapr-0.so: undefined reference to `pthread_attr_setdetachstate'
/usr/pkg/src/www/apache2/work/.buildlink/lib/libapr-0.so: undefined reference to `pthread_join'
/usr/pkg/src/www/apache2/work/.buildlink/lib/libapr-0.so: undefined reference to `pthread_cond_timedwait'
/usr/pkg/src/www/apache2/work/.buildlink/lib/libapr-0.so: undefined reference to `pthread_setspecific'
*** Error code 1

Stop.
make: stopped in /usr/pkg/src/www/apache2/work/httpd-2.0.52/support
*** Error code 1

Stop.
make: stopped in /usr/pkg/src/www/apache2/work/httpd-2.0.52/support
*** Error code 1

Stop.
make: stopped in /usr/pkg/src/www/apache2/work/httpd-2.0.52
*** Error code 1

Stop.
make: stopped in /usr/pkg/src/www/apache2
*** Error code 1

Stop.
make: stopped in /usr/pkg/src/www/apache2

>How-To-Repeat:
	cd /usr/pkgsrc/www/apache2 && make
>Fix:
	all the linking in support and also the linking of the modules (that's
	the step after 'support') require a -lpthread.
>Release-Note:
>Audit-Trail:
>Unformatted: