pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

audio/flac compile error on Linux (Ubuntu 9.04)

Hello all.

pkgsrc works very well for me under NetBSD. Now I'm trying to deploy it
on Linux (Ubuntu 9.04).

When installing audio/flac, I got the following error when it was
building the examples:

if g++ -DHAVE_CONFIG_H -I. -I. -I../../../..   -DFLaC__INLINE=__inline__
-DNDEBUG -I../../../.. -I./include -I../../../../include
-I/usr/pkg/include  -Wno-error -I/usr/pkg/include -MT main.o -MD -MP -MF
".deps/main.Tpo" \
          -c -o main.o `test -f 'main.cpp' || echo './'`main.cpp; \
        then mv -f ".deps/main.Tpo" ".deps/main.Po"; \
        else rm -f ".deps/main.Tpo"; exit 1; \
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
make[5]: Leaving directory

So, I needed to put a "#include <cstring>" (copied from the Ubuntu patch
for this software), as it is shown in the patch attached.

I don't know about other Linux distributions, but would it be worth to
include one more patch to make it workable under Linux (or, if it is a
specific problem, under Ubuntu)?

Thank you very much.

Silas Silva

Home | Main Index | Thread Index | Old Index