On 10/15/18 7:45 PM, Michael Shell via blfs-support wrote:
In the meantime, Bruce and rhubarbpieguy, what version of cmake are
each of you running?

cmake --version


rhubarbpieguy, can you try a 0.67 build with the two patches:

patch -p1 -i ../poppler_fix_cmake_gtk3_include_dir.patch
patch -p1 -i ../poppler_gtk-test_force_build_fail.patch

mkdir build
cd    build
cmake  -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr 
-DTESTDATADIR=$PWD/testfiles -DENABLE_XPDF_HEADERS=ON ..
make VERBOSE=1

and show me the c++ line that fails? This way, I can see how gcc is
being called on your system after the poppler GTK cmake code bug is
fixed.

Also, please verify for me again that none of the include variables
are being set:

echo $CPLUS_INCLUDE_PATH
echo $C_INCLUDE_PATH
echo $CPATH
echo $GTK3_INCLUDE_DIRS
echo $GTK3_INCLUDE_DIR

rhubarbpieguy, do your recall doing/setting anything else with regard to
/usr/include in your /etc/profile, bashrc, anything in /etc/profile.d
including xorg.sh, or your .bashrc, .bash_profile, etc. ?

You can scan your entire /etc for all mentions of /usr/include by
running

find /etc -type f -print|sort|xargs grep /usr/include

as root. What does it show?


   Mike


Wowsers,  I remain impressed by your thoroughness!

------------------------------------------

My cmake version is 3.12.1.

------------------------------------------------------------------------------------------------------------------------------------------

[ 89%] Building CXX object test/CMakeFiles/gtk-test.dir/gtk-test.cc.o
cd /sources/poppler-0.62.0/build/test && /usr/bin/c++
-DUSE_OPENJPEG2 -I/sources/poppler-0.62.0
-I/sources/poppler-0.62.0/fof
-I/sources/poppler-0.62.0/goo
-I/sources/poppler-0.62.0/poppler
-I/sources/poppler-0.62.0/build
-I/sources/poppler-0.62.0/build/poppler
-I/sources/poppler-0.62.0/glib
-I/sources/poppler-0.62.0/build/glib
-I/usr/include/freetype2
-I/usr/include/openjpeg-2.3
-Wall -Wextra -Wpedantic
-Wno-unused-parameter
-Wno-missing-field-initializers
-Wcast-align -Wformat-security
-Wframe-larger-than=65536
-Wlogical-op
-Wmissing-format-attribute
-Wnon-virtual-dtor
-Woverloaded-virtual
-Wmissing-declarations
-Wundef
-Wsuggest-override
-fno-exceptions
-fno-check-new
-fno-common
-D_DEFAULT_SOURCE -O2 -DNDEBUG
-I/usr/include/nss
-I/usr/include/nspr
-pthread
-I/usr/include/gtk-3.0
-I/usr/include/at-spi2-atk/2.0
-I/usr/include/at-spi-2.0
-I/usr/include/dbus-1.0
-I/usr/lib/dbus-1.0/include
-I/usr/include/gtk-3.0
-I/usr/include/gio-unix-2.0/
-I/usr/include/cairo
-I/usr/include/libdrm
-I/usr/include/pango-1.0
-I/usr/include/fribidi
-I/usr/include/atk-1.0
-I/usr/include/cairo
-I/usr/include/pixman-1
-I/usr/include/uuid
-I/usr/include/freetype2
-I/usr/include/harfbuzz
-I/usr/include/libpng16
-I/usr/include/gdk-pixbuf-2.0
-I/usr/include/libpng16
-I/usr/include/glib-2.0
-I/usr/lib/glib-2.0/include
-I//usr/include
-pthread
-std=c++11 -o CMakeFiles/gtk-test.dir/gtk-test.cc.o -c 
/sources/poppler-0.62.0/test/gtk-test.cc
/sources/poppler-0.62.0/test/gtk-test.cc:24:10: fatal error: 
thisdoesnotexist.h: No such file or directory
 #include <thisdoesnotexist.h>
          ^~~~~~~~~~~~~~~~~~~~
compilation terminated.
make[2]: *** [test/CMakeFiles/gtk-test.dir/build.make:63: 
test/CMakeFiles/gtk-test.dir/gtk-test.cc.o] Error 1
make[2]: Leaving directory '/sources/poppler-0.62.0/build'
make[1]: *** [CMakeFiles/Makefile2:803: test/CMakeFiles/gtk-test.dir/all] Error 
2
make[1]: Leaving directory '/sources/poppler-0.62.0/build'
make: *** [Makefile:141: all] Error 2

-----------------------------------------------------

None of the variables you questioned are set.  All come back blank.

--------------------------------------------------------------------------------------------------------------------------

find /etc -type f -print|sort|xargs grep /usr/include reports:

/etc/udev/hwdb.d/60-keyboard.hwdb:#    ZZZZ is the bus-id (see 
/usr/include/linux/input.h BUS_*), YYYY, XXXX and
/etc/udev/hwdb.d/70-pointingstick.hwdb:#    ZZZZ is the bus-id (see 
/usr/include/linux/input.h BUS_*), YYYY, XXXX and




--
http://lists.linuxfromscratch.org/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to