Building UCSniff on Fedora

来源:互联网 发布:淘宝助理导出csv出错 编辑:程序博客网 时间:2024/05/01 05:17

UCSniff 3.10


[frank@metis ucsniff-3.10]$ ./configure 
checking whether to enable maintainer-specific portions of Makefiles... no
./configure: line 2799: ./shtool: Permission denied
./configure: line 2800: ./shtool: Permission denied


Configuring ucsniff 3.10...


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)... yes
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
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 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 ISO C89... (cached) none needed
checking dependency style of gcc... (cached) gcc3
checking whether make sets $(MAKE)... (cached) yes
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking whether gcc needs -traditional... no
checking if your compiler supports __VA_ARGS__ in macro declarations... yes
checking for bison... bison -y
checking for flex... flex
checking lex output file root... lex.yy
checking lex library... none needed
checking whether yytext is a pointer... no
checking for a sed that does not truncate output... /bin/sed
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 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++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... gcc3
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... gfortran
checking whether we are using the GNU Fortran 77 compiler... yes
checking whether gfortran accepts -g... yes
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... grep: character class syntax is [[:space:]], not [:space:]
no


*** Gentoo sanity check failed! ***
*** libtool.m4 and ltmain.sh have a version mismatch! ***
*** (libtool.m4 = 1.5.18, ltmain.sh = ) ***


Please run:


  libtoolize --copy --force


if appropriate, please contact the maintainer of this
package (or your distribution) for help.


[frank@metis ucsniff-3.10]$ libtoolize --copy --force
libtoolize: putting auxiliary files in `.'.
libtoolize: copying file `./ltmain.sh'
libtoolize: putting auxiliary files in `.'.
libtoolize: copying file `libltdl/config/compile'
libtoolize: copying file `libltdl/config/config.guess'
libtoolize: copying file `libltdl/config/config.sub'
libtoolize: copying file `libltdl/config/depcomp'
libtoolize: copying file `libltdl/config/install-sh'
libtoolize: copying file `libltdl/config/missing'
libtoolize: copying file `libltdl/config/ltmain.sh'
libtoolize: putting macros in `libltdl/m4'.
libtoolize: copying file `libltdl/m4/argz.m4'
libtoolize: copying file `libltdl/m4/libtool.m4'
libtoolize: copying file `libltdl/m4/ltdl.m4'
libtoolize: copying file `libltdl/m4/ltoptions.m4'
libtoolize: copying file `libltdl/m4/ltsugar.m4'
libtoolize: copying file `libltdl/m4/ltversion.m4'
libtoolize: copying file `libltdl/m4/lt~obsolete.m4'
libtoolize: putting libltdl files in `libltdl'.
libtoolize: `COPYING.LIB' not found in `/usr/share/libtool/libltdl'
[frank@metis ucsniff-3.10]$ 


在google上查了一下,

http://www.linuxquestions.org/questions/slackware-14/libtool-m4-and-ltmain-sh-version-mismatch-602538/


[frank@metis ucsniff-3.10]$ autoreconf --force --install --symlink
libtoolize: putting auxiliary files in `.'.
libtoolize: linking file `./ltmain.sh'
libtoolize: putting auxiliary files in `.'.
libtoolize: linking file `libltdl/config/compile'
libtoolize: linking file `libltdl/config/config.guess'
libtoolize: linking file `libltdl/config/config.sub'
libtoolize: linking file `libltdl/config/depcomp'
libtoolize: linking file `libltdl/config/install-sh'
libtoolize: linking file `libltdl/config/missing'
libtoolize: linking file `libltdl/config/ltmain.sh'
libtoolize: putting macros in `libltdl/m4'.
libtoolize: linking file `libltdl/m4/argz.m4'
libtoolize: linking file `libltdl/m4/libtool.m4'
libtoolize: linking file `libltdl/m4/ltdl.m4'
libtoolize: linking file `libltdl/m4/ltoptions.m4'
libtoolize: linking file `libltdl/m4/ltsugar.m4'
libtoolize: linking file `libltdl/m4/ltversion.m4'
libtoolize: linking file `libltdl/m4/lt~obsolete.m4'
libtoolize: putting libltdl files in `libltdl'.
libtoolize: `COPYING.LIB' not found in `/usr/share/libtool/libltdl'
autoreconf: libtoolize failed with exit status: 1
[frank@metis ucsniff-3.10]$ 


还是失败, 继续google,看到

http://forums.fedoraforum.org/showthread.php?t=188338


yum install libtool-ltdl-devel


还需要安装libnet-devel


在configure之前还要执行一次

autoreconf --force --install --symlink


