FreeBSD 10 and manually compile applications without gcc

Odhiambo Washington odhiambo at
Mon Jan 19 13:30:06 UTC 2015

Now, suppose I did not install gcc from the ports and I'd like to install
an application by hand using native tools for FreeBSD 10.x, how do I do
I need a lecture on this:-)

For instance, I want to install squid-3.5.1 by hand so I have done the

root at mail:~wash/ILI/Squid/3.5/squid- # pwd

./configure --prefix=/opt/squid35 \
        --enable-removal-policies="lru heap" \
        --disable-epoll \
        --enable-auth \
        --enable-auth-basic="DB NCSA PAM MSNT PAM POP3 SSPI MSNT" \
        --enable-external-acl-helpers="session unix_group file_userip" \
        --enable-auth-ntlm="smb_lm SSPI" \
        --enable-auth-negotiate="SSPI kerberos" \
        --with-pthreads \
        --enable-storeio="ufs diskd aufs" \
        --enable-delay-pools \
        --enable-snmp  \
        --with-openssl=/usr \
        --enable-forw-via-db \
        --enable-cache-digests \
        --enable-wccpv2 \
        --enable-follow-x-forwarded-for \
        --with-large-files \
        --enable-large-cache-files \
        --enable-error_default_language=English \
        --enable-esi \
        --enable-kqueue \
        --enable-icap-client \
        --enable-kill-parent-hack \
        --enable-ssl \
        --enable-leakfinder \
        --enable-ssl-crtd \
        --enable-url-rewrite-helpers \
        --enable-xmalloc-statistics \
        --enable-stacktraces \
        --enable-zph-qos \
        --enable-eui \
        --enable-pf-transparent \

After that, I type `make` and it all boomerangs:-)

root at mail:~wash/ILI/Squid/3.5/squid- # make
Making all in compat
/bin/sh ../libtool  --tag=CC    --mode=compile gcc -DHAVE_CONFIG_H    -I..
-I../include  -I../lib -I../src  -I../include  -I/usr/include  -I/usr/
include  -I../libltdl -I/usr/include -I/usr/local/include/libxml2  -Werror
-Qunused-arguments  -D_REENTRANT -I/usr/local/include -MT eui64_aton.l
o -MD -MP -MF .deps/eui64_aton.Tpo -c -o eui64_aton.lo eui64_aton.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I.. -I../include -I../lib -I../src
-I../include -I/usr/include -I/usr/include -I../libltdl -I/usr/include
 -I/usr/local/include/libxml2 -Werror -Qunused-arguments -D_REENTRANT
-I/usr/local/include -MT eui64_aton.lo -MD -MP -MF .deps/eui64_aton.Tpo -c
eui64_aton.c  -fPIC -DPIC -o .libs/eui64_aton.o
gcc: error: unrecognized command line option '-Qunused-arguments'
*** Error code 1

make[1]: stopped in /usr/home/wash/ILI/Squid/3.5/squid-
*** Error code 1

make: stopped in /usr/home/wash/ILI/Squid/3.5/squid-

Don't laugh at me. I am playing catch with this 10.x series

I am told the following:

"This is a clang specific option.

Please be aware that on FreeBSD 10+ the default compiler is clang and Squid
FreeBSD 10 packages are designed to build with that compiler.
Any CXXFLAGS or similar environment variables the packaging builds Squid
with will be tuned for Clang not GCC."

Can someone please translate that into normal English? :-)

Matthew, please?

Best regards,
"I can't hear you -- I'm using the scrambler."

More information about the freebsd-questions mailing list