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 656092 - Commandline specified in "compilling helloworld" does not work on new gcc
Commandline specified in "compilling helloworld" does not work on new gcc
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: documentation
unspecified
Other Linux
: Normal trivial
: 0.10.36
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2011-08-06 23:39 UTC by Marcin Lewandowski
Modified: 2011-08-15 12:24 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Marcin Lewandowski 2011-08-06 23:39:48 UTC
Ubuntu 11.10 (oneiric, currently at alpha stage) uses gcc 4.6.

It requires to pass objects commandline arguments before libraries. It means that current command specified in the "Compiling and Running helloworld.c" chapter:

gcc -Wall $(pkg-config --cflags --libs gstreamer-0.10) helloworld.c -o helloworld

results in a bunch of "undefined reference" linker errors while

gcc -Wall helloworld.c -o helloworld $(pkg-config --cflags --libs gstreamer-0.10) 

works well.
Comment 1 Tim-Philipp Müller 2011-08-07 08:17:01 UTC
commit e77098101fc51a7f42d7f5eaee0ff1350744cb56
Author: Tim-Philipp Müller <tim.muller@collabora.co.uk>
Date:   Sun Aug 7 09:14:50 2011 +0100

    docs: fix helloworld compile command line for newer gcc
    
    https://bugzilla.gnome.org/show_bug.cgi?id=656092
Comment 2 Stefan Sauer (gstreamer, gtkdoc dev) 2011-08-07 10:06:17 UTC
bah, why do they break backwards compatibility like that :/
Comment 3 Stefan Sauer (gstreamer, gtkdoc dev) 2011-08-07 10:19:19 UTC
Marcin, is that change in the behavior upstream (can't see it mentioned in http://gcc.gnu.org/gcc-4.6/changes.html) or ubuntu specific? just curious.
Comment 4 Marcin Lewandowski 2011-08-15 12:24:28 UTC
I don't know, I've tested that only on ubuntu oneiric...