Menu

#296 Fix build of 2.0.1 on FreeBSD

v1.0_(example)
closed-fixed
nobody
None
5
2025-05-18
2025-03-18
ehaupt
No

The attached patches are required for building the latest version 2.0.1 on FreeBSD. Without those patches it fails to compile with:

c++ -O2 -Wall -O2 -pipe -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -isystem /usr/local/include -I/usr/local/include/fox-1.6 -DHAVE_XFT_H -DHAVE_XRANDR_H=1 -DSTARTUP_NOTIFICATION -pthread -fstack-protector-strong -o xfw ../st/x.o ../st/st.o icons.o startupnotification.o xfeutils.o ComboBox.o ColorSelector.o CommandWindow.o DialogBox.o DirHistBox.o DirList.o File.o FileDialog.o FileDict.o FileList.o FontDialog.o HistInputDialog.o IconList.o InputDialog.o MessageBox.o OverwriteBox.o PathLinker.o StringList.o TextLabel.o WriteWindow.o XFileWrite.o ../libsn/sn-common.o ../libsn/sn-launchee.o ../libsn/sn-launcher.o ../libsn/sn-list.o ../libsn/sn-monitor.o ../libsn/sn-util.o ../libsn/sn-xmessages.o ../libsn/sn-xutils.o /usr/local/lib/libintl.so -Wl,-rpath -Wl,/usr/local/lib -lutil -lfontconfig -lpng -lFOX-1.6 -L/usr/local/lib -lX11 -L/usr/local/lib -lfreetype -L/usr/local/lib -lXft -lX11 -L/usr/local/lib -lfreetype -L/usr/local/lib -lfontconfig -lfreetype -L/usr/local/lib -lXrender -lX11 -lXrandr -L/usr/local/lib -lxcb -L/usr/local/lib -lxcb-util -lxcb -L/usr/local/lib -lX11-xcb -lX11 -lxcb
main.cpp:490:73: error: use of undeclared identifier 'pkg_format'
490 | application->reg().writeUnsignedEntry("SETTINGS", "package_format", pkg_format);
| ^
1 error generated.

2 Attachments

Discussion

  • Roland Baudin

    Roland Baudin - 2025-03-22

    OK, thanks for the patch. It will be included in the next release.

     
    • Roland Baudin

      Roland Baudin - 2025-05-18

      Your patch is included in Xfe 2.1.

       
  • Roland Baudin

    Roland Baudin - 2025-05-18
    • status: open --> closed-fixed
     

Log in to post a comment.

MongoDB Logo MongoDB