Results 1 to 2 of 2

Thread: lorcon compile error after prepare-kernel source

  1. #1
    Just burned his ISO
    Join Date
    Dec 2010
    Posts
    3

    Unhappy lorcon compile error after prepare-kernel source

    i compiled lorcon the other day and it went straight well.
    after that i compiled madwifi driver and it needs a kernel source header. so i executed prepare-kernel-source. the installation of madwifi driver went well to.
    but something strange happened. when i wanted to compile a copy of lorcon, it throws up an error.

    here's the terminal output

    Code:
    root@bt:~/airpwn/airpwn-1.4/lorcon# ./configure
    checking build system type... i686-pc-linux-gnu
    checking host system type... i686-pc-linux-gnu
    checking for gcc... gcc
    checking for C compiler default output file name... a.out
    checking whether the C compiler works... yes
    checking whether we are cross compiling... no
    checking for suffix of executables... 
    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 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 ld used by gcc... /usr/bin/ld
    checking if the linker (/usr/bin/ld) is GNU ld... yes
    checking for /usr/bin/ld option to reload object files... -r
    checking for BSD-compatible nm... /usr/bin/nm -B
    checking whether ln -s works... yes
    checking how to recognize dependent libraries... pass_all
    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 dlfcn.h usability... yes
    checking dlfcn.h presence... yes
    checking for dlfcn.h... yes
    checking for g++... g++
    checking whether we are using the GNU C++ compiler... yes
    checking whether g++ accepts -g... yes
    checking how to run the C++ preprocessor... g++ -E
    checking for g77... no
    checking for xlf... no
    checking for f77... no
    checking for frt... no
    checking for pgf77... no
    checking for cf77... no
    checking for fort77... no
    checking for fl32... no
    checking for af77... no
    checking for xlf90... no
    checking for f90... no
    checking for pgf90... no
    checking for pghpf... no
    checking for epcf90... no
    checking for gfortran... no
    checking for g95... no
    checking for xlf95... no
    checking for f95... no
    checking for fort... no
    checking for ifort... no
    checking for ifc... no
    checking for efc... no
    checking for pgf95... no
    checking for lf95... no
    checking for ftn... no
    checking whether we are using the GNU Fortran 77 compiler... no
    checking whether  accepts -g... no
    checking the maximum length of command line arguments... 1572864
    checking command to parse /usr/bin/nm -B output from gcc object... ok
    checking for objdir... .libs
    checking for ar... ar
    checking for ranlib... ranlib
    checking for strip... strip
    checking for correct ltmain.sh version... yes
    checking if gcc supports -fno-rtti -fno-exceptions... no
    checking for gcc option to produce PIC... -fPIC
    checking if gcc PIC flag -fPIC works... yes
    checking if gcc static flag -static works... yes
    checking if gcc supports -c -o file.o... 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
    configure: creating libtool
    appending configuration tag "CXX" to libtool
    checking for ld used by g++... /usr/bin/ld
    checking if the linker (/usr/bin/ld) is GNU ld... yes
    checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes
    checking for g++ option to produce PIC... -fPIC
    checking if g++ PIC flag -fPIC works... yes
    checking if g++ static flag -static works... yes
    checking if g++ supports -c -o file.o... yes
    checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes
    checking dynamic linker characteristics... GNU/Linux ld.so
    (cached) (cached) checking how to hardcode library paths into programs... immediate
    appending configuration tag "F77" to libtool
    checking for platform-specific compiler flags... none needed
    checking whether byte ordering is bigendian... no
    checking for ANSI C header files... (cached) yes
    checking for sys/wait.h that is POSIX.1 compatible... yes
    checking fcntl.h usability... yes
    checking fcntl.h presence... yes
    checking for fcntl.h... yes
    checking sys/ioctl.h usability... yes
    checking sys/ioctl.h presence... yes
    checking for sys/ioctl.h... yes
    checking sys/time.h usability... yes
    checking sys/time.h presence... yes
    checking for sys/time.h... yes
    checking for unistd.h... (cached) yes
    checking net/if_arp.h usability... yes
    checking net/if_arp.h presence... yes
    checking for net/if_arp.h... yes
    checking sys/socket.h usability... yes
    checking sys/socket.h presence... yes
    checking for sys/socket.h... yes
    checking that linux/wireless.h is what we expect... yes
    checking asm/types.h usability... yes
    checking asm/types.h presence... yes
    checking for asm/types.h... yes
    checking netlink/genl/genl.h usability... yes
    checking netlink/genl/genl.h presence... yes
    checking for netlink/genl/genl.h... yes
    checking netlink/genl/family.h usability... yes
    checking netlink/genl/family.h presence... yes
    checking for netlink/genl/family.h... yes
    checking netlink/genl/ctrl.h usability... yes
    checking netlink/genl/ctrl.h presence... yes
    checking for netlink/genl/ctrl.h... yes
    checking netlink/msg.h usability... yes
    checking netlink/msg.h presence... yes
    checking for netlink/msg.h... yes
    checking netlink/attr.h usability... yes
    checking netlink/attr.h presence... yes
    checking for netlink/attr.h... yes
    checking linux/nl80211.h usability... yes
    checking linux/nl80211.h presence... yes
    checking for linux/nl80211.h... yes
    checking linux/if_arp.h usability... no
    checking linux/if_arp.h presence... yes
    configure: WARNING: linux/if_arp.h: present but cannot be compiled
    configure: WARNING: linux/if_arp.h:     check for missing prerequisite headers?
    configure: WARNING: linux/if_arp.h: see the Autoconf documentation
    configure: WARNING: linux/if_arp.h:     section "Present But Cannot Be Compiled"
    configure: WARNING: linux/if_arp.h: proceeding with the preprocessor's result
    configure: WARNING: linux/if_arp.h: in the future, the compiler will take precedence
    checking for linux/if_arp.h... yes
    checking linux/wireless.h usability... no
    checking linux/wireless.h presence... yes
    configure: WARNING: linux/wireless.h: present but cannot be compiled
    configure: WARNING: linux/wireless.h:     check for missing prerequisite headers?
    configure: WARNING: linux/wireless.h: see the Autoconf documentation
    configure: WARNING: linux/wireless.h:     section "Present But Cannot Be Compiled"
    configure: WARNING: linux/wireless.h: proceeding with the preprocessor's result
    configure: WARNING: linux/wireless.h: in the future, the compiler will take precedence
    checking for linux/wireless.h... yes
    checking for nl_handle_alloc in -lnl... yes
    checking For mac80211 support in netlink library... yes
    checking for pow in -lm... yes
    configure: creating ./config.status
    config.status: creating Makefile
    config.status: WARNING:  Makefile.in seems to ignore the --datarootdir setting
    config.status: creating config.h
    any helps would be very appreciated

  2. #2
    Just burned his ISO
    Join Date
    Dec 2010
    Posts
    3

    Default Re: lorcon compile error after prepare-kernel source

    i made a progress today.
    i've googled and found a thread that could fix the wireless.h header error
    in order to get rid of the wireless.h error you need to edit /usr/include/linux/wireless.h
    find
    Code:
    #ifndef _LINUX_WIRELESS_H
    #define _LINUX_WIRELESS_H
    and add this line below it.
    Code:
    #include <sys/socket.h>
    the wireless.h error is gone but the if_arp.h still remained.

    Code:
    root@bt:~/airpwn/airpwn-1.4/lorcon# ./configure
    checking build system type... i686-pc-linux-gnu
    checking host system type... i686-pc-linux-gnu
    checking for gcc... gcc
    checking for C compiler default output file name... a.out
    checking whether the C compiler works... yes
    checking whether we are cross compiling... no
    checking for suffix of executables... 
    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 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 ld used by gcc... /usr/bin/ld
    checking if the linker (/usr/bin/ld) is GNU ld... yes
    checking for /usr/bin/ld option to reload object files... -r
    checking for BSD-compatible nm... /usr/bin/nm -B
    checking whether ln -s works... yes
    checking how to recognize dependent libraries... pass_all
    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 dlfcn.h usability... yes
    checking dlfcn.h presence... yes
    checking for dlfcn.h... yes
    checking for g++... g++
    checking whether we are using the GNU C++ compiler... yes
    checking whether g++ accepts -g... yes
    checking how to run the C++ preprocessor... g++ -E
    checking for g77... no
    checking for xlf... no
    checking for f77... no
    checking for frt... no
    checking for pgf77... no
    checking for cf77... no
    checking for fort77... no
    checking for fl32... no
    checking for af77... no
    checking for xlf90... no
    checking for f90... no
    checking for pgf90... no
    checking for pghpf... no
    checking for epcf90... no
    checking for gfortran... no
    checking for g95... no
    checking for xlf95... no
    checking for f95... no
    checking for fort... no
    checking for ifort... no
    checking for ifc... no
    checking for efc... no
    checking for pgf95... no
    checking for lf95... no
    checking for ftn... no
    checking whether we are using the GNU Fortran 77 compiler... no
    checking whether  accepts -g... no
    checking the maximum length of command line arguments... 1572864
    checking command to parse /usr/bin/nm -B output from gcc object... ok
    checking for objdir... .libs
    checking for ar... ar
    checking for ranlib... ranlib
    checking for strip... strip
    checking for correct ltmain.sh version... yes
    checking if gcc supports -fno-rtti -fno-exceptions... no
    checking for gcc option to produce PIC... -fPIC
    checking if gcc PIC flag -fPIC works... yes
    checking if gcc static flag -static works... yes
    checking if gcc supports -c -o file.o... 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
    configure: creating libtool
    appending configuration tag "CXX" to libtool
    checking for ld used by g++... /usr/bin/ld
    checking if the linker (/usr/bin/ld) is GNU ld... yes
    checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes
    checking for g++ option to produce PIC... -fPIC
    checking if g++ PIC flag -fPIC works... yes
    checking if g++ static flag -static works... yes
    checking if g++ supports -c -o file.o... yes
    checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes
    checking dynamic linker characteristics... GNU/Linux ld.so
    (cached) (cached) checking how to hardcode library paths into programs... immediate
    appending configuration tag "F77" to libtool
    checking for platform-specific compiler flags... none needed
    checking whether byte ordering is bigendian... no
    checking for ANSI C header files... (cached) yes
    checking for sys/wait.h that is POSIX.1 compatible... yes
    checking fcntl.h usability... yes
    checking fcntl.h presence... yes
    checking for fcntl.h... yes
    checking sys/ioctl.h usability... yes
    checking sys/ioctl.h presence... yes
    checking for sys/ioctl.h... yes
    checking sys/time.h usability... yes
    checking sys/time.h presence... yes
    checking for sys/time.h... yes
    checking for unistd.h... (cached) yes
    checking net/if_arp.h usability... yes
    checking net/if_arp.h presence... yes
    checking for net/if_arp.h... yes
    checking sys/socket.h usability... yes
    checking sys/socket.h presence... yes
    checking for sys/socket.h... yes
    checking that linux/wireless.h is what we expect... yes
    checking asm/types.h usability... yes
    checking asm/types.h presence... yes
    checking for asm/types.h... yes
    checking netlink/genl/genl.h usability... yes
    checking netlink/genl/genl.h presence... yes
    checking for netlink/genl/genl.h... yes
    checking netlink/genl/family.h usability... yes
    checking netlink/genl/family.h presence... yes
    checking for netlink/genl/family.h... yes
    checking netlink/genl/ctrl.h usability... yes
    checking netlink/genl/ctrl.h presence... yes
    checking for netlink/genl/ctrl.h... yes
    checking netlink/msg.h usability... yes
    checking netlink/msg.h presence... yes
    checking for netlink/msg.h... yes
    checking netlink/attr.h usability... yes
    checking netlink/attr.h presence... yes
    checking for netlink/attr.h... yes
    checking linux/nl80211.h usability... yes
    checking linux/nl80211.h presence... yes
    checking for linux/nl80211.h... yes
    checking linux/if_arp.h usability... no
    checking linux/if_arp.h presence... yes
    configure: WARNING: linux/if_arp.h: present but cannot be compiled
    configure: WARNING: linux/if_arp.h:     check for missing prerequisite headers?
    configure: WARNING: linux/if_arp.h: see the Autoconf documentation
    configure: WARNING: linux/if_arp.h:     section "Present But Cannot Be Compiled"
    configure: WARNING: linux/if_arp.h: proceeding with the preprocessor's result
    configure: WARNING: linux/if_arp.h: in the future, the compiler will take precedence
    checking for linux/if_arp.h... yes
    checking linux/wireless.h usability... yes
    checking linux/wireless.h presence... yes
    checking for linux/wireless.h... yes
    checking for nl_handle_alloc in -lnl... yes
    checking For mac80211 support in netlink library... yes
    checking for pow in -lm... yes
    configure: creating ./config.status
    config.status: creating Makefile
    config.status: WARNING:  Makefile.in seems to ignore the --datarootdir setting
    config.status: creating config.h
    config.status: config.h is unchanged
    please help..

Similar Threads

  1. prepare-kernel-sources
    By SWFu64 in forum BackTrack 5 Bugs
    Replies: 8
    Last Post: 10-23-2011, 08:54 PM
  2. Fixed prepare-kernel-sources script
    By hobbes in forum BackTrack 5 Fixes
    Replies: 4
    Last Post: 08-28-2011, 01:21 AM
  3. NVIDIA driver install - Error: Unable to find the kernel source tree......
    By Chinese in forum BackTrack 5 Beginners Section
    Replies: 45
    Last Post: 07-21-2011, 12:31 AM
  4. typo in prepare-kernel-sources
    By aifooru in forum BackTrack 5 Bugs
    Replies: 0
    Last Post: 05-15-2011, 03:15 PM
  5. Airdrop-ng lorcon error
    By pieface in forum Beginners Forum
    Replies: 5
    Last Post: 03-26-2010, 03:57 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •