Huge thanks to our Platinum Members Endace and LiveAction,
and our Silver Member Veeam, for supporting the Wireshark Foundation and project.

Wireshark-bugs: [Wireshark-bugs] [Bug 2607] New: Wireshark won't compile : no rule to make targe

Date: Fri, 13 Jun 2008 00:15:20 -0700 (PDT)
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=2607

           Summary: Wireshark won't compile : no rule to make target
                    `inet_pton`
           Product: Wireshark
           Version: 1.0.0
          Platform: PC
               URL: http://www.wireshark.org/lists/wireshark-
                    dev/200806/msg00004.html
        OS/Version: Linux
            Status: NEW
          Severity: Major
          Priority: Medium
         Component: TShark
        AssignedTo: wireshark-bugs@xxxxxxxxxxxxx
        ReportedBy: guitreize@xxxxxxxxx


Build Information:
TShark 1.0.0

Copyright 1998-2008 Gerald Combs <gerald@xxxxxxxxxxxxx> and contributors.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Compiled with GLib 2.12.13, with libpcap 0.4, with libz 1.1.3, without POSIX
capabilities, without libpcre, without SMI, without ADNS, without Lua, without
GnuTLS, without Gcrypt, without Kerberos.
NOTE: this build doesn't support the "matches" operator for Wireshark filter
syntax.

Running on Linux 2.4.20, with libpcap (version unknown).

Built using gcc 3.2.1.

--
When trying to compile Wireshark (well, only Tshark) on a quite old platform,
the compile process stops at one point saying that there is no rule to make
target "inet_pton" in the epan/ subdirectory.

The reason is likely to be that inet_pton is not detected in the libitnl and
Wireshark tries to compile it itself from its sources. 
Problem: the inet_pton.c file is in the root directory and not in the epan/
dir.

The solution is to perform some little tricky things that I found on a Japanese
(!) website just before typing the make:

(in the wireshark root dir)

./configure [your options]
#trick
gmake inet_pton.o
gmake inet_pton.lo 
cd epan
ln -s ../inet_pton.lo
ln -s ../inet_pton.o
mkdir -p .libs
cd .libs/
ln -s ../../.libs/inet_pton.o .
cd ../..
#/trick
make

This is what solved the problem in my case.


-- 
Configure bugmail: https://bugs.wireshark.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.