produce uncompilable source file

Bug #589967 reported by LI Daobing on 2010-06-05
This bug affects 1 person
Affects Status Importance Assigned to Milestone
gob2 (Ubuntu)

Bug Description

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)


the new upstream already fixed this problem.

LI Daobing (lidaobing) on 2010-06-05
Changed in gob2 (Ubuntu):
assignee: nobody → LI Daobing (lidaobing)
assignee: LI Daobing (lidaobing) → nobody
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
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) on 2010-07-08
description: updated
Martin Pitt (pitti) wrote :

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

LI Daobing (lidaobing) wrote :

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

Benjamin Drung (bdrung) wrote :


Jonathan Riddell (jr) wrote :

awaiting end of SRU freeze

Accepted gob2 into lucid-proposed, the package will build now and be available in a few hours. Please test and give feedback here. See 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
Matt Davey (mcdavey) wrote :

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

Martin Pitt (pitti) on 2010-08-18
tags: added: verification-done
removed: verification-needed
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
 -- LI Daobing <email address hidden> Wed, 14 Jul 2010 17:15:27 +0800

Changed in gob2 (Ubuntu Lucid):
status: Fix Committed → Fix Released

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:

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  Edit
Everyone can see this information.

Other bug subscribers