Share

FLAC-Free Lossless Audio Codec

Tracker: Patches

6 fix missing include in flac-1.2.1 - ID: 1834168
Last Update: Settings changed ( jcoalson )

GCC 4.3 cleans up the include dependencies of the C++ stdlib headers. The
result is some packages have missing includes. This patch fixes one such
error
in flac-1.2.1.

make[5]: Entering directory
`/var/tmp/portage/media-libs/flac-1.2.1-r1/work/flac-1.2.1/examples/cpp/enc
ode/file'
x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I../../../..
-DFLaC__INLINE=__inline__ -DNDEBUG -I../../../.. -I./include
-I../../../../include -O2 -g -march=native -fomit-frame-pointer -pipe -c
-o
main.o main.cpp
main.cpp: In function 'int main(int, char**)':
main.cpp:75: error: 'memcmp' was not declared in this scope
make[5]: *** [main.o] Error 1


dirtyepic @ gentoo ( dirtyepic ) - 2007-11-18 19:13

6

Closed

Fixed

Josh Coalson

None

None

Public


Comments ( 3 )

Date: 2007-11-27 16:06
Sender: jcoalsonProject Admin


ok, fixed in CVS


Date: 2007-11-27 00:36
Sender: dirtyepic


yep, that works fine.


Date: 2007-11-26 17:58
Sender: jcoalsonProject Admin


for source consistency I'd prefer to use the C headers, does

#include <string.h>

also work? (instead of <cstring>)



Attached File ( 1 )

Filename Description Download
flac-1.2.1-gcc-4.3-includes.patch flac-1.2.1-gcc-4.3-includes.patch Download

Changes ( 8 )

Field Old Value Date By
close_date - 2007-11-27 16:06 jcoalson
resolution_id Accepted 2007-11-27 16:06 jcoalson
status_id Open 2007-11-27 16:06 jcoalson
assigned_to nobody 2007-11-26 17:58 jcoalson
resolution_id None 2007-11-26 17:58 jcoalson
priority 5 2007-11-26 17:58 jcoalson
summary fix missing include in media-sound/flac-1.2.1 2007-11-18 19:13 dirtyepic
File Added 254850: flac-1.2.1-gcc-4.3-includes.patch 2007-11-18 19:13 dirtyepic