bug-gnu-pspp
[Top][All Lists]
Advanced

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

PSPP-BUG: [bug #39707] Patch for compilation failure with LDFLAGS=-Wl, -


From: Sebastien Fabbro
Subject: PSPP-BUG: [bug #39707] Patch for compilation failure with LDFLAGS=-Wl, --as-needed
Date: Tue, 06 Aug 2013 20:10:41 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.31 (KHTML, like Gecko) Chrome/26.0.1410.43 Safari/537.31

URL:
  <http://savannah.gnu.org/bugs/?39707>

                 Summary: Patch for compilation failure with
LDFLAGS=-Wl,--as-needed
                 Project: PSPP
            Submitted by: sfabbro
            Submitted on: Tue 06 Aug 2013 08:10:40 PM GMT
                Category: Compilation/Portability
                Severity: 5 - Average
                  Status: None
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any
                 Release: None
                  Effort: 0.00

    _______________________________________________________

Details:

Hi,

When passing LDFLAGS=-Wl,--as-needed (default in Gentoo Linux), compilation
failed with the following error:

libtool: link: (cd "src/.libs" && rm -f "libpspp.so" && ln -s
"libpspp-0.8.0.so" "libpspp.so")
libtool: link: ( cd "src/.libs" && rm -f "libpspp.la" && ln -s "../libpspp.la"
"libpspp.la" )
/data/local/fabbros/gentoo/bin/bash ./libtool --tag=CC   --mode=link
x86_64-pc-linux-gnu-gcc -std=gnu99 -Wall -W -Wwrite-strings
-Wstrict-prototypes -Wpointer-arith -Wno-sign-compare -Wmissing-prototypes -Os
-pipe -march=native -pipe -ftracer -frecord-gcc-switches
-Wdeclaration-after-statement    -Wl,-O1 -Wl,--as-needed -Wl,--hash-style=gnu
-o src/ui/terminal/pspp  src/ui/terminal/libui.la src/ui/libuicommon.la
src/libpspp.la src/libpspp-core.la -lpangocairo-1.0 -lpango-1.0 -lgobject-2.0
-lglib-2.0 -lcairo  -L/data/local/fabbros/gentoo/usr/lib -lncurses
/data/local/fabbros/gentoo/usr/lib/libreadline.so -lgsl -lgslcblas -lm 
-lgslcblas -lz -lm  
libtool: link: x86_64-pc-linux-gnu-gcc -std=gnu99 -Wall -W -Wwrite-strings
-Wstrict-prototypes -Wpointer-arith -Wno-sign-compare -Wmissing-prototypes -Os
-pipe -march=native -pipe -ftracer -frecord-gcc-switches
-Wdeclaration-after-statement -Wl,-O1 -Wl,--hash-style=gnu -o
src/ui/terminal/.libs/pspp /data/local/fabbros/gentoo/usr/lib/libreadline.so 
-Wl,--as-needed src/ui/terminal/.libs/libui.a src/ui/.libs/libuicommon.a
src/.libs/libpspp.so src/.libs/libpspp-core.so -lpangocairo-1.0 -lpango-1.0
-lgobject-2.0 -lglib-2.0 -lcairo -L/data/local/fabbros/gentoo/usr/lib
-lncurses -lgsl -lgslcblas -lz -lm -Wl,-rpath
-Wl,/data/local/fabbros/gentoo/usr/lib
src/ui/terminal/.libs/libui.a(src_ui_terminal_libui_la-terminal-reader.o): In
function `dont_complete':
terminal-reader.c:(.text+0x3): undefined reference to
`rl_attempted_completion_over'
src/ui/terminal/.libs/libui.a(src_ui_terminal_libui_la-terminal-reader.o): In
function `terminal_reader_close':
terminal-reader.c:(.text+0x51): undefined reference to `write_history'
terminal-reader.c:(.text+0x56): undefined reference to `clear_history'
src/ui/terminal/.libs/libui.a(src_ui_terminal_libui_la-terminal-reader.o): In
function `complete_command_name':
terminal-reader.c:(.text+0x7c): undefined reference to
`rl_attempted_completion_over'
src/ui/terminal/.libs/libui.a(src_ui_terminal_libui_la-terminal-reader.o): In
function `terminal_reader_read':
terminal-reader.c:(.text+0x14d): undefined reference to
`rl_attempted_completion_function'
terminal-reader.c:(.text+0x1c1): undefined reference to `readline'
terminal-reader.c:(.text+0x1d4): undefined reference to `rl_outstream'
terminal-reader.c:(.text+0x216): undefined reference to `add_history'
src/ui/terminal/.libs/libui.a(src_ui_terminal_libui_la-terminal-reader.o): In
function `handler':
terminal-reader.c:(.text+0x400): undefined reference to `rl_end'
src/ui/terminal/.libs/libui.a(src_ui_terminal_libui_la-terminal-reader.o): In
function `terminal_reader_create':
terminal-reader.c:(.text+0x48a): undefined reference to `rl_catch_signals'
terminal-reader.c:(.text+0x49e): undefined reference to `rl_getc_function'
terminal-reader.c:(.text+0x4a8): undefined reference to
`rl_basic_word_break_characters'
terminal-reader.c:(.text+0x4b7): undefined reference to `using_history'
terminal-reader.c:(.text+0x4c1): undefined reference to `stifle_history'
terminal-reader.c:(.text+0x4fc): undefined reference to `read_history'
src/ui/terminal/.libs/libui.a(src_ui_terminal_libui_la-terminal-reader.o): In
function `complete_command_name':
terminal-reader.c:(.text+0x75): undefined reference to
`rl_completion_matches'
src/ui/terminal/.libs/libui.a(src_ui_terminal_libui_la-terminal-reader.o): In
function `handler':
terminal-reader.c:(.text+0x427): undefined reference to `rl_echo_signal_char'
collect2: error: ld returned 1 exit status
make[2]: *** [src/ui/terminal/pspp] Error 1
make[2]: Leaving directory
`/var/tmp/portage/sci-mathematics/pspp-0.8.0/work/pspp-0.8.0'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory
`/var/tmp/portage/sci-mathematics/pspp-0.8.0/work/pspp-0.8.0'
make: *** [all] Error 2


I am not sure whether it is on the Gentoo side or the pspp one, but the
attached patch fixed the issue.


Sebastien



    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: Tue 06 Aug 2013 08:10:40 PM GMT  Name: pspp-0.8.0-as-needed.patch  Size:
279B   By: sfabbro

<http://savannah.gnu.org/bugs/download.php?file_id=28775>

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?39707>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

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