Source: scite
Version: 3.3.4-1
Severity: serious
Tags: patch fixed-upstream
Justification: fails to build from source (but built successfully in the past)
Control: forwarded -1 https://sourceforge.net/p/scintilla/bugs/1523/

Hi,

scite 3.3.4-1 fails to build on non-Linux archs [1][2][3].

The problem is the missing link to libdl, needed for dlopen/dlclose
(used in the copy of the lua sources).

The easy fix, which I reported upstream [4] yesterday and it was
committed already, is to link to libdl when the platform string
contains "GNU" (i.e. on GNU-based OSes, which are using GNU libc).
Patch attached here too.

[1] 
https://buildd.debian.org/status/fetch.php?pkg=scite&arch=kfreebsd-i386&ver=3.3.4-1&stamp=1377335693
[2] 
https://buildd.debian.org/status/fetch.php?pkg=scite&arch=kfreebsd-amd64&ver=3.3.4-1&stamp=1377329564
[3] 
https://buildd.debian.org/status/fetch.php?pkg=scite&arch=hurd-i386&ver=3.3.4-1&stamp=1377329532
[4] https://sourceforge.net/p/scintilla/bugs/1523/

Thanks,
-- 
Pino
--- a/scite/gtk/makefile
+++ b/scite/gtk/makefile
@@ -89,6 +89,9 @@
 ifeq ($(UNAME), Linux)
 LIBDL:=-ldl
 endif
+ifneq (,$(findstring GNU,$(UNAME)))
+LIBDL:=-ldl
+endif
 ifeq ($(UNAME), Darwin)
 CXXTFLAGS:=$(CXXTFLAGS) -Dunix
 endif

Reply via email to