Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
algor512 opened this issue Sep 22, 2024 · 2 comments

Comments

@algor512
Copy link

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.

@sskras
Copy link

sskras commented Sep 23, 2024

@algor512, which commit is that, please?

@algor512
Copy link
Author

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

netbsd-srcmastr pushed a commit that referenced this issue Sep 23, 2024
# ps 1.7.7

* `ps_cpu_times()` values are now correct on newer arm64 macOS.

# ps 1.7.6

* `ps_name()` now does not fail in the rare case when `ps_cmdline()` returns an empty vector (#150).

* `ps_system_cpu_times()` now returns CPU times divided by the HZ as reported by CLK_TCK, in-line with other OS's and the per-process version. (#144, @michaelwalshe).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants