[Oisf-users] Problem with building from git and gnu autotools?

Peter Manev petermanev at gmail.com
Wed Sep 4 06:57:33 UTC 2013


On Wed, Sep 4, 2013 at 2:35 AM, Cooper F. Nelson <cnelson at ucsd.edu> wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Hi all,
>
> I'm having intermittent problems with building the 2.0dev release from
> git.  I don't want to file a bug report just yet as I'm not sure whether
> the issue is with the git release or my build environment.
>
> This is my build script:
>
>> #!/bin/sh
>
>> cd /usr/src
>> rm -rf oisf
>> git clone git://phalanx.openinfosecfoundation.org/oisf.git
>> cd /usr/src/oisf
>> git clone -b 0.5.x git://github.com/ironbee/libhtp.git
>> cd libhtp; ./autogen.sh; cd ..
>> ./autogen.sh
>> ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var --enable-geoip
>> make && make install && ldconfig
>

I just copy pasted the script on a Ubuntu LTS with 3.5 kernel - no
problem, build and installed fine.
This could prove to be OS dependent, or at least autotools ver dependent?


> This should work (based on past experience).  What happens now is that
> it dies with errors like this:
>
>> configure.ac:81: error: required file './ltmain.sh' not found
>
> Re-running autogen.sh will eventually fix these errors as it appears to
> be due to the autotools not running in the correct order (possible
> relevant manual entry below).
>
>> http://www.gnu.org/software/automake/manual/html_node/Error-required-file-ltmain_002esh-not-found.html
>
> The configure command completes successfully.  Make dies compiling
> suricata.c:
>
>> gcc -DHAVE_CONFIG_H -I. -I..   -I./../libhtp/  -I/usr/include/nspr  -I/usr/include/nss -I/usr/include/nspr  -DLOCAL_STATE_DIR=\"/var\" -g -O2 -Wextra -Werror-implicit-function-declaration -fno-tree-pre -Wall -fno-strict-aliasing -Wno-unused-parameter -std=gnu99 -march=native -DHAVE_LIBNET11 -D_BSD_SOURCE -D__BSD_SOURCE -D__FAVOR_BSD -DHAVE_NET_ETHERNET_H -DHAVE_LIBNET_ICMPV6_UNREACH  -I/usr/include -DLIBPCAP_VERSION_MAJOR=1 -DHAVE_PCAP_SET_BUFF -DHAVE_LIBCAP_NG -DREVISION="867a44f" -MT suricata.o -MD -MP -MF .deps/suricata.Tpo -c -o suricata.o suricata.c
>> suricata.c: In function 'SCPrintBuildInfo':
>> suricata.c:677:50: error: 'defined' undeclared (first use in this function)
>> suricata.c:677:50: note: each undeclared identifier is reported only once for each function it appears in
>> suricata.c:677:50: error: expected ')' before numeric constant
>> make[3]: *** [suricata.o] Error 1
>> make[3]: Leaving directory `/usr/src/oisf/src'
>> make[2]: *** [all] Error 2
>> make[2]: Leaving directory `/usr/src/oisf/src'
>> make[1]: *** [all-recursive] Error 1
>> make[1]: Leaving directory `/usr/src/oisf'
>> make: *** [all] Error 2
>
> I had this problem before and running 'autogen.sh' twice in the libhtp
> directory fixed it.  Any ideas?
>
> - --
> Cooper Nelson
> Network Security Analyst
> UCSD ACT Security Team
> cnelson at ucsd.edu x41042
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v2.0.17 (MingW32)
> Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/
>
> iQEcBAEBAgAGBQJSJoBZAAoJEKIFRYQsa8FW4uIH/RJKlLWgy+YmHftOmMND0Ym8
> r2qsZY57xOyiF7wBgy/PAGo5aXZ/r1lEBcLKGi/Vo653Rr06XLHWWe4cuvRjw4Ge
> frxMKvWsd0PtzpVlilnpPNhvPkUoE1rUtf02671ZyyVx7/kuULN3hhds8YsLCLZG
> jwKgyro8EK2vnkOWi45ULXacWlL+jmaOj1XHC4j+zKn6jHwoBD2+fztzI7Agj4r/
> DR9Ji4F1rfZSm1XmjimlJH574jKdq+FSL3fzv7/ZASEfGnHkKkFMqSezw7K/UCfW
> zTZrjA0fKdJRvQ8k8k6qAPccE55bDzFpWaUzFf/8QM6x1chdvSyLQDuxLWPQAP8=
> =OdiL
> -----END PGP SIGNATURE-----
> _______________________________________________
> Suricata IDS Users mailing list: oisf-users at openinfosecfoundation.org
> Site: http://suricata-ids.org | Support: http://suricata-ids.org/support/
> List: https://lists.openinfosecfoundation.org/mailman/listinfo/oisf-users
> OISF: http://www.openinfosecfoundation.org/



-- 
Regards,
Peter Manev



More information about the Oisf-users mailing list