NetBSD-Users archive

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

Link error



	Hello,

	I'm trying to update my RPL/2 installation on NetBSD
(http://www.rpl2.net). Program was configured with :
../rpl/configure --enable-native --disable-motif --disable-rplcas

	Last year, it was built without any trouble. Now, link stage aborts with :

legendre:[~/cvs/build-netbsd/src] > gmake
  BUILD  rpl.inc
gmake  all-am
gmake[1] : on entre dans le répertoire
« /home/bertrand/cvs/build-netbsd/src »
  CXXLD    rpl
/usr/bin/ld:
../tools/ncurses-6.3/lib/libncurses.a(lib_termcap.o):(.bss+0x8):
multiple definition of `UP';
../tools/readline-8.1/libreadline.a(terminal.o):(.bss+0x98): first
defined here
/usr/bin/ld:
../tools/ncurses-6.3/lib/libncurses.a(lib_termcap.o):(.bss+0x0):
multiple definition of `BC';
../tools/readline-8.1/libreadline.a(terminal.o):(.bss+0xa0): first
defined here
/usr/bin/ld:
../tools/ncurses-6.3/lib/libncurses.a(lib_tputs.o):(.bss+0x6): multiple
definition of `PC';
../tools/readline-8.1/libreadline.a(terminal.o):(.bss+0xa8): first
defined here
collect2: erreur: ld a retourné le statut de sortie 1
gmake[1]: *** [Makefile:1576 : rpl] Erreur 1
gmake[1] : on quitte le répertoire « /home/bertrand/cvs/build-netbsd/src »
gmake: *** [Makefile:1462 : all] Erreur 2
legendre:[~/cvs/build-netbsd/src] >

	Readline and libncurse are provided by RPL/2 (and rebuilt as static
libraries).

	Of course, I can seen BC, PC and UP symbols in both libreadline.a and
libncurses.a. For example :

terminal.o:
00000000000000a0 B BC
00000000000000a8 B PC
0000000000000098 B UP
                 U __sF
                 U __swbuf
0000000000000c40 T _rl_backspace
                 U _rl_bell_preference
0000000000000ea0 T _rl_control_keypad
0000000000000d00 T _rl_cr
0000000000000e50 T _rl_disable_meta_key

	On a Linux workstation, same sources can be used to obtain executable.

	I've never seen this kind of error in link stage. How can I fix it ?

	Best regards,

	JKB



Home | Main Index | Thread Index | Old Index