pspp-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Make fails


From: Ben Pfaff
Subject: Re: Make fails
Date: Tue, 20 Sep 2011 11:32:00 -0700
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux)

Luis Cebamanos <address@hidden> writes:

> Hi guys, I wander if any of you had to face this problem:
>
> /usr/bin/ld:
> src/ui/terminal/.libs/libui.a(src_ui_terminal_libui_la-main.o):
> undefined reference to symbol 'gsl_set_error_handler_off'
> /usr/bin/ld: note: 'gsl_set_error_handler_off' is defined in DSO
> /usr/lib/libgsl.so.0 so try adding it to the linker command line
> /usr/lib/libgsl.so.0: could not read symbols: Invalid operation
> collect2: ld returned 1 exit status
> make[2]: *** [src/ui/terminal/pspp] Error 1

Does it help to apply the following patch?

Thanks,

Ben.

diff --git a/src/ui/gui/automake.mk b/src/ui/gui/automake.mk
index 5188da8..2c0ac0a 100644
--- a/src/ui/gui/automake.mk
+++ b/src/ui/gui/automake.mk
@@ -71,7 +71,8 @@ src_ui_gui_psppire_LDADD = \
        $(GTK_LIBS) \
        $(GTKSOURCEVIEW_LIBS) \
        $(CAIRO_LIBS) \
-       $(LIBINTL)
+       $(LIBINTL) \
+       $(GSL_LIBS)
 
 src_ui_gui_psppiredir = $(pkgdatadir)
 
diff --git a/src/ui/terminal/automake.mk b/src/ui/terminal/automake.mk
index af397a1..7bf2e6f 100644
--- a/src/ui/terminal/automake.mk
+++ b/src/ui/terminal/automake.mk
@@ -24,7 +24,8 @@ src_ui_terminal_pspp_LDADD = \
        src/libpspp-core.la \
        $(CAIRO_LIBS) \
        $(NCURSES_LIBS) \
-       $(LIBREADLINE)
+       $(LIBREADLINE) \
+       $(GSL_LIBS)
 
 
 src_ui_terminal_pspp_LDFLAGS = $(PSPP_LDFLAGS) $(PG_LDFLAGS)

-- 
Ben Pfaff 
http://benpfaff.org



reply via email to

[Prev in Thread] Current Thread [Next in Thread]