So now I have uploaded xfig-3.2.4. Have fun!
BTW here is the PKGBUILD file:
pkgdesc="Xfig drawing tool"
depends=('libpng' 'libjpeg' 'xaw3d' 'xfree86')
xmkmf || return 1
make || return 1
make DESTDIR=$startdir/pkg install.all || return 1
make DESTDIR=$startdir/pkg install.man || return 1
Unfortunately, xfig is only useful (at least for me) in cooperation with transfig, but that does not compile with the latest gcc I have. Any ideas?
post your compiling error(s) and perhaps someone can suggest or make a patch.
I am not your friend
OK, here it comes:
In file included from fig2dev.h:25, from fig2dev.c:27: /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.2/include/varargs.h:4:2: #error "GCC no longer implements <varargs.h>." /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.2/include/varargs.h:5:2: #error "Revise your code to use <stdarg.h>." make: *** [fig2dev.o] Error 1 make: Leaving directory `/usr/abs/local/transfig/src/transfig.3.2.4/fig2dev' make: *** [all] Error 2 ==> Build Failed. Aborting...
I contacted transfig developers and got the reply that the true solution to the problem is to wait until the next release of transfig which will compile with gcc 3.3 as well. In the meantime patches are welcome ...
This is not just a compiler issue. You can't just use gcc-2.95.3 because everything else is compiled with 3.x-series compilers. To get it working you need to - as the error says, rewrite the functions in fig2dev.h and fig2dev.c to use stdarg.h in stead of varargs.h.
So I replaced varargs.h with stdarg.h and the compilation process went further until the next error popped out:
gensvg.c:695:23: missing terminating " character gensvg.c: In function `gensvg_text': gensvg.c:696: error: parse error before "font" gensvg.c:696: error: stray '' in program gensvg.c:703:23: missing terminating " character gensvg.c:704: error: parse error before "font" gensvg.c:704: error: `font' undeclared (first use in this function) gensvg.c:704: error: (Each undeclared identifier is reported only once gensvg.c:704: error: for each function it appears in.) gensvg.c:704: error: `style' undeclared (first use in this function) gensvg.c:704: error: stray '' in program gensvg.c:709: error: parse error before ')' token make: *** [gensvg.o] Error 1 make: Leaving directory `/usr/abs/local/transfig/src/transfig.3.2.4/fig2dev/dev' make: *** [dev/libtransfig.a] Error 2 make: Leaving directory `/usr/abs/local/transfig/src/transfig.3.2.4/fig2dev' make: *** [all] Error 2 ==> Build Failed. Aborting...
Has anyone succeeded in compiling transfig?
I have put a transfig.tar in incoming, which patches the sources to correct the compile errors.
I have also put an xfig.tar in incoming. I have patched xfig so that its list of fonts refers to the URW names instead of the Adobe names, e.g. "Nimbus Sans L" instead of "Helvetica". This means that you can install ghostscript, and only have to add the fontpath in XF86config to get xfig working. This avoids name clashes that result from using fonts.alias or a modified fonts.dir to make the URW fonts appear under the Adobe names.
I am about to update my xfig and transfig packages to correct some dependancies, which I found using namcap.