Changeset 1128

Show
Ignore:
Timestamp:
02/18/07 11:53:30 (2 years ago)
Author:
honeytrap
Message:

compile bugs fixed

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • honeytrap/trunk/configure

    r1127 r1128  
    11#! /bin/sh 
    22# Guess values for system-dependent variables and create Makefiles. 
    3 # Generated by GNU Autoconf 2.59 for honeytrap 0.6.4
     3# Generated by GNU Autoconf 2.59 for honeytrap 0.6.3
    44# 
    55# Report bugs to <tillmann.werner@gmx.de>. 
     
    424424PACKAGE_NAME='honeytrap' 
    425425PACKAGE_TARNAME='honeytrap' 
    426 PACKAGE_VERSION='0.6.4
    427 PACKAGE_STRING='honeytrap 0.6.4
     426PACKAGE_VERSION='0.6.3
     427PACKAGE_STRING='honeytrap 0.6.3
    428428PACKAGE_BUGREPORT='tillmann.werner@gmx.de' 
    429429 
     
    954954  # This message is too long to be a string in the A/UX 3.1 sh. 
    955955  cat <<_ACEOF 
    956 \`configure' configures honeytrap 0.6.4 to adapt to many kinds of systems. 
     956\`configure' configures honeytrap 0.6.3 to adapt to many kinds of systems. 
    957957 
    958958Usage: $0 [OPTION]... [VAR=VALUE]... 
     
    10201020if test -n "$ac_init_help"; then 
    10211021  case $ac_init_help in 
    1022      short | recursive ) echo "Configuration of honeytrap 0.6.4:";; 
     1022     short | recursive ) echo "Configuration of honeytrap 0.6.3:";; 
    10231023   esac 
    10241024  cat <<\_ACEOF 
     
    11731173if $ac_init_version; then 
    11741174  cat <<\_ACEOF 
    1175 honeytrap configure 0.6.4 
     1175honeytrap configure 0.6.3 
    11761176generated by GNU Autoconf 2.59 
    11771177 
     
    11871187running configure, to aid debugging if configure makes a mistake. 
    11881188 
    1189 It was created by honeytrap $as_me 0.6.4, which was 
     1189It was created by honeytrap $as_me 0.6.3, which was 
    11901190generated by GNU Autoconf 2.59.  Invocation command line was 
    11911191 
     
    18321832# Define the identity of the package. 
    18331833 PACKAGE=honeytrap 
    1834  VERSION=0.6.4 
     1834 VERSION=0.6.3 
    18351835 
    18361836 
     
    2042420424_ACEOF 
    2042520425 
    20426     LDFLAGS="${LDFLAGS} -undefined suppress" 
     20426    LDFLAGS="${LDFLAGS} -L/sw/lib" 
     20427    extra_incl=-I/sw/include 
    2042720428esac 
    2042820429 
     
    2300323004 
    2300423005if test "$DLLIB" != "no"; then 
    23005  
    23006 echo "$as_me:$LINENO: checking for dlsym in -ldl" >&5 
    23007 echo $ECHO_N "checking for dlsym in -ldl... $ECHO_C" >&6 
    23008 if test "${ac_cv_lib_dl_dlsym+set}" = set; then 
     23006        LIBS="$LIBS -ldl" 
     23007        LDFLAGS="$LDFLAGS -Wl,--export-dynamic" 
     23008        else 
     23009 
     23010echo "$as_me:$LINENO: checking for dlsym in -lc" >&5 
     23011echo $ECHO_N "checking for dlsym in -lc... $ECHO_C" >&6 
     23012if test "${ac_cv_lib_c_dlsym+set}" = set; then 
    2300923013  echo $ECHO_N "(cached) $ECHO_C" >&6 
    2301023014else 
    2301123015  ac_check_lib_save_LIBS=$LIBS 
    23012 LIBS="-ldl  $LIBS" 
     23016LIBS="-lc  $LIBS" 
    2301323017cat >conftest.$ac_ext <<_ACEOF 
    2301423018/* confdefs.h.  */ 
     
    2305423058  echo "$as_me:$LINENO: \$? = $ac_status" >&5 
    2305523059  (exit $ac_status); }; }; then 
    23056   ac_cv_lib_dl_dlsym=yes 
    23057 else 
    23058   echo "$as_me: failed program was:" >&5 
    23059 sed 's/^/| /' conftest.$ac_ext >&5 
    23060  
    23061 ac_cv_lib_dl_dlsym=no 
    23062 fi 
    23063 rm -f conftest.err conftest.$ac_objext \ 
    23064       conftest$ac_exeext conftest.$ac_ext 
    23065 LIBS=$ac_check_lib_save_LIBS 
    23066 fi 
    23067 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlsym" >&5 
    23068 echo "${ECHO_T}$ac_cv_lib_dl_dlsym" >&6 
    23069 if test $ac_cv_lib_dl_dlsym = yes; then 
    23070   cat >>confdefs.h <<_ACEOF 
    23071 #define HAVE_LIBDL 1 
    23072 _ACEOF 
    23073  
    23074   LIBS="-ldl $LIBS" 
    23075  
    23076 else 
    23077   DLLIB="no" 
    23078 fi 
    23079  
    23080         if test "$DLLIB" != "no"; then 
    23081                 LIBS="$LIBS -ldl" 
    23082         else 
    23083  
    23084 echo "$as_me:$LINENO: checking for dlsym in -lc" >&5 
    23085 echo $ECHO_N "checking for dlsym in -lc... $ECHO_C" >&6 
    23086 if test "${ac_cv_lib_c_dlsym+set}" = set; then 
    23087   echo $ECHO_N "(cached) $ECHO_C" >&6 
    23088 else 
    23089   ac_check_lib_save_LIBS=$LIBS 
    23090 LIBS="-lc  $LIBS" 
    23091 cat >conftest.$ac_ext <<_ACEOF 
    23092 /* confdefs.h.  */ 
    23093 _ACEOF 
    23094 cat confdefs.h >>conftest.$ac_ext 
    23095 cat >>conftest.$ac_ext <<_ACEOF 
    23096 /* end confdefs.h.  */ 
    23097  
    23098 /* Override any gcc2 internal prototype to avoid an error.  */ 
    23099 #ifdef __cplusplus 
    23100 extern "C" 
    23101 #endif 
    23102 /* We use char because int might match the return type of a gcc2 
    23103    builtin and then its argument prototype would still apply.  */ 
    23104 char dlsym (); 
    23105 int 
    23106 main () 
    23107 { 
    23108 dlsym (); 
    23109   ; 
    23110   return 0; 
    23111 } 
    23112 _ACEOF 
    23113 rm -f conftest.$ac_objext conftest$ac_exeext 
    23114 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 
    23115   (eval $ac_link) 2>conftest.er1 
    23116   ac_status=$? 
    23117   grep -v '^ *+' conftest.er1 >conftest.err 
    23118   rm -f conftest.er1 
    23119   cat conftest.err >&5 
    23120   echo "$as_me:$LINENO: \$? = $ac_status" >&5 
    23121   (exit $ac_status); } && 
    23122          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err' 
    23123   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 
    23124   (eval $ac_try) 2>&5 
    23125   ac_status=$? 
    23126   echo "$as_me:$LINENO: \$? = $ac_status" >&5 
    23127   (exit $ac_status); }; } && 
    23128          { ac_try='test -s conftest$ac_exeext' 
    23129   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 
    23130   (eval $ac_try) 2>&5 
    23131   ac_status=$? 
    23132   echo "$as_me:$LINENO: \$? = $ac_status" >&5 
    23133   (exit $ac_status); }; }; then 
    2313423060  ac_cv_lib_c_dlsym=yes 
    2313523061else 
     
    2315623082fi 
    2315723083 
    23158                 if test "$DLCLIB" = "no"; then 
    23159                         echo 
    23160                         echo "   ERROR!  programmatic interface to dynamic link loader" 
    23161                         echo "   not found.  Cannot use dynamic plugin libraries." 
    23162                         echo 
    23163                         exit 1 
    23164                 fi 
     23084        if test "$DLCLIB" = "no"; then 
     23085                echo 
     23086                echo "   ERROR!  programmatic interface to dynamic link loader" 
     23087                echo "   not found.  Cannot use dynamic plugin libraries." 
     23088                echo 
     23089                exit 1 
    2316523090        fi 
    2316623091fi 
     
    2433924264cat >&5 <<_CSEOF 
    2434024265 
    24341 This file was extended by honeytrap $as_me 0.6.4, which was 
     24266This file was extended by honeytrap $as_me 0.6.3, which was 
    2434224267generated by GNU Autoconf 2.59.  Invocation command line was 
    2434324268 
     
    2440224327cat >>$CONFIG_STATUS <<_ACEOF 
    2440324328ac_cs_version="\\ 
    24404 honeytrap config.status 0.6.4 
     24329honeytrap config.status 0.6.3 
    2440524330configured by $0, generated by GNU Autoconf 2.59, 
    2440624331  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" 
  • honeytrap/trunk/configure.in

    r1127 r1128  
    11# $Id$  
    22AC_PREREQ(02.50) 
    3 AC_INIT([honeytrap], [0.6.4], [tillmann.werner@gmx.de]) 
     3AC_INIT([honeytrap], [0.6.3], [tillmann.werner@gmx.de]) 
    44AM_CONFIG_HEADER(config.h) 
    5 AM_INIT_AUTOMAKE(honeytrap,0.6.4
     5AM_INIT_AUTOMAKE(honeytrap,0.6.3
    66 
    77# Since we get -O2 from configure defaults, which doesn't work in 64bit 
     
    126126    AC_DEFINE(MACOS,,[Define if MACOS]) 
    127127    AC_DEFINE(BROKEN_SIOCGIFMTU) 
    128     LDFLAGS="${LDFLAGS} -undefined suppress" 
     128    LDFLAGS="${LDFLAGS} -L/sw/lib" 
     129    extra_incl=-I/sw/include 
    129130esac 
    130131 
     
    371372AC_CHECK_LIB(dl, dlsym,, DLLIB="no") 
    372373if test "$DLLIB" != "no"; then 
    373         AC_CHECK_LIB(dl, dlsym,, DLLIB="no") 
    374         if test "$DLLIB" != "no"; then 
    375                 LIBS="$LIBS -ldl" 
     374        LIBS="$LIBS -ldl" 
     375        LDFLAGS="$LDFLAGS -Wl,--export-dynamic" 
    376376        else 
    377                 AC_CHECK_LIB(c, dlsym,, DLCLIB="no") 
    378                 if test "$DLCLIB" = "no"; then 
    379                         echo 
    380                         echo "   ERROR!  programmatic interface to dynamic link loader" 
    381                         echo "   not found.  Cannot use dynamic plugin libraries." 
    382                         echo 
    383                         exit 1 
    384                 fi 
     377        AC_CHECK_LIB(c, dlsym,, DLCLIB="no") 
     378        if test "$DLCLIB" = "no"; then 
     379                echo 
     380                echo "   ERROR!  programmatic interface to dynamic link loader" 
     381                echo "   not found.  Cannot use dynamic plugin libraries." 
     382                echo 
     383                exit 1 
    385384        fi 
    386385fi 
     
    434433                doc/Makefile 
    435434                src/Makefile 
    436                 src/modules/Makefile]) 
     435                src/modules/Makefile])  
    437436 
    438437AC_OUTPUT 
  • honeytrap/trunk/src/ctrl.c

    r1127 r1128  
    2121 
    2222#include "honeytrap.h" 
     23#include "pcapmon.h" 
    2324#include "logging.h" 
    2425#include "ctrl.h" 
  • honeytrap/trunk/src/honeytrap.h

    r1125 r1128  
    1919#include <grp.h> 
    2020#include <dlfcn.h> 
    21 #ifdef USE_PCAP_MON 
    22 #  include <pcap.h> 
    23 #endif 
     21 
     22/* 
     23#include "pcapmon.h" 
     24#include "ipqmon.h" 
     25*/ 
    2426 
    2527#if HAVE_CONFIG_H 
     
    8890char old_cwd[1024]; 
    8991 
    90 #ifdef USE_PCAP_MON 
    91 char *bpf_filter_string; 
    92 bpf_u_int32 mask; 
    93 bpf_u_int32 net; 
    94  
    95 pcap_t *packet_sniffer; 
    96 u_char pcap_offset; 
    97 #endif 
    98  
    9992 
    10093#endif 
  • honeytrap/trunk/src/ipqmon.h

    r1116 r1128  
    1111 */ 
    1212 
     13#ifdef USE_IPQ_MON 
    1314 
    1415#ifndef __HONEYTRAP_IPQMON_H 
    1516#define __HONEYTRAP_IPQMON_H 1 
    16  
    17 #ifdef USE_IPQ_MON 
    1817 
    1918#include <libipq.h> 
  • honeytrap/trunk/src/pcapmon.h

    r1081 r1128  
    1616#define __HONEYTRAP_PCAPMON_H 1 
    1717 
     18#include <pcap.h> 
    1819#include <netdb.h> 
     20 
     21char *bpf_filter_string; 
     22bpf_u_int32 mask; 
     23bpf_u_int32 net; 
     24 
     25pcap_t *packet_sniffer; 
     26u_char pcap_offset; 
    1927 
    2028int start_pcap_mon(void);