[frank@metis ucsniff-3.10]$ autoreconf --force --install --symlink
libtoolize: putting auxiliary files in `.'.
libtoolize: linking file `./ltmain.sh'
libtoolize: putting auxiliary files in `.'.
libtoolize: linking file `libltdl/config/compile'
libtoolize: linking file `libltdl/config/config.guess'
libtoolize: linking file `libltdl/config/config.sub'
libtoolize: linking file `libltdl/config/depcomp'
libtoolize: linking file `libltdl/config/install-sh'
libtoolize: linking file `libltdl/config/missing'
libtoolize: linking file `libltdl/config/ltmain.sh'
libtoolize: putting macros in `libltdl/m4'.
libtoolize: linking file `libltdl/m4/argz.m4'
libtoolize: linking file `libltdl/m4/libtool.m4'
libtoolize: linking file `libltdl/m4/ltdl.m4'
libtoolize: linking file `libltdl/m4/ltoptions.m4'
libtoolize: linking file `libltdl/m4/ltsugar.m4'
libtoolize: linking file `libltdl/m4/ltversion.m4'
libtoolize: linking file `libltdl/m4/lt~obsolete.m4'
libtoolize: putting libltdl files in `libltdl'.
libtoolize: linking file `libltdl/COPYING.LIB'
libtoolize: linking file `libltdl/README'
libtoolize: linking file `libltdl/Makefile.am'
libtoolize: linking file `libltdl/configure.ac'
libtoolize: copying file `libltdl/aclocal.m4'
libtoolize: linking file `libltdl/Makefile.in'
libtoolize: linking file `libltdl/config-h.in'
libtoolize: linking file `libltdl/configure'
libtoolize: linking file `libltdl/argz_.h'
libtoolize: linking file `libltdl/argz.c'
libtoolize: linking file `libltdl/loaders/dld_link.c'
libtoolize: linking file `libltdl/loaders/dlopen.c'
libtoolize: linking file `libltdl/loaders/dyld.c'
libtoolize: linking file `libltdl/loaders/load_add_on.c'
libtoolize: linking file `libltdl/loaders/loadlibrary.c'
libtoolize: linking file `libltdl/loaders/shl_load.c'
libtoolize: linking file `libltdl/lt__dirent.c'
libtoolize: linking file `libltdl/lt__strl.c'
libtoolize: linking file `libltdl/libltdl/lt__alloc.h'
libtoolize: linking file `libltdl/libltdl/lt__dirent.h'
libtoolize: linking file `libltdl/libltdl/lt__glibc.h'
libtoolize: linking file `libltdl/libltdl/lt__private.h'
libtoolize: linking file `libltdl/libltdl/lt__strl.h'
libtoolize: linking file `libltdl/libltdl/lt_dlloader.h'
libtoolize: linking file `libltdl/libltdl/lt_error.h'
libtoolize: linking file `libltdl/libltdl/lt_system.h'
libtoolize: linking file `libltdl/libltdl/slist.h'
libtoolize: linking file `libltdl/loaders/preopen.c'
libtoolize: linking file `libltdl/lt__alloc.c'
libtoolize: linking file `libltdl/lt_dlloader.c'
libtoolize: linking file `libltdl/lt_error.c'
libtoolize: linking file `libltdl/ltdl.c'
libtoolize: linking file `libltdl/ltdl.h'
libtoolize: linking file `libltdl/slist.c'
libtoolize: Remember to add `LT_CONFIG_LTDL_DIR([libltdl])' to `configure.in'.
libtoolize: Consider using `AC_CONFIG_AUX_DIR([libltdl/config])' in configure.in.
libtoolize: Consider using `AC_CONFIG_MACRO_DIR([libltdl/m4])' in configure.in.
libtoolize: Consider adding `-I m4' to ACLOCAL_AMFLAGS in Makefile.am.
autoheader: warning: missing template: HAVE_VIDEO_DECODER
autoheader: Use AC_DEFINE([HAVE_VIDEO_DECODER], [], [Description])
autoreconf: /usr/bin/autoheader failed with exit status: 1



虽然有错误,仍然可以执行configure


configure能够成功

ucsniff has been configured as follow...


==================================================


 Install directory:  /usr/local




Libraries : 


 LIBPCAP ................  default
 LIBNET .................  default
 NCURSES ................  default


Functionalities : 


 GUI support ............  no
 Debug mode .............  no
 LibVLC support .........  no
 Compression support ....  no
 Passive DNS ............  yes
 Perl regex in filters ..  no
 Iconv UTF-8 support ....  yes


但是make却失败了


==================================================

[frank@metis ucsniff-3.10]$ make
Making all in man
make[1]: Entering directory `/home/frank/Templates/ucsniff-3.10/man'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/frank/Templates/ucsniff-3.10/man'
Making all in share
make[1]: Entering directory `/home/frank/Templates/ucsniff-3.10/share'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/frank/Templates/ucsniff-3.10/share'
Making all in include
make[1]: Entering directory `/home/frank/Templates/ucsniff-3.10/include'
make  all-am
make[2]: Entering directory `/home/frank/Templates/ucsniff-3.10/include'
make[2]: Leaving directory `/home/frank/Templates/ucsniff-3.10/include'
make[1]: Leaving directory `/home/frank/Templates/ucsniff-3.10/include'
Making all in include
make[1]: Entering directory `/home/frank/Templates/ucsniff-3.10/include'
make  all-am
make[2]: Entering directory `/home/frank/Templates/ucsniff-3.10/include'
make[2]: Leaving directory `/home/frank/Templates/ucsniff-3.10/include'
make[1]: Leaving directory `/home/frank/Templates/ucsniff-3.10/include'
Making all in src
make[1]: Entering directory `/home/frank/Templates/ucsniff-3.10/src'
Makefile:3940: *** missing separator.  Stop.
make[1]: Leaving directory `/home/frank/Templates/ucsniff-3.10/src'
make: *** [all-recursive] Error 1
[frank@metis ucsniff-3.10]$ 

看来要到ubuntu再试试看

搞了一天,ucsniff也没有搞定,最后单独编译videosnarf-0.63, 非常顺利就成功了