Hi,

maintaining the squid3 RPM on build.openuse.org.
3.1.4 was the last version I was able to compile without problems.
for 3.1.5 I need to apply a small patch. (squid-bootstrap.patch)
since 3.1.6 I not able to compile it for SLES10-SP3

while using ...
----snip spec----
%build
export CFLAGS="$RPM_OPT_FLAGS -fPIE -fPIC -fno-strict-aliasing"
export CXXFLAGS="$RPM_OPT_FLAGS -fPIC -fno-strict-aliasing"
export LDFLAGS='-pie'
./bootstrap.sh
autoreconf -fiv
./configure --prefix=/usr \
....
-----snip----

I get:
+ ./bootstrap.sh
automake (1.9) : automake
autoconf (2.59) : autoconf
libtool  (1.5) : libtool
libtool path : /usr/bin
Bootstrapping
compat/Makefile.am:12: Libtool library used but `LIBTOOL' is undefined
compat/Makefile.am:12:
compat/Makefile.am:12: The usual way to define `LIBTOOL' is to add
`AC_PROG_LIBTOOL'
compat/Makefile.am:12: to `configure.in' and run `aclocal' and
`autoconf' again.
src/Makefile.am:153: Libtool library used but `LIBTOOL' is undefined
src/Makefile.am:153:
src/Makefile.am:153: The usual way to define `LIBTOOL' is to add
`AC_PROG_LIBTOOL'
src/Makefile.am:153: to `configure.in' and run `aclocal' and `autoconf'
again.
src/acl/Makefile.am:4: Libtool library used but `LIBTOOL' is undefined
src/acl/Makefile.am:4:
src/acl/Makefile.am:4: The usual way to define `LIBTOOL' is to add
`AC_PROG_LIBTOOL'
src/acl/Makefile.am:4: to `configure.in' and run `aclocal' and
`autoconf' again.
src/adaptation/Makefile.am:15: Libtool library used but `LIBTOOL' is
undefined
src/adaptation/Makefile.am:15:
src/adaptation/Makefile.am:15: The usual way to define `LIBTOOL' is to
add `AC_PROG_LIBTOOL'
src/adaptation/Makefile.am:15: to `configure.in' and run `aclocal' and
`autoconf' again.
src/adaptation/ecap/Makefile.am:4: Libtool library used but `LIBTOOL' is
undefined
src/adaptation/ecap/Makefile.am:4:
src/adaptation/ecap/Makefile.am:4: The usual way to define `LIBTOOL' is
to add `AC_PROG_LIBTOOL'
src/adaptation/ecap/Makefile.am:4: to `configure.in' and run `aclocal'
and `autoconf' again.
src/adaptation/icap/Makefile.am:4: Libtool library used but `LIBTOOL' is
undefined
src/adaptation/icap/Makefile.am:4:
src/adaptation/icap/Makefile.am:4: The usual way to define `LIBTOOL' is
to add `AC_PROG_LIBTOOL'
src/adaptation/icap/Makefile.am:4: to `configure.in' and run `aclocal'
and `autoconf' again.
src/auth/Makefile.am:7: Libtool library used but `LIBTOOL' is undefined
src/auth/Makefile.am:7:
src/auth/Makefile.am:7: The usual way to define `LIBTOOL' is to add
`AC_PROG_LIBTOOL'
src/auth/Makefile.am:7: to `configure.in' and run `aclocal' and
`autoconf' again.
src/base/Makefile.am:5: Libtool library used but `LIBTOOL' is undefined
src/base/Makefile.am:5:
src/base/Makefile.am:5: The usual way to define `LIBTOOL' is to add
`AC_PROG_LIBTOOL'
src/base/Makefile.am:5: to `configure.in' and run `aclocal' and
`autoconf' again.
src/esi/Makefile.am:4: Libtool library used but `LIBTOOL' is undefined
src/esi/Makefile.am:4:
src/esi/Makefile.am:4: The usual way to define `LIBTOOL' is to add
`AC_PROG_LIBTOOL'
src/esi/Makefile.am:4: to `configure.in' and run `aclocal' and
`autoconf' again.
src/fs/Makefile.am:3: Libtool library used but `LIBTOOL' is undefined
src/fs/Makefile.am:3:
src/fs/Makefile.am:3: The usual way to define `LIBTOOL' is to add
`AC_PROG_LIBTOOL'
src/fs/Makefile.am:3: to `configure.in' and run `aclocal' and `autoconf'
again.
src/icmp/Makefile.am:25: Libtool library used but `LIBTOOL' is undefined
src/icmp/Makefile.am:25:
src/icmp/Makefile.am:25: The usual way to define `LIBTOOL' is to add
`AC_PROG_LIBTOOL'
src/icmp/Makefile.am:25: to `configure.in' and run `aclocal' and
`autoconf' again.
src/ident/Makefile.am:4: Libtool library used but `LIBTOOL' is undefined
src/ident/Makefile.am:4:
src/ident/Makefile.am:4: The usual way to define `LIBTOOL' is to add
`AC_PROG_LIBTOOL'
src/ident/Makefile.am:4: to `configure.in' and run `aclocal' and
`autoconf' again.
src/ip/Makefile.am:4: Libtool library used but `LIBTOOL' is undefined
src/ip/Makefile.am:4:
src/ip/Makefile.am:4: The usual way to define `LIBTOOL' is to add
`AC_PROG_LIBTOOL'
src/ip/Makefile.am:4: to `configure.in' and run `aclocal' and `autoconf'
again.
automake failed
Autotool bootstrapping failed. You will need to investigate and correct
before you can develop on this source tree
error: Bad exit status from /var/tmp/rpm-tmp.56670 (%build)

and without doing
./bootstrap.sh
autoreconf -fiv

compile fails with:
g++ -DHAVE_CONFIG_H -DDEFAULT_CONFIG_FILE=\"/etc/squid/squid.conf\"
-DDEFAULT_SQUID_DATA_DIR=\"/usr/share/squid\"
-DDEFAULT_SQUID_CONFIG_DIR=\"/etc/squid\"  -I.. -I../include -I../src
-I../include  -I../src   -Wall -Wpointer-arith -Wwrite-strings
-Wcomments -Werror  -D_REENTRANT -m64 -fmessage-length=0
-D_FORTIFY_SOURCE=2 -O2 -Wall -fPIC -fno-strict-aliasing -MT
LoadableModule.o -MD -MP -MF $depbase.Tpo -c -o LoadableModule.o
LoadableModule.cc &&\
mv -f $depbase.Tpo $depbase.Po
In file included from ../libltdl/ltdl.h:37,
                 from LoadableModule.cc:10:
../libltdl/libltdl/lt_error.h:35:31: error: libltdl/lt_system.h: No such
file or directory
depbase=`echo LoadableModules.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
g++ -DHAVE_CONFIG_H -DDEFAULT_CONFIG_FILE=\"/etc/squid/squid.conf\"
-DDEFAULT_SQUID_DATA_DIR=\"/usr/share/squid\"
-DDEFAULT_SQUID_CONFIG_DIR=\"/etc/squid\"  -I.. -I../include -I../src
-I../include  -I../src   -Wall -Wpointer-arith -Wwrite-strings
-Wcomments -Werror  -D_REENTRANT -m64 -fmessage-length=0
-D_FORTIFY_SOURCE=2 -O2 -Wall -fPIC -fno-strict-aliasing -MT
LoadableModules.o -MD -MP -MF $depbase.Tpo -c -o LoadableModules.o
LoadableModules.cc &&\
mv -f $depbase.Tpo $depbase.Po
make[3]: *** [LoadableModule.o] Error 1
make[3]: *** Waiting for unfinished jobs....
make[3]: Leaving directory `/usr/src/packages/BUILD/squid-3.1.6/src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/usr/src/packages/BUILD/squid-3.1.6/src'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/usr/src/packages/BUILD/squid-3.1.6/src'
make: *** [all-recursive] Error 1
error: Bad exit status from /var/tmp/rpm-tmp.31135 (%build)


THX for any help

-- 

Christian
---------------------------------------------------
Der ultimative shop für Sportbekleidung und Zubehör

http://www.sc24.de
---------------------------------------------------

diff -ruN squid-3.1.5-orig/acinclude.m4 squid-3.1.5/acinclude.m4
--- squid-3.1.5-orig/acinclude.m4	2010-07-02 04:47:30.000000000 +0200
+++ squid-3.1.5/acinclude.m4	2010-07-25 20:24:04.000000000 +0200
@@ -134,7 +134,7 @@
 dnl   and this notice are preserved.
 dnl
 AC_DEFUN([AX_WITH_PROG],[
-    AC_PREREQ([2.61])
+    AC_PREREQ([2.59])
 
     pushdef([VARIABLE],$1)
     pushdef([EXECUTABLE],$2)
diff -ruN squid-3.1.5-orig/bootstrap.sh squid-3.1.5/bootstrap.sh
--- squid-3.1.5-orig/bootstrap.sh	2010-07-02 04:47:30.000000000 +0200
+++ squid-3.1.5/bootstrap.sh	2010-07-25 20:24:04.000000000 +0200
@@ -7,7 +7,7 @@
 # Autotool versions preferred. To override either edit the script
 # to match the versions you want to use, or set the variables on
 # the command line like "env acver=.. amver=... ./bootstrap.sh"
-acversions="${acver:-2.63 2.62 2.61}"
+acversions="${acver:-2.63 2.62 2.61 2.60 2.59}"
 amversions="${amver:-1.11 1.10 1.9}"
 ltversions="${ltver:-2.2 1.5 1.4}"
 
diff -ruN squid-3.1.5-orig/configure.in squid-3.1.5/configure.in
--- squid-3.1.5-orig/configure.in	2010-07-02 04:48:47.000000000 +0200
+++ squid-3.1.5/configure.in	2010-07-25 20:25:23.000000000 +0200
@@ -3,7 +3,7 @@
 dnl  $Id$
 dnl
 AC_INIT([Squid Web Proxy],[3.1.6],[http://www.squid-cache.org/bugs/],[squid])
-AC_PREREQ(2.61)
+AC_PREREQ(2.59)
 AC_CONFIG_HEADERS([include/autoconf.h])
 AC_CONFIG_AUX_DIR(cfgaux)
 AC_CONFIG_SRCDIR([src/main.cc])

Reply via email to