After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 551952 - Need 'check' package when compile
Need 'check' package when compile
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gstreamer (core)
0.10.x
Other All
: Normal critical
: 0.10.21
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2008-09-12 12:44 UTC by Meng Sun
Modified: 2008-09-16 07:10 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
no unit tests if we cross compile (851 bytes, patch)
2008-09-15 14:29 UTC, Stefan Sauer (gstreamer, gtkdoc dev)
committed Details | Review

Description Meng Sun 2008-09-12 12:44:48 UTC
Steps to reproduce:
1. a package called 'check' is needed while compiling but cross-compile 'check' has different library output.
2. 
3. 


Stack trace:


Other information:
Comment 1 Stefan Sauer (gstreamer, gtkdoc dev) 2008-09-12 13:56:11 UTC
What is the problem?
Does configure fail? -> attach config.log
Does the build fail? -> paste the last part of the output
Comment 2 Stefan Sauer (gstreamer, gtkdoc dev) 2008-09-15 14:29:46 UTC
Created attachment 118756 [details] [review]
no unit tests if we cross compile

"make check" would not work anyway if one cross compiles.
Comment 3 Stefan Sauer (gstreamer, gtkdoc dev) 2008-09-15 14:31:15 UTC
Forgot to mention, the patch also remove the FLAGS output, which is inconsistent with other checks.
Comment 4 Stefan Sauer (gstreamer, gtkdoc dev) 2008-09-15 15:18:11 UTC
As decided on irc.

2008-09-15  Stefan Kost  <ensonic@users.sf.net>

	* configure.ac:
	  Do not probe availability of check unit test library when cross
	  compiling, as test would not work anyway. Also cleanup verbose output
	  of the check test. Fixes #551952.
Comment 5 David Schleef 2008-09-15 22:19:02 UTC
Just because you're cross compiling doesn't mean you can't run the resulting binaries.  IMO, the correct fix for this is to use pkgconfig to find check.  Unfortunately, the output of 'pkg-config --libs check' still needs a s/check/check_pic/.
Comment 6 Stefan Sauer (gstreamer, gtkdoc dev) 2008-09-16 07:10:58 UTC
Yeah, e.g. with qemu you could. I will file a bug against check regarding the -pic issue.