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

–with-filedescriptors=8192

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)

E:

  • 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

A:

sudo zypper install libtool

and then:

rpmbuild -bb squid3.spec

finally I got the rpm

/usr/src/packages/RPMS/x86_64/squid3-3.0.STABLE9-5.1.x86_64.rpm