[Snort-users] Error when installing barnyard2

Borja Luaces borja.luaces at ...11827...
Thu May 10 08:35:53 EDT 2012


Sure,

Step 5 of the debian installation guide.

cd /usr/src
wget https://....
tar -zxf ...
cd firssy...
autoreconf -fvi -I ./m4

===================
root at ...2306...:/usr/src/firnsy-barnyard2-c8e30b8# autoreconf -fvi -I ./m4
autoreconf: Entering directory `.'
autoreconf: configure.in: not using Gettext
autoreconf: running: aclocal -I ./m4 --force -I m4
autoreconf: configure.in: tracing
autoreconf: running: libtoolize --copy --force
libtoolize: putting auxiliary files in `.'.
libtoolize: copying file `./ltmain.sh'
libtoolize: putting macros in AC_CONFIG_MACRO_DIR, `m4'.
libtoolize: copying file `m4/libtool.m4'
libtoolize: copying file `m4/ltoptions.m4'
libtoolize: copying file `m4/ltsugar.m4'
libtoolize: copying file `m4/ltversion.m4'
libtoolize: copying file `m4/lt~obsolete.m4'
autoreconf: running: /usr/bin/autoconf --include=./m4 --force
autoreconf: running: /usr/bin/autoheader --include=./m4 --force
autoreconf: running: automake --add-missing --copy --force-missing
autoreconf: Leaving directory `.'
======================

./configure --with-mysql

======================
./configure --with-mysql
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking for style of include used by make... GNU
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... configure: error: in
`/usr/src/firnsy-barnyard2-c8e30b8':
configure: error: cannot run C compiled programs.
If you meant to cross compile, use `--host'.
See `config.log' for more details
====================

config.log file:
$ ./configure --with-mysql

## --------- ##
## Platform. ##
## --------- ##

hostname = snort
uname -m = x86_64
uname -r = 2.6.32-5-amd64
uname -s = Linux
uname -v = #1 SMP Thu Mar 22 17:26:33 UTC 2012

/usr/bin/uname -p = unknown
/bin/uname -X     = unknown

/bin/arch              = unknown
/usr/bin/arch -k       = unknown
/usr/convex/getsysinfo = unknown
/usr/bin/hostinfo      = unknown
/bin/machine           = unknown
/usr/bin/oslevel       = unknown
/bin/universe          = unknown

PATH: /usr/local/sbin
PATH: /usr/local/bin
PATH: /usr/sbin
PATH: /usr/bin
PATH: /sbin
PATH: /bin


## ----------- ##
## Core tests. ##
## ----------- ##

configure:2641: checking for a BSD-compatible install
configure:2709: result: /usr/bin/install -c
configure:2720: checking whether build environment is sane
configure:2770: result: yes
configure:2911: checking for a thread-safe mkdir -p
configure:2950: result: /bin/mkdir -p
configure:2963: checking for gawk
configure:2993: result: no
configure:2963: checking for mawk
configure:2979: found /usr/bin/mawk
configure:2990: result: mawk
configure:3001: checking whether make sets $(MAKE)
configure:3023: result: yes
configure:3134: checking build system type
configure:3148: result: x86_64-unknown-linux-gnu
configure:3168: checking host system type
configure:3181: result: x86_64-unknown-linux-gnu
configure:3213: checking for style of include used by make
configure:3241: result: GNU
configure:3311: checking for gcc
configure:3327: found /usr/bin/gcc
configure:3338: result: gcc
configure:3567: checking for C compiler version
configure:3576: gcc --version >&5
gcc (Debian 4.4.5-8) 4.4.5
Copyright (C) 2010 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

configure:3587: $? = 0
configure:3576: gcc -v >&5
Using built-in specs.
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Debian 4.4.5-8'
--with-bugurl=file:///usr/share/doc/gcc-4.4/README.Bugs
--enable-languages=c,c++,fortran,objc,obj-c++ --prefix=/usr
--program-suffix=-4.4 --enable-shared --enable-multiarch
--enable-linker-build-id --with-system-zlib --libexecdir=/usr/lib
--without-included-gettext --enable-threads=posix
--with-gxx-include-dir=/usr/include/c++/4.4 --libdir=/usr/lib --enable-nls
--enable-clocale=gnu --enable-libstdcxx-debug --enable-objc-gc
--with-arch-32=i586 --with-tune=generic --enable-checking=release
--build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu
Thread model: posix
gcc version 4.4.5 (Debian 4.4.5-8)
configure:3587: $? = 0
configure:3576: gcc -V >&5
gcc: '-V' option must have argument
configure:3587: $? = 1
configure:3576: gcc -qversion >&5
gcc: unrecognized option '-qversion'
gcc: no input files
configure:3587: $? = 1
configure:3607: checking whether the C compiler works
configure:3629: gcc    conftest.c  >&5
configure:3633: $? = 0
configure:3681: result: yes
configure:3684: checking for C compiler default output file name
configure:3686: result: a.out
configure:3692: checking for suffix of executables
configure:3699: gcc -o conftest    conftest.c  >&5
configure:3703: $? = 0
configure:3725: result:
configure:3747: checking whether we are cross compiling
configure:3755: gcc -o conftest    conftest.c  >&5
In file included from /usr/include/stdio.h:28,
                 from conftest.c:11:
/usr/include/features.h:1: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-4.4/README.Bugs> for instructions.
configure:3759: $? = 1
configure:3766: ./conftest
./configure: line 3768: ./conftest: No such file or directory
configure:3770: $? = 127
configure:3777: error: in `/usr/src/firnsy-barnyard2-c8e30b8':
configure:3779: error: cannot run C compiled programs.
If you meant to cross compile, use `--host'.
See `config.log' for more details

## ---------------- ##
## Cache variables. ##
## ---------------- ##

ac_cv_build=x86_64-unknown-linux-gnu
ac_cv_env_CC_set=
ac_cv_env_CC_value=
ac_cv_env_CFLAGS_set=
ac_cv_env_CFLAGS_value=
ac_cv_env_CPPFLAGS_set=
ac_cv_env_CPPFLAGS_value=
ac_cv_env_CPP_set=
ac_cv_env_CPP_value=
ac_cv_env_LDFLAGS_set=
ac_cv_env_LDFLAGS_value=
ac_cv_env_LIBS_set=
ac_cv_env_LIBS_value=
ac_cv_env_build_alias_set=
ac_cv_env_build_alias_value=
ac_cv_env_host_alias_set=
ac_cv_env_host_alias_value=
ac_cv_env_target_alias_set=
ac_cv_env_target_alias_value=
ac_cv_host=x86_64-unknown-linux-gnu
ac_cv_path_install='/usr/bin/install -c'
ac_cv_path_mkdir=/bin/mkdir
ac_cv_prog_AWK=mawk
ac_cv_prog_ac_ct_CC=gcc
ac_cv_prog_make_make_set=yes

## ----------------- ##
## Output variables. ##
## ----------------- ##

ACLOCAL='${SHELL} /usr/src/firnsy-barnyard2-c8e30b8/missing --run
aclocal-1.11'
AMDEPBACKSLASH='\'
AMDEP_FALSE='#'
AMDEP_TRUE=''
AMTAR='${SHELL} /usr/src/firnsy-barnyard2-c8e30b8/missing --run tar'
AR=''
AUTOCONF='${SHELL} /usr/src/firnsy-barnyard2-c8e30b8/missing --run autoconf'
AUTOHEADER='${SHELL} /usr/src/firnsy-barnyard2-c8e30b8/missing --run
autoheader'
AUTOMAKE='${SHELL} /usr/src/firnsy-barnyard2-c8e30b8/missing --run
automake-1.11'
AWK='mawk'
CC='gcc'
CCDEPMODE=''
CFLAGS=''
CPP=''
CPPFLAGS=''
CYGPATH_W='echo'
DEFS=''
DEPDIR='.deps'
DSYMUTIL=''
DUMPBIN=''
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
EGREP=''
EXEEXT=''

FGREP=''
GREP=''
HAVE_SUP_IP6_FALSE=''
HAVE_SUP_IP6_TRUE=''
INCLUDES=''
INSTALL_DATA='${INSTALL} -m 644'
INSTALL_PROGRAM='${INSTALL}'
INSTALL_SCRIPT='${INSTALL}'
INSTALL_STRIP_PROGRAM='$(install_sh) -c -s'
LD=''
LDFLAGS=''
LEX=''
LIBOBJS=''
LIBPRELUDE_CFLAGS=''
LIBPRELUDE_CONFIG=''
LIBPRELUDE_CONFIG_PREFIX=''
LIBPRELUDE_LDFLAGS=''
LIBPRELUDE_LIBS=''
LIBPRELUDE_PREFIX=''
LIBPRELUDE_PTHREAD_CFLAGS=''
LIBS=''
LIBTOOL=''
LIPO=''
LN_S=''
LTLIBOBJS=''
MAINT=''
MAINTAINER_MODE_FALSE=''
MAINTAINER_MODE_TRUE=''
MAKEINFO='${SHELL} /usr/src/firnsy-barnyard2-c8e30b8/missing --run makeinfo'
MKDIR_P='/bin/mkdir -p'
NM=''
NMEDIT=''
OBJDUMP=''
OBJEXT=''
OTOOL64=''
OTOOL=''
PACKAGE='barnyard2'
PACKAGE_BUGREPORT=''
PACKAGE_NAME=''
PACKAGE_STRING=''
PACKAGE_TARNAME=''
PACKAGE_URL=''
PACKAGE_VERSION=''
PATH_SEPARATOR=':'

RANLIB=''
SED=''
SET_MAKE=''
SHELL='/bin/bash'
STRIP=''
TCLSH=''
VERSION='1.10-beta2'
YACC=''
ac_ct_CC='gcc'
ac_ct_DUMPBIN=''
am__EXEEXT_FALSE=''
am__EXEEXT_TRUE=''
am__fastdepCC_FALSE=''
am__fastdepCC_TRUE=''
am__include='include'
am__isrc=''
am__leading_dot='.'
am__quote=''
am__tar='${AMTAR} chof - "$$tardir"'
am__untar='${AMTAR} xf -'
bindir='${exec_prefix}/bin'
build='x86_64-unknown-linux-gnu'
build_alias=''
build_cpu='x86_64'
build_os='linux-gnu'
build_vendor='unknown'
datadir='${datarootdir}'
datarootdir='${prefix}/share'
docdir='${datarootdir}/doc/${PACKAGE}'
dvidir='${docdir}'
exec_prefix='NONE'
extra_incl=''
host='x86_64-unknown-linux-gnu'
host_alias=''
host_cpu='x86_64'
host_os='linux-gnu'
host_vendor='unknown'
htmldir='${docdir}'
includedir='${prefix}/include'
infodir='${datarootdir}/info'
install_sh='${SHELL} /usr/src/firnsy-barnyard2-c8e30b8/install-sh'
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
localedir='${datarootdir}/locale'
dvidir='${docdir}'
exec_prefix='NONE'
extra_incl=''
host='x86_64-unknown-linux-gnu'
host_alias=''
host_cpu='x86_64'
host_os='linux-gnu'
host_vendor='unknown'
htmldir='${docdir}'
includedir='${prefix}/include'
infodir='${datarootdir}/info'
install_sh='${SHELL} /usr/src/firnsy-barnyard2-c8e30b8/install-sh'
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
localedir='${datarootdir}/locale'
localstatedir='${prefix}/var'
lt_ECHO='echo'
mandir='${datarootdir}/man'
mkdir_p='/bin/mkdir -p'
oldincludedir='/usr/include'
pdfdir='${docdir}'
prefix='NONE'
program_transform_name='s,x,x,'
psdir='${docdir}'
sbindir='${exec_prefix}/sbin'
sharedstatedir='${prefix}/com'
sysconfdir='${prefix}/etc'
target_alias=''

## ----------- ##
## confdefs.h. ##
## ----------- ##

/* confdefs.h */
#define PACKAGE_NAME ""
#define PACKAGE_TARNAME ""
#define PACKAGE_VERSION ""
#define PACKAGE_STRING ""
#define PACKAGE_BUGREPORT ""
#define PACKAGE_URL ""
#define PACKAGE "barnyard2"
#define VERSION "1.10-beta2"

configure: exit 1
===================

This is all I get.

I hope it could help.




On Thu, May 10, 2012 at 12:00 PM, Kevin Ross <kevross33 at ...14012...>wrote:

> Can you please please post the configuration steps you did for barnyard 4
> and the output of the command that errors please? It will give people a
> better idea and make troubleshooting it easier (even if I am not sure it
> may help someone else help you :-) ).
>
> Thanks,
> Kevin
>
>
> On 8 May 2012 18:55, Borja Luaces <borja.luaces at ...11827...> wrote:
>
>> Hello everybody,
>>
>> Here I am back with another question.
>>
>> I have installed snort in a VM following the debian guide that is at
>> snorts docs webpage.
>>
>> The system is a debian netinstall, without anything, just the system.
>>
>> I follow the snort installation guide without no problem but when I try
>> to install barnyard2 trying to compile it shows the following error:
>>
>> checking whether we are cross compiling... configure: error: in
>> '/usr/src/firnsy-barnyard2-
>> c8e30b8':
>> configure: error: cannot run C compiled programs.
>> If you meant to cross compile, use '--host'.
>> See 'config.log' for more details.
>>
>> Does anyone had the same problem? How can I solve it?
>>
>> Once again, thanks for your time and patience with this newbie on snort.
>>
>> --
>> Borja Luaces Altares
>> Administrador/Analista de Sistemas (MCSE Security,C|EH & CSSA)
>>
>>
>> ------------------------------------------------------------------------------
>> Live Security Virtual Conference
>> Exclusive live event will cover all the ways today's security and
>> threat landscape has changed and how IT managers can respond. Discussions
>> will include endpoint security, mobile security and the latest in malware
>> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
>> _______________________________________________
>> Snort-users mailing list
>> Snort-users at lists.sourceforge.net
>> Go to this URL to change user options or unsubscribe:
>> https://lists.sourceforge.net/lists/listinfo/snort-users
>> Snort-users list archive:
>> http://www.geocrawler.com/redir-sf.php3?list=snort-users
>>
>> Please visit http://blog.snort.org to stay current on all the latest
>> Snort news!
>>
>
>


-- 
Borja Luaces Altares
Administrador/Analista de Sistemas (MCSE Security,C|EH & CSSA)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.snort.org/pipermail/snort-users/attachments/20120510/4829ec36/attachment.html>


More information about the Snort-users mailing list