On 10/15/18 12:04 AM, Michael Shell via blfs-support wrote:
On Sun, 14 Oct 2018 14:28:01 -0500
rhubarbpieguy via blfs-support <[email protected]> wrote:

[ 89%] Building CXX object test/CMakeFiles/gtk-test.dir/gtk-test.cc.o
..
/usr/include/glib-2.0 -isystem /usr/lib/glib-2.0/include -isystem
//usr/include  -Wall -Wextra -Wpedantic -Wno-unused-parameter
..

Good! Note the strange/suspicious include construct:

-isystem //usr/include


Now, for the next test, try the following two attached patches on poppler
0.67 (should work on any version 0.63 or later) without using any other
patches (starting with a fresh poppler 0.67 unpack):

patch -p1 -i ../poppler_revert_gtk3_include_dirs.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


The build will fail, but in a different way (as is intended so you can
easily locate the same c++ command line). Show us the c++ command line
that failed (but it would have worked had it not been for
poppler_gtk-test_force_build_fail.patch) so we can compare it to the
previous failure.


Then, test the new attached poppler_fix_cmake_gtk3_include_dir.patch on
poppler 0.67 (should work on any version 0.63 or later) *without* using
any other patches (starting with a fresh poppler 0.67 unpack):

patch -p1 -i ../poppler_fix_cmake_gtk3_include_dir.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 let us know if it compiles OK and, if not, show us the c++ command
line that failed.


    Mike



Poppler 0.67 compiles without error using poppler_fix_cmake_gtk3_include_dir.patch.

The error messages using the other two patches are:

[ 89%] Building CXX object test/CMakeFiles/gtk-test.dir/gtk-test.cc.o
cd /sources/Poppler/poppler-0.67.0/build/test && /usr/bin/c++  -DUSE_OPENJPEG2 
-I/sources/Poppler/poppler-0.67.0 -I/sources/Poppler/poppler-0.67.0/fofi 
-I/sources/Poppler/poppler-0.67.0/goo -I/sources/Poppler/poppler-0.67.0/poppler 
-I/sources/Poppler/poppler-0.67.0/build -I/sources/Poppler/poppler-0.67.0/build/poppler 
-I/sources/Poppler/poppler-0.67.0/glib -I/sources/Poppler/poppler-0.67.0/build/glib 
-I/usr/include/freetype2 -I/usr/include/openjpeg-2.3  -Wall -Wextra -Wpedantic 
-Wno-unused-parameter -Wcast-align -Wformat-security -Wframe-larger-than=65536 
-Wlogical-op -Wmissing-format-attribute -Wnon-virtual-dtor -Woverloaded-virtual 
-Wmissing-declarations -Wundef -Wzero-as-null-pointer-constant -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/poppler-0.67.0/test/gtk-test.cc
/sources/Poppler/poppler-0.67.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/poppler-0.67.0/build'
make[1]: *** [CMakeFiles/Makefile2:803: test/CMakeFiles/gtk-test.dir/all] Error 
2
make[1]: Leaving directory '/sources/Poppler/poppler-0.67.0/build'
make: *** [Makefile:141: all] Error 2



--
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