Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 26 Jan 2013 20:52:55 GMT
From:      "Mike 'Fuzzy' Partin" <michaelp@dfcolo.com>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/175615: audio/flac broken on PowerPC64 (seriously, it's flac not the system: #159699)
Message-ID:  <201301262052.r0QKqtUm026624@red.freebsd.org>
Resent-Message-ID: <201301262100.r0QL00tq044824@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>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:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201301262052.r0QKqtUm026624>