Package Details: xfig 3.2.9-1

Git Clone URL: https://aur.archlinux.org/xfig.git (read-only, click to copy)
Package Base: xfig
Description: An interactive drawing tool
Upstream URL: http://mcj.sourceforge.net/
Licenses: custom
Submitter: arojas
Maintainer: bidulock
Last Packager: bidulock
Votes: 13
Popularity: 0.181032
First Submitted: 2019-04-03 06:42 (UTC)
Last Updated: 2023-11-19 07:51 (UTC)

Dependencies (11)

Required by (1)

Sources (3)

Latest Comments

1 2 Next › Last »

dreieck commented on 2026-09-05 09:00 (UTC)

depends needs to be changed (libjpeg):

Can you please change

  • dependendy libjpeg to libjpeg-turbo (any maybe existing make dependency libjpeg needs also to be changed to libjpeg-turbo),
    or maybe more elaboreate,
  • dependencies libjpeg to libjpeg.so AND add make dependency libjpeg-turbo?

Reason: Arch Linux does not have libjpeg anymore, and libjpeg-turbo stopped to declare libjpeg in it's provides array.

Regards and thanks for maintaining!

dreieck commented on 2026-07-19 22:01 (UTC)

I get the following build error:

[...]
gcc -DHAVE_CONFIG_H -I. -I..  -I/usr/include/freetype2 -I/usr/include/libpng16 -DXAW_INTERNATIONALIZATION -DNDEBUG -DXFIGLIBDIR="\"/usr/share/xfig\"" -DOBJLIBDIR="\"/usr/share/xfig/Libraries\"" -DXFIGDOCDIR="\"/usr/share/doc/xfig\""   -march=native -mtune=native -O3 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -fstack-clash-protection -fcf-protection -flto=auto -Wno-incompatible-pointer-types -Wno-error=incompatible-pointer-types -MT d_line.o -MD -MP -MF $depbase.Tpo -c -o d_line.o d_line.c &&\
mv -f $depbase.Tpo $depbase.Po
d_line.c: In function ‘get_intermediatepoint’:
d_line.c:186:10: error: too many arguments to function ‘canvas_locmove_proc’; expected 0, have 2
  186 |         (*canvas_locmove_proc) (x, y);
      |         ~^~~~~~~~~~~~~~~~~~~~~  ~
make[2]: *** [Makefile:879: d_line.o] Error 1
make[2]: Leaving directory '/var/cache/makepkg/build/xfig/src/xfig-3.2.9a/src'
make[1]: *** [Makefile:572: all-recursive] Error 1
make[1]: Leaving directory '/var/cache/makepkg/build/xfig/src/xfig-3.2.9a'
make: *** [Makefile:404: all] Error 2
==> ERROR: A failure occurred in build().

Regards!

dreieck commented on 2026-07-19 21:58 (UTC)

Please add to build():

  _SILENCEWARNINGS=('incompatible-pointer-types')
  _CFLAGSADDITIONS=""
  for _warning in "${_SILENCEWARNINGS[@]}"; do
    _CFLAGSADDITIONS+=" -Wno-${_warning} -Wno-error=${_warning}"
  done
  CFLAGS+="${_CFLAGSADDITIONS}"
  export CFLAGS

otherwise compilation fails with errors like

_arcbox.c: In function ‘arcbox_drawing_selected’:
d_arcbox.c:48:25: error: assignment to ‘void (*)(void)’ from incompatible pointer type ‘void (*)(int,  int)’ [-Wincompatible-pointer-types]
   48 |     canvas_leftbut_proc = init_arc_box_drawing;
      |                         ^
d_arcbox.c:38:17: note: ‘init_arc_box_drawing’ declared here
   38 | static void     init_arc_box_drawing(int x, int y);

Regards!

dreieck commented on 2026-07-19 20:31 (UTC)

libjpeg-turbo does no longer provide libjpeg.

Please change dependency libjpeg to libjpeg.so, and add libjpeg-turbo to makedepends array.

Regards and thanks for maintaining!

qsthy commented on 2026-07-06 09:26 (UTC)

Nevermind, the build fails even with the older libjpeg-turbo in exactly the same manner. The -git version builds and works on an up to date system (as long as the dependency to libjpeg is changed to libjpeg-turbo) and should be used instead.

qsthy commented on 2026-07-05 20:07 (UTC)

Xfig no longer builds with the latest libjpeg-turbo. I get:

