Bug 102003 - Problem compiling libapreq2
Summary: Problem compiling libapreq2
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: skv
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-08-14 11:50 UTC by rainer
Modified: 2007-02-06 18:10 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description rainer 2006-08-14 11:50:15 UTC
libapreq2 doesn't compile:

c -DHAVE_CONFIG_H -I. -I. -I../include -I/usr/local/include/apache2 -I/usr/local/include -D_REENTRANT -D_THREAD_SAFE -O -pipe -fno-strict-aliasing -c error.c -Wp,-MD,.deps/error.TPlo  -fPIC -DPIC -o .libs/error.o
cc -DHAVE_CONFIG_H -I. -I. -I../include -I/usr/local/include/apache2 -I/usr/local/include -D_REENTRANT -D_THREAD_SAFE -O -pipe -fno-strict-aliasing -c error.c -Wp,-MD,.deps/error.TPlo -o error.o >/dev/null 2>&1
/bin/sh ../libtool --tag=CC --mode=link cc  -O -pipe  -fno-strict-aliasing   -o libapreq2.la -rpath /usr/local/lib -version-info 8:0:6  /usr/local/lib/apache2/libapr-0.la /usr/local/lib/apache2/libaprutil-0.la  -lexpat -liconv -lm -lcrypt util.lo version.lo cookie.lo param.lo parser.lo parser_urlencoded.lo parser_header.lo parser_multipart.lo module.lo module_custom.lo module_cgi.lo error.lo  -L/usr/local
cc -shared  .libs/util.o .libs/version.o .libs/cookie.o .libs/param.o .libs/parser.o .libs/parser_urlencoded.o .libs/parser_header.o .libs/parser_multipart.o .libs/module.o .libs/module_custom.o .libs/module_cgi.o .libs/error.o  -Wl,--rpath -Wl,/usr/local/lib/apache2 -Wl,--rpath -Wl,/usr/local/lib/apache2 /usr/local/lib/apache2/libapr-0.so /usr/local/lib/apache2/libaprutil-0.so -lexpat -liconv -lm -lcrypt -L/usr/local  -Wl,-soname -Wl,libapreq2.so.8 -o .libs/libapreq2.so.8
/usr/libexec/elf/ld: cannot find -lexpat
gmake[2]: *** [libapreq2.la] Error 1
gmake[2]: Leaving directory `/usr/ports/www/libapreq2/work/libapreq2-2.08/library'
gmake[1]: *** [all] Error 2
gmake[1]: Leaving directory `/usr/ports/www/libapreq2/work/libapreq2-2.08/library'
gmake: *** [all-recursive] Error 1
*** Error code 2

Stop in /usr/ports/www/libapreq2.
** Command failed [exit code 1]: /usr/bin/script -qa /tmp/portinstall55569.0 env make PORT_UPGRADE=yes
** Fix the problem and try again.
** Listing the failed packages (*:skipped / !:failed)
       ! www/libapreq2 (linker error)
--->  Packages processed: 0 done, 0 ignored, 0 skipped and 1 failed

But libexpat seems to be here:
www# ll /usr/local/lib/libexpat.*
-rw-r--r--  1 root  wheel  149588 Aug 11 15:30 /usr/local/lib/libexpat.a
-rwxr-xr-x  1 root  wheel     793 Aug 11 15:30 /usr/local/lib/libexpat.la
lrwxr-xr-x  1 root  wheel      13 Aug 11 15:30 /usr/local/lib/libexpat.so -> libexpat.so.6
-rwxr-xr-x  1 root  wheel  130604 Aug 11 15:30 /usr/local/lib/libexpat.so.6

(portinstall, with WITH_MODPERL2).

Fix: 

The solution seems to be described here:
http://marc2.theaimsgroup.com/?l=apreq-dev&m=112005716319909&w=2

Maybe a regression has slipped in - when I add the "--with-expat=/usr/local" to +CONFIGURE, it works for me.
How-To-Repeat: portinstall libapreq2
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2006-08-14 13:15:28 UTC
Responsible Changed
From-To: freebsd-ports-bugs->skv

Over to maintainer
Comment 2 Martin Nilsson 2006-08-26 06:12:01 UTC
I can compile if I change the following patch file to this:

cat files/patch-library-Makefile.in
--- library/Makefile.in.orig    Thu Aug 10 01:43:51 2006
+++ library/Makefile.in Thu Aug 10 01:43:58 2006
@@ -144,7 +144,7 @@
  INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
  LDFLAGS = @LDFLAGS@
  LIBOBJS = @LIBOBJS@
-LIBS = @LIBS@
+LIBS = @LIBS@ -L/usr/local/lib
  LIBTOOL = @LIBTOOL@
  LN_S = @LN_S@
  LTLIBOBJS = @LTLIBOBJS@


The $(prefix) in the original file is not expanded properly.
Comment 3 spork 2007-01-25 03:21:54 UTC
Just a quick note, as of 1/24/2007 the problem still exists (hit it while 
building Mason from ports) and the original submitter's patch fixed it for 
me.

Thanks,

Charles
___
Charles Sprickman
NetEng/SysAdmin
Bway.net - New York's Best Internet - www.bway.net
spork@bway.net - 212.655.9344
Comment 4 skv freebsd_committer freebsd_triage 2007-02-06 18:06:45 UTC
State Changed
From-To: open->closed

Committed, thanks
Comment 5 dfilter service freebsd_committer freebsd_triage 2007-02-06 18:07:02 UTC
skv         2007-02-06 18:06:39 UTC

  FreeBSD ports repository

  Modified files:
    www/libapreq2        Makefile 
  Log:
  Unbreak build.
  
  PR:             ports/102003
  Submitted by:   Rainer Duffner <rainer xx ultra-secure.de>
  
  Revision  Changes    Path
  1.22      +1 -3      ports/www/libapreq2/Makefile
_______________________________________________
cvs-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/cvs-all
To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"