[Snort-devel] Cross compile snort 2.9.1 for powerpc.

narender dnarenderreddy at ...2499...
Fri Aug 26 02:34:54 EDT 2011


Hi,
Iam tring to cross compile for the powerpc on my debian pc.

(Linux debian 2.6.32-5-686 #1 SMP Wed May 18 07:08:50 UTC 2011 i686
GNU/Linux) and
my Automake version installed on my debian is automake (GNU automake)
1.11.1.

Iam able to compile libpcap, snort-2.8.5 etc and other modules using the
SDK. So SDK looks fine. Iam sure iam missing something in in the configure
command.

Any help will be highly appreciated.


Regards
Narender

On Thu, Aug 25, 2011 at 2:32 PM, narender <dnarenderreddy at ...2499...> wrote:

>
>
> 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 at ...3191...:~/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 at ...3191...:~/snort-2.9.1$
>
> Regards
> Narender
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.snort.org/pipermail/snort-devel/attachments/20110826/3acf5d2d/attachment.html>


More information about the Snort-devel mailing list