wackamole compilation

Asked by LE BRIS

Hi,

I'm trying to recompile the wackamole package in Ubuntu Lucid (LTS 10.04) distribution.
I'm doing that because this package doesn't seem to work correctly in virtualized environment (VMware server & VirtualBox) and I want to understand why.

In order to compile, I executed the following commands :
- apt-get install build-essential
- apt-get source wackamole
- apt-get build-dep wackamole

Then, it seems necessary, from the README file, to add CPPFLAGS and LDFLAGS plus the libsp.a library.
But even doing that doesn't seem to allow the compilation.

Can you help me in providing me the command that you originally run to compile the wackamole package (.configure ...).

Thanks in advance.

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu wackamole Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Eliah Kagan (degeneracypressure) said :
#1

Please paste all the text from the Terminal, showing what you have done and what happened in response. There are a number of things that might go wrong in a build--if you post that text, then we can probably see what the problem was.

Revision history for this message
LE BRIS (lebrisg) said :
#2

Hi,

I took the time to record all the process and below is the result:

apt-get install spread
apt-get install libspread1
apt-get install libspread1-dev
apt-get install build-essential

root@user-desktop:~# apt-get source wackamole
Reading package lists... Done
Building dependency tree
Reading state information... Done
Need to get 195kB of source archives.
Get:1 http://fr.archive.ubuntu.com/ubuntu/ lucid/universe wackamole 2.1.1-3.1 (dsc) [690B]
Get:2 http://fr.archive.ubuntu.com/ubuntu/ lucid/universe wackamole 2.1.1-3.1 (tar) [161kB]
Get:3 http://fr.archive.ubuntu.com/ubuntu/ lucid/universe wackamole 2.1.1-3.1 (diff) [33.6kB]
Fetched 195kB in 1s (115kB/s)
gpgv: Signature made Wed 02 Apr 2008 11:15:35 AM CEST using DSA key ID 554FB4C6
gpgv: Can't check signature: public key not found
dpkg-source: warning: failed to verify signature on ./wackamole_2.1.1-3.1.dsc
dpkg-source: info: extracting wackamole in wackamole-2.1.1
dpkg-source: info: unpacking wackamole_2.1.1.orig.tar.gz
dpkg-source: info: applying wackamole_2.1.1-3.1.diff.gz
dpkg-source: info: upstream files that have been modified:
 wackamole-2.1.1/configure
 wackamole-2.1.1/perlxsi.c

root@user-desktop:~# apt-get build-dep wackamole
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
  autoconf automake autotools-dev bison cdbs cvs debhelper dpatch fdupes flex
  gettext html2text intltool intltool-debian libmail-sendmail-perl libperl-dev
  libsys-hostname-long-perl m4 patchutils po-debconf
0 upgraded, 20 newly installed, 0 to remove and 407 not upgraded.
Need to get 10.3MB of archives.
After this operation, 29.1MB of additional disk space will be used.
Do you want to continue [Y/n]? Y
Get:1 http://fr.archive.ubuntu.com/ubuntu/ lucid/main m4 1.4.13-3 [241kB]
Get:2 http://fr.archive.ubuntu.com/ubuntu/ lucid/main flex 2.5.35-9 [244kB]
Get:3 http://fr.archive.ubuntu.com/ubuntu/ lucid/main autoconf 2.65-3ubuntu1 [772kB]
Get:4 http://fr.archive.ubuntu.com/ubuntu/ lucid/main autotools-dev 20090611.1 [64.1kB]
Get:5 http://fr.archive.ubuntu.com/ubuntu/ lucid/main automake 1:1.11.1-1 [608kB]
Get:6 http://fr.archive.ubuntu.com/ubuntu/ lucid/main bison 1:2.4.1.dfsg-3 [468kB]
Get:7 http://fr.archive.ubuntu.com/ubuntu/ lucid/main html2text 1.3.2a-14build1 [101kB]
Get:8 http://fr.archive.ubuntu.com/ubuntu/ lucid/main gettext 0.17-8ubuntu3 [1,732kB]
Get:9 http://fr.archive.ubuntu.com/ubuntu/ lucid/main intltool-debian 0.35.0+20060710.1 [31.6kB]
Get:10 http://fr.archive.ubuntu.com/ubuntu/ lucid/main po-debconf 1.0.16 [224kB]
Get:11 http://fr.archive.ubuntu.com/ubuntu/ lucid/main debhelper 7.4.15ubuntu1 [461kB]
Get:12 http://fr.archive.ubuntu.com/ubuntu/ lucid/main fdupes 1.50-PR2-2build1 [19.0kB]
Get:13 http://fr.archive.ubuntu.com/ubuntu/ lucid/main intltool 0.41.0-0ubuntu1 [52.5kB]
Get:14 http://fr.archive.ubuntu.com/ubuntu/ lucid/main cdbs 0.4.62+nmu1ubuntu9 [1,035kB]
Get:15 http://fr.archive.ubuntu.com/ubuntu/ lucid/main cvs 1:1.12.13-12ubuntu1 [1,685kB]
Get:16 http://fr.archive.ubuntu.com/ubuntu/ lucid/main dpatch 2.0.31 [88.4kB]
Get:17 http://fr.archive.ubuntu.com/ubuntu/ lucid/main libsys-hostname-long-perl 1.4-2 [11.4kB]
Get:18 http://fr.archive.ubuntu.com/ubuntu/ lucid/main libmail-sendmail-perl 0.79.16-1 [26.5kB]
Get:19 http://fr.archive.ubuntu.com/ubuntu/ lucid/main libperl-dev 5.10.1-8ubuntu2 [2,350kB]
Get:20 http://fr.archive.ubuntu.com/ubuntu/ lucid/main patchutils 0.3.1-2build1 [101kB]
Fetched 10.3MB in 1min 25s (121kB/s)
Preconfiguring packages ...
Selecting previously deselected package m4.
(Reading database ... 125830 files and directories currently installed.)
Unpacking m4 (from .../archives/m4_1.4.13-3_i386.deb) ...
Selecting previously deselected package flex.
Unpacking flex (from .../flex_2.5.35-9_i386.deb) ...
Selecting previously deselected package autoconf.
Unpacking autoconf (from .../autoconf_2.65-3ubuntu1_all.deb) ...
Selecting previously deselected package autotools-dev.
Unpacking autotools-dev (from .../autotools-dev_20090611.1_all.deb) ...
Selecting previously deselected package automake.
Unpacking automake (from .../automake_1%3a1.11.1-1_all.deb) ...
Selecting previously deselected package bison.
Unpacking bison (from .../bison_1%3a2.4.1.dfsg-3_i386.deb) ...
Selecting previously deselected package html2text.
Unpacking html2text (from .../html2text_1.3.2a-14build1_i386.deb) ...
Selecting previously deselected package gettext.
Unpacking gettext (from .../gettext_0.17-8ubuntu3_i386.deb) ...
Selecting previously deselected package intltool-debian.
Unpacking intltool-debian (from .../intltool-debian_0.35.0+20060710.1_all.deb) ...
Selecting previously deselected package po-debconf.
Unpacking po-debconf (from .../po-debconf_1.0.16_all.deb) ...
Selecting previously deselected package debhelper.
Unpacking debhelper (from .../debhelper_7.4.15ubuntu1_all.deb) ...
Selecting previously deselected package fdupes.
Unpacking fdupes (from .../fdupes_1.50-PR2-2build1_i386.deb) ...
Selecting previously deselected package intltool.
Unpacking intltool (from .../intltool_0.41.0-0ubuntu1_all.deb) ...
Selecting previously deselected package cdbs.
Unpacking cdbs (from .../cdbs_0.4.62+nmu1ubuntu9_all.deb) ...
Selecting previously deselected package cvs.
Unpacking cvs (from .../cvs_1%3a1.12.13-12ubuntu1_i386.deb) ...
Selecting previously deselected package dpatch.
Unpacking dpatch (from .../archives/dpatch_2.0.31_all.deb) ...
Selecting previously deselected package libsys-hostname-long-perl.
Unpacking libsys-hostname-long-perl (from .../libsys-hostname-long-perl_1.4-2_all.deb) ...
Selecting previously deselected package libmail-sendmail-perl.
Unpacking libmail-sendmail-perl (from .../libmail-sendmail-perl_0.79.16-1_all.deb) ...
Selecting previously deselected package libperl-dev.
Unpacking libperl-dev (from .../libperl-dev_5.10.1-8ubuntu2_i386.deb) ...
Selecting previously deselected package patchutils.
Unpacking patchutils (from .../patchutils_0.3.1-2build1_i386.deb) ...
Processing triggers for install-info ...
Processing triggers for man-db ...
Processing triggers for doc-base ...
Processing 28 changed 5 added doc-base file(s)...
Registering documents with scrollkeeper...
Setting up m4 (1.4.13-3) ...
Setting up flex (2.5.35-9) ...

Setting up autoconf (2.65-3ubuntu1) ...
Setting up autotools-dev (20090611.1) ...
Setting up automake (1:1.11.1-1) ...
update-alternatives: using /usr/bin/automake-1.11 to provide /usr/bin/automake (automake) in auto mode.

Setting up bison (1:2.4.1.dfsg-3) ...
update-alternatives: using /usr/bin/bison.yacc to provide /usr/bin/yacc (yacc) in auto mode.

Setting up html2text (1.3.2a-14build1) ...

Setting up gettext (0.17-8ubuntu3) ...

Setting up intltool-debian (0.35.0+20060710.1) ...
Setting up po-debconf (1.0.16) ...
Setting up debhelper (7.4.15ubuntu1) ...
Setting up fdupes (1.50-PR2-2build1) ...
Setting up intltool (0.41.0-0ubuntu1) ...
Setting up cdbs (0.4.62+nmu1ubuntu9) ...
Setting up cvs (1:1.12.13-12ubuntu1) ...
Ignoring install-info called from maintainer script
The package cvs should be rebuilt with new debhelper to get trigger support
Ignoring install-info called from maintainer script
The package cvs should be rebuilt with new debhelper to get trigger support

Setting up dpatch (2.0.31) ...
Setting up libsys-hostname-long-perl (1.4-2) ...
Setting up libmail-sendmail-perl (0.79.16-1) ...
Setting up libperl-dev (5.10.1-8ubuntu2) ...
Setting up patchutils (0.3.1-2build1) ...
Processing triggers for libc-bin ...
ldconfig deferred processing now taking place
root@user-desktop:~#

root@user-desktop:~# cd wackamole-2.1.1/
root@user-desktop:~/wackamole-2.1.1# ./configure
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 build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking whether byte ordering is bigendian... no
checking how to run the C preprocessor... gcc -E
checking for ranlib... ranlib
checking for a BSD-compatible install... /usr/bin/install -c
checking whether ln -s works... yes
checking for bison... bison -y
checking for flex... flex
checking for yywrap in -lfl... yes
checking lex output file root... lex.yy
checking whether yytext is a pointer... yes
checking for ar... /usr/bin/ar
checking for perl5... no
checking for perl... /usr/bin/perl
checking for inline... inline
checking for gethostbyaddr in -lnsl... yes
checking for socket in -lsocket... no
checking for dlopen in -ldl... yes
checking for SP_connect in -lsp... no
checking for SP_connect in -lspread... yes
checking for strftime... yes
checking features.h usability... yes
checking features.h presence... yes
checking for features.h... yes
checking pcap.h usability... no
checking pcap.h presence... no
checking for pcap.h... no
checking net/ethernet.h usability... yes
checking net/ethernet.h presence... yes
checking for net/ethernet.h... yes
checking netinet/if_ether.h usability... yes
checking netinet/if_ether.h presence... yes
checking for netinet/if_ether.h... yes
checking net/if_dl.h usability... no
checking net/if_dl.h presence... no
checking for net/if_dl.h... no
checking net/if.h usability... yes
checking net/if.h presence... yes
checking for net/if.h... yes
checking net/if_types.h usability... no
checking net/if_types.h presence... no
checking for net/if_types.h... no
checking net/route.h usability... yes
checking net/route.h presence... yes
checking for net/route.h... yes
checking sys/ioctl.h usability... yes
checking sys/ioctl.h presence... yes
checking for sys/ioctl.h... yes
checking arpa/inet.h usability... yes
checking arpa/inet.h presence... yes
checking for arpa/inet.h... yes
checking assert.h usability... yes
checking assert.h presence... yes
checking for assert.h... yes
checking errno.h usability... yes
checking errno.h presence... yes
checking for errno.h... yes
checking grp.h usability... yes
checking grp.h presence... yes
checking for grp.h... yes
checking limits.h usability... yes
checking limits.h presence... yes
checking for limits.h... yes
checking sys/resource.h usability... yes
checking sys/resource.h presence... yes
checking for sys/resource.h... yes
checking netdb.h usability... yes
checking netdb.h presence... yes
checking for netdb.h... yes
checking netinet/in.h usability... yes
checking netinet/in.h presence... yes
checking for netinet/in.h... yes
checking netinet/tcp.h usability... yes
checking netinet/tcp.h presence... yes
checking for netinet/tcp.h... yes
checking pwd.h usability... yes
checking pwd.h presence... yes
checking for pwd.h... 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 stdint.h usability... yes
checking stdint.h presence... yes
checking for stdint.h... yes
checking stdio.h usability... yes
checking stdio.h presence... yes
checking for stdio.h... yes
checking stdlib.h usability... yes
checking stdlib.h presence... yes
checking for stdlib.h... yes
checking string.h usability... yes
checking string.h presence... yes
checking for string.h... yes
checking ctype.h usability... yes
checking ctype.h presence... yes
checking for ctype.h... yes
checking stropts.h usability... yes
checking stropts.h presence... yes
checking for stropts.h... yes
checking sys/inttypes.h usability... no
checking sys/inttypes.h presence... no
checking for sys/inttypes.h... no
checking for sys/ioctl.h... (cached) yes
checking sys/param.h usability... yes
checking sys/param.h presence... yes
checking for sys/param.h... yes
checking sys/socket.h usability... yes
checking sys/socket.h presence... yes
checking for sys/socket.h... yes
checking sys/stat.h usability... yes
checking sys/stat.h presence... yes
checking for sys/stat.h... yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking sys/timeb.h usability... yes
checking sys/timeb.h presence... yes
checking for sys/timeb.h... yes
checking sys/types.h usability... yes
checking sys/types.h presence... yes
checking for sys/types.h... yes
checking sys/wait.h usability... yes
checking sys/wait.h presence... yes
checking for sys/wait.h... yes
checking sys/uio.h usability... yes
checking sys/uio.h presence... yes
checking for sys/uio.h... yes
checking sys/un.h usability... yes
checking sys/un.h presence... yes
checking for sys/un.h... yes
checking sys/sysctl.h usability... yes
checking sys/sysctl.h presence... yes
checking for sys/sysctl.h... yes
checking time.h usability... yes
checking time.h presence... yes
checking for time.h... yes
checking unistd.h usability... yes
checking unistd.h presence... yes
checking for unistd.h... yes
checking dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking strings.h usability... yes
checking strings.h presence... yes
checking for strings.h... yes
checking sys/sockio.h usability... no
checking sys/sockio.h presence... no
checking for sys/sockio.h... no
checking sys/dlpi.h usability... no
checking sys/dlpi.h presence... no
checking for sys/dlpi.h... no
checking net/bpf.h usability... no
checking net/bpf.h presence... no
checking for net/bpf.h... no
checking sys/filio.h usability... no
checking sys/filio.h presence... no
checking for sys/filio.h... no
checking syslog.h usability... yes
checking syslog.h presence... yes
checking for syslog.h... yes
checking sp.h usability... yes
checking sp.h presence... yes
checking for sp.h... yes
checking for bcopy... yes
checking for inet_aton... yes
checking for inet_ntoa... yes
checking for inet_ntop... yes
checking for memmove... yes
checking for setsid... yes
checking for snprintf... yes
checking for strerror... yes
checking for lrand48... yes
checking for gettimeofday... yes
checking for time... yes
checking whether snprintf correctly terminates long strings... yes
checking for char... yes
checking size of char... 1
checking for short int... yes
checking size of short int... 2
checking for int... yes
checking size of int... 4
checking for long int... yes
checking size of long int... 4
checking for long long int... yes
checking size of long long int... 8
checking for struct timezone type... no
checking for struct sockopt_len_t type... no
checking for SOCK_PACKET... yes
checking for Linux's /proc/net/arp... yes
checking for struct msghdr type... yes
checking for struct msghdr control... yes
checking for struct msghdr accrights... no
checking for u_int type... yes
checking for intXX_t types... yes
checking for int64_t type... yes
checking for u_intXX_t types... yes
checking for u_int64_t types... yes
checking for socklen_t... yes
checking for size_t... yes
checking for ssize_t... yes
checking for clock_t... yes
checking for sa_family_t... yes
checking for struct sockaddr_storage... yes
checking for struct sockaddr_in6... yes
checking for struct in6_addr... yes
checking for struct addrinfo... yes
checking for struct timeval... yes
checking for sun_len field in struct sockaddr_un... no
checking for ss_family field in struct sockaddr_storage... yes
checking for __ss_family field in struct sockaddr_storage... no
checking for si_value.sival_ptr... yes
checking for si_value.sigval_ptr... no
checking for pid_t... yes
checking if libc defines __progname... yes
checking if libc defines sys_errlist... yes
checking if libc defines sys_nerr... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating config.h

