From owner-freebsd-ports-bugs@FreeBSD.ORG Sat Jan 26 21:00:00 2013 Return-Path: Delivered-To: freebsd-ports-bugs@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id DB00E22C for ; Sat, 26 Jan 2013 21:00:00 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx1.freebsd.org (Postfix) with ESMTP id BE8FDF51 for ; Sat, 26 Jan 2013 21:00:00 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.6/8.14.6) with ESMTP id r0QL003N044830 for ; Sat, 26 Jan 2013 21:00:00 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.6/8.14.6/Submit) id r0QL00tq044824; Sat, 26 Jan 2013 21:00:00 GMT (envelope-from gnats) Resent-Date: Sat, 26 Jan 2013 21:00:00 GMT Resent-Message-Id: <201301262100.r0QL00tq044824@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, "Mike 'Fuzzy' Partin" Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 7D4B1107 for ; Sat, 26 Jan 2013 20:52:55 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22]) by mx1.freebsd.org (Postfix) with ESMTP id 6C2AAF10 for ; Sat, 26 Jan 2013 20:52:55 +0000 (UTC) Received: from red.freebsd.org (localhost [127.0.0.1]) by red.freebsd.org (8.14.5/8.14.5) with ESMTP id r0QKqtFQ026625 for ; Sat, 26 Jan 2013 20:52:55 GMT (envelope-from nobody@red.freebsd.org) Received: (from nobody@localhost) by red.freebsd.org (8.14.5/8.14.5/Submit) id r0QKqtUm026624; Sat, 26 Jan 2013 20:52:55 GMT (envelope-from nobody) Message-Id: <201301262052.r0QKqtUm026624@red.freebsd.org> Date: Sat, 26 Jan 2013 20:52:55 GMT From: "Mike 'Fuzzy' Partin" To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Subject: ports/175615: audio/flac broken on PowerPC64 (seriously, it's flac not the system: #159699) X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 26 Jan 2013 21:00:00 -0000 >Number: 175615 >Category: ports >Synopsis: audio/flac broken on PowerPC64 (seriously, it's flac not the system: #159699) >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sat Jan 26 21:00:00 UTC 2013 >Closed-Date: >Last-Modified: >Originator: Mike 'Fuzzy' Partin >Release: 9.1-RELEASE >Organization: Digital Fortress >Environment: FreeBSD greyskull.fu-manchu.org 9.1-RELEASE FreeBSD 9.1-RELEASE #0: Thu Oct 4 19:10:17 UTC 2012 root@anacreon.physics.wisc.edu:/usr/obj/usr/src/sys/GENERIC64 powerpc >Description: Making all in libFLAC++ if /bin/sh /usr/local/bin/libtool --mode=compile c++ -DHAVE_CONFIG_H -I. -I. -I../.. -DFLaC__INLINE=__inline__ -DNDEBUG -I../.. -I./include -I../../include -I/usr/ports/audio/flac/work/flac-1.2.1/include -I/usr/local/include -O2 -pipe -fno-strict-aliasing -MT metadata.lo -MD -MP -MF ".deps/metadata.Tpo" -c -o metadata.lo `test -f 'metadata.cpp' || echo './'`metadata.cpp; then mv -f ".deps/metadata.Tpo" ".deps/metadata.Plo"; else rm -f ".deps/metadata.Tpo"; exit 1; fi if /bin/sh /usr/local/bin/libtool --mode=compile c++ -DHAVE_CONFIG_H -I. -I. -I../.. -DFLaC__INLINE=__inline__ -DNDEBUG -I../.. -I./include -I../../include -I/usr/ports/audio/flac/work/flac-1.2.1/include -I/usr/local/include -O2 -pipe -fno-strict-aliasing -MT stream_encoder.lo -MD -MP -MF ".deps/stream_encoder.Tpo" -c -o stream_encoder.lo `test -f 'stream_encoder.cpp' || echo './'`stream_encoder.cpp; then mv -f ".deps/stream_encoder.Tpo" ".deps/stream_encoder.Plo"; else rm -f ".deps/stream_encoder.Tpo"; exit 1; fi libtool: compile: c++ -DHAVE_CONFIG_H -I. -I. -I../.. -DFLaC__INLINE=__inline__ -DNDEBUG -I../.. -I./include -I../../include -I/usr/ports/audio/flac/work/flac-1.2.1/include -I/usr/local/include -O2 -pipe -fno-strict-aliasing -MT metadata.lo -MD -MP -MF .deps/metadata.Tpo -c metadata.cpp -fPIC -DPIC -o .libs/metadata.o libtool: compile: c++ -DHAVE_CONFIG_H -I. -I. -I../.. -DFLaC__INLINE=__inline__ -DNDEBUG -I../.. -I./include -I../../include -I/usr/ports/audio/flac/work/flac-1.2.1/include -I/usr/local/include -O2 -pipe -fno-strict-aliasing -MT stream_encoder.lo -MD -MP -MF .deps/stream_encoder.Tpo -c stream_encoder.cpp -fPIC -DPIC -o .libs/stream_encoder.o In file included from metadata.cpp:33: ./../include/share/alloc.h: In function 'void* safe_malloc_mul_2op_(size_t, size_t)': ./../include/share/alloc.h:120: error: 'UINT64_C' was not declared in this scope ./../include/share/alloc.h: In function 'void* safe_malloc_mul_3op_(size_t, size_t, size_t)': ./../include/share/alloc.h:130: error: 'UINT64_C' was not declared in this scope ./../include/share/alloc.h:133: error: 'UINT64_C' was not declared in this scope ./../include/share/alloc.h: In function 'void* safe_malloc_mul2add_(size_t, size_t, size_t)': ./../include/share/alloc.h:143: error: 'UINT64_C' was not declared in this scope ./../include/share/alloc.h: In function 'void* safe_realloc_mul_2op_(void*, size_t, size_t)': ./../include/share/alloc.h:196: error: 'UINT64_C' was not declared in this scope *** Error code 1 libtool: compile: c++ -DHAVE_CONFIG_H -I. -I. -I../.. -DFLaC__INLINE=__inline__ -DNDEBUG -I../.. -I./include -I../../include -I/usr/ports/audio/flac/work/flac-1.2.1/include -I/usr/local/include -O2 -pipe -fno-strict-aliasing -MT stream_encoder.lo -MD -MP -MF .deps/stream_encoder.Tpo -c stream_encoder.cpp -o stream_encoder.o >/dev/null 2>&1 1 error *** Error code 1 >How-To-Repeat: cd /usr/ports/audio/flac && make >Fix: cd /usr/ports/audio/flac && make distclean fetch extract configure vi work/flac*/include/share/alloc.h Line 26 has this comment: /* WATCHOUT: for c++ you may have to #define __STDC_LIMIT_MACROS 1 real early * before #including this file, otherwise SIZE_MAX might not be defined */ and adding: #define __STDC_LIMIT_MACROS 1 does indeed fix the problem. and since you can see by the make output that it is in fact using c++ to compile and since configure didn't detect that and put the proper define in place (or the src including that file was not patched properly) that it is indeed the port and not the system headers. Unfortunately I'm not very competent at all with autotools and so cannot provide a patch to fix this, at the configure/configur.in level. >Release-Note: >Audit-Trail: >Unformatted: