pkgsrc-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
pkg/43385: Cannot compile www/p5-libapreq2 package
>Number: 43385
>Category: pkg
>Synopsis: Cannot compile www/p5-libapreq2 package
>Confidential: no
>Severity: critical
>Priority: high
>Responsible: pkg-manager
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sat May 29 17:30:01 +0000 2010
>Originator: Randolf Richardson
>Release: NetBSD 5.1_RC2
>Organization:
Inter-Corporate Computer & Network Services, Inc.
>Environment:
NetBSD netbsd-5-1-rc2.test.lumbercartel.ca 5.1_RC2 NetBSD 5.1_RC2 (GENERIC) #0:
Fri May 21 00:29:51 UTC 2010
builds%b7.netbsd.org@localhost:/home/builds/ab/netbsd-5-1-RC2/amd64/201005210534Z-obj/home/builds/ab/netbsd-5-1-RC2/src/sys/arch/amd64/compile/GENERIC
amd64
>Description:
Using pkgsrc-2010Q1 (stable release), I'm unable to compile this package (the
dependencies, such as Apache HTTPd 2.2 APR stuff is already installed, also
from the same pkgsrc tree). I also tried pkgsrc-current from yesterday which
yielded the same result.
This is a fresh installation of NetBSD 5.1_RC2 without any customizations
(aside from the obvious of setting up an IP address and gateway, etc., to be
connected to the internet). I also experienced this problem on other versions
of NetBSD including 5.0.2 and 5.0.1.
The only software additionally downloaded and installed so far is the relevant
pkgsrc.tar.gz file, from which all other packages are installed (such as Perl5,
GNU Screen, Midnight Commander, etc.).
The errors all start from "ld: cannot find -lapreq2" during the "make && make
install" process. See captured output in the "How to repeate the problem"
section...
[I depend heavily on this library on many NetBSD servers that are used in
production both for web sites and internal corporate network servers, so it is
a very important one to me for which I'm hoping there is an easy fix.]
Thanks in advance.
>How-To-Repeat:
Here's the captured output (someone on IRC tried this on i386 and experienced
the same problem). I'm using pkgsrc-2010Q1 (stable release), and also tried
pkgsrc-current from yesterday (as well as previous attempts at least a month
ago) which also yield the same result.
Script started on Sat May 29 07:50:45 2010
netbsd# pwd
/usr/pkgsrc/www/p5-libapreq2
netbsd# make && make install
=> Bootstrap dependency digest>=20010302: found digest-20080510
===> Skipping vulnerability checks.
WARNING: No /var/db/pkg/pkg-vulnerabilities file found.
WARNING: To fix run: `/usr/sbin/pkg_admin -K /var/db/pkg
fetch-pkg-vulnerabilities'.
===> Installing for p5-libapreq2-2.12
=> Running PRE-INSTALL script actions
Making install in .
gmake[1]: Entering directory `/usr/pkgsrc/www/p5-libapreq2/work/libapreq2-2.12'
gmake[2]: Entering directory `/usr/pkgsrc/www/p5-libapreq2/work/libapreq2-2.12'
/bin/ksh ./mkinstalldirs /usr/pkg/bin
/usr/pkgsrc/www/p5-libapreq2/work/.tools/bin/install -c apreq2-config
/usr/pkg/bin/apreq2-config
gmake[2]: Nothing to be done for `install-data-am'.
gmake[2]: Leaving directory `/usr/pkgsrc/www/p5-libapreq2/work/libapreq2-2.12'
gmake[1]: Leaving directory `/usr/pkgsrc/www/p5-libapreq2/work/libapreq2-2.12'
Making install in include
gmake[1]: Entering directory
`/usr/pkgsrc/www/p5-libapreq2/work/libapreq2-2.12/include'
gmake[2]: Entering directory
`/usr/pkgsrc/www/p5-libapreq2/work/libapreq2-2.12/include'
gmake[2]: Nothing to be done for `install-exec-am'.
/bin/ksh ../mkinstalldirs /usr/pkg/include/apreq2
/usr/pkgsrc/www/p5-libapreq2/work/.tools/bin/install -c -m 644 apreq.h
/usr/pkg/include/apreq2/apreq.h
/usr/pkgsrc/www/p5-libapreq2/work/.tools/bin/install -c -m 644 apreq_cookie.h
/usr/pkg/include/apreq2/apreq_cookie.h
/usr/pkgsrc/www/p5-libapreq2/work/.tools/bin/install -c -m 644 apreq_error.h
/usr/pkg/include/apreq2/apreq_error.h
/usr/pkgsrc/www/p5-libapreq2/work/.tools/bin/install -c -m 644 apreq_module.h
/usr/pkg/include/apreq2/apreq_module.h
/usr/pkgsrc/www/p5-libapreq2/work/.tools/bin/install -c -m 644 apreq_param.h
/usr/pkg/include/apreq2/apreq_param.h
/usr/pkgsrc/www/p5-libapreq2/work/.tools/bin/install -c -m 644 apreq_parser.h
/usr/pkg/include/apreq2/apreq_parser.h
/usr/pkgsrc/www/p5-libapreq2/work/.tools/bin/install -c -m 644 apreq_util.h
/usr/pkg/include/apreq2/apreq_util.h
/usr/pkgsrc/www/p5-libapreq2/work/.tools/bin/install -c -m 644 apreq_version.h
/usr/pkg/include/apreq2/apreq_version.h
gmake[2]: Leaving directory
`/usr/pkgsrc/www/p5-libapreq2/work/libapreq2-2.12/include'
gmake[1]: Leaving directory
`/usr/pkgsrc/www/p5-libapreq2/work/libapreq2-2.12/include'
Making install in library
gmake[1]: Entering directory
`/usr/pkgsrc/www/p5-libapreq2/work/libapreq2-2.12/library'
gmake[2]: Entering directory
`/usr/pkgsrc/www/p5-libapreq2/work/libapreq2-2.12/library'
/bin/ksh ../mkinstalldirs /usr/pkg/lib
/bin/ksh ../libtool --mode=install
/usr/pkgsrc/www/p5-libapreq2/work/.tools/bin/install -c libapreq2.la
/usr/pkg/lib/libapreq2.la
libtool: install: /usr/pkgsrc/www/p5-libapreq2/work/.tools/bin/install -c
.libs/libapreq2.so.3.7.1 /usr/pkg/lib/libapreq2.so.3.7.1
libtool: install: (cd /usr/pkg/lib && { ln -s -f libapreq2.so.3.7.1
libapreq2.so.3 || { rm -f libapreq2.so.3 && ln -s libapreq2.so.3.7.1
libapreq2.so.3; }; })
libtool: install: (cd /usr/pkg/lib && { ln -s -f libapreq2.so.3.7.1
libapreq2.so || { rm -f libapreq2.so && ln -s libapreq2.so.3.7.1 libapreq2.so;
}; })
libtool: install: /usr/pkgsrc/www/p5-libapreq2/work/.tools/bin/install -c
.libs/libapreq2.lai /usr/pkg/lib/libapreq2.la
libtool: install: /usr/pkgsrc/www/p5-libapreq2/work/.tools/bin/install -c
.libs/libapreq2.a /usr/pkg/lib/libapreq2.a
libtool: install: chmod 644 /usr/pkg/lib/libapreq2.a
libtool: install: ranlib /usr/pkg/lib/libapreq2.a
----------------------------------------------------------------------
Libraries have been installed in:
/usr/pkg/lib
If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the `-LLIBDIR'
flag during linking and do at least one of the following:
- add LIBDIR to the `LD_LIBRARY_PATH' environment variable
during execution
- add LIBDIR to the `LD_RUN_PATH' environment variable
during linking
- use the `-Wl,-rpath -Wl,LIBDIR' linker flag
See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.
----------------------------------------------------------------------
gmake[2]: Nothing to be done for `install-data-am'.
gmake[2]: Leaving directory
`/usr/pkgsrc/www/p5-libapreq2/work/libapreq2-2.12/library'
gmake[1]: Leaving directory
`/usr/pkgsrc/www/p5-libapreq2/work/libapreq2-2.12/library'
Making install in module
gmake[1]: Entering directory
`/usr/pkgsrc/www/p5-libapreq2/work/libapreq2-2.12/module'
Making install in apache2
gmake[2]: Entering directory
`/usr/pkgsrc/www/p5-libapreq2/work/libapreq2-2.12/module/apache2'
gmake[3]: Entering directory
`/usr/pkgsrc/www/p5-libapreq2/work/libapreq2-2.12/module/apache2'
----------------------------------------------------------------------
Before you can use mod_apreq2, you must ensure that an appropriate
"LoadModule" line appears in your webserver's config file:
/usr/pkg/etc/httpd/httpd.conf
LoadModule apreq_module /usr/pkg/lib/httpd/mod_apreq2.so
----------------------------------------------------------------------
/bin/ksh ../../mkinstalldirs `/usr/pkg/sbin/apxs -q LIBEXECDIR`
/bin/ksh ../../libtool --mode=install
/usr/pkgsrc/www/p5-libapreq2/work/.tools/bin/install -c mod_apreq2.la
/usr/pkg/lib/httpd/mod_apreq2.la
libtool: install: warning: relinking `mod_apreq2.la'
libtool: install: (cd
/usr/pkgsrc/www/p5-libapreq2/work/libapreq2-2.12/module/apache2; /bin/sh
/usr/pkg/bin/libtool --mode=relink cc -O2
-L/usr/pkgsrc/www/p5-libapreq2/work/.buildlink/lib -Wl,-R/usr/pkg/lib
-L/usr/pkgsrc/www/p5-libapreq2/work/.x11-buildlink/lib -Wl,-R/usr/X11R7/lib -o
mod_apreq2.la -rpath /usr/pkg/lib/httpd -export-dynamic -module -avoid-version
-L/usr/pkgsrc/www/p5-libapreq2/work/libapreq2-2.12/library/.libs
/usr/pkgsrc/www/p5-libapreq2/work/libapreq2-2.12/library/libapreq2.la -lcrypt
-lpthread -lexpat /usr/pkgsrc/www/p5-libapreq2/work/.buildlink/lib/libapr-1.la
/usr/pkgsrc/www/p5-libapreq2/work/.buildlink/lib/libaprutil-1.la handle.lo
filter.lo )
libtool: relink: cc -shared .libs/handle.o .libs/filter.o -Wl,-rpath
-Wl,/usr/pkg/lib -Wl,-rpath
-Wl,/usr/pkgsrc/www/p5-libapreq2/work/.buildlink/lib
-L/usr/pkgsrc/www/p5-libapreq2/work/libapreq2-2.12/library/.libs
-L/usr/pkgsrc/www/p5-libapreq2/work/.buildlink/lib
-L/usr/pkgsrc/www/p5-libapreq2/work/.x11-buildlink/lib -L/usr/pkg/lib -lapreq2
-laprutil-1 -lexpat -lapr-1 -lcrypt -lpthread -Wl,-R/usr/pkg/lib
-Wl,-R/usr/X11R7/lib -pthread -Wl,-soname -Wl,mod_apreq2.so -o
.libs/mod_apreq2.so
libtool: install: /usr/pkgsrc/www/p5-libapreq2/work/.tools/bin/install -c
.libs/mod_apreq2.soT /usr/pkg/lib/httpd/mod_apreq2.so
libtool: install: /usr/pkgsrc/www/p5-libapreq2/work/.tools/bin/install -c
.libs/mod_apreq2.lai /usr/pkg/lib/httpd/mod_apreq2.la
libtool: install: /usr/pkgsrc/www/p5-libapreq2/work/.tools/bin/install -c
.libs/mod_apreq2.a /usr/pkg/lib/httpd/mod_apreq2.a
libtool: install: chmod 644 /usr/pkg/lib/httpd/mod_apreq2.a
libtool: install: ranlib /usr/pkg/lib/httpd/mod_apreq2.a
----------------------------------------------------------------------
Libraries have been installed in:
/usr/pkg/lib/httpd
If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the `-LLIBDIR'
flag during linking and do at least one of the following:
- add LIBDIR to the `LD_LIBRARY_PATH' environment variable
during execution
- add LIBDIR to the `LD_RUN_PATH' environment variable
during linking
- use the `-Wl,-rpath -Wl,LIBDIR' linker flag
See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.
----------------------------------------------------------------------
/bin/ksh ../../mkinstalldirs `/usr/pkg/sbin/apxs -q INCLUDEDIR`/apreq2
/usr/pkgsrc/www/p5-libapreq2/work/.tools/bin/install -c -m 644
apreq_module_apache2.h /usr/pkg/include/httpd/apreq2/apreq_module_apache2.h
gmake[3]: Leaving directory
`/usr/pkgsrc/www/p5-libapreq2/work/libapreq2-2.12/module/apache2'
gmake[2]: Leaving directory
`/usr/pkgsrc/www/p5-libapreq2/work/libapreq2-2.12/module/apache2'
gmake[2]: Entering directory
`/usr/pkgsrc/www/p5-libapreq2/work/libapreq2-2.12/module'
gmake[3]: Entering directory
`/usr/pkgsrc/www/p5-libapreq2/work/libapreq2-2.12/module'
gmake[3]: Nothing to be done for `install-exec-am'.
gmake[3]: Nothing to be done for `install-data-am'.
gmake[3]: Leaving directory
`/usr/pkgsrc/www/p5-libapreq2/work/libapreq2-2.12/module'
gmake[2]: Leaving directory
`/usr/pkgsrc/www/p5-libapreq2/work/libapreq2-2.12/module'
gmake[1]: Leaving directory
`/usr/pkgsrc/www/p5-libapreq2/work/libapreq2-2.12/module'
Making install in glue
gmake[1]: Entering directory
`/usr/pkgsrc/www/p5-libapreq2/work/libapreq2-2.12/glue'
cd perl; /usr/pkg/bin/gmake
gmake[2]: Entering directory
`/usr/pkgsrc/www/p5-libapreq2/work/libapreq2-2.12/glue/perl'
make[3]: Entering directory
`/usr/pkgsrc/www/p5-libapreq2/work/libapreq2-2.12/glue/perl/xs'
make[4]: Entering directory
`/usr/pkgsrc/www/p5-libapreq2/work/libapreq2-2.12/glue/perl/xs/APR'
make[5]: Entering directory
`/usr/pkgsrc/www/p5-libapreq2/work/libapreq2-2.12/glue/perl/xs/APR/Request'
make[6]: Entering directory
`/usr/pkgsrc/www/p5-libapreq2/work/libapreq2-2.12/glue/perl/xs/APR/Request/Apache2'
rm -f ../../../../blib/arch/auto/APR/Request/Apache2/Apache2.so
LD_RUN_PATH="/usr/pkg/lib:/usr/X11R7/lib" cc -Wl,-R/usr/pkg/lib
--whole-archive -shared -L/usr/pkg/lib -fstack-protector Apache2.o
-L/usr/pkg/lib -Wl,-R/usr/pkg/lib -L/usr/lib -Wl,-R/usr/lib -L/usr/X11R7/lib
-Wl,-R/usr/X11R7/lib -o
../../../../blib/arch/auto/APR/Request/Apache2/Apache2.so \
-L/usr/pkg/lib -lapreq2 -L/usr/pkg/lib -laprutil-1 -L/usr/X11R7/lib
-lapr-1 -lcrypt -lpthread -lexpat
-L/usr/pkg/lib/perl5/5.10.0/x86_64-netbsd-thread-multi/CORE
-Wl,-R/usr/pkg/lib/perl5/5.10.0/x86_64-netbsd-thread-multi/CORE
-Wl,-R/usr/pkg/lib/perl5/5.10.0/x86_64-netbsd-thread-multi/CORE -lperl \
ld: cannot find -lapreq2
make[6]: *** [../../../../blib/arch/auto/APR/Request/Apache2/Apache2.so] Error 1
make[6]: Leaving directory
`/usr/pkgsrc/www/p5-libapreq2/work/libapreq2-2.12/glue/perl/xs/APR/Request/Apache2'
make[5]: *** [subdirs] Error 2
make[5]: Leaving directory
`/usr/pkgsrc/www/p5-libapreq2/work/libapreq2-2.12/glue/perl/xs/APR/Request'
make[4]: *** [subdirs] Error 2
make[4]: Leaving directory
`/usr/pkgsrc/www/p5-libapreq2/work/libapreq2-2.12/glue/perl/xs/APR'
make[3]: *** [subdirs] Error 2
make[3]: Leaving directory
`/usr/pkgsrc/www/p5-libapreq2/work/libapreq2-2.12/glue/perl/xs'
gmake[2]: *** [subdirs] Error 2
gmake[2]: Leaving directory
`/usr/pkgsrc/www/p5-libapreq2/work/libapreq2-2.12/glue/perl'
gmake[1]: *** [perl_glue] Error 2
gmake[1]: Leaving directory
`/usr/pkgsrc/www/p5-libapreq2/work/libapreq2-2.12/glue'
gmake: *** [install-recursive] Error 1
*** Error code 2
Stop.
make: stopped in /usr/pkgsrc/www/p5-libapreq2
*** Error code 1
Stop.
make: stopped in /usr/pkgsrc/www/p5-libapreq2
*** Error code 1
Stop.
make: stopped in /usr/pkgsrc/www/p5-libapreq2
netbsd# exit
Script done on Sat May 29 07:50:53 2010
>Fix:
I have not been able to find a work-around to this problem, but I suspect that
a really old version of pkgsrc may work (I have not tried this because I need
to use the newer versions).
Home |
Main Index |
Thread Index |
Old Index