Wackamole has been configured with the following options:
                    User binaries: /usr/local/bin
                  System binaries: /usr/local/sbin
              Configuration files: /usr/local/etc
                   User libraries: /usr/local/lib
                     Manual pages: /usr/local/man/manX
                     PID file dir: /var/run
           Embed perl interpreter: no
                   Manpage format: man

              Host: i686-pc-linux-gnu
          Compiler: gcc
    Compiler flags: -g -O2 -Wall
Preprocessor flags: -I/usr/local/include -DDONT_USE_THREADS -DNEEDS_FORCE_REUP
      Linker flags: -L/usr/local/lib -rdynamic
         Libraries: -ldl -lnsl -lspread
   ife packet code: ife-sockpacket.o

root@user-desktop:~/wackamole-2.1.1#

root@user-desktop:~/wackamole-2.1.1# make
gcc -g -O2 -Wall -I. -I. -I/usr/local/include -DDONT_USE_THREADS -DNEEDS_FORCE_REUP -DETCDIR=\"/usr/local/etc\" -D_PATH_WACKAMOLE_PIDDIR=\"/var/run\" -DBUNDLEEXT=\"so\" -DHAVE_CONFIG_H -c wackamole.c
wackamole.c: In function 'main':
wackamole.c:223: warning: ignoring return value of 'write', declared with attribute warn_unused_result
wackamole.c: In function 'force_reup':
wackamole.c:872: warning: format not a string literal and no format arguments
wackamole.c:872: warning: format not a string literal and no format arguments
wackamole.c: In function 'Acquire':
wackamole.c:895: warning: format not a string literal and no format arguments
wackamole.c:895: warning: format not a string literal and no format arguments
wackamole.c: In function 'Release':
wackamole.c:938: warning: format not a string literal and no format arguments
wackamole.c:938: warning: format not a string literal and no format arguments
wackamole.c: In function 'Usage':
wackamole.c:1117: warning: ignoring return value of 'getcwd', declared with attribute warn_unused_result
gcc -g -O2 -Wall -I. -I. -I/usr/local/include -DDONT_USE_THREADS -DNEEDS_FORCE_REUP -DETCDIR=\"/usr/local/etc\" -D_PATH_WACKAMOLE_PIDDIR=\"/var/run\" -DBUNDLEEXT=\"so\" -DHAVE_CONFIG_H -c alarm.c
alarm.c: In function 'wack_alarm':
alarm.c:95: warning: format not a string literal and no format arguments
alarm.c:105: warning: format not a string literal and no format arguments
flex -Pwack config_gram.l
bison -y -p wack -d config_gram.y
gcc -g -O2 -Wall -I. -I. -I/usr/local/include -DDONT_USE_THREADS -DNEEDS_FORCE_REUP -DETCDIR=\"/usr/local/etc\" -D_PATH_WACKAMOLE_PIDDIR=\"/var/run\" -DBUNDLEEXT=\"so\" -DHAVE_CONFIG_H -c lex.wack.c
config_gram.l: In function 'wacklex':
config_gram.l:112: warning: statement with no effect
config_gram.l: At top level:
lex.wack.c:1603: warning: 'input' defined but not used
gcc -g -O2 -Wall -I. -I. -I/usr/local/include -DDONT_USE_THREADS -DNEEDS_FORCE_REUP -DETCDIR=\"/usr/local/etc\" -D_PATH_WACKAMOLE_PIDDIR=\"/var/run\" -DBUNDLEEXT=\"so\" -DHAVE_CONFIG_H -c y.tab.c
config_gram.y: In function 'wackparse':
config_gram.y:109: warning: format not a string literal and no format arguments
config_gram.y:109: warning: format not a string literal and no format arguments
config_gram.y:136: warning: 'ipaddr.s_addr' may be used uninitialized in this function
config_gram.y:134: note: 'ipaddr.s_addr' was declared here
gcc -g -O2 -Wall -I. -I. -I/usr/local/include -DDONT_USE_THREADS -DNEEDS_FORCE_REUP -DETCDIR=\"/usr/local/etc\" -D_PATH_WACKAMOLE_PIDDIR=\"/var/run\" -DBUNDLEEXT=\"so\" -DHAVE_CONFIG_H -c arpcache.c
gcc -g -O2 -Wall -I. -I. -I/usr/local/include -DDONT_USE_THREADS -DNEEDS_FORCE_REUP -DETCDIR=\"/usr/local/etc\" -D_PATH_WACKAMOLE_PIDDIR=\"/var/run\" -DBUNDLEEXT=\"so\" -DHAVE_CONFIG_H -c spoofmanager.c
gcc -g -O2 -Wall -I. -I. -I/usr/local/include -DDONT_USE_THREADS -DNEEDS_FORCE_REUP -DETCDIR=\"/usr/local/etc\" -D_PATH_WACKAMOLE_PIDDIR=\"/var/run\" -DBUNDLEEXT=\"so\" -DHAVE_CONFIG_H -c abt.c
gcc -g -O2 -Wall -I. -I. -I/usr/local/include -DDONT_USE_THREADS -DNEEDS_FORCE_REUP -DETCDIR=\"/usr/local/etc\" -D_PATH_WACKAMOLE_PIDDIR=\"/var/run\" -DBUNDLEEXT=\"so\" -DHAVE_CONFIG_H -c control.c
gcc -g -O2 -Wall -I. -I. -I/usr/local/include -DDONT_USE_THREADS -DNEEDS_FORCE_REUP -DETCDIR=\"/usr/local/etc\" -D_PATH_WACKAMOLE_PIDDIR=\"/var/run\" -DBUNDLEEXT=\"so\" -DHAVE_CONFIG_H -c apue.c
gcc -g -O2 -Wall -I. -I. -I/usr/local/include -DDONT_USE_THREADS -DNEEDS_FORCE_REUP -DETCDIR=\"/usr/local/etc\" -D_PATH_WACKAMOLE_PIDDIR=\"/var/run\" -DBUNDLEEXT=\"so\" -DHAVE_CONFIG_H -c configuration.c
configuration.c: In function 'Get_conf':
configuration.c:46: warning: unused variable 'i'
gcc -g -O2 -Wall -I. -I. -I/usr/local/include -DDONT_USE_THREADS -DNEEDS_FORCE_REUP -DETCDIR=\"/usr/local/etc\" -D_PATH_WACKAMOLE_PIDDIR=\"/var/run\" -DBUNDLEEXT=\"so\" -DHAVE_CONFIG_H -c userloader.c
gcc -g -O2 -Wall -I. -I. -I/usr/local/include -DDONT_USE_THREADS -DNEEDS_FORCE_REUP -DETCDIR=\"/usr/local/etc\" -D_PATH_WACKAMOLE_PIDDIR=\"/var/run\" -DBUNDLEEXT=\"so\" -DHAVE_CONFIG_H -c ife-sockpacket.c
ife-sockpacket.c: In function 'if_send_spoof_request':
ife-sockpacket.c:87: error: 'ping_pkt' undeclared (first use in this function)
ife-sockpacket.c:87: error: (Each undeclared identifier is reported only once
ife-sockpacket.c:87: error: for each function it appears in.)
make: *** [ife-sockpacket.o] Error 1
root@user-desktop:~/wackamole-2.1.1#

