'CAIRO_GOBJECT_TYPE_SURFACE' undeclared - cairo

Compiling gtk+-3.7.10 in Mac OSX 10.7.5 and always getting error:
In file included from gdkwindow.c:28:
/usr/local/include/cairo/cairo-gobject.h:183:3: error: #error Cairo was not compiled with support for GObject
gdkwindow.c: In function 'gdk_window_class_init':
gdkwindow.c:511: error: 'CAIRO_GOBJECT_TYPE_SURFACE' undeclared (first use in this function)
gdkwindow.c:511: error: (Each undeclared identifier is reported only once
gdkwindow.c:511: error: for each function it appears in.)
make[4]: *** [gdkwindow.lo] Error 1
make[3]: *** [all-recursive] Error 1
make[2]: *** [all] Error 2
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
I compiled cairo 1.10 with:
./configure --prefix=/usr/local --enable-gobject=yes
But always getting the same error.
glib-2.35.8 is compiled as well.
Any ideas?

You're ignoring the (important) first error:
/usr/local/include/cairo/cairo-gobject.h:183:3: error: #error Cairo was not compiled with support for GObject
You say you've compiled Cairo with GObject enabled, but whatever Cairo GTK+ is compiling against doesn't have it enabled. Check to make sure you installed your Cairo and that some other version of Cairo is not interfering.

Related

How do I resolve this pcre3 error while installing lede-mptcp?

https://spyff.github.io/mptcp/2017/08/27/transparent-mptcp-proxy/
I am following the steps as mentioned in above link to install lede-mptcp in my ubuntu virtual machine while doing "make" I am getting the following errors.
checking for pcre headers in ... not found
checking for library containing pcre_exec... no
configure: error: Cannot find pcre library. Configure --with-pcre=DIR
Makefile:132: recipe for target '/home/phani/lede-mptcp/build_dir/target-x86_64_musl-1.1.16/shadowsocks-libev-3.3.5/.configured_08bfbcccd69d96242ca8a0162f4ebe27' failed
make[3]: *** [/home/phani/lede-mptcp/build_dir/target-x86_64_musl-1.1.16/shadowsocks-libev-3.3.5/.configured_08bfbcccd69d96242ca8a0162f4ebe27] Error 1
make[3]: Leaving directory '/home/phani/lede-mptcp/feeds/packages/net/shadowsocks-libev'
package/Makefile:105: recipe for target 'package/feeds/packages/shadowsocks-libev/compile' failed
make[2]: *** [package/feeds/packages/shadowsocks-libev/compile] Error 2
make[2]: Leaving directory '/home/phani/lede-mptcp'
package/Makefile:101: recipe for target '/home/phani/lede-mptcp/staging_dir/target-x86_64_musl-1.1.16/stamp/.package_compile' failed
make[1]: *** [/home/phani/lede-mptcp/staging_dir/target-x86_64_musl-1.1.16/stamp/.package_compile] Error 2
make[1]: Leaving directory '/home/phani/lede-mptcp'
/home/phani/lede-mptcp/include/toplevel.mk:205: recipe for target 'world' failed
make: *** [world] Error 2
I tried to solve the error by installing libpcre3 and libpcre3-dev but not solved yet.
Please,Let me know the solution if anyone faced same issue and have solution.
Thanks & Regards,
Phani Sree.

Cannot compile openjdk7 source code on CentOS6.5

I was trying to compile openjdk source code on CentOS6.5, and I got the following error message while running make. if anybody can help? thanks in advance.
software version:
JDK: openjdk-7u40-fcs-src-b43-26_aug_2013
OS: Linux 2.6.32-431.el6.x86_64
make[6]: Leaving directory /usr/local/openjdk/build/linux-amd64-debug/hotspot/outputdir/linux_amd64_compiler2/jvmg'
cd linux_amd64_compiler2/jvmg && ./test_gamma
Using java runtime at: /usr/lib/jvm/java-1.6.0-openjdk.x86_64/jre
./gamma: relocation error: /usr/lib/jvm/java-1.6.0-openjdk-1.6.0.33.x86_64/jre/lib/amd64/libjava.so: symbol JVM_FindClassFromCaller, version SUNWprivate_1.1 not defined in file libjvm.so with link time reference
make[5]: *** [jvmg] Error 127
make[5]: Leaving directory/usr/local/openjdk/build/linux-amd64-debug/hotspot/outputdir'
make[4]: * [generic_build2] Error 2
make[4]: Leaving directory /usr/local/openjdk/hotspot/make'
make[3]: *** [jvmg] Error 2
make[3]: Leaving directory/usr/local/openjdk/hotspot/make'
make[2]: * [hotspot-build] Error 2
make[2]: Leaving directory /usr/local/openjdk'
make[1]: *** [generic_debug_build] Error 2
make[1]: Leaving directory/usr/local/openjdk'
Editor file hotspot/make/linux/Makefile,and delete all the test_gamma in Makefile.
It past!
I meet the same error when build my openjdk7 on ubuntu14.04 and I suggest you check the file
/usr/local/openjdk/build/linux-amd64-debug/hotspot/outputdir/linux_amd64_compiler2/jvmg/test_gamma,
this error happens at the end of this shell script, remove those lines from the file and try it again.
hope this would help
Download and install Oracle JDK 1.6.0_45 and set it to "ALT_BOOTDIR" and "ALT_JDK_IMPORT_PATH", please do not use OpenJDK1.6

arm cross compilation unrecognized --sysroot option.(Eclipse)

I'm trying arm cross compilation using sysroot for the autotools project.The options I'm using for autogen script is as follows.
CC=arm-linux-gnueabihf-gcc --with-sysroot=/opt/sysroot/dir \
--host=arm-linux-gnueabihf --sysroot=/opt/sysroot/dir --prefix=/some/dir
But in eclipse plugin it is showing that --sysroot option is unrecognized but the same command is working fine in the terminal.
ERROR:
configure: error: unrecognized option: --sysroot=/opt/sysroot/dir
configure: error: unrecognized option: --sysroot=/opt/sysroot/dir
Try ./configure --help' for more information
And If I remove --sysroot option in eclipse then the autogen works fine but I'm getting the following linker error.
/usr/lib/gcc-cross/arm-linux-gnueabihf/4.8/../../../../arm-linux-gnueabihf/bin/ld: skipping incompatible /usr/lib/../lib/libwebkit_clutter-0.so when searching for -lwebkit_clutter-0
/usr/lib/gcc-cross/arm-linux-gnueabihf/4.8/../../../../arm-linux-gnueabihf/bin/ld: skipping incompatible //usr/lib/libwebkit_clutter-0.so when searching for -lwebkit_clutter-0
make[2]: Leaving directory `/home/dir/workspace/Sharukh/sources/applications'
/usr/lib/gcc-cross/arm-linux-gnueabihf/4.8/../../../../arm-linux-gnueabihf/bin/ld: cannot find -lwebkit_clutter-0
make[1]: Leaving directory `/home/dir/workspace/Sharukh/sources'
/usr/lib/gcc-cross/arm-linux-gnueabihf/4.8/../../../../arm-linux-gnueabihf/bin/ld: skipping incompatible /usr/lib/../lib/libwebkit_clutter_mx.so when searching for -lwebkit_clutter_mx
/usr/lib/gcc-cross/arm-linux-gnueabihf/4.8/../../../../arm-linux-gnueabihf/bin/ld: skipping incompatible //usr/lib/libwebkit_clutter_mx.so when searching for -lwebkit_clutter_mx
/usr/lib/gcc-cross/arm-linux-gnueabihf/4.8/../../../../arm-linux-gnueabihf/bin/ld: cannot find -lwebkit_clutter_mx
/usr/lib/gcc-cross/arm-linux-gnueabihf/4.8/../../../../arm-linux-gnueabihf/bin/ld: skipping incompatible /lib/../lib/libcgroup.so when searching for -lcgroup
/usr/lib/gcc-cross/arm-linux-gnueabihf/4.8/../../../../arm-linux-gnueabihf/bin/ld: skipping incompatible //lib/libcgroup.so when searching for -lcgroup
/usr/lib/gcc-cross/arm-linux-gnueabihf/4.8/../../../../arm-linux-gnueabihf/bin/ld: cannot find -lcgroup
collect2: error: ld returned 1 exit status
make[2]: *** [bin_Sharukh] Error 1
make[1]: *** [install-recursive] Error 1
make: *** [install-recursive] Error 1
What am I missing?
You really don't need to use --with-sysroot as --sysroot is enough.
Your configuration should be like this
CC="arm-linux-gnueabihf-gcc" \
CFLAGS="--sysroot=/opt/sysroot/dir" ./configure \
--prefix=/some/dir \
--host=arm-linux-gnueabihf

throwing an instance of 'HPHP::RescheduleException' - Compile failed on CentOS 5

CentOS 5.8 --- Kenrel 2.6.18-308.11.1.el5 x86_64
This is strange error with 64bit CentOS 5, I ran out of luck...
[ 89%] Built target ext_hhvm_static
Scanning dependencies of target hphp
[ 89%] Building CXX object src/hphp/CMakeFiles/hphp.dir/main.cpp.o
In file included from /opt/hiphop/hiphop-php/src/hphp/main.cpp:44:
/opt/hiphop/hiphop-php/src/runtime/base/compiler_id.h:16:1: warning: "COMPILER_ID" redefined
<command-line>: warning: this is the location of the previous definition
[ 89%] Building CXX object src/hphp/CMakeFiles/hphp.dir/externals.cpp.o
Linking CXX executable hphp
Building hhvm
terminate called after throwing an instance of 'HPHP::RescheduleException'
terminate called recursively
Core dumped: Aborted
hphp failed
make[2]: *** [src/hphp/hphp] Error 255
make[1]: *** [src/hphp/CMakeFiles/hphp.dir/all] Error 2
make: *** [all] Error 2
Thanks in advance.
Now that HHVM is the default runtime, do a git pull and try again.

Error while building binutils 2.21.1a on Solaris

I'm trying to build binutils 2.21.1a from http://ftp.gnu.org/gnu/binutils on Solaris sun4u sparc SunOS 5.10. I am using gcc version 4.0.2. When I built this is the error:
cc1: warnings being treated as errors
compress.c: In function 'bfd_compress_section_contents':
compress.c:100: warning: implicit declaration of function 'compressBound'
make[2]: *** [compress.lo] Error 1
make[2]: Leaving directory `/nfs/netapp0/user/home/hart/downloads/binutils-2.21.1/bfd'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/nfs/netapp0/user/home/hart/downloads/binutils-2.21.1/bfd'
*** Error code 2
make: Fatal error: Command failed for target `all'
I added the --disable-werror to the configure line to try to bypass it and hopefully continue the build. Unfortunately this did not work either and I got this new, related, error at link time:
Undefined first referenced
symbol in file
compressBound ../bfd/.libs/libbfd.a(compress.o)
ld: fatal: Symbol referencing errors. No output written to size
collect2: ld returned 1 exit status
I have searched for an existing issue but I have found nothing related. Any ideas? I prefer to use this version of binutils, but if you know of a version that builds OK on this platform with gcc 4.0.2 specifically please let me know.
I finally found the issue was indeed filed as a BUG. The workaround is to add --without-zlib to the configure script or install an up to date version of zlib on the system.