Re: core dump libcap
Bonjour Djamel, Est ce que tu as essayé de l'installer via pkg_add avant d'utiliser les ports ? Ilyès Aiouaz Email : ilyes.aio...@gmail.com Mobile : +213 (0)560 08 41 67 Le 24/12/2014 11:42, Djamel FERRAG a écrit : Hi, I'm trying to compile libpcap 1.62 on my openbsd 5.6 box since several days without success, this is output from make and gdb gcc -fpic -I. -DHAVE_CONFIG_H -D_U_=__attribute__((unused)) -g -O2 -c ./pcap-bpf.c gcc -fpic -I. -DHAVE_CONFIG_H -D_U_=__attribute__((unused)) -g -O2 -c ./fad-getad.c if grep GIT ./VERSION /dev/null; then read ver ./VERSION; echo $ver | tr -d '\012'; date +_%Y_%m_%d; else cat ./VERSION; fi | sed -e 's/.*/static const char pcap_version_string[] = libpcap version ;/' version.h gcc -fpic -I. -DHAVE_CONFIG_H -D_U_=__attribute__((unused)) -g -O2 -c ./pcap.c gcc -fpic -I. -DHAVE_CONFIG_H -D_U_=__attribute__((unused)) -g -O2 -c ./inet.c gcc -fpic -I. -DHAVE_CONFIG_H -D_U_=__attribute__((unused)) -g -O2 -c ./gencode.c gcc -fpic -I. -DHAVE_CONFIG_H -D_U_=__attribute__((unused)) -g -O2 -c ./optimize.c gcc -fpic -I. -DHAVE_CONFIG_H -D_U_=__attribute__((unused)) -g -O2 -c ./nametoaddr.c gcc -fpic -I. -DHAVE_CONFIG_H -D_U_=__attribute__((unused)) -g -O2 -c ./etherent.c gcc -fpic -I. -DHAVE_CONFIG_H -D_U_=__attribute__((unused)) -g -O2 -c ./savefile.c gcc -fpic -I. -DHAVE_CONFIG_H -D_U_=__attribute__((unused)) -g -O2 -c ./sf-pcap.c gcc -fpic -I. -DHAVE_CONFIG_H -D_U_=__attribute__((unused)) -g -O2 -c ./sf-pcap-ng.c gcc -fpic -I. -DHAVE_CONFIG_H -D_U_=__attribute__((unused)) -g -O2 -c ./pcap-common.c gcc -fpic -I. -DHAVE_CONFIG_H -D_U_=__attribute__((unused)) -g -O2 -c ./bpf_image.c gcc -fpic -I. -DHAVE_CONFIG_H -D_U_=__attribute__((unused)) -g -O2 -c ./bpf_dump.c ./runlex.sh flex -Ppcap_ -oscanner.c ./scanner.l Bad system call (core dumped) *** Error 140 in /usr/local/src/libpcap-1.6.2 (Makefile:447 'scanner.c') # flex -V flex 2.5.39 GNU gdb 6.3 Copyright 2004 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type show copying to see the conditions. There is absolutely no warranty for GDB. Type show warranty for details. This GDB was configured as amd64-unknown-openbsd5.6... Core was generated by `flex'. Program terminated with signal 12, Bad system call. Loaded symbols for /usr/bin/flex Reading symbols from /usr/lib/libm.so.9.0...done. Loaded symbols for /usr/lib/libm.so.9.0 Reading symbols from /usr/lib/libc.so.77.3...done. Loaded symbols for /usr/lib/libc.so.77.3 Reading symbols from /usr/libexec/ld.so...done. Loaded symbols for /usr/libexec/ld.so #0 0x051f3b0299fa in dup3 () at stdin:2 2 stdin: No such file or directory. in stdin got the same error using different versions of flex 2.5.4 2.5.35 2.5.39 Thanks in advance [demime 1.01d removed an attachment of type text/x-vcard which had a name of DjamelFERRAG.vcf]
Re: core dump libcap
On Wed, Dec 24, 2014 at 11:42, Djamel FERRAG wrote: Hi, I'm trying to compile libpcap 1.62 on my openbsd 5.6 box since several days without success, this is output from make and gdb Bad system call (core dumped) #0 0x051f3b0299fa in dup3 () at stdin:2 You've managed to install several parts of current. The dup3 system call was added after 5.6.
Re: core dump libcap
The idea behind is to install snort and actually the version provided by openbsd ports lacks some features. Le 24 décembre 2014 à 11:33, ilyes aiouaz - gmail ilyes.aio...@gmail.com a écrit : Bonjour Djamel, Est ce que tu as essayé de l'installer via pkg_add avant d'utiliser les ports ? Ilyès Aiouaz Email : ilyes.aio...@gmail.com Mobile : +213 (0)560 08 41 67 Le 24/12/2014 11:42, Djamel FERRAG a écrit : Hi, I'm trying to compile libpcap 1.62 on my openbsd 5.6 box since several days without success, this is output from make and gdb gcc -fpic -I. -DHAVE_CONFIG_H -D_U_=__attribute__((unused)) -g -O2 -c ./pcap-bpf.c gcc -fpic -I. -DHAVE_CONFIG_H -D_U_=__attribute__((unused)) -g -O2 -c ./fad-getad.c if grep GIT ./VERSION /dev/null; then read ver ./VERSION; echo $ver | tr -d '\012'; date +_%Y_%m_%d; else cat ./VERSION; fi | sed -e 's/.*/static const char pcap_version_string[] = libpcap version ;/' version.h gcc -fpic -I. -DHAVE_CONFIG_H -D_U_=__attribute__((unused)) -g -O2 -c ./pcap.c gcc -fpic -I. -DHAVE_CONFIG_H -D_U_=__attribute__((unused)) -g -O2 -c ./inet.c gcc -fpic -I. -DHAVE_CONFIG_H -D_U_=__attribute__((unused)) -g -O2 -c ./gencode.c gcc -fpic -I. -DHAVE_CONFIG_H -D_U_=__attribute__((unused)) -g -O2 -c ./optimize.c gcc -fpic -I. -DHAVE_CONFIG_H -D_U_=__attribute__((unused)) -g -O2 -c ./nametoaddr.c gcc -fpic -I. -DHAVE_CONFIG_H -D_U_=__attribute__((unused)) -g -O2 -c ./etherent.c gcc -fpic -I. -DHAVE_CONFIG_H -D_U_=__attribute__((unused)) -g -O2 -c ./savefile.c gcc -fpic -I. -DHAVE_CONFIG_H -D_U_=__attribute__((unused)) -g -O2 -c ./sf-pcap.c gcc -fpic -I. -DHAVE_CONFIG_H -D_U_=__attribute__((unused)) -g -O2 -c ./sf-pcap-ng.c gcc -fpic -I. -DHAVE_CONFIG_H -D_U_=__attribute__((unused)) -g -O2 -c ./pcap-common.c gcc -fpic -I. -DHAVE_CONFIG_H -D_U_=__attribute__((unused)) -g -O2 -c ./bpf_image.c gcc -fpic -I. -DHAVE_CONFIG_H -D_U_=__attribute__((unused)) -g -O2 -c ./bpf_dump.c ./runlex.sh flex -Ppcap_ -oscanner.c ./scanner.l Bad system call (core dumped) *** Error 140 in /usr/local/src/libpcap-1.6.2 (Makefile:447 'scanner.c') # flex -V flex 2.5.39 GNU gdb 6.3 Copyright 2004 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type show copying to see the conditions. There is absolutely no warranty for GDB. Type show warranty for details. This GDB was configured as amd64-unknown-openbsd5.6... Core was generated by `flex'. Program terminated with signal 12, Bad system call. Loaded symbols for /usr/bin/flex Reading symbols from /usr/lib/libm.so.9.0...done. Loaded symbols for /usr/lib/libm.so.9.0 Reading symbols from /usr/lib/libc.so.77.3...done. Loaded symbols for /usr/lib/libc.so.77.3 Reading symbols from /usr/libexec/ld.so...done. Loaded symbols for /usr/libexec/ld.so #0 0x051f3b0299fa in dup3 () at stdin:2 2 stdin: No such file or directory. in stdin got the same error using different versions of flex 2.5.4 2.5.35 2.5.39 Thanks in advance [demime 1.01d removed an attachment of type text/x-vcard which had a name of DjamelFERRAG.vcf] -- This email was Virus checked by ONA. Djamel FERRAG Chef de Projet Réseaux informatiques Office National de l'Assainissement Mob: +213 770894370 Fax: +213 21762040 [demime 1.01d removed an attachment of type text/x-vcard which had a name of DjamelFERRAG.vcf]
Re: core dump libcap
On Wed, Dec 24, 2014 at 02:08:07PM +0100, Djamel FERRAG wrote: The idea behind is to install snort and actually the version provided by openbsd ports lacks some features. SIGSYS means you system has been updated incompletely and incorrectly. It is in a state where it produces excutables that cannot be run. You *need* to fix that first, -Otto Le 24 d?cembre 2014 ? 11:33, ilyes aiouaz - gmail ilyes.aio...@gmail.com a ?crit : Bonjour Djamel, Est ce que tu as essay? de l'installer via pkg_add avant d'utiliser les ports ? Ily?s Aiouaz Email : ilyes.aio...@gmail.com Mobile : +213 (0)560 08 41 67 Le 24/12/2014 11:42, Djamel FERRAG a ?crit : Hi, I'm trying to compile libpcap 1.62 on my openbsd 5.6 box since several days without success, this is output from make and gdb gcc -fpic -I. -DHAVE_CONFIG_H -D_U_=__attribute__((unused)) -g -O2 -c ./pcap-bpf.c gcc -fpic -I. -DHAVE_CONFIG_H -D_U_=__attribute__((unused)) -g -O2 -c ./fad-getad.c if grep GIT ./VERSION /dev/null; then read ver ./VERSION; echo $ver | tr -d '\012'; date +_%Y_%m_%d; else cat ./VERSION; fi | sed -e 's/.*/static const char pcap_version_string[] = libpcap version ;/' version.h gcc -fpic -I. -DHAVE_CONFIG_H -D_U_=__attribute__((unused)) -g -O2 -c ./pcap.c gcc -fpic -I. -DHAVE_CONFIG_H -D_U_=__attribute__((unused)) -g -O2 -c ./inet.c gcc -fpic -I. -DHAVE_CONFIG_H -D_U_=__attribute__((unused)) -g -O2 -c ./gencode.c gcc -fpic -I. -DHAVE_CONFIG_H -D_U_=__attribute__((unused)) -g -O2 -c ./optimize.c gcc -fpic -I. -DHAVE_CONFIG_H -D_U_=__attribute__((unused)) -g -O2 -c ./nametoaddr.c gcc -fpic -I. -DHAVE_CONFIG_H -D_U_=__attribute__((unused)) -g -O2 -c ./etherent.c gcc -fpic -I. -DHAVE_CONFIG_H -D_U_=__attribute__((unused)) -g -O2 -c ./savefile.c gcc -fpic -I. -DHAVE_CONFIG_H -D_U_=__attribute__((unused)) -g -O2 -c ./sf-pcap.c gcc -fpic -I. -DHAVE_CONFIG_H -D_U_=__attribute__((unused)) -g -O2 -c ./sf-pcap-ng.c gcc -fpic -I. -DHAVE_CONFIG_H -D_U_=__attribute__((unused)) -g -O2 -c ./pcap-common.c gcc -fpic -I. -DHAVE_CONFIG_H -D_U_=__attribute__((unused)) -g -O2 -c ./bpf_image.c gcc -fpic -I. -DHAVE_CONFIG_H -D_U_=__attribute__((unused)) -g -O2 -c ./bpf_dump.c ./runlex.sh flex -Ppcap_ -oscanner.c ./scanner.l Bad system call (core dumped) *** Error 140 in /usr/local/src/libpcap-1.6.2 (Makefile:447 'scanner.c') # flex -V flex 2.5.39 GNU gdb 6.3 Copyright 2004 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type show copying to see the conditions. There is absolutely no warranty for GDB. Type show warranty for details. This GDB was configured as amd64-unknown-openbsd5.6... Core was generated by `flex'. Program terminated with signal 12, Bad system call. Loaded symbols for /usr/bin/flex Reading symbols from /usr/lib/libm.so.9.0...done. Loaded symbols for /usr/lib/libm.so.9.0 Reading symbols from /usr/lib/libc.so.77.3...done. Loaded symbols for /usr/lib/libc.so.77.3 Reading symbols from /usr/libexec/ld.so...done. Loaded symbols for /usr/libexec/ld.so #0 0x051f3b0299fa in dup3 () at stdin:2 2 stdin: No such file or directory. in stdin got the same error using different versions of flex 2.5.4 2.5.35 2.5.39 Thanks in advance [demime 1.01d removed an attachment of type text/x-vcard which had a name of DjamelFERRAG.vcf] -- This email was Virus checked by ONA. Djamel FERRAG Chef de Projet R?seaux informatiques Office National de l'Assainissement Mob: +213 770894370 Fax: +213 21762040 [demime 1.01d removed an attachment of type text/x-vcard which had a name of DjamelFERRAG.vcf]