[mb-bugs] [MusicBrainz Bug Tracker] #2930: setup.py creates test
program with main returning void which is not allowed by OS X's gcc
MusicBrainz Bug Tracker
noreply at musicbrainz.org
Sun Jun 3 16:36:43 UTC 2007
#2930: setup.py creates test program with main returning void which is not allowed
by OS X's gcc
---------------------------+------------------------------------------------
Reporter: tolsen | Owner: luks
Type: bug | Status: new
Priority: normal | Milestone: Picard Qt
Component: Picard Tagger | Version: Picard 0.9.0alpha11
Keywords: | Browser:
Os: Mac OS X |
---------------------------+------------------------------------------------
gcc on my Intel Mac (10.4.9) really wants main to return int.
{{{
techstep:/opt/src/picard-0.9.0alpha11 root# python setup.py config -I
/opt/include:/opt/include/ffmpeg/
running config
checking for pkg-cfg... no
checking for libofa... compiling '_configtest.cxx':
#include <ofa1/ofa.h>
void main() { void *tmp = (void *)ofa_create_print; }
gcc -arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -fno-
strict-aliasing -Wno-long-double -no-cpp-precomp -mno-fused-madd -fno-
common -dynamic -DNDEBUG -g -O3 -I/opt/include -I/opt/include/ffmpeg/ -c
_configtest.cxx -o _configtest.o
_configtest.cxx:2: error: '::main' must return 'int'
_configtest.cxx:2: error: '::main' must return 'int'
lipo: can't figure out the architecture type of: /var/tmp//ccX02FVD.out
failure.
removing: _configtest.cxx _configtest.o
compiling '_configtest.cxx':
#include <ofa1/ofa.h>
void main() { void *tmp = (void *)ofa_create_print; }
gcc -arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -fno-
strict-aliasing -Wno-long-double -no-cpp-precomp -mno-fused-madd -fno-
common -dynamic -DNDEBUG -g -O3 -I/opt/include -I/opt/include/ffmpeg/ -c
_configtest.cxx -o _configtest.o
_configtest.cxx:2: error: '::main' must return 'int'
_configtest.cxx:2: error: '::main' must return 'int'
lipo: can't figure out the architecture type of: /var/tmp//ccGHF7JP.out
failure.
removing: _configtest.cxx _configtest.o
no
checking for libavcodec/libavformat... compiling '_configtest.cxx':
#include <avcodec.h>
#include <avformat.h>
void main() { void *tmp = (void *)av_open_input_file; }
gcc -arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -fno-
strict-aliasing -Wno-long-double -no-cpp-precomp -mno-fused-madd -fno-
common -dynamic -DNDEBUG -g -O3 -I/opt/include -I/opt/include/ffmpeg/ -c
_configtest.cxx -o _configtest.o
In file included from _configtest.cxx:2:
/opt/include/ffmpeg/avformat.h:62: error: integer constant is too large
for 'long' type
/opt/include/ffmpeg/avformat.h:63: error: integer constant is too large
for 'long' type
In file included from _configtest.cxx:2:
/opt/include/ffmpeg/avformat.h:62: error: integer constant is too large
for 'long' type
/opt/include/ffmpeg/avformat.h:63: error: integer constant is too large
for 'long' type
/opt/include/ffmpeg/avcodec.h:2475: warning: attribute ignored in
declaration of 'struct ImgReSampleContext'
/opt/include/ffmpeg/avcodec.h:2475: warning: attribute for 'struct
ImgReSampleContext' must follow the 'struct' keyword
/opt/include/ffmpeg/avcodec.h:2486: warning: 'ImgReSampleContext' is
deprecated (declared at /opt/include/ffmpeg/avcodec.h:2480)
/opt/include/ffmpeg/avcodec.h:2496: warning: 'ImgReSampleContext' is
deprecated (declared at /opt/include/ffmpeg/avcodec.h:2480)
/opt/include/ffmpeg/avcodec.h:2502: warning: 'ImgReSampleContext' is
deprecated (declared at /opt/include/ffmpeg/avcodec.h:2480)
/opt/include/ffmpeg/avcodec.h:2507: warning: 'ImgReSampleContext' is
deprecated (declared at /opt/include/ffmpeg/avcodec.h:2480)
/opt/include/ffmpeg/avcodec.h:2475: warning: attribute ignored in
declaration of 'struct ImgReSampleContext'
/opt/include/ffmpeg/avcodec.h:2475: warning: attribute for 'struct
ImgReSampleContext' must follow the 'struct' keyword
/opt/include/ffmpeg/avcodec.h:2486: warning: 'ImgReSampleContext' is
deprecated (declared at /opt/include/ffmpeg/avcodec.h:2480)
/opt/include/ffmpeg/avcodec.h:2496: warning: 'ImgReSampleContext' is
deprecated (declared at /opt/include/ffmpeg/avcodec.h:2480)
/opt/include/ffmpeg/avcodec.h:2502: warning: 'ImgReSampleContext' is
deprecated (declared at /opt/include/ffmpeg/avcodec.h:2480)
/opt/include/ffmpeg/avcodec.h:2507: warning: 'ImgReSampleContext' is
deprecated (declared at /opt/include/ffmpeg/avcodec.h:2480)
/opt/include/ffmpeg/avformat.h: In function 'void
av_init_packet(AVPacket*)':
/opt/include/ffmpeg/avformat.h:62: error: 'INT64_C' was not declared in
this scope
/opt/include/ffmpeg/avformat.h: In function 'void
av_init_packet(AVPacket*)':
/opt/include/ffmpeg/avformat.h:62: error: 'INT64_C' was not declared in
this scope
/opt/include/ffmpeg/avformat.h: At global scope:
/opt/include/ffmpeg/avformat.h:291: warning: 'AVFrac' is deprecated
(declared at /opt/include/ffmpeg/avformat.h:117)
/opt/include/ffmpeg/avformat.h: At global scope:
/opt/include/ffmpeg/avformat.h:291: warning: 'AVFrac' is deprecated
(declared at /opt/include/ffmpeg/avformat.h:117)
_configtest.cxx:3: error: '::main' must return 'int'
_configtest.cxx:3: error: '::main' must return 'int'
lipo: can't figure out the architecture type of: /var/tmp//ccZV6BgY.out
failure.
removing: _configtest.cxx _configtest.o
compiling '_configtest.cxx':
#include <avcodec.h>
#include <avformat.h>
void main() { void *tmp = (void *)av_open_input_file; }
gcc -arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -fno-
strict-aliasing -Wno-long-double -no-cpp-precomp -mno-fused-madd -fno-
common -dynamic -DNDEBUG -g -O3 -I/opt/include -I/opt/include/ffmpeg/ -c
_configtest.cxx -o _configtest.o
In file included from _configtest.cxx:2:
/opt/include/ffmpeg/avformat.h:62: error: integer constant is too large
for 'long' type
/opt/include/ffmpeg/avformat.h:63: error: integer constant is too large
for 'long' type
In file included from _configtest.cxx:2:
/opt/include/ffmpeg/avformat.h:62: error: integer constant is too large
for 'long' type
/opt/include/ffmpeg/avformat.h:63: error: integer constant is too large
for 'long' type
/opt/include/ffmpeg/avcodec.h:2475: warning: attribute ignored in
declaration of 'struct ImgReSampleContext'
/opt/include/ffmpeg/avcodec.h:2475: warning: attribute for 'struct
ImgReSampleContext' must follow the 'struct' keyword
/opt/include/ffmpeg/avcodec.h:2486: warning: 'ImgReSampleContext' is
deprecated (declared at /opt/include/ffmpeg/avcodec.h:2480)
/opt/include/ffmpeg/avcodec.h:2496: warning: 'ImgReSampleContext' is
deprecated (declared at /opt/include/ffmpeg/avcodec.h:2480)
/opt/include/ffmpeg/avcodec.h:2502: warning: 'ImgReSampleContext' is
deprecated (declared at /opt/include/ffmpeg/avcodec.h:2480)
/opt/include/ffmpeg/avcodec.h:2507: warning: 'ImgReSampleContext' is
deprecated (declared at /opt/include/ffmpeg/avcodec.h:2480)
/opt/include/ffmpeg/avcodec.h:2475: warning: attribute ignored in
declaration of 'struct ImgReSampleContext'
/opt/include/ffmpeg/avcodec.h:2475: warning: attribute for 'struct
ImgReSampleContext' must follow the 'struct' keyword
/opt/include/ffmpeg/avcodec.h:2486: warning: 'ImgReSampleContext' is
deprecated (declared at /opt/include/ffmpeg/avcodec.h:2480)
/opt/include/ffmpeg/avcodec.h:2496: warning: 'ImgReSampleContext' is
deprecated (declared at /opt/include/ffmpeg/avcodec.h:2480)
/opt/include/ffmpeg/avcodec.h:2502: warning: 'ImgReSampleContext' is
deprecated (declared at /opt/include/ffmpeg/avcodec.h:2480)
/opt/include/ffmpeg/avcodec.h:2507: warning: 'ImgReSampleContext' is
deprecated (declared at /opt/include/ffmpeg/avcodec.h:2480)
/opt/include/ffmpeg/avformat.h: In function 'void
av_init_packet(AVPacket*)':
/opt/include/ffmpeg/avformat.h:62: error: 'INT64_C' was not declared in
this scope
/opt/include/ffmpeg/avformat.h: At global scope:
/opt/include/ffmpeg/avformat.h:291: warning: 'AVFrac' is deprecated
(declared at /opt/include/ffmpeg/avformat.h:117)
/opt/include/ffmpeg/avformat.h: In function 'void
av_init_packet(AVPacket*)':
/opt/include/ffmpeg/avformat.h:62: error: 'INT64_C' was not declared in
this scope
_configtest.cxx:3: error: '::main' must return
'int'/opt/include/ffmpeg/avformat.h: At global scope:
/opt/include/ffmpeg/avformat.h:291: warning: 'AVFrac' is deprecated
(declared at /opt/include/ffmpeg/avformat.h:117)
_configtest.cxx:3: error: '::main' must return 'int'
lipo: can't figure out the architecture type of: /var/tmp//ccx2qqiP.out
failure.
removing: _configtest.cxx _configtest.o
no
checking for directshow... no
saving build.cfg
techstep:/opt/src/picard-0.9.0alpha11 root# gcc --version
i686-apple-darwin8-gcc-4.0.1 (GCC) 4.0.1 (Apple Computer, Inc. build 5363)
Copyright (C) 2005 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE.
techstep:/opt/src/picard-0.9.0alpha11 root#
}}}
--
Ticket URL: <http://bugs.musicbrainz.org/ticket/2930>
MusicBrainz Bug Tracker <http://musicbrainz.org>
MusicBrainz -- the music metadatabase
More information about the Musicbrainz-bugs
mailing list