Bug 14492 - no -ledit option in libedit.so on Mageia 4 when compiling ike
Summary: no -ledit option in libedit.so on Mageia 4 when compiling ike
Status: RESOLVED INVALID
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: 4
Hardware: x86_64 Linux
Priority: Normal normal
Target Milestone: ---
Assignee: Mageia Bug Squad
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-11-10 14:08 CET by Ernest CHIARELLO
Modified: 2014-11-12 09:11 CET (History)
1 user (show)

See Also:
Source RPM:
CVE:
Status comment:


Attachments

Description Ernest CHIARELLO 2014-11-10 14:08:09 CET
Hello everybody,

shrew is a VPN IpSec client which is used on my campus. (https://www.shrew.net/download/ike).

i am trying to install shrew on my Linux Mageia desktop, but installation failed during the "make" operation.

cmake if ok :

[root@~ ike]# cmake .
-- The CXX compiler identification is GNU 4.8.2
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Using install prefix /usr/local ...
-- Using etc install path /usr/local/etc ...
-- Using bin install path /usr/local/bin ...
-- Using sbin install path /usr/local/sbin ...
-- Using lib install path /usr/local/lib ...
-- Using man install path /usr/share/man ...
-- Using library -lpthread
-- Using binary /usr/bin/flex ...
-- Using binary /usr/bin/bison ...
-- Configuring done
-- Generating done
-- Build files have been written to: ~/tmp/ike

but make fails with unknown -ledit option for libedit.so library :

[root@~ ike]# make
Scanning dependencies of target ss_ith
[  1%] Building CXX object source/libith/CMakeFiles/ss_ith.dir/libith.o
Linking CXX shared library libss_ith.so
[  1%] Built target ss_ith
Scanning dependencies of target ss_log
[  3%] Building CXX object source/liblog/CMakeFiles/ss_log.dir/liblog.o
Linking CXX shared library libss_log.so
[  3%] Built target ss_log
Scanning dependencies of target ss_idb
[  5%] Building CXX object source/libidb/CMakeFiles/ss_idb.dir/libidb.o
[  7%] Building CXX object source/libidb/CMakeFiles/ss_idb.dir/base64.o
Linking CXX shared library libss_idb.so
[  7%] Built target ss_idb
Scanning dependencies of target ss_pfk
[  8%] Building CXX object source/libpfk/CMakeFiles/ss_pfk.dir/libpfk.o
Linking CXX shared library libss_pfk.so
[  8%] Built target ss_pfk
Scanning dependencies of target ss_ike
[ 10%] Building CXX object source/libike/CMakeFiles/ss_ike.dir/client.o
[ 12%] Building CXX object source/libike/CMakeFiles/ss_ike.dir/config.o
[ 14%] Building CXX object source/libike/CMakeFiles/ss_ike.dir/manager.o
[ 16%] Building CXX object source/libike/CMakeFiles/ss_ike.dir/manager.file.o
[ 17%] Building CXX object source/libike/CMakeFiles/ss_ike.dir/libike.o
Linking CXX shared library libss_ike.so
[ 17%] Built target ss_ike
Scanning dependencies of target ss_ip
[ 19%] Building CXX object source/libip/CMakeFiles/ss_ip.dir/libip.frag.o
[ 21%] Building CXX object source/libip/CMakeFiles/ss_ip.dir/libip.packet.o
[ 23%] Building CXX object source/libip/CMakeFiles/ss_ip.dir/libip.packet.dns.o
[ 25%] Building CXX object source/libip/CMakeFiles/ss_ip.dir/libip.packet.ip.o
[ 26%] Building CXX object source/libip/CMakeFiles/ss_ip.dir/libip.packet.udp.o
[ 28%] Building CXX object source/libip/CMakeFiles/ss_ip.dir/libip.pcap.o
[ 30%] Building CXX object source/libip/CMakeFiles/ss_ip.dir/libip.queue.o
[ 32%] Building CXX object source/libip/CMakeFiles/ss_ip.dir/libip.route.o
Linking CXX shared library libss_ip.so
[ 32%] Built target ss_ip
[ 33%] Generating conf.token.cpp
[ 35%] Generating conf.parse.cpp
conf.parse.yy:44.9-27: avertissement: %define variable 'parser_class_name' requires '{...}' values [-Wdeprecated]
 %define "parser_class_name" "conf_parser"
         ^^^^^^^^^^^^^^^^^^^
Scanning dependencies of target iked
[ 37%] Building CXX object source/iked/CMakeFiles/iked.dir/crypto.o
[ 39%] Building CXX object source/iked/CMakeFiles/iked.dir/conf.parse.o
[ 41%] Building CXX object source/iked/CMakeFiles/iked.dir/conf.token.o
[ 42%] Building CXX object source/iked/CMakeFiles/iked.dir/dhcp.o
[ 44%] Building CXX object source/iked/CMakeFiles/iked.dir/ike.o
[ 46%] Building CXX object source/iked/CMakeFiles/iked.dir/ike.exch.config.o
[ 48%] Building CXX object source/iked/CMakeFiles/iked.dir/ike.exch.inform.o
[ 50%] Building CXX object source/iked/CMakeFiles/iked.dir/ike.exch.phase1.o
[ 51%] Building CXX object source/iked/CMakeFiles/iked.dir/ike.exch.phase2.o
[ 53%] Building CXX object source/iked/CMakeFiles/iked.dir/ike.idb.config.o
[ 55%] Building CXX object source/iked/CMakeFiles/iked.dir/ike.idb.inform.o
[ 57%] Building CXX object source/iked/CMakeFiles/iked.dir/ike.idb.lists.o
[ 58%] Building CXX object source/iked/CMakeFiles/iked.dir/ike.idb.phase1.o
[ 60%] Building CXX object source/iked/CMakeFiles/iked.dir/ike.idb.phase2.o
[ 62%] Building CXX object source/iked/CMakeFiles/iked.dir/ike.idb.peer.o
[ 64%] Building CXX object source/iked/CMakeFiles/iked.dir/ike.idb.policy.o
[ 66%] Building CXX object source/iked/CMakeFiles/iked.dir/ike.idb.tunnel.o
[ 67%] Building CXX object source/iked/CMakeFiles/iked.dir/ike.idb.exch.o
[ 69%] Building CXX object source/iked/CMakeFiles/iked.dir/ike.io.admin.o
[ 71%] Building CXX object source/iked/CMakeFiles/iked.dir/ike.io.network.o
[ 73%] Building CXX object source/iked/CMakeFiles/iked.dir/ike.io.pfkey.o
[ 75%] Building CXX object source/iked/CMakeFiles/iked.dir/ike.keyfile.o
[ 76%] Building CXX object source/iked/CMakeFiles/iked.dir/ike.names.o
[ 78%] Building CXX object source/iked/CMakeFiles/iked.dir/ike.nethlp.o
[ 80%] Building CXX object source/iked/CMakeFiles/iked.dir/ike.packet.o
[ 82%] Building CXX object source/iked/CMakeFiles/iked.dir/ike.payload.o
[ 83%] Building CXX object source/iked/CMakeFiles/iked.dir/ike.peerid.o
[ 85%] Building CXX object source/iked/CMakeFiles/iked.dir/ike.policy.o
[ 87%] Building CXX object source/iked/CMakeFiles/iked.dir/ike.proposal.o
[ 89%] Building CXX object source/iked/CMakeFiles/iked.dir/ike.socket.o
[ 91%] Building CXX object source/iked/CMakeFiles/iked.dir/ike.xauth.o
[ 92%] Building CXX object source/iked/CMakeFiles/iked.dir/ike.xconf.o
[ 94%] Building CXX object source/iked/CMakeFiles/iked.dir/iked.o
[ 96%] Building CXX object source/iked/CMakeFiles/iked.dir/main.o
Linking CXX executable iked
[ 96%] Built target iked
Scanning dependencies of target ikec
[ 98%] Building CXX object source/ikec/CMakeFiles/ikec.dir/main.o
[100%] Building CXX object source/ikec/CMakeFiles/ikec.dir/ikec.o
Linking CXX executable ikec
/usr/bin/ld: escamotage incompatible /usr/lib/gcc/x86_64-mageia-linux-gnu/4.8.2/../../../libedit.so lors de la recherche de -ledit
/usr/bin/ld: escamotage incompatible /lib/libedit.so lors de la recherche de -ledit
/usr/bin/ld: escamotage incompatible /usr/lib/libedit.so lors de la recherche de -ledit
/usr/bin/ld: ne peut trouver -ledit
collect2: erreur: ld a retourné 1 code d'état d'exécution
source/ikec/CMakeFiles/ikec.dir/build.make:118: recipe for target 'source/ikec/ikec' failed
make[2]: *** [source/ikec/ikec] Error 1
CMakeFiles/Makefile2:168: recipe for target 'source/ikec/CMakeFiles/ikec.dir/all' failed
make[1]: *** [source/ikec/CMakeFiles/ikec.dir/all] Error 2
Makefile:116: recipe for target 'all' failed
make: *** [all] Error 2

about my config :

libedit-devel-3.1-0.20130601.2.mga4
libedit0-3.1-0.20130601.2.mga4
libedit-3.1-0.20130601.2.mga4

makedev-4.4-17.mga4
make-4.0-2.mga4

gcc-cpp-4.8.2-3.2.mga4
libgcc1-4.8.2-3.2.mga4
gcc-c++-4.8.2-3.2.mga4
gcc-4.8.2-3.2.mga4

I think the problem concerns only Mageia distributions. For exemple, it is ok on my Debian VM !

is it a problem in the libedit*.rpm ?

any help would be appreciated.


Ernest.
Comment 1 Christiaan Welvaart 2014-11-10 18:25:04 CET
Can you install lib64edit-devel ? If your system is really x86-64 then that's what you need to build a x86-64 ike binary.

CC: (none) => cjw

Comment 2 Ernest CHIARELLO 2014-11-12 08:58:18 CET
you are right, installing lib64edit-devel solved the problem. :)

[root@~ ike]# make
[  1%] Built target ss_ith
[  3%] Built target ss_log
[  7%] Built target ss_idb
[  8%] Built target ss_pfk
[ 23%] Built target ss_ip
[ 32%] Built target ss_ike
[ 96%] Built target iked
Linking CXX executable ikec
[100%] Built target ikec

i made a confusion between x86_64 and i586 librarys...

[root@~ ike]# rpm -qa | grep edit | grep 64
lib64edit0-3.1-0.20130601.2.mga4
lib64edit-devel-3.1-0.20130601.2.mga4


Thanks !



Ernest.
Comment 3 Christiaan Welvaart 2014-11-12 09:11:08 CET
Cool, then I can close this bug.

Status: NEW => RESOLVED
Resolution: (none) => INVALID


Note You need to log in before you can comment on or make changes to this bug.