Opened 12 years ago

Closed 12 years ago

Last modified 12 years ago

#32635 closed defect (invalid)

libpcap can't be installed

Reported by: nil.bureau.bitbucket@… Owned by: opendarwin.org@…
Priority: Normal Milestone:
Component: ports Version: 2.0.3
Keywords: Cc: ryandesign (Ryan Carsten Schmidt)
Port: libpcap

Description (last modified by neverpanic (Clemens Lang))

Attempting to install libpcap via Terminal produces errors every time. Under Mac OS X 10.4.11 with Xcode 2.5:

--->  Extracting libpcap
--->  Applying patches to libpcap
--->  Configuring libpcap
Error: Target org.macports.configure returned: configure failure: shell command failed (see log for details)
Log for libpcap is at: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_net_libpcap/libpcap/main.log
Error: Status 1 encountered during processing.

Per Ticket #12949, checked /usr/include/net for bpf.h file and it does not exist.

Downloading and installing manually does not produce any joy, as at least one file that should exist after installation is not there: libpcap.a.dylib (not libpcap.A.dylib).

How can this be fixed so libpcap can be installed via MacPorts?

Attachments (1)

config.log (5.4 KB) - added by nil.bureau.bitbucket@… 12 years ago.
Config.log

Download all attachments as: .zip

Change History (10)

comment:1 Changed 12 years ago by nil.bureau.bitbucket@…

Cc: nil.bureau.bitbucket@… added

Cc Me!

comment:2 Changed 12 years ago by neverpanic (Clemens Lang)

Cc: opendarwin.org@… added; nil.bureau.bitbucket@… removed
Description: modified (diff)
Owner: changed from macports-tickets@… to cal@…
Port: 1.1.1 or 1.2.0 removed
Priority: HighNormal

Please remember to use WikiFormatting, don't set priority to high (as doing this is reserved for maintainers only) and Cc the maintainer. Please also read the ticket guidelines prominently linked from the "New Ticket" page. You don't need to Cc yourself either.

Reassigning to maintainer, but note it's up to the maintainer whether he supports PPC or not, but most maintainers are happy to apply patches fixing problems.

comment:3 Changed 12 years ago by neverpanic (Clemens Lang)

Cc: opendarwin.org@… removed
Owner: changed from cal@… to opendarwin.org@…

Also, attaching the main.log mentioned in the error message might be helpful.

comment:4 Changed 12 years ago by nil.bureau.bitbucket@…

As requested, the Main.log file:

version:1
:debug:main Executing org.macports.main (libpcap)
:debug:main changing euid/egid - current euid: 0 - current egid: 0
:debug:main egid changed to: 500
:debug:main euid changed to: 503
:debug:main Skipping completed org.macports.archivefetch (libpcap)
:debug:main Privilege de-escalation not attempted as not running as root.
:debug:main Skipping completed org.macports.fetch (libpcap)
:debug:main Privilege de-escalation not attempted as not running as root.
:debug:main Skipping completed org.macports.checksum (libpcap)
:debug:main Privilege de-escalation not attempted as not running as root.
:debug:main Skipping completed org.macports.extract (libpcap)
:debug:main Privilege de-escalation not attempted as not running as root.
:debug:main Skipping completed org.macports.patch (libpcap)
:debug:main Privilege de-escalation not attempted as not running as root.
:debug:configure configure phase started at Thu Dec 22 22:52:59 CST 2011
:notice:configure --->  Configuring libpcap
:debug:configure Using compiler 'System cc'
:debug:configure Executing org.macports.configure (libpcap)
:debug:configure Environment: CPATH='/opt/local/include' CFLAGS='-pipe -O2 -m32' CPPFLAGS='-I/opt/local/include' CXXFLAGS='-pipe -O2 -m32' LIBRARY_PATH='/opt/local/lib' MACOSX_DEPLOYMENT_TARGET='10.4' CXX='/usr/bin/c++' CC_PRINT_OPTIONS_FILE='/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_net_libpcap/libpcap/work/.CC_PRINT_OPTIONS' F90FLAGS='-pipe -O2 -m32' LDFLAGS='-L/opt/local/lib' OBJC='/usr/bin/cc' FCFLAGS='-pipe -O2 -m32' INSTALL='/usr/bin/install -c' OBJCFLAGS='-pipe -O2 -m32' FFLAGS='-pipe -O2 -m32' CC_PRINT_OPTIONS='YES' CC='/usr/bin/cc'
:debug:configure Assembled command: 'cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_net_libpcap/libpcap/work/libpcap-1.1.1" && ./configure --prefix=/opt/local --enable-ipv6'
:debug:configure Executing command line:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_net_libpcap/libpcap/work/libpcap-1.1.1" && ./configure --prefix=/opt/local --enable-ipv6 
:info:configure checking build system type... powerpc-apple-darwin8.11.0
:info:configure checking host system type... powerpc-apple-darwin8.11.0
:info:configure checking target system type... powerpc-apple-darwin8.11.0
:info:configure checking for gcc... /usr/bin/cc
:info:configure checking for C compiler default output file name... 
:info:configure configure: error: C compiler cannot create executables
:info:configure See `config.log' for more details.
:info:configure shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_net_libpcap/libpcap/work/libpcap-1.1.1" && ./configure --prefix=/opt/local --enable-ipv6 " returned error 77
:error:configure Target org.macports.configure returned: configure failure: shell command failed (see log for details)
:debug:configure Backtrace: configure failure: shell command failed (see log for details)
    while executing
"$procedure $targetname"
:info:configure Warning: the following items did not execute (for libpcap): org.macports.activate org.macports.configure org.macports.build org.macports.destroot org.macports.install
:notice:configure Log for libpcap is at: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_net_libpcap/libpcap/main.log

comment:5 in reply to:  4 Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: ryandesign@… added

Replying to nil.bureau.bitbucket@…:

:info:configure configure: error: C compiler cannot create executables
:info:configure See `config.log' for more details.

In that case, please attach (not paste) the config.log as well. It sounds like you may not have installed Xcode properly. See the FAQ.

comment:6 in reply to:  4 Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)

I am also curious why your log says:

:debug:configure Using compiler 'System cc'

and:

:info:configure checking for gcc... /usr/bin/cc

Have you done something special to cause this? On Tiger ports should by default be the using the compiler named "Mac OS X gcc 4.0" which is /usr/bin/gcc-4.0.

Changed 12 years ago by nil.bureau.bitbucket@…

Attachment: config.log added

Config.log

comment:7 Changed 12 years ago by nil.bureau.bitbucket@…

I installed Xcode using the standard installer routine from Apple, so I didn't modify or move anything. But I've also compiled a lot of other things without any problem using that same installation, so this is puzzling.

I've checked and there is no /usr/bin/gcc-4.0 file.

comment:8 Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)

Resolution: invalid
Status: newclosed

Ok, and the config.log shows:

./configure: line 1: /usr/bin/cc: No such file or directory

So Xcode is not installed correctly. Please reinstall Xcode 2.5 ensuring that the option for UNIX Development (or Command Line Support -- I forget which wording is used on Tiger) is selected.

comment:9 Changed 12 years ago by nil.bureau.bitbucket@…

I reinstalled Xcode (again) and now it seems to work. But it makes no sense, since I had everything installed before and was able to configure, make and install lots of other things without any problem from Terminal.

Note: See TracTickets for help on using tickets.