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


_______________________________________________
Tinycc-devel mailing list
Tinycc-devel@nongnu.org
https://lists.nongnu.org/mailman/listinfo/tinycc-devel

Reply via email to