id summary reporter owner description type status priority milestone component version resolution keywords cc port 28182 gst-ffmpeg fails to build when using i386 arch and 10.5 target andres.colubri@… rmstonecipher@… "Hello, when trying to install the gst-ffmpeg package on Snow Leopard 64 bits, but using i386 as the build architecture and 10.5 as the deployment target, the build stage fails with this error: {{{ :info:build CC libavcodec/h264_cabac.o :info:build libavcodec/cabac.h: In function 'get_cabac_noinline': :info:build libavcodec/cabac.h:527: error: PIC register '%ebx' clobbered in 'asm' ... }}} (full error log is attached) I should also note that in order to generate valid 32 bits binaries for 10.5 when compiling from OSX 10.6 64 bits, I changed the default LD flags in /share/macports/Tcl/port1.0/portconfigure.tcl as: {{{ default configure.ldflags {""-L${prefix}/lib -Xlinker -headerpad_max_install_names -mmacosx-version-min=10.5 -no_compact_linkedit""} }}} I don't know if this influencing the occurrence of the error. Anyways, a solution I found to this problem was to add the the following post-configure step in the portfile of gst-ffmpeg: {{{ post-configure { if { $build_arch == ""i386"" } { reinplace ""s|HAVE_EBX_AVAILABLE 1|HAVE_EBX_AVAILABLE 0|g"" \ ${worksrcpath}/gst-libs/ext/ffmpeg/config.h } } }}}" defect closed Normal ports 1.9.2 wontfix daitakahashi jmroot cooljeanius gst-ffmpeg