Facing problem with libnl 3.2.3 cross compilation

Uday Kiran K uday.k at aricent.com
Thu Jan 5 06:11:17 EST 2012


Hi List

I am trying to compile libnl 3.2.3 for x86 in centos 5.0 . But i am getting the following error.
Could some one help me out resolving the problem ?
flex: unknown flag '-'.  For usage, try
        flex --help
make[1]: *** [route/cls/ematch_grammar.c] Error 1


Please find the logs below
 # sed -i "/^#include.*<stdlib.h>/a\#include <limits.h>" include/netlink-local.h && ./configure
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... gawk
checking whether make sets $(MAKE)... yes
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... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking whether gcc and cc understand -c and -o together... yes
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking how to print strings... printf
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 gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 98304
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
checking how to convert i686-pc-linux-gnu file names to i686-pc-linux-gnu format... func_convert_file_noop
checking how to convert i686-pc-linux-gnu file names to toolchain format... func_convert_file_noop
checking for /usr/bin/ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for dlltool... no
checking how to associate runtime and link libraries... printf %s\n
checking for ar... ar
checking for archiver @FILE support... @
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for sysroot... no
checking for mt... mt
checking if mt is a manifest tool... no
checking how to run the C preprocessor... 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 gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC -DPIC
checking if gcc PIC flag -fPIC -DPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (/usr/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 flex... flex
checking lex output file root... lex.yy
checking lex library... -lfl
checking whether yytext is a pointer... yes
checking for bison... bison -y
checking for an ANSI C-conforming const... yes
checking for inline... inline
checking for pow in -lm... yes
checking for pthread_mutex_lock in -lpthread... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating libnl-3.0.pc
config.status: creating libnl-route-3.0.pc
config.status: creating libnl-genl-3.0.pc
config.status: creating libnl-nf-3.0.pc
config.status: creating libnl-cli-3.0.pc
config.status: creating doc/Doxyfile
config.status: creating doc/Makefile
config.status: creating lib/Makefile
config.status: creating include/Makefile
config.status: creating src/Makefile
config.status: creating src/lib/Makefile
config.status: creating man/Makefile
config.status: creating python/Makefile
config.status: creating python/setup.py
config.status: creating python/netlink/Makefile
config.status: creating python/netlink/route/Makefile
config.status: creating include/netlink/version.h
config.status: creating lib/defs.h
config.status: lib/defs.h is unchanged
config.status: executing depfiles commands
config.status: executing libtool commands
-------------------------------------------------------------------------------
                                  NOTE

 There have been some changes starting with 3.2 regarding where and how libnl
 is being installed on the system in order to allow multiple libnl versions
 to be installed in parallel:

    - Headers will be installed in ${prefix}/include/libnl3, therefore
      you will need to add "-I/usr/include/libnl3" to CFLAGS

    - The library basename was renamed to libnl-3, i.e. the SO names become
      libnl-3.so., libnl-route-3.so, etc.

    - libtool versioning was assumed, to ease detection of compatible library
      versions. libnl-3.so.CURRENT.REVISION.AGE where.
          CURRENT  := 100 * $MINOR_VERSION + $MICRO_VERSION
          REVISION := nth revision if API was unchanged
          AGE      := nth revision that is backwards compatible.

 If you are using pkg-config for detecting and linking against the library
 things will continue magically as if nothing every happened. If you are
 linking manually you need to adapt your Makefiles or switch to using
 pkg-config files.

-------------------------------------------------------------------------------




# make
 cd . && /bin/sh /home/senthil/wifi_open_src/libnl-3.2.3/missing --run automake-1.11 --foreign
/home/senthil/wifi_open_src/libnl-3.2.3/missing: line 52: automake-1.11: command not found
WARNING: `automake-1.11' is missing on your system.  You should only need it if
         you modified `Makefile.am', `acinclude.m4' or `configure.in'.
         You might want to install the `Automake' and `Perl' packages.
         Grab them from any GNU archive site.
 cd . && /bin/sh ./config.status Makefile
config.status: creating Makefile
Making all in include
make[1]: Entering directory `/home/senthil/wifi_open_src/libnl-3.2.3/include'
 cd .. && /bin/sh ./config.status include/Makefile
config.status: creating include/Makefile
make[1]: Leaving directory `/home/senthil/wifi_open_src/libnl-3.2.3/include'
make[1]: Entering directory `/home/senthil/wifi_open_src/libnl-3.2.3/include'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/senthil/wifi_open_src/libnl-3.2.3/include'
Making all in lib
make[1]: Entering directory `/home/senthil/wifi_open_src/libnl-3.2.3/lib'
 cd .. && /bin/sh ./config.status lib/Makefile depfiles
config.status: creating lib/Makefile
config.status: executing depfiles commands
make[1]: Leaving directory `/home/senthil/wifi_open_src/libnl-3.2.3/lib'
make[1]: Entering directory `/home/senthil/wifi_open_src/libnl-3.2.3/lib'
  GEN    route/cls/ematch_grammar.c
flex: unknown flag '-'.  For usage, try
        flex --help
make[1]: *** [route/cls/ematch_grammar.c] Error 1
make[1]: Leaving directory `/home/senthil/wifi_open_src/libnl-3.2.3/lib'
make: *** [all-recursive] Error 1


-Uday





===============================================================================
Please refer to http://www.aricent.com/legal/email_disclaimer.html
for important disclosures regarding this electronic communication.
===============================================================================
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.infradead.org/pipermail/libnl/attachments/20120105/193869a3/attachment-0001.html>


More information about the libnl mailing list