[Snortsam-discussion] undefined reference to `AlertFWsamSetup' snort 2.7.0 ubuntu 8.10
David Ballester
ballester.david at gmail.com
Mon Nov 24 05:42:39 EST 2008
Hi to all:
I'm trying to patch snort to be able to use snortsam without success
my environment:
x86
snort 2.7.0 debian package. All deps and source code package installed
downloaded snortsam package for 2.6.0/2.7.0
wget http://www.snortsam.net/files/snortsam/snortsam-src-2.60.tar.gz
snort source + debian/ubuntu patches availabe:
root at snort:~/snort-2.7.0# ls -lrt
total 2020
-rwxr-xr-x 1 root root 5584 2000-08-07 04:41 install-sh
-rwxr-xr-x 1 root root 676 2003-10-20 17:03 mkinstalldirs
-rwxr-xr-x 1 root root 1770 2005-05-05 22:01 verstuff.pl
-rw-r--r-- 1 root root 420 2005-08-12 22:22 Makefile.am
-rw-r--r-- 1 root root 198422 2006-07-13 09:12 ltmain.sh
-rw-r--r-- 1 root root 869 2007-07-03 19:38 RELEASE.NOTES
-rw-r--r-- 1 root root 20997 2007-07-03 22:41 COPYING
-rwxr-xr-x 1 root root 8923 2007-07-03 22:41 missing
-rw-r--r-- 1 root root 21003 2007-07-03 22:41 LICENSE
-rw-r--r-- 1 root root 307511 2007-07-06 17:32 ChangeLog
-rw-r--r-- 1 root root 263773 2007-07-16 14:12 aclocal.m4
-rw-r--r-- 1 root root 4942 2007-07-16 14:12 config.h.in
-rwxr-xr-x 1 root root 15936 2007-07-16 14:12 depcomp
-rw-r--r-- 1 root root 21958 2007-07-16 14:12 Makefile.in
drwxr-xr-x 2 root root 4096 2007-07-18 22:16 templates
drwxr-xr-x 2 root root 4096 2007-07-18 22:16 contrib
drwxr-xr-x 2 root root 4096 2007-07-18 22:16 schemas
drwxr-xr-x 2 root root 4096 2007-07-18 22:16 rpm
drwxr-xr-x 2 root root 4096 2007-07-18 22:16 m4
-rw-r--r-- 1 root root 25224 2008-11-21 16:40 snort.8
-rw-r--r-- 1 root root 4925 2008-11-21 16:40 RELEASE.NOTES.2.6
-rw-r--r-- 1 root root 6278 2008-11-21 16:40 RELEASE.NOTES.2.4
-rw-r--r-- 1 root root 5553 2008-11-21 16:40 RELEASE.NOTES.2.3
-rw-r--r-- 1 root root 38334 2008-11-21 16:40 configure.in
-rwxr-xr-x 1 root root 908570 2008-11-21 16:40 configure
-rwxr-xr-x 1 root root 32724 2008-11-21 16:40 config.sub
-rwxr-xr-x 1 root root 44593 2008-11-21 16:40 config.guess
drwxr-xr-x 2 root root 12288 2008-11-21 16:40 rules
drwxr-xr-x 2 root root 4096 2008-11-21 16:40 etc
drwxr-xr-x 3 root root 4096 2008-11-21 16:40 doc
drwxr-xr-x 4 root root 12288 2008-11-21 16:40 debian
drwxr-xr-x 11 root root 4096 2008-11-21 17:07 src
root at snort:~/snort-2.7.0#
After apply the patch
root at snort:~# ./patchsnort.sh snort-2.7.0
Patching Snort version 2.x...
patching file spo_alert_fwsam.c
patching file spo_alert_fwsam.h
patching file twofish.c
patching file twofish.h
patching file plugbase.c
Hunk #1 succeeded at 115 with fuzz 2 (offset 5 lines).
Hunk #2 succeeded at 814 with fuzz 2 (offset 239 lines).
patching file plugin_enum.h
Hunk #1 succeeded at 31 (offset 21 lines).
Patching Makefiles...
Done
root at snort:~#
I try to re build the package ( includes the config & make procedures )
root at snort:~/snort-2.7.0# dpkg-buildpackage -rfakeroot -b
(...)
plugbase.o: In function `InitOutputPlugins':
/home/operador/snort-2.7.0/src/plugbase.c:817: undefined reference to
`AlertFWsamSetup'
collect2: ld returned 1 exit status
make[4]: *** [snort] Error 1
make[4]: Leaving directory `/home/operador/snort-2.7.0/src'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/home/operador/snort-2.7.0/src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/operador/snort-2.7.0'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/home/operador/snort-2.7.0'
make: *** [build-basic-stamp] Error 2
dpkg-buildpackage: failure: fakeroot debian/rules binary gave error exit
status 2
root at snort:~/snort-2.7.0#
If I try to repatch again, patchsnort claims that the patch is yet
applied ( as expected )
root at snort:~# ./patchsnort.sh snort-2.7.0
SnortSam patch already applied in 'snort-2.7.0'!
root at snort:~#
Any tip?
Thanks
D.
More information about the Snortsam-discussion
mailing list