You are not logged in.
Hi again
So now I have uploaded xfig-3.2.4. Have fun!
Cheers, Kristian.
Offline
BTW here is the PKGBUILD file:
pkgname=xfig
pkgver=3.2.4
pkgrel=1
pkgdesc="Xfig drawing tool"
url="http://www.xfig.org"
depends=('libpng' 'libjpeg' 'xaw3d' 'xfree86')
source=(http://www.xfig.org/xfigdist/$pkgname.$pkgver.full.tar.gz)
md5sums=('1911fc0f733cb2f40336a8d0e82513de')
build() {
cd $startdir/src/$pkgname.$pkgver
xmkmf || return 1
make || return 1
make DESTDIR=$startdir/pkg install.all || return 1
make DESTDIR=$startdir/pkg install.man || return 1
strip $startdir/pkg/usr/X11R6/bin/xfig
}
Offline
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?
Jan
Offline
post your compiling error(s) and perhaps someone can suggest or make a patch.
AKA uknowme
I am not your friend
Offline
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[1]: *** [fig2dev.o] Error 1
make[1]: 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 ...
Jan
Offline
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.
Offline
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[2]: *** [gensvg.o] Error 1
make[2]: Leaving directory `/usr/abs/local/transfig/src/transfig.3.2.4/fig2dev/dev'
make[1]: *** [dev/libtransfig.a] Error 2
make[1]: 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?
Jan
Offline
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.
Offline
transfig is in extra
The impossible missions are the only ones which succeed.
Offline