gcc -DHAVE_CONFIG_H -I. -I. -I. -O3 -march=athlon-tbird -pipe -fomit-frame-pointer -c output-swf.c -fPIC -DPIC -o .libs/output-swf.lo output-swf.c: In function `out_splines': output-swf.c:78: warning: passing arg 2 of `SWFMovie_add' from incompatible pointer type output-swf.c: In function `output_swf_writer': output-swf.c:112: error: too few arguments to function `SWFMovie_output' make[1]: *** [output-swf.lo] Error 1 make[1]: Leaving directory `/var/tmp/portage/autotrace-0.31.1-r1/work/autotrace-0.31.1' make: *** [all] Error 2 Portage 2.1_pre4-r1 (default-linux/x86/2005.0, gcc-3.4.5, glibc-2.3.6-r2, 2.6.15-gentoo i686) ================================================================= System uname: 2.6.15-gentoo i686 AMD Athlon(tm) processor Gentoo Base System version 1.12.0_pre15 distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled] dev-lang/python: 2.3.5, 2.4.2-r1 sys-apps/sandbox: 1.2.17 sys-devel/autoconf: 2.13, 2.59-r7 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1 sys-devel/binutils: 2.16.1-r1 sys-devel/libtool: 1.5.22 virtual/os-headers: 2.6.11-r3 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-O3 -march=athlon-tbird -pipe -fomit-frame-pointer" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/lib/X11/xkb /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-O3 -march=athlon-tbird -pipe -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig ccache confcache distlocks sfperms strict" GENTOO_MIRRORS="http://10.0.0.205/gentoo ftp://ftp.snt.utwente.nl/pub/os/linux/gentoo ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo ftp://ftp.wh2.tu-dresden.de/pub/mirrors/gentoo" MAKEOPTS="-j1" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/overlays/ebuildexchange /usr/local/portage" SYNC="rsync://10.0.0.205/gentoo-portage" USE="x86 3dnow 3dnowext X a52 aac alsa apm avi bitmap-fonts bmp bpm crypt cups divx4linux dv dvd emboss encode f77 ffmpeg flac foomaticdb fortran gif glitz gnutls gstreamer gtk gtk2 ipv6 joystick jpeg lcms libg++ libsamplerate libwww lirc mad mikmod mmx mmxext mng motif mp3 mpeg ncurses nls nptl nptlonly nsplugin nvidia ogg oggvorbis opengl oss pam pic png quicktime readline sdl softmmu spell ssl svg tcpd theora threads tiff truetype truetype-fonts type1-fonts userlocales vorbis win32codecs wmf xml2 xprint xv xvid zlib elibc_glibc kernel_linux userland_GNU" Unset: ASFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, LANG, LC_ALL, LDFLAGS, LINGUAS
I ran into the same problem, but I was able to find a solution. Apparently, the autotrace package expects a declaration that is in libming.h (which isn't installed with the ming package) to be in ming.h, but it is not, which creates the declaration problem. Also, one must #include <ming.h> inside the output-swf.h file (it was in the output-swf.c file, from which it can then be removed). Finally, the ebuild needs to be modified to apply this patch, whether or not the "flash" use flag is utilized. I don't see the point of that use flag anyways (or the png one), because, whether or not you use those flags, if the autotrace build finds the appropriate libraries, it will build and install them, and there aren't any configuration file flags to add that will stop this from happening. To summarize, I have attached a new ebuild for autotrace, and a patch (that needs to go in the "files" directory under "/usr/portage/media-gfx/autotrace/") to fix the output-swf files. It works for me, with all three use flags turned on. I have ming-0.3.0-r1 installed (which, as long as we're discussing it, I suggest you install as well. you can search the gentoo bugs for an ebuild). Best, Adam
Created attachment 83669 [details] Updated ebuild to include output-swf patch
Created attachment 83670 [details, diff] Patch to fix the output-swf.c and output-swf.h files I should have mentioned that unless this is put into the portage tree, you need to create a portage overlay, else all the changes will be erased the next time you sync.
I can confirm the patch and ebuild helped me to get rid of this problem. Thanks.
Fixed this one. Hope you don't mind. +*autotrace-0.31.1-r3 (09 Jun 2008) + + 09 Jun 2008; Peter Alfredsen <loki_val@gentoo.org> + -files/autotrace-0.31.1-libs.patch, + +files/autotrace-0.31.1-swf-output.patch, metadata.xml, + -autotrace-0.31.1-r2.ebuild, +autotrace-0.31.1-r3.ebuild: + Added debian patches, fixed bugs 192474, 175414 and 122035. Added fonts + herd and myself to metadata. +