! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
Fix build on FreeBSD / DragonFlyBSD
Status:
RESOLVED: FIXED
Product:
Xfce4-power-manager
Component:
General

Comments

Description Skunnyk editbugs 2017-11-08 23:34:44 CET
xfce4-power-manager fails to build on FreeBSD / DragonFlyBSD with clang because of missing -lXext, see for example http://li604-44.members.linode.com/job/xfce4-power-manager/nodes=FreeBSD/163/console

gmake[2]: Entering directory '/home/vagrant/workspace/xfce4-power-manager/nodes/FreeBSD/src'
  CCLD     xfce4-power-manager
/usr/bin/ld: undefined reference to symbol `XSyncIntToValue' (try adding -lXext)
/usr/local/lib/libXext.so.6: could not read symbols: Bad value



It's due to  AC_CHECK_LIB([Xext], [DPMSQueryExtension], [DPMS_LIBS=" -lXext -lX11"],[]) check in configure, which does not works because of missing -L/usr/local/lib in the conftest in BSD context.
Comment 1 Skunnyk editbugs 2017-11-08 23:37:03 CET
Created attachment 7423 
Fix build on freebsd/dragonflybsd
Comment 2 Git Bot editbugs 2017-11-09 22:38:04 CET
Romain B referenced this bugreport in commit 17ac6a10f741017d1c853a884ee656a964909aa2

Fix build on FreeBSD and DragonFlyBSD (Bug #13984)

https://git.xfce.org/xfce/xfce4-power-manager/commit?id=17ac6a10f741017d1c853a884ee656a964909aa2
Comment 3 Simon Steinbeiss editbugs 2017-11-09 22:40:03 CET
Let's see if this fixes things on those *BSDs - anyway it doesn't seem to have a negative effect on Linux :)

Bug #13984

Reported by:
Skunnyk
Reported on: 2017-11-08
Last modified on: 2017-11-09

People

Assignee:
Ali Abdallah
CC List:
3 users

Version

Attachments

Additional information