You are not logged in.

#1 2003-11-03 19:42:39

ipqw
Member
From: Denmark
Registered: 2003-11-02
Posts: 24
Website

[multimedia: graphics] xfig

Hi again smile

So now I have uploaded xfig-3.2.4. Have fun! smile


Cheers, Kristian.

Offline

#2 2003-11-03 19:46:15

ipqw
Member
From: Denmark
Registered: 2003-11-02
Posts: 24
Website

Re: [multimedia: graphics] xfig

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

#3 2003-11-05 13:41:00

janwil
Member
From: Tartu, Estonia
Registered: 2003-08-15
Posts: 88

Re: [multimedia: graphics] xfig

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

#4 2003-11-05 16:03:54

sarah31
Member
From: Middle of Canada
Registered: 2002-08-20
Posts: 2,975
Website

Re: [multimedia: graphics] xfig

post your compiling error(s) and perhaps someone can suggest or make a patch.


AKA uknowme

I am not your friend

Offline

#5 2003-11-06 09:28:43

janwil
Member
From: Tartu, Estonia
Registered: 2003-08-15
Posts: 88

Re: [multimedia: graphics] xfig

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

#6 2003-11-11 02:37:40

ipqw
Member
From: Denmark
Registered: 2003-11-02
Posts: 24
Website

Re: [multimedia: graphics] xfig

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

#7 2003-11-17 11:32:58

janwil
Member
From: Tartu, Estonia
Registered: 2003-08-15
Posts: 88

Re: [multimedia: graphics] xfig

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

#8 2003-12-17 10:00:29

glynadgie
Member
From: Birmingham, England
Registered: 2003-12-17
Posts: 7
Website

Re: [multimedia: graphics] xfig

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

#9 2004-05-09 21:42:25

dp
Member
From: Zürich, Switzerland
Registered: 2003-05-27
Posts: 3,366
Website

Re: [multimedia: graphics] xfig

transfig is in extra


The impossible missions are the only ones which succeed.

Offline

Board footer

Powered by FluxBB