Subject: pkg/19476: net/soup doesn't compile with www/apache2
To: None <gnats-bugs@gnats.netbsd.org>
From: Ryo HAYASAKA <ryoh@jaist.ac.jp>
List: netbsd-bugs
Date: 12/21/2002 06:03:27
>Number: 19476
>Category: pkg
>Synopsis: net/soup doesn't compile with www/apache2
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: pkg-manager
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Fri Dec 20 13:04:01 PST 2002
>Closed-Date:
>Last-Modified:
>Originator: Ryo HAYASAKA
>Release: NetBSD 1.6K
>Organization:
Japan Advanced Institute of Science and Technology (JAIST)
>Environment:
System: NetBSD bonnie.jaist.ac.jp 1.6K NetBSD 1.6K (BONNIE) #351: Tue Dec 17 17:00:00 JST 2002 ryoh@bonnie.jaist.ac.jp:/home/ryoh/util/compile/BONNIE i386
Architecture: i386
Machine: i386
>Description:
net/soup doesn't compile with www/apache2, while it is OK with
www/apache. This is because "apxs -q INCLUDEDIR CFLAGS" output is
different between apache and apache2.
apache's apxs produces:
/usr/pkg/include/httpd -O2 -pipe -march=pentiumpro -I/usr/pkg/include
apache2's apxs produces:
/usr/pkg/include/httpd;;-O2 -pipe -march=pentiumpro -I/usr/pkg/include
As you can see, ";;" is a nuisance. make stops like this:
$ make
...
/bin/sh ../../libtool --mode=compile cc -DHAVE_CONFIG_H -I. -I. -I../.. -DG_LOG_DOMAIN=\"SOUP-APACHE\" -I../../src -I/usr/pkg/include/glib/glib-1.2 -I/usr/pkg/lib/glib/include -I/usr/pkg/include/gnome-xml -I/usr/pkg/include/httpd;;-O2 -pipe -march=pentiumpro -I/usr/pkg/include -I/usr/pkg/include/gnome-1.0 -I/usr/pkg/include/gdk-pixbuf-1.0 -I/usr/pkg/include -I/usr/X11R6/include -O2 -pipe -march=pentiumpro -I/usr/pkg/include -I/usr/X11R6/include -Wall -Wstrict-prototypes -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wpointer-arith -D_REENTRANT -c soup-apache.c
Syntax error: ";;" unexpected
*** Error code 2
Stop.
make: stopped in /usr/pkgsrc/net/soup/work.i386/soup-0.7.10/src/libsoup-apache
>How-To-Repeat:
Install www/apache2, and make in net/soup.
>Fix:
diff -ruN soup.orig/patches/patch-aa soup/patches/patch-aa
--- soup.orig/patches/patch-aa Thu Jan 1 09:00:00 1970
+++ soup/patches/patch-aa Sat Dec 21 05:22:04 2002
@@ -0,0 +1,15 @@
+$NetBSD$
+
+--- configure.orig Wed Dec 4 06:14:18 2002
++++ configure
+@@ -7897,8 +7897,8 @@ else
+ fi
+
+ if test x$APXS != xno; then
+- APACHE_CFLAGS="-I`apxs -q INCLUDEDIR CFLAGS`"
+- APACHE_LIBS=`apxs -q LDFLAGS_SHLIB LIBS_SHLIB`
++ APACHE_CFLAGS="-I`apxs -q INCLUDEDIR` `apxs -q CFLAGS`"
++ APACHE_LIBS="`apxs -q LDFLAGS_SHLIB` `apxs -q LIBS_SHLIB`"
+
+ save_CPPFLAGS=$CPPFLAGS
+ CPPFLAGS=$APACHE_CFLAGS
>Release-Note:
>Audit-Trail:
>Unformatted: