[squid-users] Building 3.5.1 without libcom_err?

Mike Mitchell Mike.Mitchell at sas.com
Mon Feb 23 21:48:14 UTC 2015


Is there a way to build 3.5.1 without libcom_err?
On my old Redhat system (2.6.18-128.1.1.el5) I get compilation failures unless I remove all references to libcom_err.

Here's a snippet from the config log:

configure:24277: checking for krb5.h
configure:24277: result: yes
configure:24277: checking com_err.h usability
configure:24277: g++ -c -g -O2    conftest.cpp >&5
conftest.cpp:110:21: error: com_err.h: No such file or directory
configure:24277: $? = 1
configure: failed program was:
| /* confdefs.h */
...

configure:24330: checking for error_message in -lcom_err
configure:24355: g++ -o conftest -g -O2    -g conftest.cpp -lcom_err  -lrt -ldl -ldl    -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err -lkrb5 -lk5crypto -lcom_err  >&5
/usr/bin/ld: skipping incompatible /usr/lib/libcom_err.so when searching for -lcom_err
/usr/bin/ld: skipping incompatible /usr/lib/libcom_err.a when searching for -lcom_err
/usr/bin/ld: cannot find -lcom_err
collect2: ld returned 1 exit status


Later when I try to build squid I get the same "incompatible /usr/lib/libcom_err.so" error message and the build stops.

If I hand-edit the Makefiles in the various directories and remove "-lcom_err", the build succeeds and the executables run properly.

I run configure with --with-krb5-config="no" --without-mit-krb5 --without-heimdal-krb5 --without-gnutls

But it still tries linking in the krb libraries and the com_err library.

Any suggestions?

Mike Mitchell


More information about the squid-users mailing list