[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Tinycc-devel] rc testing with netbsd-curses: build break
From: |
grischka |
Subject: |
Re: [Tinycc-devel] rc testing with netbsd-curses: build break |
Date: |
Wed, 20 Sep 2023 14:12:02 +0200 |
User-agent: |
Mozilla/5.0 (Windows NT 6.0; rv:38.0) Gecko/20100101 Thunderbird/38.5.0 |
On 16.09.2023 12:01, Detlef Riekenberg wrote:
libcurses/libcurses.so: error: referenced dll 'libterminfo.so' not found
make: *** [GNUmakefile:529: libpanel/libpanel.so] Fehler 1
Command exited with non-zero status 2
Analyse results so far:
* libpanel/libpanel.so depends on libcurses/libcurses.so
* libcurses/libcurses.so depends on libterminfo/libterminfo.so
* tcc searches for libterminfo.so, but fails
* from the failure message, the code is in tccelf.c:3659
That happened to get into my way too at some point. Obviously when
loading a .so library, tcc additionally is loads its dependencies
too. It's rather early code, at tccelf.c:3653
/* load all referenced DLLs */
for(i = 0, dt = dynamic; i < nb_dts; i++, dt++) {
switch(dt->d_tag) {
case DT_NEEDED:
...
What's the point isn't entirely clear to me. Normally if one
wants to use symbols from say libterminfo too one could just
write -lcurses -lterminfo.
There may be three options: 1) downgrade the error to a
warning, 2) disable loading of referenced DLLs completely,
3) have some switch to choose behavior (if such exists in gcc
for example)
-- gr
Bye bye ... Detlef