Bug 3825

Summary: netcat-openbsd do_compile failed with dependency error
Product: [Build System, Metadata & Runtime] Other YP Layers Reporter: Zhu Yanjun <yanjun.zhu>
Component: layersAssignee: Zhu Yanjun <yanjun.zhu>
Status: RESOLVED INVALID QA Contact:
Severity: normal    
Priority: Low CC: corneliux.stoicescu, poky.bs.watcher, poky.watcher, richard.purdie, sgw
Version: unspecified   
Target Milestone: 1.4   
Hardware: x86   
OS: x86   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: ---

Description Zhu Yanjun 2013-02-01 05:44:37 UTC
netcat-openbsd do_compile failed with error:

| x86-64-wrswrap-linux-gnu-gcc   -m64 --sysroot=/buildarea/build/130126170457-qsu-per_package_build-intel-xeon-core/build-runtime-pkgs/netcat-openbsd/bitbake_build/tmp/sysroots/intel-xeon-core -O2 -pipe -g -DDEBIAN_VERSION="\"4\"" `pkg-config --cflags glib-2.0` -Iopenbsd-compat -c openbsd-compat/readpassphrase.c -o openbsd-compat/readpassphrase.o
| Package glib-2.0 was not found in the pkg-config search path.
| Perhaps you should add the directory containing `glib-2.0.pc'
| to the PKG_CONFIG_PATH environment variable
| No package 'glib-2.0' found
| Package glib-2.0 was not found in the pkg-config search path.
| Perhaps you should add the directory containing `glib-2.0.pc'
| to the PKG_CONFIG_PATH environment variable
| Package glib-2.0 was not found in the pkg-config search path.
| Perhaps you should add the directory containing `glib-2.0.pc'
| to the PKG_CONFIG_PATH environment variable
| No package 'glib-2.0' found
| No package 'glib-2.0' found
| Package glib-2.0 was not found in the pkg-config search path.
| Perhaps you should add the directory containing `glib-2.0.pc'
| to the PKG_CONFIG_PATH environment variable
| No package 'glib-2.0' found
| Package glib-2.0 was not found in the pkg-config search path.
| Perhaps you should add the directory containing `glib-2.0.pc'
| to the PKG_CONFIG_PATH environment variable
| No package 'glib-2.0' found
| netcat.c:60:18: fatal error: glib.h: No such file or directory
| compilation terminated.
| make: *** [netcat.o] Error 1
| make: *** Waiting for unfinished jobs....
| ERROR: oe_runmake failed
| ERROR: Function failed: do_compile (see /buildarea/build/130126170457-qsu-per_package_build-intel-xeon-core/build-runtime-pkgs/netcat-openbsd/bitbake_build/tmp/work/x86_64-wrs-linux/netcat-openbsd-1.89-r0/temp/do_compile/log.do_compile.23976 for further information)
NOTE: recipe netcat-openbsd-1.89-r0: task do_compile: Failed
Comment 1 Saul Wold 2013-02-01 23:40:03 UTC
What platform is this running on?  Also netcat is part of meta-oe not oe-core.
Comment 2 Zhu Yanjun 2013-02-02 02:10:59 UTC
This bug appears on intel-xeon-core.
Comment 3 Saul Wold 2013-02-05 00:42:15 UTC
That was not very help, was this using more than oe-core to build with?  What OS was the host system?  The target is intel-xeon-core, but that's not what I asked.

Do you know if it build glib-2.0 already?  you can look in your tmp/sysroots/intel-xeon-core/...
Comment 4 Stoicescu Cornel 2013-02-13 12:06:13 UTC
Hello,

Can you please add the following information:
-poky version (or branch + commit)
-what actions produced the output? (commands, modified configuration files like loca.conf)
-host operating system
Comment 5 Richard Purdie 2013-04-16 09:58:29 UTC
This bug is being reported with a different build system against a package which isn't in OE-Core and a machine which isn't in OE-Core. Please reproduce this against public metadata along with specific information like which revision was used or don't report it here. Also no reply to needinfo in two months.