• Join/Login
  • Business Software
  • Open Source Software
  • For Vendors
  • Blog
  • About
  • More
    • Articles
    • Create
    • SourceForge Podcast
    • Site Documentation
    • Subscribe to our Newsletter
    • Support Request
SourceForge logo
For Vendors Help Create Join Login
SourceForge logo
Business Software
Open Source Software
SourceForge Podcast
Resources
  • Articles
  • Case Studies
  • Blog
Menu
  • Help
  • Create
  • Join
  • Login
  • Home
  • Browse
  • Xfig
  • Tickets
Xfig

xfig-3.2.9a compile error

Xfig is a diagramming tool

Brought to you by: tklxfiguser
  • Summary
  • Files
  • Reviews
  • Support
  • Tickets
  • Discussion
  • Git ▾
    • fig2dev
    • xfig
Menu ▾ ▴
  • Create Ticket
  • View Stats

Searches

  • Changes
  • Closed Tickets
  • Open Tickets

Help

  • Formatting Help

#202 xfig-3.2.9a compile error

xfig
open
nobody
None
2 days ago
2 days ago
Mark Alford
No

When compiling xfig-3.2.9a under Fedora 43, I get this error:

...
depbase=`echo d_arcbox.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
gcc -DHAVE_CONFIG_H -I. -I..  -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/sysprof-6 -pthread -I/usr/include/libxml2 -DWITH_GZFILEOP -DXAW_INTERNATIONALIZATION -DNDEBUG -DXFIGLIBDIR="\"/usr/local/share/xfig\"" -DOBJLIBDIR="\"/usr/local/share/xfig/Libraries\"" -DXFIGDOCDIR="\"/usr/local/share/doc/xfig\""   -g -O2 -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:879: d_arcbox.o] Error 1

Discussion

  • Roland Rosenfeld

    Roland Rosenfeld - 2 days ago

    You may need to try the recent version from GIT.
    In Debian I applied the following commits to be able to build with GCC-15:
    https://sourceforge.net/p/mcj/xfig/ci/0913c4d
    https://sourceforge.net/p/mcj/xfig/ci/c34a1b3
    https://sourceforge.net/p/mcj/xfig/ci/530c92f
    https://sourceforge.net/p/mcj/xfig/ci/06ee25c
    https://sourceforge.net/p/mcj/xfig/ci/70f5cd5
    https://sourceforge.net/p/mcj/xfig/ci/92a8262
    https://sourceforge.net/p/mcj/xfig/ci/d7c3677
    https://sourceforge.net/p/mcj/xfig/ci/e0379d7
    https://sourceforge.net/p/mcj/xfig/ci/d9f210b

     
    If you would like to refer to this comment somewhere else in this project, copy and paste the following link:

Log in to post a comment.

SourceForge
  • Create a Project
  • Open Source Software
  • Business Software
  • Top Downloaded Projects
Company
  • About
  • Team
  • SourceForge Headquarters
    1320 Columbia Street Suite 310
    San Diego, CA 92101
    +1 (858) 422-6466
Resources
  • Support
  • Site Documentation
  • Site Status
  • SourceForge Reviews
SourceForge logo
© 2026 Slashdot Media. All Rights Reserved.
Terms Privacy Opt Out Advertise
MongoDB Logo MongoDB