Opened 13 years ago

Closed 13 years ago

#30297 closed defect (fixed)

httping @1.4.1 build failure on 10.7 - str.c:23 error

Reported by: cdhanks@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 2.0.0
Keywords: lion Cc: ryandesign (Ryan Carsten Schmidt)
Port: httping

Description

Good morning!

Running 10.7 Lion with Xcode 4.1. This was the only utility I tried to install that failed using llvm-gcc-4.2. I did have success using clang instead of gcc though using this:

sudo port -vd install httping configure.compiler=clang

$ sudo port -vd install httping
Password:
DEBUG: Changing to port directory: /opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports/net/httping
DEBUG: OS darwin/11.0.0 (Mac OS X 10.7) arch i386
DEBUG: org.macports.load registered provides 'load', a pre-existing procedure. Target override will not be provided
DEBUG: org.macports.unload registered provides 'unload', a pre-existing procedure. Target override will not be provided
DEBUG: org.macports.distfiles registered provides 'distfiles', a pre-existing procedure. Target override will not be provided
DEBUG: universal_variant is false, so not adding the default universal variant
DEBUG: changing euid/egid - current euid: 0 - current egid: 0
DEBUG: egid changed to: 501
DEBUG: euid changed to: 502
DEBUG: Starting logging for httping
DEBUG: epoch: in tree: 1 installed: 1
DEBUG: openssl 1.0.0d_0 exists in the ports tree
DEBUG: openssl 1.0.0d_0  is the latest installed
DEBUG: openssl 1.0.0d_0  is active
DEBUG: Merging existing variants '' into variants
DEBUG: new fully merged portvariants: 
DEBUG: Changing to port directory: /opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports/devel/openssl
DEBUG: OS darwin/11.0.0 (Mac OS X 10.7) arch i386
DEBUG: org.macports.load registered provides 'load', a pre-existing procedure. Target override will not be provided
DEBUG: org.macports.unload registered provides 'unload', a pre-existing procedure. Target override will not be provided
DEBUG: org.macports.distfiles registered provides 'distfiles', a pre-existing procedure. Target override will not be provided
DEBUG: Using group file /opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports/_resources/port1.0/group/muniversal-1.0.tcl
DEBUG: Reading variant descriptions from /opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports/_resources/port1.0/variant_descriptions.conf
DEBUG: universal variant already exists, so not adding the default one
DEBUG: No need to upgrade! openssl 1.0.0d_0 >= openssl 1.0.0d_0
DEBUG: epoch: in tree: 0 installed: 0
DEBUG: zlib 1.2.5_0 exists in the ports tree
DEBUG: zlib 1.2.5_0  is the latest installed
DEBUG: zlib 1.2.5_0  is active
DEBUG: Merging existing variants '' into variants
DEBUG: new fully merged portvariants: 
DEBUG: Changing to port directory: /opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports/archivers/zlib
DEBUG: OS darwin/11.0.0 (Mac OS X 10.7) arch i386
DEBUG: org.macports.load registered provides 'load', a pre-existing procedure. Target override will not be provided
DEBUG: org.macports.unload registered provides 'unload', a pre-existing procedure. Target override will not be provided
DEBUG: org.macports.distfiles registered provides 'distfiles', a pre-existing procedure. Target override will not be provided
DEBUG: Using group file /opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports/_resources/port1.0/group/xcodeversion-1.0.tcl
DEBUG: adding the default universal variant
DEBUG: Reading variant descriptions from /opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports/_resources/port1.0/variant_descriptions.conf
DEBUG: No need to upgrade! zlib 1.2.5_0 >= zlib 1.2.5_0
--->  Computing dependencies for httping
DEBUG: Searching for dependency: openssl
DEBUG: Found Dependency: receipt exists for openssl
DEBUG: Executing org.macports.main (httping)
DEBUG: changing euid/egid - current euid: 0 - current egid: 0
DEBUG: egid changed to: 501
DEBUG: euid changed to: 502
DEBUG: Skipping completed org.macports.archivefetch (httping)
DEBUG: Privilege de-escalation not attempted as not running as root.
DEBUG: Skipping completed org.macports.fetch (httping)
DEBUG: Privilege de-escalation not attempted as not running as root.
DEBUG: Skipping completed org.macports.checksum (httping)
DEBUG: Privilege de-escalation not attempted as not running as root.
DEBUG: Skipping completed org.macports.extract (httping)
DEBUG: Privilege de-escalation not attempted as not running as root.
DEBUG: Skipping completed org.macports.patch (httping)
DEBUG: Privilege de-escalation not attempted as not running as root.
DEBUG: Skipping completed org.macports.configure (httping)
DEBUG: Privilege de-escalation not attempted as not running as root.
DEBUG: build phase started at Fri Jul 22 05:23:04 PDT 2011
--->  Building httping
DEBUG: Executing org.macports.build (httping)
DEBUG: Environment: CPATH='/opt/local/include' CC_PRINT_OPTIONS_FILE='/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_net_httping/httping/work/.CC_PRINT_OPTIONS' LIBRARY_PATH='/opt/local/lib' CC_PRINT_OPTIONS='YES' MACOSX_DEPLOYMENT_TARGET='10.7'
DEBUG: Assembled command: 'cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_net_httping/httping/work/httping-1.4.1" && /usr/bin/make -j2 -w all CC=/Developer/usr/bin/llvm-gcc-4.2'
DEBUG: Executing command line:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_net_httping/httping/work/httping-1.4.1" && /usr/bin/make -j2 -w all CC=/Developer/usr/bin/llvm-gcc-4.2 
make: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_net_httping/httping/work/httping-1.4.1'
/Developer/usr/bin/llvm-gcc-4.2 -Wall -W -O2 -DVERSION=\"1.4.1\"   -c -o http.o http.c
/Developer/usr/bin/llvm-gcc-4.2 -Wall -W -O2 -DVERSION=\"1.4.1\"   -c -o str.o str.c
str.c:23: error: conflicting types for ‘strndup’
make: *** [str.o] Error 1
make: *** Waiting for unfinished jobs....
In file included from http.c:28:
str.h:19: error: conflicting types for ‘strndup’
make: *** [http.o] Error 1
make: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_net_httping/httping/work/httping-1.4.1'
shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_net_httping/httping/work/httping-1.4.1" && /usr/bin/make -j2 -w all CC=/Developer/usr/bin/llvm-gcc-4.2 " returned error 2
Error: Target org.macports.build returned: shell command failed (see log for details)
DEBUG: Backtrace: shell command failed (see log for details)
    while executing
"command_exec build"
    (procedure "portbuild::build_main" line 8)
    invoked from within
"$procedure $targetname"
Warning: the following items did not execute (for httping): org.macports.activate org.macports.build org.macports.destroot org.macports.install
Log for httping is at: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_net_httping/httping/main.log
Error: Status 1 encountered during processing.
To report a bug, see <http://guide.macports.org/#project.tickets>

Change History (2)

comment:1 Changed 13 years ago by cdhanks@…

I see that httping is now at 1.4.3, but the issue remains the same.

comment:2 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: ryandesign@… added
Resolution: fixed
Status: newclosed

I am hopeful that r81278 fixes this. Please re-open this ticket if httping @1.4.4_0 does not build.

Note: See TracTickets for help on using tickets.