[ARGUS] Linking Against sasl on OpenBSD
Carter Bullard
carter at qosient.com
Fri May 28 12:29:44 EDT 2004
Hey Eric,
So where is your sasl library? Could be ./configure has
a different path than the make?
Hmmm, what if you move the '../lib/argus_common.a' in front
of the '-lpcap' in the gcc command?
Carter
-----Original Message-----
From: owner-argus-info at lists.andrew.cmu.edu
[mailto:owner-argus-info at lists.andrew.cmu.edu] On Behalf Of
eric-list-argus at catastrophe.net
Sent: Thursday, May 27, 2004 10:54 PM
To: argus-info at lists.andrew.cmu.edu
Subject: [ARGUS] Linking Against sasl on OpenBSD
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