I attached a patch for nfdump-snapshot-20070312 which adds the libraries
to the compile commands in "Makefile.in" and adds checks if librrd is in
the current system path in "configure.in". With this I am able to
compile and run nfdump on solaris 10.
Nfsen only works if I remove line 33 from nfsenutil.php. This is because
SO_RCVTIMEO is not implemented on solaris. If I remove this line
everything seems to work fine, although I don't know what consequences
this has.
Werner
Peter Haag wrote:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
I will need to change the autoconf, such that the librrd error message will
be reported correctly. btw. The snapshot is not ( yet ) tested on Solaris,
so feedback is welcome.
- Peter
- --On May 18, 2007 10:23:49 +0200 Werner Schram <[EMAIL PROTECTED]> wrote:
| I recently did a upgrade on solaris 10, and I had the same message.
|
| After analyzing the config.log file, I found that this error is caused
| by a missing library (rrdlib.so.2). By looking at your configure
| command, I think you probably have the file in "/usr/local/rrdtool/lib",
| but this directory might not be in your library search path. I solved
| the problem by installing rrdtool with "configure --prefix /usr/local",
| but I think you can also solve it with the "crle" command.
|
| The next problem I ran into, was that the Makefile generated by the
| configure script had a bug in it. On solaris (or maybe only on my system
| :) ) you have two library dependecies which you don't have on linux and
| freebsd. The configure script correctly puts these libraries in the
| $(LIBS) variable, but this variable doesn't get appended to the link
| commands in the Makefile. I am unable to send a patch for this problem,
| because I don't have access to this solaris machine till monday. But you
| can change it yourself by adding $(LIBS) to the lines that link the
| nfdump, nfprofile, nfcapd etc. files.
|
| I hope this helps
|
| Werner Schram
| SURFnet
|
|
| Ehab Fahmi wrote:
| > Thank you peter :)
| >
| >
| >
| >> -----BEGIN PGP SIGNED MESSAGE-----
| >> Hash: SHA1
| >>
| >>
| >>
| >> - --On May 16, 2007 11:50:53 +0300 Ehab Fahmi
| >> <[EMAIL PROTECTED]> wrote:
| >>
| >> | hello,
| >> |
| >> | Does anyone know where can i get the port tracker and dos attack plugins
| >> ?
| >> |
| >> | thanks alot. appreciated
| >>
| >> The last snapshot contains a contrib directory with the PortTracker.
| >>
| >> - Peter
| >>
| >> |
| >> | Regards,
| >> | Ehab Fahmi (Systems Security Engineer)
| >> | Eccsolutions
| >> |
| >> |
| >> |
| >> -------------------------------------------------------------------------
| >> | This SF.net email is sponsored by DB2 Express
| >> | Download DB2 Express C - the FREE version of DB2 express and take
| >> | control of your XML. No limits. Just data. Click to get it now.
| >> | http://sourceforge.net/powerbar/db2/
| >> | _______________________________________________
| >> | Nfsen-discuss mailing list
| >> | [email protected]
| >> | https://lists.sourceforge.net/lists/listinfo/nfsen-discuss
| >>
| >>
| >>
| >> - --
| >> _______ SWITCH - The Swiss Education and Research Network ______
| >> Peter Haag, Security Engineer, Member of SWITCH CERT
| >> PGP fingerprint: D9 31 D5 83 03 95 68 BA FB 84 CA 94 AB FC 5D D7
| >> SWITCH, Werdstrasse 2, P.O. Box, CH-8021 Zurich, Switzerland
| >> E-mail: [EMAIL PROTECTED] Web: http://www.switch.ch/
| >> -----BEGIN PGP SIGNATURE-----
| >> Version: GnuPG v1.4.3 (Darwin)
| >>
| >> iQCVAwUBRksImv5AbZRALNr/AQJdogQAlXyfkCR3PL77L0UBo0xtvTeQBgnZtcpJ
| >> Y7uusDrXPhJEPfh4xByKNMZh7yY9MqO9OWMy/74K+uLO/18khYGOMgDyPm1IWEt8
| >> Hbt2C7A4vgOymSZ7SXvYjjfCD0fQZ/Q0to+uvkA2fNXfvBeBR/knSHeIHWKYYfun
| >> D3+xXib6n2E=
| >> =q2H+
| >> -----END PGP SIGNATURE-----
| >>
| >>
| >>
| >
| >
| > Regards,
| > Ehab Fahmi (Systems Security Engineer)
| > Eccsolutions
| >
| >
| > -------------------------------------------------------------------------
| > This SF.net email is sponsored by DB2 Express
| > Download DB2 Express C - the FREE version of DB2 express and take
| > control of your XML. No limits. Just data. Click to get it now.
| > http://sourceforge.net/powerbar/db2/
| > _______________________________________________
| > Nfsen-discuss mailing list
| > [email protected]
| > https://lists.sourceforge.net/lists/listinfo/nfsen-discuss
| >
|
|
| -------------------------------------------------------------------------
| This SF.net email is sponsored by DB2 Express
| Download DB2 Express C - the FREE version of DB2 express and take
| control of your XML. No limits. Just data. Click to get it now.
| http://sourceforge.net/powerbar/db2/
| _______________________________________________
| Nfsen-discuss mailing list
| [email protected]
| https://lists.sourceforge.net/lists/listinfo/nfsen-discuss
- --
_______ SWITCH - The Swiss Education and Research Network ______
Peter Haag, Security Engineer, Member of SWITCH CERT
PGP fingerprint: D9 31 D5 83 03 95 68 BA FB 84 CA 94 AB FC 5D D7
SWITCH, Werdstrasse 2, P.O. Box, CH-8021 Zurich, Switzerland
E-mail: [EMAIL PROTECTED] Web: http://www.switch.ch/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (Darwin)
iQCVAwUBRlFQef5AbZRALNr/AQKB2AP/Rn3UwW8aMOaC3vspVDMRhkojXOwNXIWr
3S+TL+XUjHinrhZI6BOyb+F32j57pSvu2LL79E7+bgETaeWi8tGiVgcjprfpC4Js
XBuhCCn0TpGJTfA7Hy5y78XBExR3ZdEz1DlB36VsVFCc6gPDJ1V2+T7axSB7Zdeb
Sajpq3bGkIE=
=BLpV
-----END PGP SIGNATURE-----
diff -u nfdump-snapshot-20070312/Makefile.in
nfdump-snapshot-20070312-solaris/Makefile.in
--- nfdump-snapshot-20070312/Makefile.in Mon May 21 16:15:58 2007
+++ nfdump-snapshot-20070312-solaris/Makefile.in Tue May 22 11:21:02 2007
@@ -62,6 +62,7 @@
OBJECTS = nfcapd nfdump nfreplay nfexpire nftest nfgen @opt_objects@
INCS = @FT_INCLUDES@
LIBS = @LIBS@
+RRD_LIBS = @RRD_LIBS@
FT_LIBS = -lft -lz
FT_LDFLAGS = @FT_LDFLAGS@
WARNINGS = -Wall -Wstrict-prototypes -Wmissing-prototypes
-Wmissing-declarations -Wmissing-noreturn
@@ -72,34 +73,34 @@
all: $(OBJECTS)
nfcapd: $(NFCAPD_OBJ)
- $(CC) $(CFLAGS) -o $@ $(NFCAPD_OBJ) $(LDFLAGS)
+ $(CC) $(CFLAGS) -o $@ $(NFCAPD_OBJ) $(LDFLAGS) $(LIBS)
sfcapd: $(SFCAPD_OBJ)
- $(CC) $(CFLAGS) -o $@ $(SFCAPD_OBJ) $(LDFLAGS)
+ $(CC) $(CFLAGS) -o $@ $(SFCAPD_OBJ) $(LDFLAGS) $(LIBS)
nftest: nftest.o $(COMMON_OBJ) $(FILTER_OBJ)
- $(CC) $(CFLAGS) $(INCS) -o $@ nftest.o $(COMMON_OBJ) $(FILTER_OBJ)
$(LDFLAGS)
+ $(CC) $(CFLAGS) $(INCS) -o $@ nftest.o $(COMMON_OBJ) $(FILTER_OBJ)
$(LDFLAGS) $(LIBS)
nfgen: nfgen.o
- $(CC) $(CFLAGS) $(INCS) -o $@ $? $(LDFLAGS)
+ $(CC) $(CFLAGS) $(INCS) -o $@ $? $(LDFLAGS) $(LIBS)
nfdump: $(NFDUMP_OBJ)
- $(CC) $(CFLAGS) $(INCS) -o $@ $(NFDUMP_OBJ) $(LDFLAGS)
+ $(CC) $(CFLAGS) $(INCS) -o $@ $(NFDUMP_OBJ) $(LDFLaGS) $(LIBS)
nfprofile: $(NFPROF_OBJ)
- $(CC) $(CFLAGS) $(INCS) -o $@ $(NFPROF_OBJ) $(LDFLAGS) -lrrd
+ $(CC) $(CFLAGS) $(INCS) -o $@ $(NFPROF_OBJ) $(LDFLAGS) $(LIBS)
$(RRD_LIBS)
nfreplay: $(NFRPLY_OBJ)
- $(CC) $(CFLAGS) $(INCS) -o $@ $(NFRPLY_OBJ) $(LDFLAGS)
+ $(CC) $(CFLAGS) $(INCS) -o $@ $(NFRPLY_OBJ) $(LDFLAGS) $(LIBS)
nfexpire: $(NFEXPR_OBJ)
- $(CC) $(CFLAGS) $(INCS) -o $@ $(NFEXPR_OBJ) $(LDFLAGS)
+ $(CC) $(CFLAGS) $(INCS) -o $@ $(NFEXPR_OBJ) $(LDFLAGS) $(LIBS)
ft2nfdump: $(FT2NF_OBJ)
- $(CC) $(CFLAGS) -o $@ $(FT2NF_OBJ) $(LDFLAGS) $(FT_LDFLAGS) $(FT_LIBS)
+ $(CC) $(CFLAGS) -o $@ $(FT2NF_OBJ) $(LDFLAGS) $(FT_LDFLAGS) $(FT_LIBS)
$(LIBS)
nfreader: $(NFRDR_OBJ)
- $(CC) $(CFLAGS) -o $@ $(NFRDR_OBJ) $(LDFLAGS)
+ $(CC) $(CFLAGS) -o $@ $(NFRDR_OBJ) $(LDFLAGS) $(LIBS)
install: $(OBJECTS)
test -d $(PREFIX) || install -d -o root -g bin -m 755 $(PREFIX)
Only in nfdump-snapshot-20070312-solaris: autom4te.cache
diff -u nfdump-snapshot-20070312/configure.in
nfdump-snapshot-20070312-solaris/configure.in
--- nfdump-snapshot-20070312/configure.in Mon May 21 16:15:58 2007
+++ nfdump-snapshot-20070312-solaris/configure.in Tue May 22 12:12:24 2007
@@ -99,11 +99,15 @@
AC_ARG_ENABLE(nfprofile,
[ --enable-nfprofile Build nfprofile used by NfSen; default is NO],
[
- AC_CHECK_LIB(rrd, rrd_update,, AC_MSG_ERROR(librrd not foundfailed! ))
+ AC_CHECK_LIB(rrd, rrd_update,RRD_LIBS="-lrrd", AC_MSG_ERROR(librrd not
foundfailed! ))
AC_CHECK_HEADERS([rrd.h])
if test "$ac_cv_header_rrd_h" = yes; then
opt_objects="$opt_objects nfprofile"
fi
+ LIBS_save="$LIBS"
+ LIBS="$LIBS $RRD_LIBS"
+ AC_TRY_LINK([#include <rrd.h>], [rrd_version()],, AC_MSG_ERROR(librrd
not in library search path! ))
+ LIBS="$LIBS_save"
]
,
opt_objects=
@@ -119,6 +123,7 @@
AC_SUBST(FT_INCLUDES)
AC_SUBST(FT_LDFLAGS)
AC_SUBST(LFLAGS)
+AC_SUBST(RRD_LIBS)
# Checks for libraries.
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Nfsen-discuss mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nfsen-discuss