[prev in list] [next in list] [prev in thread] [next in thread]
List: prelude-devel
Subject: [prelude-devel] [Prelude Hybrid IDS] #84: make problem - samhain
From: Prelude Hybrid IDS <noreply () prelude-ids ! org>
Date: 2005-06-30 12:40:15
Message-ID: 067.06d592e065637e432e8209ed5b17211e () prelude-ids ! org
[Download RAW message or body]
#84: make problem - samhain with prelude on FreeBSD
------------------------+---------------------------------------------------
Id: 84 | Status: new
Component: libprelude | Modified: Thu Jun 30 14:40:15 2005
Severity: normal | Milestone:
Priority: normal | Version:
Owner: yoann | Reporter: aristeu-prelude@wahtec.com.br
------------------------+---------------------------------------------------
I have found a problem in compiling samhain with prelude support. It seems
to be a problem in configure stage. I had to put "-cflags=-pthread" in
configure to solve this issue.
# ./configure --with-prelude
checking for a BSD-compatible install... /usr/bin/install -c
checking whether make sets $(MAKE)... yes
checking build system type... i386-unknown-freebsd5.4
checking host system type... i386-unknown-freebsd5.4
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking how to run the C preprocessor... gcc -E
checking for a BSD-compatible install... /usr/bin/install -c
checking whether ln -s works... no, using
checking for gawk... no
checking for mawk... no
checking for nawk... nawk
checking for hostname... /bin/hostname
checking whether gcc accepts -fstack-protector... no
checking for egrep... grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for sys/types.h... (cached) yes
checking sys/msg.h usability... yes
checking sys/msg.h presence... yes
checking for sys/msg.h... yes
checking sys/uio.h usability... yes
checking sys/uio.h presence... yes
checking for sys/uio.h... yes
checking for sys/stat.h... (cached) yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking for memory.h... (cached) yes
checking for strings.h... (cached) yes
checking for inttypes.h... (cached) yes
checking for stdint.h... (cached) yes
checking for unistd.h... (cached) yes
checking for host-specific issues... none
checking for dirent.h that defines DIR... yes
checking for library containing opendir... none required
checking whether sys/types.h defines makedev... yes
checking whether time.h and sys/time.h may both be included... yes
checking whether stat file-mode macros are broken... no
checking whether sys_siglist is declared... yes
checking for stddef.h... yes
checking for libgen.h... yes
checking for sched.h... yes
checking for sys/vfs.h... no
checking for sys/select.h... yes
checking for sys/socket.h... yes
checking for netinet/in.h... yes
checking for regex.h... yes
checking for glob.h... yes
checking for linux/ext2_fs.h... no
checking for ext2fs/ext2_fs.h... no
checking for paths.h... yes
checking for arpa/nameser.h... yes
checking for arpa/nameser_compat.h... yes
checking utmpx.h usability... no
checking utmpx.h presence... no
checking for utmpx.h... no
checking for struct statfs.f_flags... no
checking for special C compiler options needed for large files... no
checking for _FILE_OFFSET_BITS value needed for large files... no
checking for _LARGE_FILES value needed for large files... no
checking whether _POSIX_SOURCE is necessary... no
checking for strftime... yes
checking for memcmp... yes
checking for memcpy... yes
checking for memmove... yes
checking for memset... yes
checking for getpwent... yes
checking for endpwent... yes
checking for gettimeofday... yes
checking for strlcat... yes
checking for strlcpy... yes
checking for strstr... yes
checking for strchr... yes
checking for strerror... yes
checking for strsignal... yes
checking for seteuid... yes
checking for setreuid... yes
checking for setresuid... yes
checking for lstat... yes
checking for getwd... yes
checking for getcwd... yes
checking for ptrace... yes
checking for usleep... yes
checking for setpriority... yes
checking for getpeereid... yes
checking for nanosleep... yes
checking for strptime... yes
checking for basename... yes
checking for sched_yield... yes
checking for inet_aton... yes
checking for gethostbyname... yes
checking for setutent... no
checking for setrlimit... yes
checking for gethostname... yes
checking for uname... yes
checking for initgroups... yes
checking for getpagesize... yes
checking for ttyname... yes
checking for fchmod... yes
checking for statfs... yes
checking for va_copy()... yes
checking for __va_copy()... no
checking whether va_lists can be copied by value... yes
checking for vsnprintf... yes
checking for working vsnprintf... (cached) yes
checking for mlock... yes
checking whether mlock is broken... no
checking how to get filesystem type... 4.4BSD/OSF
checking for gethostbyname in -lnsl... no
checking for socket in -lsocket... no
checking for gethostbyname in -lnsl... (cached) no
checking for res_search in -lsocket... no
checking for res_search in -lresolv... no
checking for dn_skipname in -lresolv... no
checking for __dn_skipname in -lresolv... no
checking for working long double with more range or precision than
double... yes
checking for long long typedef... yes
checking for ptrdiff_t... yes
checking for size_t... yes
checking for char *... yes
checking size of char *... 4
checking for size_t... (cached) yes
checking size of size_t... 4
checking for unsigned long... yes
checking size of unsigned long... 4
checking for unsigned int ... yes
checking size of unsigned int ... 4
checking for unsigned short... yes
checking size of unsigned short... 2
checking whether struct tm is in sys/time.h or time.h... time.h
checking whether struct stat has a st_flags field... yes
checking whether st_flags field is useful... yes
checking for struct cmsgcred... yes
checking for struct fcred... no
checking for struct sockcred... no
checking for SO_PEERCRED... no
checking for inline... inline
checking for an ANSI C-conforming const... yes
checking whether byte ordering is bigendian... no
checking signal.h usability... yes
checking signal.h presence... yes
checking for signal.h... yes
checking for SI_USER in signal.h... yes
checking for SA_SIGINFO in signal.h... yes
checking whether sa_sigaction is supported... no
checking for __gmpz_init in -lgmp... no
checking for mpz_init in -lgmp... no
checking gmp.h usability... no
checking gmp.h presence... no
checking for gmp.h... no
checking whether to use libwrap... no
checking whether to use prelude... yes
checking for libprelude-config... /usr/local/bin/libprelude-config
checking for libprelude - version >= 0.9.0... yes
checking which random module to use... default
checking whether /dev/random exists... yes
checking for user samhain... no
checking for user daemon... yes
checking base key setting .. collecting entropy... 277151606 545865727
checking key position... 7
configure: creating ./config.status
config.status: creating Makefile
config.status: creating samhain-install.sh
config.status: creating init/samhain.startLSB
config.status: creating init/samhain.startLinux
config.status: creating init/samhain.startGentoo
config.status: creating init/samhain.startFreeBSD
config.status: creating init/samhain.startSolaris
config.status: creating init/samhain.startHPUX
config.status: creating init/samhain.startIRIX
config.status: creating samhain.spec
config.status: creating rules.deb
config.status: creating rules.deb-light
config.status: creating hp_ux.psf
config.status: creating scripts/samhain.spec
config.status: creating scripts/redhat_i386.client.spec
config.status: creating scripts/samhain.ebuild
config.status: creating scripts/samhain.ebuild-light
config.status: creating scripts/samhainadmin.pl
config.status: creating scripts/check_samhain.pl
config.status: creating deploy.sh
config.status: creating config.h
config.status: executing default commands
samhain has been configured as follows:
System binaries: /usr/local/sbin
Configuration file: /etc/samhainrc
Manual pages: /usr/local/man
Data: /var/lib/samhain
PID file: /var/run/samhain.pid
Log file: /var/log/samhain_log
Base key: 277151606,545865727
Selected rc file: samhainrc.freebsd
#
#
#
# make
(...)
gcc -DHAVE_CONFIG_H -I. -I./include -O2 -I/usr/local/include -Wall -W
-fno-strength-reduce -fno-omit-frame-pointer -DSH_STANDALONE -o
sh_entropy.o -c x_sh_entropy.c
./encode 0 ./src/sh_forward.c --> x_sh_forward.c
gcc -DHAVE_CONFIG_H -I. -I./include -O2 -I/usr/local/include -Wall -W
-fno-strength-reduce -fno-omit-frame-pointer -DSH_STANDALONE -o
sh_forward.o -c x_sh_forward.c
./encode 0 ./src/sh_modules.c --> x_sh_modules.c
gcc -DHAVE_CONFIG_H -I. -I./include -O2 -I/usr/local/include -Wall -W
-fno-strength-reduce -fno-omit-frame-pointer -DSH_STANDALONE -o
sh_modules.o -c x_sh_modules.c
./encode 0 ./src/sh_utmp.c --> x_sh_utmp.c
gcc -DHAVE_CONFIG_H -I. -I./include -O2 -I/usr/local/include -Wall -W
-fno-strength-reduce -fno-omit-frame-pointer -DSH_STANDALONE -o sh_utmp.o
-c x_sh_utmp.c
gcc -DHAVE_CONFIG_H -I. -I./include -O2 -I/usr/local/include -Wall -W
-fno-strength-reduce -fno-omit-frame-pointer
-DSYSTEMMAP="/boot/System.map" -o kern_head ./src/kern_head.c
-L/usr/local/lib -lprelude -L/usr/local/lib -lgnutls -L/usr/local/lib
-lgcrypt -L/usr/local/lib -lgpg-error -lz
/usr/local/lib/libprelude.so: undefined reference to `pthread_create'
/usr/local/lib/libprelude.so: undefined reference to `pthread_exit'
/usr/local/lib/libprelude.so: undefined reference to `pthread_atfork'
/usr/local/lib/libprelude.so: undefined reference to `pthread_join'
/usr/local/lib/libprelude.so: undefined reference to
`pthread_cond_timedwait'
*** Error code 1
Stop in /home/arisjr/samhain-2.0.7.
# ./configure --with-prelude --with-cflags=-pthread
(...)
# make
(ok)
# make install
(ok)
Best regards,
--aristeu
--
Ticket URL: <https://trac.prelude-ids.org/ticket/84>
Prelude Hybrid IDS <http://www.prelude-ids.org>
The Prelude Hybrid Intrusion Detection System suite
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic