Subject: | compilation fails with perl 5.16 |
$ /usr/bin/perl Makefile.PL INSTALLDIRS=vendor
writing Gimp/Config.pm... ok
Checking if your kit is complete...
Looks good
Writing Makefile for Gimp::Lib
Writing MYMETA.yml and MYMETA.json
Writing Makefile for Gimp::Net
Writing MYMETA.yml and MYMETA.json
Unrecognized argument in LIBS ignored: '-Wl,--export-dynamic'
Unrecognized argument in LIBS ignored: '-pthread'
Writing Makefile for Gimp::UI
Writing MYMETA.yml and MYMETA.json
Writing Makefile for Gimp
Writing MYMETA.yml and MYMETA.json
Hopefully, Gimp is now correctly configured. you can now enter "make",
"make test" and "make install".
$ make -j8
/usr/bin/perl5.16.0 /usr/lib/perl5/5.16.0/ExtUtils/xsubpp -typemap
/usr/lib/perl5/5.16.0/ExtUtils/typemap -typemap typemap Gimp.xs >
Gimp.xsc && mv Gimp.xsc Gimp.c
Running Mkbootstrap for Gimp ()
make[1]: Entering directory `/home/iurt/rpm/BUILD/gimp-perl/Gimp'
cp gimpdoc blib/script/gimpdoc
chmod 644 Gimp.bs
/usr/bin/perl5.16.0 -MExtUtils::MY -e 'MY->fixin(shift)' --
blib/script/gimpdoc
cp xcftopnm blib/script/xcftopnm
/usr/bin/perl5.16.0 -MExtUtils::MY -e 'MY->fixin(shift)' --
blib/script/xcftopnm
cp Gimp/Data.pm blib/lib/Gimp/Data.pm
cp Gimp/Fu.pm blib/lib/Gimp/Fu.pm
cp Gimp/Feature.pm blib/lib/Gimp/Feature.pm
cp Gimp/Lib.pm blib/lib/Gimp/Lib.pm
cp Gimp/Module.pm blib/lib/Gimp/Module.pm
cp Gimp/Util.pm blib/lib/Gimp/Util.pm
cp Gimp/Config.pm blib/lib/Gimp/Config.pm
cp Gimp.pm blib/lib/Gimp.pm
cp embedxpm blib/script/embedxpm
/usr/bin/perl5.16.0 /usr/lib/perl5/5.16.0/ExtUtils/xsubpp -typemap
/usr/lib/perl5/5.16.0/ExtUtils/typemap -typemap
/home/iurt/rpm/BUILD/gimp-perl/typemap -typemap
/usr/lib/perl5/vendor_perl/5.16.0/x86_64-linux-thread-multi/PDL/Core/typemap.pdl
Lib.xs > Lib.xsc && mv Lib.xsc Lib.c
/usr/bin/perl5.16.0 -MExtUtils::MY -e 'MY->fixin(shift)' --
blib/script/embedxpm
Running Mkbootstrap for Gimp::Lib ()
cp Gimp.bs blib/arch/auto/Gimp/Gimp.bs
chmod 644 blib/arch/auto/Gimp/Gimp.bs
Skip ../blib/lib/Gimp/Fu.pm (unchanged)
Skip ../blib/lib/Gimp/Module.pm (unchanged)
cp OO.pod ../blib/lib/Gimp/OO.pod
cp Pod.pm ../blib/lib/Gimp/Pod.pm
Skip ../blib/lib/Gimp/Feature.pm (unchanged)
Skip ../blib/lib/Gimp/Lib.pm (unchanged)
Skip ../blib/lib/Gimp/Data.pm (unchanged)
Skip ../blib/lib/Gimp/Util.pm (unchanged)
Skip ../blib/lib/Gimp/Config.pm (unchanged)
cp Compat.pm ../blib/lib/Gimp/Compat.pm
cp Pixel.pod ../blib/lib/Gimp/Pixel.pod
chmod 644 Lib.bs
cp Lib.bs ../blib/arch/auto/Gimp/Lib/Lib.bs
chmod 644 ../blib/arch/auto/Gimp/Lib/Lib.bs
gcc -c -I/home/iurt/rpm/BUILD/gimp-perl -pthread -D_REENTRANT
-I/usr/include/gimp-2.0 -I/usr/include/gdk-pixbuf-2.0
-I/usr/include/cairo -I/usr/include/libpng15 -I/usr/include/glib-2.0
-I/usr/lib64/glib-2.0/include -I/usr/include/pixman-1
-I/usr/include/freetype2 -I/usr/include/directfb -I/usr/include/libdrm
-D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing -pipe
-fstack-protector -I/usr/local/include -D_LARGEFILE_SOURCE
-D_FILE_OFFSET_BITS=64 -O2 -g -pipe -Wformat -Werror=format-security
-Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4
-Wl,--as-needed -Wl,-z,relro -Wl,-O1 -Wl,--build-id
-Wl,--enable-new-dtags -pthread -DVERSION=\"2\" -DXS_VERSION=\"2\"
-fPIC "-I/usr/lib/perl5/5.16.0/x86_64-linux-thread-multi/CORE"
-Ddatadir="\"\"" -DHAVE_PDL=1 Gimp.c
gcc -c -I/home/iurt/rpm/BUILD/gimp-perl -pthread -D_REENTRANT
-I/usr/include/gimp-2.0 -I/usr/include/gdk-pixbuf-2.0
-I/usr/include/cairo -I/usr/include/libpng15 -I/usr/include/glib-2.0
-I/usr/lib64/glib-2.0/include -I/usr/include/pixman-1
-I/usr/include/freetype2 -I/usr/include/directfb -I/usr/include/libdrm
-I/usr/lib/perl5/vendor_perl/5.16.0/x86_64-linux-thread-multi/PDL/Core
-D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing -pipe -fstack-protector
-I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -g
-pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2
-fstack-protector --param=ssp-buffer-size=4 -Wl,--as-needed -Wl,-z,relro
-Wl,-O1 -Wl,--build-id -Wl,--enable-new-dtags -pthread -DVERSION=\"2\"
-DXS_VERSION=\"2\" -fPIC
"-I/usr/lib/perl5/5.16.0/x86_64-linux-thread-multi/CORE"
-Ddatadir="\"\"" -DHAVE_PDL=1 Lib.c
In file included from Gimp.xs:4:0:
/usr/include/gimp-2.0/libgimp/gimpexport.h:23:2: error: #error "Only
<libgimp/gimpui.h> can be included directly."
/usr/include/gimp-2.0/libgimp/gimpexport.h:58:1: error: unknown type
name 'GtkWidget'
/usr/include/gimp-2.0/libgimp/gimpexport.h:61:1: error: unknown type
name 'GtkWidget'
/usr/include/gimp-2.0/libgimp/gimpexport.h:61:57: error: unknown type
name 'GtkWidget'
make: *** [Gimp.o] Error 1
make: *** Waiting for unfinished jobs....
In file included from Lib.xs:27:0:
/home/iurt/rpm/BUILD/gimp-perl/gppport.h:161:0: warning:
"PERL_BCDVERSION" redefined [enabled by default]
/usr/lib/perl5/vendor_perl/5.16.0/x86_64-linux-thread-multi/PDL/Core/ppport.h:3121:0:
note: this is the location of the previous definition
Lib.xs: In function 'gdrawable_free':
Lib.xs:188:41: warning: cast to pointer from integer of different size
[-Wint-to-pointer-cast]
Lib.xs: In function 'new_gdrawable':
Lib.xs:206:57: warning: cast to pointer from integer of different size
[-Wint-to-pointer-cast]
Lib.xs:222:46: warning: cast to pointer from integer of different size
[-Wint-to-pointer-cast]
rm -f ../blib/arch/auto/Gimp/Lib/Lib.so
gcc -lgimp-2.0 -lgimpmath-2.0 -lgimpconfig-2.0 -lgimpcolor-2.0
-lgimpbase-2.0 -lgdk_pixbuf-2.0 -lcairo -lgobject-2.0 -lglib-2.0
-shared -O2 -g -pipe -Wformat -Werror=format-security
-Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4
-Wl,--as-needed -Wl,-z,relro -Wl,-O1 -Wl,--build-id
-Wl,--enable-new-dtags -pthread -L/usr/local/lib64 Lib.o -o
../blib/arch/auto/Gimp/Lib/Lib.so \
\
chmod 755 ../blib/arch/auto/Gimp/Lib/Lib.so
Manifying ../blib/man3/Gimp::Fu.3pm
Manifying ../blib/man3/Gimp::Module.3pm
Manifying ../blib/man3/Gimp::OO.3pm
Manifying ../blib/man3/Gimp::Pod.3pm
Manifying ../blib/man3/Gimp::Feature.3pm
Manifying ../blib/man3/Gimp::Lib.3pm
Manifying ../blib/man3/Gimp::Data.3pm
Manifying ../blib/man3/Gimp::Util.3pm
Manifying ../blib/man3/Gimp::Config.3pm
Manifying ../blib/man3/Gimp::Compat.3pm
Manifying ../blib/man3/Gimp::Pixel.3pm
make[1]: Leaving directory `/home/iurt/rpm/BUILD/gimp-perl/Gimp'