Snort mailing list archives

Cross compile snort 2.9.1 for powerpc.


From: narender <dnarenderreddy () gmail com>
Date: Thu, 25 Aug 2011 14:19:36 +0530

Hi,
Iam trying to cross compile snort for powerpc.
I have downloaded the sources from snort.org

I was able to compile snort-2.8.5 but when I try to compile snort-2.9.0.5 or
snort-2.9.1, I get the following error in ./configure.

checking for INADDR_NONE... configure: error: in `/home/user/snort-2.9.1':
configure: error: cannot run test program while cross compiling
See `config.log' for more details.

Can you please suggest. What is going wrong.

Below is the configure options that I have enabled.
------------------------------------------------------------------------

CFLAGS=-I/home/user/pcap/libpcap-0.9.8.20081128/  ./configure
--host=powerpc--linux-gnuspe  --enable-shared --with-pcap=linux
--without-mysql --without-postgresql --without-oracle --without-odbc
--with-libpcap-libraries=/opt/SDK/powerpc--linux-gnuspe/usr/local/lib
--with-libpcap-include=/opt/SDK/powerpc--linux-gnuspe/usr/local/include/


Below is the complete log of the ./configure.


user@debian:~/snort-2.9.1$ CFLAGS=-I/home/user/pcap/libpcap-0.9.8.20081128/
./configure --host=powerpc--linux-gnuspe  --enable-shared --with-pcap=linux
--without-mysql --without-postgresql --without-oracle --without-odbc
--with-libpcap-libraries=/opt/SDK/powerpc--linux-gnuspe/usr/local/lib
--with-libpcap-include=/opt/SDK/powerpc--linux-gnuspe/usr/local/include/
configure: WARNING: unrecognized options: --with-pcap,
--with-libpcap-include
configure: WARNING: If you wanted to set the --build type, don't use --host.
    If a cross compiler is detected then cross compile mode will be used.
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for powerpc--linux-gnuspe-strip... powerpc--linux-gnuspe-strip
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 whether to enable maintainer-specific portions of Makefiles... no
checking for style of include used by make... GNU
checking for powerpc--linux-gnuspe-gcc... powerpc--linux-gnuspe-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... yes
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether powerpc--linux-gnuspe-gcc accepts -g... yes
checking for powerpc--linux-gnuspe-gcc option to accept ISO C89... none
needed
checking dependency style of powerpc--linux-gnuspe-gcc... gcc3
checking for powerpc--linux-gnuspe-gcc option to accept ISO C99...
-std=gnu99
checking for powerpc--linux-gnuspe-gcc -std=gnu99 option to accept ISO
Standard C... (cached) -std=gnu99
checking for powerpc--linux-gnuspe-gcc... (cached) powerpc--linux-gnuspe-gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether powerpc--linux-gnuspe-gcc accepts -g... (cached) yes
checking for powerpc--linux-gnuspe-gcc option to accept ISO C89... (cached)
none needed
checking dependency style of powerpc--linux-gnuspe-gcc... (cached) gcc3
checking build system type... i686-pc-linux-gnu
checking host system type... powerpc--linux-gnuspe
checking for a sed that does not truncate output... /bin/sed
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for fgrep... /bin/grep -F
checking for ld used by powerpc--linux-gnuspe-gcc...
/opt/SDK/powerpc--linux-gnuspe/bin/ld
checking if the linker (/opt/SDK/powerpc--linux-gnuspe/bin/ld) is GNU ld...
yes
checking for BSD- or MS-compatible name lister (nm)...
/opt/SDK/bin//powerpc--linux-gnuspe-nm -B
checking the name lister (/opt/SDK/bin//powerpc--linux-gnuspe-nm -B)
interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 1572864
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
checking for /opt/SDK/powerpc--linux-gnuspe/bin/ld option to reload object
files... -r
checking for powerpc--linux-gnuspe-objdump... powerpc--linux-gnuspe-objdump
checking how to recognize dependent libraries... pass_all
checking for powerpc--linux-gnuspe-ar... powerpc--linux-gnuspe-ar
checking for powerpc--linux-gnuspe-strip... (cached)
powerpc--linux-gnuspe-strip
checking for powerpc--linux-gnuspe-ranlib... powerpc--linux-gnuspe-ranlib
checking command to parse /opt/SDK/bin//powerpc--linux-gnuspe-nm -B output
from powerpc--linux-gnuspe-gcc object... ok
checking how to run the C preprocessor... powerpc--linux-gnuspe-gcc -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 dlfcn.h... yes
checking for objdir... .libs
checking if powerpc--linux-gnuspe-gcc supports -fno-rtti -fno-exceptions...
no
checking for powerpc--linux-gnuspe-gcc option to produce PIC... -fPIC -DPIC
checking if powerpc--linux-gnuspe-gcc PIC flag -fPIC -DPIC works... yes
checking if powerpc--linux-gnuspe-gcc static flag -static works... yes
checking if powerpc--linux-gnuspe-gcc supports -c -o file.o... yes
checking if powerpc--linux-gnuspe-gcc supports -c -o file.o... (cached) yes
checking whether the powerpc--linux-gnuspe-gcc linker
(/opt/SDK/powerpc--linux-gnuspe/bin/ld) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking for powerpc--linux-gnuspe-ranlib... (cached)
powerpc--linux-gnuspe-ranlib
checking whether byte ordering is bigendian... yes
checking for inline... inline
checking for bison... bison
checking for flex... flex
checking for strings.h... (cached) yes
checking for string.h... (cached) yes
checking for stdlib.h... (cached) yes
checking for unistd.h... (cached) yes
checking sys/sockio.h usability... no
checking sys/sockio.h presence... no
checking for sys/sockio.h... no
checking paths.h usability... yes
checking paths.h presence... yes
checking for paths.h... yes
checking for inttypes.h... (cached) yes
checking wchar.h usability... yes
checking wchar.h presence... yes
checking for wchar.h... yes
checking math.h usability... yes
checking math.h presence... yes
checking for math.h... yes
checking for floor in -lm... yes
checking for ceil in -lm... yes
checking for inet_ntoa in -lnsl... yes
checking for socket in -lsocket... no
checking whether printf must be declared... no
checking whether fprintf must be declared... no
checking whether syslog must be declared... no
checking whether puts must be declared... no
checking whether fputs must be declared... no
checking whether fputc must be declared... no
checking whether fopen must be declared... no
checking whether fclose must be declared... no
checking whether fwrite must be declared... no
checking whether fflush must be declared... no
checking whether getopt must be declared... no
checking whether bzero must be declared... no
checking whether bcopy must be declared... no
checking whether memset must be declared... no
checking whether strtol must be declared... no
checking whether strcasecmp must be declared... no
checking whether strncasecmp must be declared... no
checking whether strerror must be declared... no
checking whether perror must be declared... no
checking whether socket must be declared... no
checking whether sendto must be declared... no
checking whether vsnprintf must be declared... no
checking whether snprintf must be declared... no
checking whether strtoul must be declared... no
checking for strlcpy... no
checking for strlcat... no
checking for strerror... yes
checking for vswprintf... yes
checking for wprintf... yes
checking for snprintf... yes
checking size of char... 1
checking size of short... 2
checking size of int... 4
checking size of long int... 4
checking size of long long int... 8
checking size of unsigned int... 4
checking size of unsigned long int... 4
checking size of unsigned long long int... 8
checking for u_int8_t... yes
checking for u_int16_t... yes
checking for u_int32_t... yes
checking for u_int64_t... yes
checking for uint8_t... yes
checking for uint16_t... yes
checking for uint32_t... yes
checking for uint64_t... yes
checking for int8_t... yes
checking for int16_t... yes
checking for int32_t... yes
checking for int64_t... yes
checking for boolean... no
checking for INADDR_NONE... configure: error: in `/home/user/snort-2.9.1':
configure: error: cannot run test program while cross compiling
See `config.log' for more details.
user@debian:~/snort-2.9.1$

Regards
Narender
------------------------------------------------------------------------------
EMC VNX: the world's simplest storage, starting under $10K
The only unified storage solution that offers unified management 
Up to 160% more powerful than alternatives and 25% more efficient. 
Guaranteed. http://p.sf.net/sfu/emc-vnx-dev2dev
_______________________________________________
Snort-users mailing list
Snort-users () 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!

Current thread: