[ARGUS] Linking Against sasl on OpenBSD
eric-list-argus at catastrophe.net
eric-list-argus at catastrophe.net
Thu May 27 22:53:44 EDT 2004
I've been trying to link argus-2.0.6 against cyrus-sasl with no
luck. Here's some base information.
$ pkg_info |grep cyrus
cyrus-sasl-1.5.27p1 RFC 2222 SASL (Simple Authentication and Security Layer)
$ uname -a
OpenBSD mercury 3.5 GENERIC#34 i386
In the argus-2.0.6 directory, I do the following...
$ 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
Has anyone run into this on OpenBSD or FreeBSD (I get the same issue
with FreeBSD). Sorry about the issue; never been good at linking :)
Thanks.
- Eric
More information about the argus
mailing list