produce uncompilable source file

Bug #589967 reported by LI Daobing
12
This bug affects 1 person
Affects Status Importance Assigned to Milestone
gob2 (Ubuntu)
Fix Released
Undecided
Unassigned
Lucid
Fix Released
Undecided
Unassigned

Bug Description

impact:
generate uncompilable code under amd64

the development branch has ship 2.0.17, which has fixed this bug.

patch in attachment.

How to reproduce this bug (only can reproduced under amd64):

$ cat a-foo.gob
class A:Foo from G:Object {
}
$ gob2 a-foo.gob
$ gcc -c `pkg-config --cflags glib-2.0` a-foo.c
./a-foo.gob:0: error: expected ‘)’ before ‘*’ token
a-foo.c: In function ‘a_foo_get_type’:
a-foo.c:56: error: ‘a_foo_class_init’ undeclared (first use in this function)
a-foo.c:56: error: (Each undeclared identifier is reported only once
a-foo.c:56: error: for each function it appears in.)
a-foo.c: At top level:
a-foo.c:95: error: expected ‘)’ before ‘*’ token

this bug is cauded by misusing of strcpy, detail information in [1] (including a patch)

[1] http://permalink.gmane.org/gmane.comp.gnome.devtools.gob.general/119

the new upstream already fixed this problem.

LI Daobing (lidaobing)
Changed in gob2 (Ubuntu):
assignee: nobody → LI Daobing (lidaobing)
assignee: LI Daobing (lidaobing) → nobody
Revision history for this message
Stephen Kitt (steve-sk2) wrote :

This is fixed in 2.0.17-1 which has just been synced to Ubuntu.

Changed in gob2 (Ubuntu):
status: New → Fix Released
Revision history for this message
pauljohn32 (pauljohn32) wrote :

Why doesn't this appear in Ubuntu updates now? I just wasted a whole day chasing typographical errors in code that were inserted by gob2. I had the exact same kinds of things the OP referred to. Class -> Clsss and so forth.

LI Daobing (lidaobing)
description: updated
Revision history for this message
Martin Pitt (pitti) wrote :

SRU ack, subscribed sponsors. Please fix the upload target from "lucid" to "lucid-proposed", though. Thanks!

Revision history for this message
LI Daobing (lidaobing) wrote :

re-upload debdiff, change target from lucid to lucid-proposed.

Revision history for this message
Benjamin Drung (bdrung) wrote :

uploaded

Revision history for this message
Jonathan Riddell (jr) wrote :

awaiting end of SRU freeze

Revision history for this message
Martin Pitt (pitti) wrote : Please test proposed package

Accepted gob2 into lucid-proposed, the package will build now and be available in a few hours. Please test and give feedback here. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation how to enable and use -proposed. Thank you in advance!

Changed in gob2 (Ubuntu Lucid):
status: New → Fix Committed
tags: added: verification-needed
Revision history for this message
Matt Davey (mcdavey) wrote :

This worked for me. Fixed very annoying string corruption. Thanks.

Martin Pitt (pitti)
tags: added: verification-done
removed: verification-needed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package gob2 - 2.0.16-1ubuntu0.1

---------------
gob2 (2.0.16-1ubuntu0.1) lucid-proposed; urgency=low

  * fix produce uncompilable source file under amd64 (LP: #589967)
    - patch from
      http://permalink.gmane.org/gmane.comp.gnome.devtools.gob.general/119
 -- LI Daobing <email address hidden> Wed, 14 Jul 2010 17:15:27 +0800

Changed in gob2 (Ubuntu Lucid):
status: Fix Committed → Fix Released
Revision history for this message
Adrien Laurent (adrien-laurent) wrote : you`ve got new mail from me?

Nadezhda 25 yo - I search for Real boyfriend

Hello! I am Nadezhda, 25 yo.
I search for Real boyfriend.
Are you ready for relations?
please check my profile here:

http://brides-hot.ru

Note!
New free service! check info at the site!
( to unsubscribe -click link and enter e-mail address.)

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.