MPlayer 1.0rc1 rev3 - build failure - intel
I thought I'd get input on the list before filing a ticket in case it's an issue on my side. I've pasted the install output below. There are a few references to libraries in /Developer/SDKs/ MacOSX10.4u.sdk/opt/local/lib/ libmad.0.dylib libexpat.1.dylib referenced from: /opt/local/lib/libfontconfig.dylib maybe something wrong with fontconfig? Thanks for any help, ---> Fetching MPlayer ---> Verifying checksum(s) for MPlayer ---> Extracting MPlayer ---> Applying patches to MPlayer ---> Configuring MPlayer ---> Building MPlayer with target all Error: Target com.apple.build returned: shell command "cd "/opt/local/ var/db/dports/build/ _opt_local_var_db_dports_sources_rsync.rsync.darwinports.org_dpupdate_dp orts_multimedia_MPlayer/work/MPlayer-1.0rc1" && LD=c++ make all" returned error 2 Command output: cc -c -I. -I.. -I../libmpcodecs -Wdeclaration-after- statement -fno-PIC -O4 -march=pentium-m -mtune=pentium-m -pipe -ffast- math -fomit-frame-pointer -mdynamic-no-pic -falign-loops=16 - DSYS_DARWIN -DCONFIG_DARWIN -shared-libgcc -arch i386 -isysroot / Developer/SDKs/MacOSX10.4u.sdk -D_LARGEFILE_SOURCE - D_FILE_OFFSET_BITS=64 -I/opt/local/include -I/opt/local/include/ cdparanoia/interface -I/opt/local/include/cdparanoia/paranoia -I/usr/ X11R6/include -I/opt/local/include/freetype2 -I/opt/local/include - D_GNU_SOURCE -o ass.o ass.c ass.c: In function 'sub_recode': ass.c:841: warning: passing argument 2 of 'libiconv' from incompatible pointer type cc -c -I. -I.. -I../libmpcodecs -Wdeclaration-after-statement -fno- PIC -O4 -march=pentium-m -mtune=pentium-m -pipe -ffast-math -fomit- frame-pointer -mdynamic-no-pic -falign-loops=16 -DSYS_DARWIN - DCONFIG_DARWIN -shared-libgcc -arch i386 -isysroot /Developer/SDKs/ MacOSX10.4u.sdk -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/opt/ local/include -I/opt/local/include/cdparanoia/interface -I/opt/local/ include/cdparanoia/paranoia -I/usr/X11R6/include -I/opt/local/include/ freetype2 -I/opt/local/include -D_GNU_SOURCE -o ass_cache.o ass_cache.c cc -c -I. -I.. -I../libmpcodecs -Wdeclaration-after-statement -fno- PIC -O4 -march=pentium-m -mtune=pentium-m -pipe -ffast-math -fomit- frame-pointer -mdynamic-no-pic -falign-loops=16 -DSYS_DARWIN - DCONFIG_DARWIN -shared-libgcc -arch i386 -isysroot /Developer/SDKs/ MacOSX10.4u.sdk -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/opt/ local/include -I/opt/local/include/cdparanoia/interface -I/opt/local/ include/cdparanoia/paranoia -I/usr/X11R6/include -I/opt/local/include/ freetype2 -I/opt/local/include -D_GNU_SOURCE -o ass_fontconfig.o ass_fontconfig.c cc -c -I. -I.. -I../libmpcodecs -Wdeclaration-after-statement -fno- PIC -O4 -march=pentium-m -mtune=pentium-m -pipe -ffast-math -fomit- frame-pointer -mdynamic-no-pic -falign-loops=16 -DSYS_DARWIN - DCONFIG_DARWIN -shared-libgcc -arch i386 -isysroot /Developer/SDKs/ MacOSX10.4u.sdk -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/opt/ local/include -I/opt/local/include/cdparanoia/interface -I/opt/local/ include/cdparanoia/paranoia -I/usr/X11R6/include -I/opt/local/include/ freetype2 -I/opt/local/include -D_GNU_SOURCE -o ass_render.o ass_render.c cc -c -I. -I.. -I../libmpcodecs -Wdeclaration-after-statement -fno- PIC -O4 -march=pentium-m -mtune=pentium-m -pipe -ffast-math -fomit- frame-pointer -mdynamic-no-pic -falign-loops=16 -DSYS_DARWIN - DCONFIG_DARWIN -shared-libgcc -arch i386 -isysroot /Developer/SDKs/ MacOSX10.4u.sdk -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/opt/ local/include -I/opt/local/include/cdparanoia/interface -I/opt/local/ include/cdparanoia/paranoia -I/usr/X11R6/include -I/opt/local/include/ freetype2 -I/opt/local/include -D_GNU_SOURCE -o ass_utils.o ass_utils.c cc -c -I. -I.. -I../libmpcodecs -Wdeclaration-after-statement -fno- PIC -O4 -march=pentium-m -mtune=pentium-m -pipe -ffast-math -fomit- frame-pointer -mdynamic-no-pic -falign-loops=16 -DSYS_DARWIN - DCONFIG_DARWIN -shared-libgcc -arch i386 -isysroot /Developer/SDKs/ MacOSX10.4u.sdk -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/opt/ local/include -I/opt/local/include/cdparanoia/interface -I/opt/local/ include/cdparanoia/paranoia -I/usr/X11R6/include -I/opt/local/include/ freetype2 -I/opt/local/include -D_GNU_SOURCE -o ass_mp.o ass_mp.c cc -c -I. -I.. -I../libmpcodecs -Wdeclaration-after-statement -fno- PIC -O4 -march=pentium-m -mtune=pentium-m -pipe -ffast-math -fomit- frame-pointer -mdynamic-no-pic -falign-loops=16 -DSYS_DARWIN - DCONFIG_DARWIN -shared-libgcc -arch i386 -isysroot /Developer/SDKs/ MacOSX10.4u.sdk -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/opt/ local/include -I/opt/local/include/cdparanoia/interface -I/opt/local/ include/cdparanoia/paranoia -I/usr/X11R6/include -I/opt/local/include/ freetype2 -I/opt/local/include -D_GNU_SOURCE -o ass_bitmap.o ass_bitmap.c ar r libass.a ass.o ass_cache.o ass_fontconfig.o ass_render.o ass_utils.o ass_mp.o ass_bitmap.o ar: creating archive libass.a ranlib libass.a c++ -Wdeclaration-after-statement -fno-PIC -O4 -march=pentium-m - mtune=pentium-m -pipe -ffast-math -fomit-frame-pointer -mdynamic-no- pic -falign-loops=16 -DSYS_DARWIN -DCONFIG_DARWIN -shared-libgcc - arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk - D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/opt/local/include -I/opt/ local/include/cdparanoia/interface -I/opt/local/include/cdparanoia/ paranoia -I/usr/X11R6/include -I/opt/local/include/freetype2 -I/opt/ local/include -I. -I./libavutil -I./libavcodec -o mplayer mplayer.o m_property.o mp_msg.o asxparser.o codec-cfg.o cpudetect.o edl.o find_sub.o m_config.o m_option.o m_struct.o parser-cfg.o playtree.o playtreeparser.o spudec.o sub_cc.o subreader.o vobsub.o mixer.o parser-mpcmd.o subopt-helper.o libvo/libvo.a libao2/libao2.a input/ libinput.a libmpcodecs/libmpcodecs.a libaf/libaf.a libmpdemux/ libmpdemux.a stream/stream.a libswscale/libswscale.a osdep/libosdep.a -L/opt/local/lib -L/opt/local/lib/samba3 libavformat/libavformat.a libavcodec/libavcodec.a libavutil/libavutil.a libpostproc/ libpostproc.a -lmad -llzo -lpng -lz -lz -ljpeg - lmp3lame -lncurses -framework Carbon -framework QuickTime - framework CoreAudio -framework AudioUnit -framework AudioToolbox - framework Cocoa -framework QuartzCore -framework OpenGL -liconv - lm libfaad2/libfaad2.a liba52/liba52.a libmpeg2/libmpeg2.a tremor/ libvorbisidec.a libass/libass.a -lfontconfig -L/opt/local/lib - lfreetype -lz /usr/bin/ld: warning -L: directory name (/opt/local/lib/samba3) does not exist /usr/bin/ld: warning prebinding disabled because dependent library: / Developer/SDKs/MacOSX10.4u.sdk/opt/local/lib/libmad.0.dylib is not prebound /usr/bin/ld: warning can't open dynamic library: /Developer/SDKs/ MacOSX10.4u.sdk/opt/local/lib/libexpat.1.dylib referenced from: /opt/ local/lib/libfontconfig.dylib (checking for undefined symbols may be affected) (No such file or directory, errno = 2) /usr/bin/ld: Undefined symbols: _XML_ErrorString referenced from libfontconfig expected to be defined in /opt/local/lib/libexpat.1.dylib _XML_GetBuffer referenced from libfontconfig expected to be defined in /opt/local/lib/libexpat.1.dylib _XML_GetCurrentLineNumber referenced from libfontconfig expected to be defined in /opt/local/lib/libexpat.1.dylib _XML_GetErrorCode referenced from libfontconfig expected to be defined in /opt/local/lib/libexpat.1.dylib _XML_ParseBuffer referenced from libfontconfig expected to be defined in /opt/local/lib/libexpat.1.dylib _XML_ParserCreate referenced from libfontconfig expected to be defined in /opt/local/lib/libexpat.1.dylib _XML_ParserFree referenced from libfontconfig expected to be defined in /opt/local/lib/libexpat.1.dylib _XML_SetCharacterDataHandler referenced from libfontconfig expected to be defined in /opt/local/lib/libexpat.1.dylib _XML_SetDoctypeDeclHandler referenced from libfontconfig expected to be defined in /opt/local/lib/libexpat.1.dylib _XML_SetElementHandler referenced from libfontconfig expected to be defined in /opt/local/lib/libexpat.1.dylib _XML_SetUserData referenced from libfontconfig expected to be defined in /opt/local/lib/libexpat.1.dylib collect2: ld returned 1 exit status make: *** [mplayer] Error 1 Error: Unable to upgrade port: 1 -- -- arno s. hautala /-\ arno@alum.wpi.edu -- --
I did some searching around and found this: http://lists.apple.com/archives/darwin-dev/2006/Apr/msg00042.html So it's an issue with the use of -isysroot A symlink could be added pre-install, though I could see that causing problems for other compiles. Could the link be removed later? I imagine it'd need to stay in place so the library could be found later. For reference, I currently have installed: mplayer @1.0rc1_1+darwin_8 +darwin_i386+fontconfig+freetype+macosx Actually, is the Universal SDK required? I guess that gets into the debate over universal compiles. I'm not even sure where isysroot is coming from as I have mplayer rc1_1 installed, and I was able to compile mplayer from source previously, but compiling from source now gives the same errors. Unless I specifically disable fontconfig, so I guess the error stems from there. I notice that fontconfig was updated just about a month ago, so perhaps it's the new version that introduced usage of isysroot. Anyway, I think I've thoroughly confused myself for the night. Thanks --Arno On 2007/02/24, at 12:23, Arno Hautala wrote:
I thought I'd get input on the list before filing a ticket in case it's an issue on my side.
I've pasted the install output below.
There are a few references to libraries in /Developer/SDKs/ MacOSX10.4u.sdk/opt/local/lib/
/usr/bin/ld: warning prebinding disabled because dependent library: /Developer/SDKs/MacOSX10.4u.sdk/opt/local/lib/libmad. 0.dylib is not prebound /usr/bin/ld: warning can't open dynamic library: /Developer/SDKs/ MacOSX10.4u.sdk/opt/local/lib/libexpat.1.dylib referenced from: / opt/local/lib/libfontconfig.dylib (checking for undefined symbols may be affected) (No such file or directory, errno = 2) /usr/bin/ld: Undefined symbols: _XML_ErrorString referenced from libfontconfig expected to be defined in /opt/local/lib/libexpat.1.dylib _XML_GetBuffer referenced from libfontconfig expected to be defined in /opt/local/lib/libexpat.1.dylib _XML_GetCurrentLineNumber referenced from libfontconfig expected to be defined in /opt/local/lib/libexpat.1.dylib _XML_GetErrorCode referenced from libfontconfig expected to be defined in /opt/local/lib/libexpat.1.dylib _XML_ParseBuffer referenced from libfontconfig expected to be defined in /opt/local/lib/libexpat.1.dylib _XML_ParserCreate referenced from libfontconfig expected to be defined in /opt/local/lib/libexpat.1.dylib _XML_ParserFree referenced from libfontconfig expected to be defined in /opt/local/lib/libexpat.1.dylib _XML_SetCharacterDataHandler referenced from libfontconfig expected to be defined in /opt/local/lib/libexpat.1.dylib _XML_SetDoctypeDeclHandler referenced from libfontconfig expected to be defined in /opt/local/lib/libexpat.1.dylib _XML_SetElementHandler referenced from libfontconfig expected to be defined in /opt/local/lib/libexpat.1.dylib _XML_SetUserData referenced from libfontconfig expected to be defined in /opt/local/lib/libexpat.1.dylib collect2: ld returned 1 exit status make: *** [mplayer] Error 1
Error: Unable to upgrade port: 1
-- -- arno s. hautala /-\ arno@alum.wpi.edu -- --
On Feb 25, 2007, at 01:35, Arno Hautala wrote:
I did some searching around and found this: http://lists.apple.com/archives/darwin-dev/2006/Apr/msg00042.html
So it's an issue with the use of -isysroot
A symlink could be added pre-install, though I could see that causing problems for other compiles. Could the link be removed later? I imagine it'd need to stay in place so the library could be found later.
For reference, I currently have installed: mplayer @1.0rc1_1 +darwin_8+darwin_i386+fontconfig+freetype+macosx
Actually, is the Universal SDK required? I guess that gets into the debate over universal compiles. I'm not even sure where isysroot is coming from as I have mplayer rc1_1 installed, and I was able to compile mplayer from source previously, but compiling from source now gives the same errors. Unless I specifically disable fontconfig, so I guess the error stems from there.
I notice that fontconfig was updated just about a month ago, so perhaps it's the new version that introduced usage of isysroot.
I committed that update to fontconfig, and I do not believe it's related to the problem you're experiencing. The fontconfig 2.4.2 source and the fontconfig portfile contain no occurrences of "MacOSX10.4u". However, the mplayer 1.0rc1 configure script does contain a reference to that SDK.
On 2007/02/25, at 05:01, Ryan Schmidt wrote:
On Feb 25, 2007, at 01:35, Arno Hautala wrote:
I did some searching around and found this: http://lists.apple.com/archives/darwin-dev/2006/Apr/msg00042.html
So it's an issue with the use of -isysroot
A symlink could be added pre-install, though I could see that causing problems for other compiles. Could the link be removed later? I imagine it'd need to stay in place so the library could be found later.
For reference, I currently have installed: mplayer @1.0rc1_1 +darwin_8+darwin_i386+fontconfig+freetype+macosx
Actually, is the Universal SDK required? I guess that gets into the debate over universal compiles. I'm not even sure where isysroot is coming from as I have mplayer rc1_1 installed, and I was able to compile mplayer from source previously, but compiling from source now gives the same errors. Unless I specifically disable fontconfig, so I guess the error stems from there.
I notice that fontconfig was updated just about a month ago, so perhaps it's the new version that introduced usage of isysroot.
I committed that update to fontconfig, and I do not believe it's related to the problem you're experiencing. The fontconfig 2.4.2 source and the fontconfig portfile contain no occurrences of "MacOSX10.4u". However, the mplayer 1.0rc1 configure script does contain a reference to that SDK.
Ryan, Excellent, thanks for your help here. I swear I did a search for MacOSX10.4u and didn't see any matches in the mplayer config script. Thanks for setting me straight. All, I edited the configure script (from downloaded source) to remove the isysroot reference and then built: ./configure --disable-win32 --disable-mp3lib --enable-freetype ; make The configure.log verifies that freetype and fontconfig have been selected. As far as I can tell it was a successful compile. I tested fontconfig using the same command with this build and my existing installed port (mplayer @1.0rc1_3+darwin_8+darwin_i386+freetype+macosx): mplayer -fontconfig -font Arial -sub subtitles.srt movie.avi And this appears to be fixed in the mplayer svn. Testing with the same above procedure verifies as well. I've included a diff for the configure script (valid until the new configure makes it into release). Let me know if I should file this as a ticket instead. ====start==== --- configure.orig 2006-10-22 18:32:31.000000000 -0400 +++ configure 2007-02-25 10:35:04.000000000 -0500 @@ -7200,7 +7200,7 @@ if darwin ; then CFLAGS="$CFLAGS -mdynamic-no-pic -falign-loops=16 -DSYS_DARWIN - DCONFIG_DARWIN -shared-libgcc" if x86 ; then - CFLAGS="$CFLAGS -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk" + CFLAGS="$CFLAGS -arch i386" fi if [ "$_cc_major" = 3 ] && [ "$_cc_minor" -lt 1 ]; then CFLAGS="$CFLAGS -no-cpp-precomp" ====end===== -- -- arno s. hautala /-\ arno@alum.wpi.edu -- --
participants (2)
-
Arno Hautala
-
Ryan Schmidt