make[2]: Entering directory '/usr/local/share/aur/xfig/src/xfig-3.2.9/src'
depbase=`echo d_arcbox.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
gcc -DHAVE_CONFIG_H -I. -I..  -I/usr/include/freetype2 -DXAW_INTERNATIONALIZATION -DNDEBUG -DXFIGLIBDIR="\"/usr/share/xfig\"" -DOBJLIBDIR="\"/usr/share/xfig/Libraries\"" -DXFIGDOCDIR="\"/usr/share/doc/xfig\""   -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions         -Wp,-D_FORTIFY_SOURCE=3 -Wformat -Werror=format-security         -fstack-clash-protection -fcf-protection         -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -flto=auto -MT d_arcbox.o -MD -MP -MF $depbase.Tpo -c -o d_arcbox.o d_arcbox.c &&\
mv -f $depbase.Tpo $depbase.Po
d_arcbox.c: In function ‘arcbox_drawing_selected’:
d_arcbox.c:48:25: error: assignment to ‘void (*)(void)’ from incompatible pointer type  void (*)(int,  int)’ [-Wincompatible-pointer-types]
   48 |     canvas_leftbut_proc = init_arc_box_drawing;
      |                         ^
d_arcbox.c:38:17: note: ‘init_arc_box_drawing’ declared here
   38 | static void     init_arc_box_drawing(int x, int y);
      |                 ^~~~~~~~~~~~~~~~~~~~
d_arcbox.c: In function ‘init_arc_box_drawing’:
d_arcbox.c:62:25: error: assignment to ‘void (*)(void)’ from incompatible pointer type  void (*)(int,  int)’ [-Wincompatible-pointer-types]
   62 |     canvas_locmove_proc = resizing_box;
      |                         ^
In file included from d_arcbox.c:25:
u_elastic.h:55:17: note: ‘resizing_box’ declared here
   55 | extern void     resizing_box(int x, int y);
      |                 ^~~~~~~~~~~~
d_arcbox.c:63:25: error: assignment to ‘void (*)(void)’ from incompatible pointer type  void (*)(int,  int)’ [-Wincompatible-pointer-types]
   63 |     canvas_leftbut_proc = create_arc_boxobject;
      |                         ^
d_arcbox.c:36:17: note: ‘create_arc_boxobject’ declared here
   36 | static void     create_arc_boxobject(int x, int y);
      |                 ^~~~~~~~~~~~~~~~~~~~
make[2]: *** [Makefile:873: d_arcbox.o] Error 1

Any idea how to fix? Thank you so much.

olive commented on 2025-10-27 18:37 (UTC)

Adding the following flags restore the build (see: https://gcc.gnu.org/gcc-15/porting_to.html ).

build() {
  export CFLAGS+=" -std=gnu17 "  
  export CXXFLAGS+=" -std=gnu17 "
  cd ${pkgname}-${pkgver}
  ./configure --prefix=/usr
  make
}

RAMChYLD commented on 2025-08-02 10:13 (UTC) (edited on 2025-08-02 10:46 (UTC) by RAMChYLD)

Apparently xfig does not build with the latest gcc.

It would print the following errors and bail:

d_arcbox.c: In function ‘arcbox_drawing_selected’:
d_arcbox.c:48:25: error: assignment to ‘void (*)(void)’ from incompatible pointer type ‘void (*)(int,  int)’ [-Wincompatible-pointer-types]
   48 |     canvas_leftbut_proc = init_arc_box_drawing;
      |                         ^
d_arcbox.c:38:17: note: ‘init_arc_box_drawing’ declared here
   38 | static void     init_arc_box_drawing(int x, int y);
      |                 ^~~~~~~~~~~~~~~~~~~~
d_arcbox.c: In function ‘init_arc_box_drawing’:
d_arcbox.c:62:25: error: assignment to ‘void (*)(void)’ from incompatible pointer type ‘void (*)(int,  int)’ [-Wincompatible-pointer-types]
   62 |     canvas_locmove_proc = resizing_box;
      |                         ^
In file included from d_arcbox.c:25:
u_elastic.h:55:17: note: ‘resizing_box’ declared here
   55 | extern void     resizing_box(int x, int y);
      |                 ^~~~~~~~~~~~
d_arcbox.c:63:25: error: assignment to ‘void (*)(void)’ from incompatible pointer type ‘void (*)(int,  int)’ [-Wincompatible-pointer-types]
   63 |     canvas_leftbut_proc = create_arc_boxobject;
      |                         ^
d_arcbox.c:36:17: note: ‘create_arc_boxobject’ declared here
   36 | static void     create_arc_boxobject(int x, int y);
      |                 ^~~~~~~~~~~~~~~~~~~~

gcc -v

Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-pc-linux-gnu/15.1.1/lto-wrapper
Target: x86_64-pc-linux-gnu
Configured with: /build/gcc/src/gcc/configure --enable-languages=ada,c,c++,d,fortran,go,lto,m2,objc,obj-c++,rust,cobol --enable-bootstrap --prefix=/usr --libdir=/usr/lib --libexecdir=/usr/lib --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=https://gitlab.archlinux.org/archlinux/packaging/packages/gcc/-/issues --with-build-config=bootstrap-lto --with-linker-hash-style=gnu --with-system-zlib --enable-__cxa_atexit --enable-cet=auto --enable-checking=release --enable-clocale=gnu --enable-default-pie --enable-default-ssp --enable-gnu-indirect-function --enable-gnu-unique-object --enable-libstdcxx-backtrace --enable-link-serialization=1 --enable-linker-build-id --enable-lto --enable-multilib --enable-plugin --enable-shared --enable-threads=posix --disable-libssp --disable-libstdcxx-pch --disable-werror
Thread model: posix
Supported LTO compression algorithms: zlib zstd
gcc version 15.1.1 20250729 (GCC) 

Edit1: Also I noticed that this xfig-3.2.9 has been superseded by xfig-3.2.9a?

Edit2: 3.2.9 is indeed out of date, 3.2.9a is the updated version. Flagging this as out of date...

Edit3: It appears that GCC is also partly to blame, if I set my compiler to clang it will build.