[squid-users] socks on squid, still working?

Amos Jeffries squid3 at treenet.co.nz
Wed Aug 1 14:44:15 UTC 2018


On 02/08/18 02:19, mzgmedia wrote:
> the export of variable doesn't seems to work for me
> 
> export CFLAGS=" -Dbind=SOCKSbind "
> export CXXFLAGS=" -Dbind=SOCKSbind "
> export LDADD=" -lsocks "
> 

As I said earlier, you need to check the library symbol names match the
ones you are telling the compiler to use instead of bind().

The error you had earlier was that the SOCKSbind name could not be found
in any library. Squid code does not use that function name anywhere, so
that error could only happen if the export *was* working - but the
library not being found.


> so I'm trying to do  via
> 
> ./configure --build=x86_64-redhat-linux-gnu --host=x86_64-redhat-linux-gnu
> --target=x86_64-redhat-linux-gnu \
> ..
> ..
> ..
> --enable-follow-x-forwarded-for=no \
> 'build_alias=x86_64-redhat-linux-gnu' 'host_alias=x86_64-redhat-linux-gnu'
> 'target_alias=x86_64-redhat-linux-gnu' \
> 'CFLAGS=-Dbind=SOCKSbind -ltcmalloc_minimal -Os -ffunction-sections
> -fdata-sections  -Wl,--gc-sections -Wl,--build-id=none -pipe -fexceptions
> -march=native ' \
> 'CXXFLAGS=-Dbind=SOCKSbind -ltcmalloc_minimal -Os -ffunction-sections
> -fdata-sections -Wl,--gc-sections -Wl,--build-id=none  -pipe  -fexceptions
> -march=native' \

AFAIK you should not combine cross-compilation (--build/--host/--target)
with -march=native (compile optimizations for local machines CPU
specific abilities).


> 'LDADD=-lsocks '
> 
> so I don't think that lsocks is taken?
> 

Do you have libsocks development version installed in the OS default
location?

Amos


More information about the squid-users mailing list