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

Build fails on Solaris 10 (pkgsrc) with missing libproc.h #1543

Open
ajacocks opened this issue Oct 2, 2024 · 2 comments
Open

Build fails on Solaris 10 (pkgsrc) with missing libproc.h #1543

ajacocks opened this issue Oct 2, 2024 · 2 comments
Labels
bug 🐛 Something isn't working build system 🔧 Affects the build system rather then the user experience Solaris Solaris, Illumos, OmniOS, OpenIndiana

Comments

@ajacocks
Copy link

ajacocks commented Oct 2, 2024

Building on Solaris 10, using gcc-9.3.0, fails with the following:

depbase=`echo AvailableColumnsPanel.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`; gcc -DHAVE_CONFIG_H -I.  -DNDEBUG  -I/usr/pkg/include/ncurses -I/usr/pkg/include -std=c99 -pedantic -Wall -Wcast-align -Wcast-qual -Wextra -Wfloat-equal -Wformat=2 -Winit-self -Wmissing-format-attribute -Wmissing-noreturn -Wmissing-prototypes -Wpointer-arith -Wshadow -Wstrict-prototypes -Wundef -Wunused -Wwrite-strings -Wnull-dereference -D_XOPEN_SOURCE_EXTENDED  -DSYSCONFDIR="\"/usr/pkg/etc\""  -I"./solaris" -O2 -I/usr/pkg/include/ncurses -I/usr/pkg/include -MT AvailableColumnsPanel.o -MD -MP -MF $depbase.Tpo -c -o AvailableColumnsPanel.o AvailableColumnsPanel.c && mv -f $depbase.Tpo $depbase.Po
In file included from AvailableColumnsPanel.c:23:
./solaris/Platform.h:18:10: fatal error: libproc.h: No such file or directory
   18 | #include <libproc.h>
      |          ^~~~~~~~~~~
compilation terminated.
*** Error code 1

Stop.
bmake[1]: stopped making "all-am" in /export/home/ajacocks/src/pkgsrc/sysutils/htop/work/htop-3.3.0
*** Error code 1

Stop.
bmake: stopped making "all" in /export/home/ajacocks/src/pkgsrc/sysutils/htop/work/htop-3.3.0
*** Error code 1

Stop.
bmake[1]: stopped making "install" in /export/home/ajacocks/src/pkgsrc/sysutils/htop
*** Error code 1

Stop.
bmake: stopped making "install" in /export/home/ajacocks/src/pkgsrc/sysutils/htop

I searched for libproc.h, but I found a bunch of references to libproc.h being a private header on Solaris.

I've attached the entire build log, below:

compile.log

@BenBE BenBE added bug 🐛 Something isn't working build system 🔧 Affects the build system rather then the user experience Solaris Solaris, Illumos, OmniOS, OpenIndiana labels Oct 3, 2024
@fasterit
Copy link
Member

Seems to be a pkgsrc issue.
Building the git tip with ./autogen.sh && ./configure --enable-debug && make -j 8 works.

@ajacocks
Copy link
Author

Interesting. I’ll dig deeper into it and see what I can find.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐛 Something isn't working build system 🔧 Affects the build system rather then the user experience Solaris Solaris, Illumos, OmniOS, OpenIndiana
Projects
None yet
Development

No branches or pull requests

3 participants