root@user-desktop:~/wackamole-2.1.1# ./configure --with-cppflags=-I/usr/include --with-ldflags=-L/usr/lib

Wackamole has been configured with the following options:
                    User binaries: /usr/local/bin
                  System binaries: /usr/local/sbin
              Configuration files: /usr/local/etc
                   User libraries: /usr/local/lib
                     Manual pages: /usr/local/man/manX
                     PID file dir: /var/run
           Embed perl interpreter: no
                   Manpage format: man

              Host: i686-pc-linux-gnu
          Compiler: gcc
    Compiler flags: -g -O2 -Wall
Preprocessor flags: -I/usr/include -DDONT_USE_THREADS -DNEEDS_FORCE_REUP
      Linker flags: -L/usr/lib -rdynamic
         Libraries: -ldl -lnsl -lspread
   ife packet code: ife-sockpacket.o

root@user-desktop:~/wackamole-2.1.1# make
gcc -g -O2 -Wall -I. -I. -I/usr/include -DDONT_USE_THREADS -DNEEDS_FORCE_REUP -DETCDIR=\"/usr/local/etc\" -D_PATH_WACKAMOLE_PIDDIR=\"/var/run\" -DBUNDLEEXT=\"so\" -DHAVE_CONFIG_H -c ife-sockpacket.c
ife-sockpacket.c: In function 'if_send_spoof_request':
ife-sockpacket.c:87: error: 'ping_pkt' undeclared (first use in this function)
ife-sockpacket.c:87: error: (Each undeclared identifier is reported only once
ife-sockpacket.c:87: error: for each function it appears in.)
make: *** [ife-sockpacket.o] Error 1
root@user-desktop:~/wackamole-2.1.1#

===> There is a problem with the ping_pkt identifier. It seems that it's not a new problem (a search with Google found a similar error in 2006). Have you got a patch to solve this problem ?

Thanks in advance.

Revision history for this message
Eliah Kagan (degeneracypressure) said :
#3

> There is a problem with the ping_pkt identifier. It seems
> that it's not a new problem (a search with Google found
> a similar error in 2006). Have you got a patch to solve this
> problem ?

I believe you have correctly identified the problem.

It seems that the patch for that is already included in the source. You conspicuously skipped the step of applying the Debian patches. While in the wackamole-2.1.1 directory (i.e., in the same places where you run ./configure), just before running ./configure, you should run:

dpatch apply-all

Since you have already run ./configure and started the build, you shouldn't run that command just yet. Instead, you should be able to (functionally speaking) restore things to the way they were before you did those two things, by running:

make distclean

Then you can use dpatch to apply the patches, one of which is the ping_pkt fix, and then configure again, and then run make again.

If that doesn't work, please post another reply, and include the text from the Terminal (starting with the first command you run after what you've already shown).

Can you help with this problem?

Provide an answer of your own, or ask LE BRIS for more information if necessary.

To post a message you must log in.