Skip to content

Building py-libxml2 fails (Ubuntu 22.04, unprivileged pkgsrc), because of the use of wrong headers (?) #150

Description

@algor512

On Ubuntu 22.04, the installation crashes when the libxml2-dev package is installed. Removing it
makes the installation succeed. I noticed that in the former case the compilation log contains the
following lines:

cc -fno-strict-overflow -Wsign-compare -DNDEBUG -O2 -I/usr/include -I/home/algor/tmp_pkg/include -DNCURSES_WIDECHAR=1 -I/home/algor/tmp_pkg/include/ncurses -I/home/algor/tmp_pkg/include/db4 -O2 -I/usr/include -I/home/algor/tmp_pkg/include -DNCURSES_WIDECHAR=1 -I/home/algor/tmp_pkg/include/ncurses -I/home/algor/tmp_pkg/include/db4 -O2 -I/usr/include -I/home/algor/tmp_pkg/include -DNCURSES_WIDECHAR=1 -I/home/algor/tmp_pkg/include/ncurses -I/home/algor/tmp_pkg/include/db4 -O2 -I/usr/include -I/home/algor/tmp_pkg/include/python3.12 -I/home/algor/tmp_pkg/include -I/usr/include -I/home/algor/tmp_pkg/include/python3.12 -I/home/algor/tmp_pkg/include -fPIC -D_REENTRANT=1 -I/usr/include/libxml2 -I/home/algor/tmp_pkg/include/python3.12 -c libxml.c -o build/temp.linux-x86_64-cpython-312/libxml.o
cc -fno-strict-overflow -Wsign-compare -DNDEBUG -O2 -I/usr/include -I/home/algor/tmp_pkg/include -DNCURSES_WIDECHAR=1 -I/home/algor/tmp_pkg/include/ncurses -I/home/algor/tmp_pkg/include/db4 -O2 -I/usr/include -I/home/algor/tmp_pkg/include -DNCURSES_WIDECHAR=1 -I/home/algor/tmp_pkg/include/ncurses -I/home/algor/tmp_pkg/include/db4 -O2 -I/usr/include -I/home/algor/tmp_pkg/include -DNCURSES_WIDECHAR=1 -I/home/algor/tmp_pkg/include/ncurses -I/home/algor/tmp_pkg/include/db4 -O2 -I/usr/include -I/home/algor/tmp_pkg/include/python3.12 -I/home/algor/tmp_pkg/include -I/usr/include -I/home/algor/tmp_pkg/include/python3.12 -I/home/algor/tmp_pkg/include -fPIC -D_REENTRANT=1 -I/usr/include/libxml2 -I/home/algor/tmp_pkg/include/python3.12 -c libxml2-py.c -o build/temp.linux-x86_64-cpython-312/libxml2-py.o

While in the latter case it contains

cc -fno-strict-overflow -Wsign-compare -DNDEBUG -O2 -I/usr/include -I/home/algor/tmp_pkg/include -DNCURSES_WIDECHAR=1 -I/home/algor/tmp_pkg/include/ncurses -I/home/algor/tmp_pkg/include/db4 -O2 -I/usr/include -I/home/algor/tmp_pkg/include -DNCURSES_WIDECHAR=1 -I/home/algor/tmp_pkg/include/ncurses -I/home/algor/tmp_pkg/include/db4 -O2 -I/usr/include -I/home/algor/tmp_pkg/include -DNCURSES_WIDECHAR=1 -I/home/algor/tmp_pkg/include/ncurses -I/home/algor/tmp_pkg/include/db4 -O2 -I/usr/include -I/home/algor/tmp_pkg/include/python3.12 -I/home/algor/tmp_pkg/include -I/usr/include -I/home/algor/tmp_pkg/include/python3.12 -I/home/algor/tmp_pkg/include -fPIC -D_REENTRANT=1 -I/home/algor/tmp_pkg/include/libxml2 -I/home/algor/tmp_pkg/include/python3.12 -c libxml.c -o build/temp.linux-x86_64-cpython-312/libxml.o
cc -fno-strict-overflow -Wsign-compare -DNDEBUG -O2 -I/usr/include -I/home/algor/tmp_pkg/include -DNCURSES_WIDECHAR=1 -I/home/algor/tmp_pkg/include/ncurses -I/home/algor/tmp_pkg/include/db4 -O2 -I/usr/include -I/home/algor/tmp_pkg/include -DNCURSES_WIDECHAR=1 -I/home/algor/tmp_pkg/include/ncurses -I/home/algor/tmp_pkg/include/db4 -O2 -I/usr/include -I/home/algor/tmp_pkg/include -DNCURSES_WIDECHAR=1 -I/home/algor/tmp_pkg/include/ncurses -I/home/algor/tmp_pkg/include/db4 -O2 -I/usr/include -I/home/algor/tmp_pkg/include/python3.12 -I/home/algor/tmp_pkg/include -I/usr/include -I/home/algor/tmp_pkg/include/python3.12 -I/home/algor/tmp_pkg/include -fPIC -D_REENTRANT=1 -I/home/algor/tmp_pkg/include/libxml2 -I/home/algor/tmp_pkg/include/python3.12 -c libxml2-py.c -o build/temp.linux-x86_64-cpython-312/libxml2-py.o

As you can see, in the former case it contains -I/usr/include/libxml2 and it presumabely makes it
fail. I have the line PREFER_PKGSRC=yes in my mk.conf.

Activity

  1. sskras commented on Sep 23, 2024

    @sskras

    @algor512, which commit is that, please?

  2. algor512 commented on Sep 23, 2024

    @algor512
    Author

    @sskras sorry, I forgot to indicate that: I use the current trunk, so the commit c8e9012.

  3. added a commit that references this issue on Sep 23, 2024
  4. added a commit that references this issue on Nov 6, 2024
  5. jperkin commented on Feb 13, 2025

    @jperkin
    Collaborator

    I ran into the same problem on my Ubuntu 22.04 CI system, and fixed it in drecklypkg@0bc50e3. I don't have the ability to test this properly in pkgsrc right now, so maybe someone else is interested in doing that.

  6. added a commit that references this issue on May 23, 2025
  7. 51 remaining items

  8. added a commit that references this issue on Jun 29, 2026
  9. added a commit that references this issue on Sep 12, 2026
  10. sskras commented on Sep 29, 2026

    @sskras

    Well, something seems to be ridiculously wrong here.
    The commit 14ceabe that closed this issue says:

    • fix double-click not opening the file when the tree is scrolled - Fix #150

    ... which this issue seems to have no relation to.

    Pinging @0323pin: did you really want to refer to this issue in the commit above?

  11. jsonn commented on Sep 29, 2026

    @jsonn
    Member

    github is not the source of truth for there repositories. It is not possible to disable the commit message parser and it is constantly mistriggering.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions