Results 1 to 10 of 10

Thread: help compiling this app

  1. #1
    Join Date
    Nov 2010
    Location
    Damanhour-North-Egypt
    Posts
    90

    Default help compiling this app

    peace upon you every one..

    Im trying to compile ettercap ettercap

    the program require the following libs

    MANDATORY:

    - libpcap >= 0.8.1
    - libnet >= 1.1.2.1
    - libpthread
    - zlib
    however when trying to run as "su" the ./config script get the following output:

    Code:
    checking whether to enable maintainer-specific portions of Makefiles... no
    
    Configuring ettercap NG-0.7.3...
    
    checking for a BSD-compatible install... /usr/bin/install -c
    checking whether build environment is sane... yes
    checking for gawk... gawk
    checking whether make sets $(MAKE)... no
    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 ANSI C... none needed
    checking for style of include used by make... none
    checking dependency style of gcc... none
    checking for gcc... (cached) gcc
    checking whether we are using the GNU C compiler... (cached) yes
    checking whether gcc accepts -g... (cached) yes
    checking for gcc option to accept ANSI C... (cached) none needed
    checking dependency style of gcc... (cached) none
    checking for a BSD-compatible install... /usr/bin/install -c
    checking whether make sets $(MAKE)... (cached) no
    checking how to run the C preprocessor... gcc -E
    checking for egrep... grep -E
    checking whether gcc needs -traditional... no
    checking if your compiler supports __VA_ARGS__ in macro declarations... yes
    checking for bison... no
    checking for byacc... no
    checking for flex... no
    checking for lex... no
    checking for yywrap in -lfl... no
    checking for yywrap in -ll... no
    checking for a sed that does not truncate output... /usr/bin/sed
    checking for ld used by gcc... /usr/i586-suse-linux/bin/ld
    checking if the linker (/usr/i586-suse-linux/bin/ld) is GNU ld... yes
    checking for /usr/i586-suse-linux/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 recognise dependent libraries... pass_all
    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++... no
    checking for c++... no
    checking for gpp... no
    checking for aCC... no
    checking for CC... no
    checking for cxx... no
    checking for cc++... no
    checking for cl... no
    checking for FCC... no
    checking for KCC... no
    checking for RCC... no
    checking for xlC_r... no
    checking for xlC... no
    checking whether we are using the GNU C++ compiler... no
    checking whether g++ accepts -g... no
    checking dependency style of g++... none
    checking for g77... no
    checking for f77... no
    checking for xlf... no
    checking for frt... no
    checking for pgf77... no
    checking for fort77... no
    checking for fl32... no
    checking for af77... no
    checking for f90... no
    checking for xlf90... no
    checking for pgf90... no
    checking for epcf90... no
    checking for f95... no
    checking for fort... no
    checking for xlf95... no
    checking for ifc... no
    checking for efc... no
    checking for pgf95... no
    checking for lf95... no
    checking for gfortran... 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... 32768
    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 static flag  works... 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 supports -c -o file.o... yes
    checking whether the gcc linker (/usr/i586-suse-linux/bin/ld) supports shared libraries... yes
    checking whether -lc should be explicitly linked in... no
    checking dynamic linker characteristics... cat: /etc/ld.so.conf.d/*.conf: No such file or directory
    GNU/Linux ld.so
    checking how to hardcode library paths into programs... immediate
    checking whether stripping libraries is possible... yes
    checking for shl_load... no
    checking for shl_load in -ldld... no
    checking for dlopen... no
    checking for dlopen in -ldl... yes
    checking whether a program can dlopen itself... yes
    checking whether a statically linked program can dlopen itself... yes
    checking if libtool supports shared libraries... yes
    checking whether to build shared libraries... yes
    checking whether to build static libraries... no
    configure: creating libtool
    appending configuration tag "CXX" to libtool
    appending configuration tag "F77" to libtool
    checking for library containing dlopen... -ldl
    checking for an ANSI C-conforming const... yes
    checking for dirent.h that defines DIR... yes
    checking for library containing opendir... none required
    checking which extension is used for loadable modules... .so
    checking which variable specifies run-time library path... LD_LIBRARY_PATH
    checking for the default library search path... /lib /usr/lib
    checking for objdir... .libs
    checking whether libtool supports -dlopen/-dlpreopen... yes
    checking for shl_load... (cached) no
    checking for shl_load in -ldld... (cached) no
    checking for dlopen in -ldl... (cached) yes
    checking for dlerror... yes
    checking for _ prefix in compiled symbols... no
    checking whether deplibs are loaded by dlopen... yes
    checking argz.h usability... yes
    checking argz.h presence... yes
    checking for argz.h... yes
    checking for error_t... yes
    checking for argz_append... yes
    checking for argz_create_sep... yes
    checking for argz_insert... yes
    checking for argz_next... yes
    checking for argz_stringify... yes
    checking assert.h usability... yes
    checking assert.h presence... yes
    checking for assert.h... yes
    checking ctype.h usability... yes
    checking ctype.h presence... yes
    checking for ctype.h... yes
    checking errno.h usability... yes
    checking errno.h presence... yes
    checking for errno.h... yes
    checking malloc.h usability... yes
    checking malloc.h presence... yes
    checking for malloc.h... yes
    checking for memory.h... (cached) yes
    checking for stdlib.h... (cached) yes
    checking stdio.h usability... yes
    checking stdio.h presence... yes
    checking for stdio.h... yes
    checking for unistd.h... (cached) yes
    checking dl.h usability... no
    checking dl.h presence... no
    checking for dl.h... no
    checking sys/dl.h usability... no
    checking sys/dl.h presence... no
    checking for sys/dl.h... no
    checking dld.h usability... no
    checking dld.h presence... no
    checking for dld.h... no
    checking mach-o/dyld.h usability... no
    checking mach-o/dyld.h presence... no
    checking for mach-o/dyld.h... no
    checking for string.h... (cached) yes
    checking for strchr... yes
    checking for strrchr... yes
    checking for memcpy... yes
    checking for memmove... yes
    checking for strcmp... yes
    checking for closedir... yes
    checking for opendir... yes
    checking for readdir... yes
    checking for library containing lt_dlopen... no
    checking for dlfcn.h... (cached) yes
    checking ltdl.h usability... no
    checking ltdl.h presence... no
    checking for ltdl.h... no
    checking whether byte ordering is bigendian... no
    checking for ANSI C header files... (cached) yes
    checking whether time.h and sys/time.h may both be included... yes
    checking for dirent.h that defines DIR... (cached) yes
    checking for library containing opendir... (cached) none required
    checking for unistd.h... (cached) yes
    checking for stdlib.h... (cached) yes
    checking signal.h usability... yes
    checking signal.h presence... yes
    checking for signal.h... yes
    checking stdarg.h usability... yes
    checking stdarg.h presence... yes
    checking for stdarg.h... yes
    checking sys/ioctl.h usability... yes
    checking sys/ioctl.h presence... yes
    checking for sys/ioctl.h... yes
    checking for sys/types.h... (cached) yes
    checking dirent.h usability... yes
    checking dirent.h presence... yes
    checking for dirent.h... yes
    checking for errno.h... (cached) yes
    checking fcntl.h usability... yes
    checking fcntl.h presence... yes
    checking for fcntl.h... yes
    checking for ctype.h... (cached) yes
    checking libgen.h usability... yes
    checking libgen.h presence... yes
    checking for libgen.h... yes
    checking for sys/types.h... (cached) yes
    checking for stdint.h... (cached) yes
    checking sys/time.h usability... yes
    checking sys/time.h presence... yes
    checking for sys/time.h... yes
    checking sys/utsname.h usability... yes
    checking sys/utsname.h presence... yes
    checking for sys/utsname.h... yes
    checking termios.h usability... yes
    checking termios.h presence... yes
    checking for termios.h... yes
    checking sys/poll.h usability... yes
    checking sys/poll.h presence... yes
    checking for sys/poll.h... yes
    checking poll.h usability... yes
    checking poll.h presence... yes
    checking for poll.h... yes
    checking sys/select.h usability... yes
    checking sys/select.h presence... yes
    checking for sys/select.h... yes
    checking sys/cdefs.h usability... yes
    checking sys/cdefs.h presence... yes
    checking for sys/cdefs.h... yes
    checking arpa/nameser.h usability... yes
    checking arpa/nameser.h presence... yes
    checking for arpa/nameser.h... yes
    checking for NS_GET32... yes
    checking whether struct tm is in sys/time.h or time.h... time.h
    checking for pid_t... yes
    checking for size_t... yes
    checking for an ANSI C-conforming const... (cached) yes
    checking return type of signal handlers... void
    checking for vprintf... yes
    checking for _doprnt... no
    checking for library containing pthread_create... -lpthread
    checking whether gcc accepts -pthread... yes
    checking for getifaddrs... yes
    checking for gettimeofday... yes
    checking for vsnprintf... yes
    checking for select... yes
    checking for poll... yes
    checking for strdup... yes
    checking for strerror... yes
    checking for strstr... yes
    checking for strsignal... yes
    checking for strtok_r... yes
    checking for uname... yes
    checking for daemon... yes
    
    Checking for required libraries...
    
    checking for library containing gethostbyname... none required
    checking for library containing socket... none required
    checking for library containing poll... none required
    checking for library containing gzopen... no
    configure: error: not found.
    don't know what exactly the config script is missing??

  2. #2
    Join Date
    Feb 2010
    Location
    Germany
    Posts
    4,654

    Default Re: help compiling this app

    mostafaxxx wrote:

    > the program require the following libs
    >
    >> MANDATORY:
    >>
    >> - libpcap >= 0.8.1
    >> - libnet >= 1.1.2.1
    >> - libpthread
    >> - zlib
    >>

    When you compile from source you do not only need the packages but also the
    corresponding -devel packages.
    Are these installed?

    openSUSE 11.3 64 bit | Intel Core2 Duo T9300@2.50GHz | KDE 4.5 | Quadro FX
    3600M | 4GB Ram

  3. #3
    Join Date
    Jun 2008
    Location
    Netherlands
    Posts
    24,884

    Default Re: help compiling this app

    Amd you should not run the config as root. Only the install step is run as root.
    Henk van Velden

  4. #4
    Join Date
    Feb 2010
    Location
    Germany
    Posts
    4,654

    Default Re: help compiling this app

    hcvv wrote:

    >
    > Amd you should not run the config as root. Only the install step is run
    > as root.
    >
    >

    +1, I have overseen this in the original post, never run configure as root
    or make. Only the make install needs root. To put it together.

    ../configure (as user)
    make (as user)
    make install (as root or with sudo)

    But there is a nonofficial package available for ettercap which probably is
    worth a try.
    http://download.opensuse.org/reposit.../openSUSE_11.3

    --
    openSUSE 11.3 64 bit | Intel Core2 Quad Q8300@2.50GHz | KDE 4.5 | GeForce
    9600 GT | 4GB Ram
    openSUSE 11.3 64 bit | Intel Core2 Duo T9300@2.50GHz | KDE 4.5 | Quadro FX
    3600M | 4GB Ram

  5. #5
    Join Date
    Nov 2010
    Location
    Damanhour-North-Egypt
    Posts
    90

    Default Re: help compiling this app

    hi

    When you compile from source you do not only need the packages but also the
    corresponding -devel packages.
    Are these installed?
    didn't know that ..thanks

    any way i got the development package and recalled the ./configure script but it didn't generate the "make" file

    the output of ./configure is the following

    Code:
    mostafa1@linux-pi07:~/Downloads/ettercap-NG-0.7.3> ./configure
    checking whether to enable maintainer-specific portions of Makefiles... no
    
    Configuring ettercap NG-0.7.3...
    
    checking for a BSD-compatible install... /usr/bin/install -c
    checking whether build environment is sane... yes
    checking for memory.h... yes
    ...
    
    Checking for required libraries...
    
    checking for library containing gethostbyname... none required
    checking for library containing socket... none required
    checking for library containing poll... none required
    checking for library containing gzopen... -lz
    checking for library containing dn_expand... -lresolv
    checking for additional -lresolv needed by dn_expand... not needed
    
    Checking for missing functions...
    
    checking for strlcpy... no
    checking for strlcat... no
    checking for strsep... yes
    checking for memmem... yes
    checking for memcmp... yes
    checking for basename... yes
    checking for getopt_long... yes
    checking for strcasestr... yes
    checking for scandir... yes
    checking for inet_aton... yes
    checking for inet_aton in -lresolv... yes
    
    Checking user defined options...
    
    checking if --enable-debug option was specified... no
    checking if --enable-plugins option was specified... not supported
    checking for libpcap... yes
    checking for pcap_datalink_val_to_description in -lpcap... yes
    checking for libnet... yes
    checking for libnet_adv_free_packet in -lnet... yes
    checking for openssl... no
    checking for libpcre... no
    checking for iconv... yes
    checking for library containing iconv... none required
    checking for iconv in -lc... yes
    checking for iconv in -liconv... no
    checking for libiconv in -liconv... no
    checking for libncurses... yes
    checking if --enable-gtk option was specified... checking for pkg-config... /usr/bin/pkg-config
    checking pkg-config is at least version 0.9.0... yes
    yes
    checking for pkg-config... /usr/bin/pkg-config
    checking for GTK_CFLAGS... -pthread -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12  
    checking for GTK_LIBS... -pthread -lgtk-x11-2.0 -lgdk-x11-2.0 -lgio-2.0 -lpangoft2-1.0 -lgdk_pixbuf-2.0 -lpangocairo-1.0 -lcairo -lfreetype -lfontconfig -lpango-1.0 -lgmodule-2.0 -latk-1.0 -lgobject-2.0 -lgthread-2.0 -lrt -lglib-2.0  
    
    Writing output files...
    
    configure: creating ./config.status
    config.status: creating Makefile
    config.status: creating Makefile.mingw
    config.status: creating man/Makefile
    config.status: creating man/ettercap.8
    config.status: creating man/ettercap_curses.8
    config.status: creating man/ettercap_plugins.8
    config.status: creating man/etterlog.8
    config.status: creating man/etterfilter.8
    config.status: creating man/etter.conf.5
    config.status: creating share/Makefile
    config.status: creating src/Makefile
    config.status: creating src/os/Makefile
    config.status: creating src/interfaces/Makefile
    config.status: creating src/interfaces/daemon/Makefile
    config.status: creating src/interfaces/text/Makefile
    config.status: creating src/interfaces/curses/Makefile
    config.status: creating src/interfaces/curses/widgets/Makefile
    config.status: creating src/interfaces/gtk/Makefile
    config.status: creating include/Makefile
    config.status: creating utils/Makefile
    config.status: creating utils/etterlog/Makefile
    config.status: creating utils/etterfilter/Makefile
    config.status: creating plug-ins/Makefile
    config.status: creating plug-ins/arp_cop/Makefile
    config.status: creating plug-ins/autoadd/Makefile
    config.status: creating plug-ins/chk_poison/Makefile
    config.status: creating plug-ins/dos_attack/Makefile
    config.status: creating plug-ins/dns_spoof/Makefile
    config.status: creating plug-ins/dummy/Makefile
    config.status: creating plug-ins/find_conn/Makefile
    config.status: creating plug-ins/find_ettercap/Makefile
    config.status: creating plug-ins/find_ip/Makefile
    config.status: creating plug-ins/finger/Makefile
    config.status: creating plug-ins/finger_submit/Makefile
    config.status: creating plug-ins/gre_relay/Makefile
    config.status: creating plug-ins/gw_discover/Makefile
    config.status: creating plug-ins/isolate/Makefile
    config.status: creating plug-ins/link_type/Makefile
    config.status: creating plug-ins/pptp_chapms1/Makefile
    config.status: creating plug-ins/pptp_clear/Makefile
    config.status: creating plug-ins/pptp_pap/Makefile
    config.status: creating plug-ins/pptp_reneg/Makefile
    config.status: creating plug-ins/rand_flood/Makefile
    config.status: creating plug-ins/remote_browser/Makefile
    config.status: creating plug-ins/reply_arp/Makefile
    config.status: creating plug-ins/repoison_arp/Makefile
    config.status: creating plug-ins/scan_poisoner/Makefile
    config.status: creating plug-ins/search_promisc/Makefile
    config.status: creating plug-ins/smb_clear/Makefile
    config.status: creating plug-ins/smb_down/Makefile
    config.status: creating plug-ins/stp_mangler/Makefile
    config.status: creating include/config.h
    config.status: executing depfiles commands
    
    ettercap has been configured as follow...
    
    ==================================================
    
     Install directory:  /usr/local
    
    
    Libraries : 
    
     LIBPCAP ................  default
     LIBNET .................  default
     LIBSSL .................  NO
     NCURSES ................  default
     GTK+ ...................  yes
    
    Functionalities : 
    
     Debug mode .............  no
     Plugin support .........  no
     Passive DNS ............  yes
     Perl regex in filters ..  no
     Iconv UTF-8 support ....  yes
    
    ==================================================
    
    mostafa1@linux-pi07:~/Downloads/ettercap-NG-0.7.3> make
    If 'make' is not a typo you can use command-not-found to lookup the package that contains it, like this:
        cnf make

  6. #6
    Join Date
    Jun 2008
    Location
    Podunk
    Posts
    26,527
    Blog Entries
    15

    Default Re: help compiling this app

    Hi
    No it generated the config file, it's telling you you don't have the program make installed... these are parts of the basic development environment which it tends to expect a user to setup first if they are going to compile applications.
    Code:
    sudo zypper in make
    Cheers Malcolm °¿° SUSE Knowledge Partner (Linux Counter #276890)
    SUSE SLE, openSUSE Leap/Tumbleweed (x86_64) | GNOME DE
    If you find this post helpful and are logged into the web interface,
    please show your appreciation and click on the star below... Thanks!

  7. #7
    Join Date
    Feb 2010
    Location
    Germany
    Posts
    4,654

    Default Re: help compiling this app

    mostafaxxx wrote:
    > mostafa1@linux-pi07:~/Downloads/ettercap-NG-0.7.3> make
    > If 'make' is not a typo you can use command-not-found to lookup the
    > package that contains it, like this: cnf make
    >
    > --------------------
    >

    You have no complete build environment on your machine. install the base
    development pattern with

    Code:
    sudo zypper install -t pattern devel_C_C++
    This will also install make.

    --
    openSUSE 11.3 64 bit | Intel Core2 Quad Q8300@2.50GHz | KDE 4.5 | GeForce
    9600 GT | 4GB Ram
    openSUSE 11.3 64 bit | Intel Core2 Duo T9300@2.50GHz | KDE 4.5 | Quadro FX
    3600M | 4GB Ram

  8. #8
    Join Date
    Nov 2010
    Location
    Damanhour-North-Egypt
    Posts
    90

    Default Re: help compiling this app

    i have 2 final questions

    1-what is the different between calling the configure script like that ./configure and calling the script without "./" ?


    2-when i call gcc on a file does that compile and link the source code ?

  9. #9
    Join Date
    Feb 2009
    Location
    Spain
    Posts
    25,547

    Default Re: help compiling this app

    On 2011-01-11 01:06, mostafaxxx wrote:
    >
    > i have 2 final questions
    >
    > 1-what is the different between calling the configure script like that
    > /configure and calling the script without "./" ?


    Calling "configure" would run the system "configure", if it exists. Linux
    (suse) looks for programs only in the path. Calling "./configure" runs the
    script in the current directory, bypassing the path - which is what is
    wanted in this case.

    > 2-when i call gcc on a file does that compile *-and link-* the source
    > code ?


    No, it does exactly what you tells it to do. You usually need a zillion
    options to compile and link a "real life" program, which you can't know by
    memory. I can't, and I'm sure I know more than you (or you would not be
    asking), so you can't >:-P

    --
    Cheers / Saludos,

    Carlos E. R.
    (from 11.2 x86_64 "Emerald" at Telcontar)

  10. #10
    Join Date
    Jun 2008
    Location
    Netherlands
    Posts
    24,884

    Default Re: help compiling this app

    2) allready explaned above. Either you give a complete, absolute or relative, path to the file you want to b executed, or you let the sytem find out where it could be using the environment variable PATH. This is a basic concept in Unix/Linux. Try to find and read a bit more about it so you realy understand it.

    1) again I add a little bit to the above explanation. The compiler can call the linker, but it depends on the options. And the make file (not the program, but the data fed into make) explains when and when not.
    Henk van Velden

Posting Permissions

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