I just try to rebuild the squid3 for opensuse, i changed the filedescriptor and threads

modified squid3.spec

edit the following line about line 273

export CFLAGS=”$RPM_OPT_FLAGS -DNUMTHREADS=32 -fPIE -fPIC -fno-strict-aliasing”

and the following line on line 315


Install Requires Packages:

sudo zypper install krb5-devel libxml2-devel openldap2-devel opensp-devel pam-devel db-devel

patch autoreconf make libexpat-devel libtool

some errors: (E=Errors, A=Answers)


  • autoreconf -fi

configure.in:32: error: possibly undefined macro: AC_DISABLE_SHARED

If this token and others are legitimate, please use m4_pattern_allow.

See the Autoconf documentation.

configure.in:33: error: possibly undefined macro: AC_PROG_LIBTOOL

configure.in:34: error: possibly undefined macro: AC_LTDL_DLLIB

autoreconf: /usr/bin/autoconf failed with exit status: 1


sudo zypper install libtool

and then:

rpmbuild -bb squid3.spec

finally I got the rpm