Changeset 1a7159d for postlfs/editors


Ignore:
Timestamp:
08/26/2024 10:55:49 AM (4 weeks ago)
Author:
Xi Ruoyao <xry111@…>
Branches:
12.2, lazarus, trunk
Children:
2f2568e, 81385e3
Parents:
9e084d2
git-author:
Xi Ruoyao <xry111@…> (08/26/2024 10:41:35 AM)
git-committer:
Xi Ruoyao <xry111@…> (08/26/2024 10:55:49 AM)
Message:

bluefish: Disable the infbrowser plugin instead of building a broken one

The error message from GCC 14 indicates a real problem: the NanoHTTP
functions are removed from libxml >= 2.13.0. Manually injecting a
prototype just papers over the issue as the function just does not exist
in libxml2.so:

$ objdump -T /usr/lib/libxml2.so | grep xmlNanoHTTPFetch \

echo nothing

nothing

Thus we are just building a plugin which isn't loadable at runtime at
all. Note that when linking a shared object the linker does not mandate
the referenced symbols to exist but dlopen() a shared object referencing
a nonexist symbol will cause an "undefined symbol" error.

So it's better not to build this plugin at all, instead of building and
installing a completely broken one.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • postlfs/editors/bluefish.xml

    r9e084d2 r1a7159d  
    9797
    9898    <para>
    99       First, fix a problem introduced by gcc14:
     99      First, disable a plugin requiring functions removed in libxml-2.13.0
     100      or later:
    100101    </para>
    101102
    102 <screen><userinput>sed -e '/HTMLtree.h/a int xmlNanoHTTPFetch(const char* URL, const char* filename, char** contentType);' \
    103     -i src/plugin_infbrowser/infb_gui.c
    104 </userinput></screen>
     103<screen><userinput>sed '/infbrowser/d' -i src/Makefile.am &amp;&amp;
     104autoreconf</userinput></screen>
    105105
    106106    <para>
Note: See TracChangeset for help on using the changeset viewer.