pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

pkgsrc-2020Q3 potential c/c++ wrapper bugs?



I'm getting build failures for pkgsrc/fonts/harfbuzz due to missing
include files:

ninja: Entering directory `output'
[1/203] Compiling C++ object src/libharfbuzz.so.0.20702.0.p/hb-ft.cc.o
FAILED: src/libharfbuzz.so.0.20702.0.p/hb-ft.cc.o 
c++ -Isrc/libharfbuzz.so.0.20702.0.p -Isrc -I../src -I. -I.. -I/usr/X11R7/include/freetype2 -I/usr/pkg/include -I/usr/pkg/include/glib-2.0 -I/usr/pkg/lib/glib-2.0/include -I/usr/pkg/include/gio-unix-2.0 -I/usr/include -fdiagnostics-color=always -pipe -D_FILE_OFFSET_BITS=64 -std=c++11 -fno-exceptions -fno-rtti -fno-exceptions -fno-rtti -fno-threadsafe-statics -fvisibility-inlines-hidden -DHAVE_CONFIG_H -O2 -D_FORTIFY_SOURCE=2 -fPIC -pthread -Wno-non-virtual-dtor -MD -MQ src/libharfbuzz.so.0.20702.0.p/hb-ft.cc.o -MF src/libharfbuzz.so.0.20702.0.p/hb-ft.cc.o.d -o src/libharfbuzz.so.0.20702.0.p/hb-ft.cc.o -c ../src/hb-ft.cc
In file included from /opt/pkgsrc_objects/fonts/harfbuzz/work/.x11-buildlink/include/freetype2/freetype/freetype.h:24:0,
                 from ../src/hb-ft.h:35,
                 from ../src/hb-ft.cc:34:
/opt/pkgsrc_objects/fonts/harfbuzz/work/.x11-buildlink/include/freetype2/freetype/config/ftconfig.h:44:10: fatal error:freetype/config/integer-types.h: No such file or directory
 #include <freetype/config/integer-types.h>
          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
ninja: build stopped: subcommand failed.
*** Error code 1

Stop.
make[4]: stopped in /opt/pkgsrc/fonts/harfbuzz
*** Error code 1

Stop.
make[3]: stopped in /opt/pkgsrc/fonts/harfbuzz
*** Error code 1

Stop.
make[2]: stopped in /opt/pkgsrc/devel/pango
*** Error code 1

Stop.
make[1]: stopped in /opt/pkgsrc/x11/gtk2
*** Error code 1


Notice how c++ includes "-I/usr/X11R7/include/freetype2"

Also notice how this file is present in a correct location:

# find /usr -name integer-types.h
/usr/X11R7/include/freetype2/freetype/config/integer-types.h


When I log all the parameters passed to my g++ script, I get this:

-Isrc/libharfbuzz.so.0.20702.0.p -Isrc -I../src -I. -I.. -I/opt/pkgsrc_objects/fonts/harfbuzz/work/.x11-buildlink/include/freetype2 -I/opt/pkgsrc_objects/fonts/harfbuzz/work/.buildlink/include -I/opt/pkgsrc_objects/fonts/harfbuzz/work/.buildlink/include/glib-2.0 -I/opt/pkgsrc_objects/fonts/harfbuzz/work/.buildlink/lib/glib-2.0/include -I/opt/pkgsrc_objects/fonts/harfbuzz/work/.buildlink/include/gio-unix-2.0 -fdiagnostics-color=always -pipe -D_FILE_OFFSET_BITS=64 -std=c++11 -fno-exceptions -fno-rtti -fno-exceptions -fno-rtti -fno-threadsafe-statics -fvisibility-inlines-hidden -DHAVE_CONFIG_H -O2 -D_FORTIFY_SOURCE=2 -fPIC -pthread -Wno-non-virtual-dtor -MD -MQ src/libharfbuzz.so.0.20702.0.p/hb-ft.cc.o -MF src/libharfbuzz.so.0.20702.0.p/hb-ft.cc.o.d -o src/libharfbuzz.so.0.20702.0.p/hb-ft.cc.o -c ../src/hb-ft.cc -fstack-protector

Somehow "-I/usr/X11R7/include/freetype2" has disappeared. Is this
normal?

I'm building inside chroot, where most directories are mounted with
mount_null command.


Home | Main Index | Thread Index | Old Index