bug-ncurses
[Top][All Lists]
Advanced

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

Compiling ncurses-6.1 on OpenBSD


From: Robert Smith
Subject: Compiling ncurses-6.1 on OpenBSD
Date: Fri, 12 Jul 2019 21:45:05 +0900

Hello all,

Has anyone successfully compiled ncurses-6.1 on OpenBSD 6.5?

I have tried almost every combination of configuration options available and 
they always result in the linker not being able to link one of the programs 
that get built in the test directory to libncurses shared library.

I've been working on this for a couple of days and have tried just about every 
kind of configuration option combination imaginable.

All tests run using ncurses-6.1-20190706

  194  07/05/19 16:43:09 ./configure --prefix=$prefix --with-pic
  201  07/05/19 16:45:52 ./configure --prefix=$prefix --with-pic --help | grep 
termcap
  202  07/05/19 16:46:07 ./configure --prefix=$prefix --with-pic 
--enable-termcap
  204  07/05/19 17:10:50 ./configure --prefix=$prefix --with-pic 
--enable-termcap --help | grep tio
  205  07/05/19 17:11:19 grep tio configure
  206  07/05/19 17:11:23 grep tio configure
  210  07/06/19 02:29:11 ./configure --prefix=$prefix --with-pic 
--enable-termcap --help | grep term
  211  07/06/19 02:29:45 ./configure --prefix=$prefix --with-pic 
--enable-termcap --with-termlib --enable-getcap --enable-term-driver 
--enable-signed-char --enable-tcap-names
  213  07/06/19 02:29:55 ./configure --prefix=$prefix --with-pic 
--enable-termcap --with-termlib --enable-getcap --enable-term-driver 
--enable-signed-char --enable-tcap-names
  214  07/06/19 02:30:10 ./configure --prefix=$prefix --with-pic 
--enable-termcap --with-termlib --enable-getcap --enable-signed-char 
--enable-tcap-names
  223  07/06/19 02:32:39 ./configure --prefix=$prefix --with-pic 
--enable-termcap --with-termlib --enable-getcap --enable-signed-char 
--enable-tcap-names
  226  07/06/19 02:34:23 ./configure --prefix=$prefix --with-pic 
--enable-termcap --with-termlib --enable-getcap
  237  07/06/19 02:38:58 ./configure --prefix=$prefix --with-pic --enable-getcap
  238  07/06/19 02:39:22 ./configure --prefix=$prefix --with-pic --help
  241  07/06/19 02:40:26 ./configure --help | grep tic
  242  07/06/19 02:41:09 ./configure --prefix=$prefix --with-pic 
--enable-termcap --with-termlib --enable-getcap --disable-tic-depends 
--with-ticlib --enable-mixed-case
  247  07/06/19 02:41:29 ./configure --prefix=$prefix --with-pic 
--enable-termcap --with-termlib --enable-getcap --disable-tic-depends 
--with-ticlib --enable-mixed-case
  248  07/06/19 02:41:44 ./configure --prefix=$prefix --with-pic 
--enable-termcap --with-termlib --enable-getcap --disable-tic-depends 
--enable-mixed-case
  250  07/06/19 02:43:47 ./configure --help | grep tic
  251  07/06/19 02:44:06 ./configure --prefix=$prefix --with-pic 
--enable-termcap --with-termlib --enable-getcap --enable-mixed-case 
--without-progs
  255  07/06/19 02:46:26 ./configure --prefix=$prefix --with-pic 
--enable-termcap --enable-getcap --enable-mixed-case --without-progs
  257  07/06/19 02:46:36 ./configure --prefix=$prefix --with-pic 
--enable-termcap --enable-getcap --enable-mixed-case --without-progs
  264  07/06/19 02:50:01 ./configure --prefix=$prefix --without-progs
  267  07/06/19 02:51:55 ./configure --help | grep tio
  268  07/06/19 02:51:59 ./configure --help | grep ctl
  269  07/06/19 02:52:11 ./configure  --help
  270  07/06/19 03:40:11 ./configure --prefix=$prefix --enable-rpath 
--with-shared --with-libtool
  387  07/12/19 00:48:55 ./configure --prefix=$prefix --with-pic 
--enable-termcap --enable-getcap --enable-mixed-case --without-progs
  391  07/12/19 00:56:26 ./configure --prefix=$prefix --with-pic 
--enable-termcap --enable-getcap --enable-mixed-case --without-progs --help | 
grep shared
  392  07/12/19 00:56:34 ./configure --prefix=$prefix --with-pic 
--enable-termcap --enable-getcap --enable-mixed-case --without-progs 
--with-shared
  447  07/12/19 01:45:10 ./configure --prefix=/opt/test
  454  07/12/19 01:48:22 #./configure --prefix=/opt/test --with-shared
  460  07/12/19 01:48:42 ./configure --prefix=/opt/test --with-shared --help | 
grep shared
  461  07/12/19 01:48:55 ./configure --prefix=/opt/test --with-shared --help | 
grep pic
  462  07/12/19 01:49:00 ./configure --prefix=/opt/test --with-shared
  470  07/12/19 02:44:30 ./configure --help | grep -i color
  471  07/12/19 02:45:13 ./configure --prefix=/opt/test --with-shared 
--disable-tic-depends --without-progs --enable-widec --with-libtool 
--with-normal --with-cxx-shared --with-ticlib --enable-rpath 
--disable-tic-depends --enable-ext-colors --enable-colorfgbg
  477  07/12/19 02:50:08 ./configure --prefix=/opt/test --with-shared 
--enable-widec --with-libtool --with-normal --with-cxx-shared --with-ticlib 
--enable-rpath
  479  07/12/19 02:55:10 ./configure --prefix=/opt/test --with-shared 
--enable-widec --with-libtool --with-normal --with-cxx-shared --with-ticlib 
--enable-rpath --help | grep progs
  480  07/12/19 02:55:33 ./configure --prefix=/opt/test --with-shared 
--enable-widec --with-libtool --with-normal --with-cxx-shared --enable-rpath 
--without-progs
  485  07/12/19 02:57:50 ./configure --prefix=/opt/test --with-shared 
--enable-widec --with-libtool --with-normal --with-cxx-shared --enable-rpath 
--without-progs
  488  07/12/19 03:18:48 ./configure --prefix=/opt/test --with-shared 
--enable-widec --with-libtool --with-normal --with-cxx-shared --without-progs
  490  07/12/19 03:28:22 ./configure --prefix=/opt/test --with-shared 
--enable-widec --with-libtool --with-normal --with-cxx-shared --without-progs 
--help | grep broken
  491  07/12/19 03:28:29 ./configure --prefix=/opt/test --with-shared 
--enable-widec --with-libtool --with-normal --with-cxx-shared --without-progs 
--enable-broken_linkergrep
  501  07/12/19 03:43:45 ./configure --prefix=/opt/test --with-shared 
--enable-widec --with-libtool --with-normal --with-cxx-shared --without-progs 
--enable-broken_linkergrep --help | grep term
  502  07/12/19 03:44:15 ./configure --prefix=/opt/test --with-shared 
--enable-widec --with-libtool --with-normal --with-cxx-shared --without-progs 
--enable-broken_linkergrep --enable-getcap
  505  07/12/19 03:44:36 ./configure --prefix=/opt/test --with-shared 
--enable-widec --with-libtool --with-normal --with-cxx-shared --without-progs 
--enable-broken_linkergrep --enable-getcap
  508  07/12/19 03:47:22 ./configure --prefix=/opt/test --with-shared 
--enable-widec --with-libtool --with-normal --with-cxx-shared --without-progs 
--enable-broken_linkergrep --enable-getcap --help | grep color
  509  07/12/19 03:47:30 ./configure --prefix=/opt/test --with-shared 
--enable-widec --with-libtool --with-normal --with-cxx-shared --without-progs 
--enable-broken_linkergrep --enable-getcap --enable-ext-colors
  516  07/12/19 03:53:16 ./configure --prefix=/opt/test --with-shared 
--enable-widec --with-normal --with-cxx-shared --without-progs 
--enable-broken_linkergrep --enable-getcap --enable-ext-colors
  518  07/12/19 04:17:33 #./configure --prefix=/opt/test --with-shared 
--enable-widec --with-normal --with-cxx-shared --without-progs 
--enable-broken_linkergrep --enable-getcap --enable-ext-colors
  557  07/12/19 04:36:24 ./configure --prefix=/opt/test --with-shared 
--enable-widec --with-cxx-shared --without-progs --enable-broken_linkergrep 
--enable-getcap --enable-ext-colors

Get the following errors on different runs.


ld: error: undefined symbol: use_tioctl

ld: error: undefined symbol: init_extended_color

ld: error: undefined symbol: extended_color_content

Others from memory include

Every single time the symbols exist in the library but they just do not link 
properly


# make
...
...
gcc -O2 --param max-inline-insns-single=1200  -o color_content 
../obj_s/color_content.o  -I. -I. -I../test -DHAVE_CONFIG_H 
-DDATA_DIR=\"/opt/test/share\" -I. -I../include -D_BSD_SOURCE 
-D_XOPEN_SOURCE=600 -DNDEBUG -O2 --param max-inline-insns-single=1200  -fPIC 
-DPIC  `echo "-L../lib -lformw -lmenuw -lpanelw -lncursesw   " | sed -e 
's/-lform.*-lpanel[^ ]*//'` -lutil -lm
ld: error: undefined symbol: extended_color_content
>>> referenced by color_content.c
>>>               ../obj_s/color_content.o:(ColorContent)

ld: error: undefined symbol: init_extended_color
>>> referenced by color_content.c
>>>               ../obj_s/color_content.o:(InitColor)
collect2: ld returned 1 exit status
*** Error 1 in test (Makefile:287 'color_content')
*** Error 1 in /usr/src/ncurses-6.1-20190706 (Makefile:123 'all')
root@test-op01:/usr/src/ncurses-6.1-20190706# nm lib/libncursesw.so | grep 
extended_color_content
0002fdc0 T extended_color_content
0002fdb0 T extended_color_content_sp
root@test-op01:/usr/src/ncurses-6.1-20190706# nm lib/libncursesw.so | grep 
init_extended_color
000301f0 T init_extended_color
000301e0 T init_extended_color_sp
root@test-op01:/usr/src/ncurses-6.1-20190706#



I am at my wits end on how one might go about fixing this. I have broken down 
the GCC invocation to be as simple as possible the linker just cannot seem to 
find the symbols from the shared library.


Does anyone have any suggestions?


-Robert





reply via email to

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