[ARGUS] Linking Against sasl on OpenBSD

eric-list-argus at catastrophe.net eric-list-argus at catastrophe.net
Thu May 27 23:29:09 EDT 2004


On Thu, 2004-05-27 at 21:53:44 -0500, eric-list-argus at catastrophe.net proclaimed...


> $ LDFLAGS="-L/usr/local/lib -L/usr/local/lib/sasl" \
>   CPPFLAGS="-I/usr/local/include -I/usr/local/include/sasl" \
>   ./configure --prefix=/usr/local/argus --with-sasl | grep sasl
> checking sasl.h usability... yes
> checking sasl.h presence... yes
> checking for sasl.h... yes
> checking for sasl_getprop in -lsasl... yes
> 
> So, we appear to have sasl in the proper place; but...
> 
> $ LDFLAGS="-L/usr/local/lib -L/usr/local/lib/sasl" \
>   CPPFLAGS="-I/usr/local/include -I/usr/local/include/sasl" \
>   make
> 
> [snip]
> 
> gcc -o ../bin/argus_bpf argus.o ArgusAuth.o ArgusModeler.o
> ArgusOutput.o ArgusSource.o ArgusUtil.o Argus_tcp.o Argus_udp.o
> Argus_icmp.o Argus_app.o Argus_arp.o Argus_frag.o Argus_esp.o
> Argus_mac.o version.o -lpcap ../lib/argus_common.a   -lsasl -lm
> /usr/bin/ld: cannot find -lsasl
> collect2: ld returned 1 exit status
> *** Error code 1
> Stop in /home/eric/tmp/argus-2.0.6/server (line 127 of Makefile).
> ### Done with /home/eric/tmp/argus-2.0.6/server

In the words of Homer J. Simpson: "...doh!"

LDFLAGS="-L/usr/local/lib/sasl -R/usr/local/lib/sasl" \
CPPFLAGS="-I/usr/local/include/sasl" ./configure \
--prefix=/usr/local/argus --with-sasl

is what it took.

- eric

archive keywords: sasl cyrus compile link include lib cppflags ldflags




More information about the argus mailing list