Max Horn wrote: > > Am 14.10.2009 um 10:34 schrieb Jon Connell: > >> William G. Scott wrote: >>> In file included from h264.h:32, >>> from h264.c:31: >>> cabac.h: In function 'decode_significance_x86': >>> cabac.h:693: warning: cast from pointer to integer of different size >>> cabac.h:694: warning: cast from pointer to integer of different size >>> cabac.h: In function 'decode_significance_8x8_x86': >>> cabac.h:742: warning: cast from pointer to integer of different size [] >>> {standard input}:9509:suffix or operands invalid for `add' >>> {standard input}:9521:suffix or operands invalid for `add' >> The configure script configures for x86_32 in spite of being told you >> want to build for x86_64. This worked for me: >> >> diff -r1.12 ffmpeg.info >> 21a22,23 >>> ### Fix for selecting x86_32 in spite of --arch=x86_64 >>> perl -pi -e '$c++ if m,arch="x86_32",; >> s,arch="x86_32",arch="x86_64", if $c==2' configure >> >> I also had to configure with: >> >> --cc=gcc-4.0 --arch=x86_64 --extra-cflags="-I/sw64/include -m64" >> --extra-ldflags=-m64 > > I haven't tried the following, so it might not work for ffmpeg; but > for other packages (e.g. my dosbox package), adding the following to > the configure params solves the issue, without any patching and > without needing to make multiple .info files. > > --build=%m-apple-darwin`uname -r|cut -f1 -d.`
Unfortunately, ffmpeg's hand-crafted configure script does not like the --build flag. It wants --arch, but then it stupidly replaces x86_64 by x86_32. Jon's perl -pie fix does the trick here. OTOH, the -m64 doesn't seem to be necessary if compiled with the default "gcc" (that is, gcc-4.2 with Fink's arch trickery). For gcc-4.2 to work, the "warning: cast from pointer to integer of different size" has to be patched away, too. Since the maintainer seems to be busy, I have now committed a patched version of ffmpeg.info. Please test. -- Martin ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Fink-devel mailing list Fink-devel@lists.sourceforge.net http://news.gmane.org/gmane.os.apple.fink.devel Subscription management: https://lists.sourceforge.net/lists/listinfo/fink-devel