agenda.app version 0.41-2build1 failed to build on i386

Bug #765936 reported by Matthias Klose
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
agenda.app (Ubuntu)
Fix Released
High
Unassigned
Oneiric
Fix Released
High
Unassigned

Bug Description

agenda.app version 0.41-2build1 failed to build on i386
Link to failed build: https://launchpad.net/ubuntu/+archive/test-rebuild-20110413/+buildjob/2445237

Direct link to the build log: https://launchpad.net/ubuntu/+archive/test-rebuild-20110413/+buildjob/2445237/+files/buildlog_ubuntu-natty-i386.agenda.app_0.41-2build1_FAILEDTOBUILD.txt.gz

This log snippet might be of interest, since it triggered the matcher 'Purging chroot-autobuild'.
Excerpt 1496 lines into the build log:

./obj/SimpleAgenda.obj/RecurrenceRule.m.o: In function `-[RecurrenceRule(NSCoding) initWithCoder:]':
/build/buildd/agenda.app-0.41/RecurrenceRule.m:173: undefined reference to `icalrecurrencetype_from_string'
./obj/SimpleAgenda.obj/RecurrenceRule.m.o: In function `-[RecurrenceRule(NSCoding) encodeWithCoder:]':
/build/buildd/agenda.app-0.41/RecurrenceRule.m:169: undefined reference to `icalrecurrencetype_as_string'
./obj/SimpleAgenda.obj/NSString+SimpleAgenda.m.o: In function `+[NSString(SimpleAgenda) uuid]':
/build/buildd/agenda.app-0.41/NSString+SimpleAgenda.m:17: undefined reference to `uuid_generate'
/build/buildd/agenda.app-0.41/NSString+SimpleAgenda.m:18: undefined reference to `uuid_unparse'
collect2: ld returned 1 exit status
make[4]: *** [SimpleAgenda.app/./SimpleAgenda] Error 1
make[3]: *** [internal-app-run-compile-submake] Error 2
make[2]: *** [SimpleAgenda.all.app.variables] Error 2
make[1]: *** [internal-all] Error 2
make[1]: Leaving directory `/build/buildd/agenda.app-0.41'
make: *** [build-stamp] Error 2
dpkg-buildpackage: error: debian/rules build gave error exit status 2
******************************************************************************
Build finished at 20110418-2044
FAILED [dpkg-buildpackage died]
Purging chroot-autobuild/build/buildd/agenda.app-0.41

Related branches

Matthias Klose (doko)
Changed in agenda.app (Ubuntu):
importance: Undecided → High
Revision history for this message
Philippe Roussel (p-o-roussel) wrote :

Well, I would like to help but I don't know how...

Can I see the config.h file generated by configure ?

Also, why are there 2 libobjc referenced in the build logs ?

Revision history for this message
Matthias Klose (doko) wrote :

GCC-4.6 uses libobjc.so.3

Revision history for this message
Philippe Roussel (p-o-roussel) wrote :

Ok but apparently gnustep-gui uses libobjc.so.2 :

/usr/bin/ld: warning: libobjc.so.2, needed by /usr/lib/libgnustep-gui.so, may conflict with libobjc.so.3

Anyway, Natty seems to ship gcc 4.5 so can you please tell me for which environment this package is build and how can I reproduce it ?

Revision history for this message
Matthias Klose (doko) wrote :
Revision history for this message
Philippe Roussel (p-o-roussel) wrote : Re: [Bug 765936] Re: agenda.app version 0.41-2build1 failed to build on i386

Le mercredi 20 avril 2011 à 09:33 +0000, Matthias Klose a écrit :
> https://lists.ubuntu.com/archives/ubuntu-devel/2011-April/033040.html

Ok, you're not really helping here. I asked how I could reproduce this
problem (and also to see the config.h file) and your only answer is a
link to a message with no information ??

I took the time to download and install the latest natty cd in a vm to
try to reproduce this and guess what, apt-cache search gcc | grep 4.6
gives me nada. Am I supposed to guess what is the environment in which
the build fails ?

If you want me to look into this problem you could probably take the
time to answer my questions.

<rant>
FYI 3 months ago I filed a bug report about a font problem making every
GNUstep applications I tested crash on a fresh maverick install (I
discovered that because a user contacted me directly) with the art
backend and nobody responded. At the time I also tested the cairo
backend but this one crashed for another reason with a backtrace in
pixman. And now I have to fight to get informations about a problem in a
non existing ubuntu release ?
</rant>

Philippe

Revision history for this message
Matthias Klose (doko) wrote :

rant as you want.

please see the followup on the cited email for the instructions you are asking for.

Revision history for this message
Philippe Roussel (p-o-roussel) wrote :

Le mercredi 20 avril 2011 à 21:33 +0000, Matthias Klose a écrit :
> rant as you want.

Thanks, I certainly will.

> please see the followup on the cited email for the instructions you are
> asking for.

Great.

Revision history for this message
Philippe Roussel (p-o-roussel) wrote :

Le mercredi 20 avril 2011 à 21:33 +0000, Matthias Klose a écrit :
> rant as you want.
>
> please see the followup on the cited email for the instructions you are
> asking for.

Try the appended patch.

This just moves the '-lical -luuid' part of the link command near the
end of the line. I don't know if the problem comes from gcc or ld and I
guess (or hope) that the last release of gnustep-make workaround this
problem.

Of course the resulting application crashes on startup, probably because
it's linked with libobjc.3.so when gnustep-base and gui use
libobjc.2.so, but hey, I guess it's not important.

Philippe

Revision history for this message
Philippe Roussel (p-o-roussel) wrote :

Update : with the latest gnustep-make release, the '-lical -luuid' linker flags are located at the end of the command without modifications to GNUmakefile.preamble.

This is not a bug in SimpleAgenda (or agenda.app if you prefer).

tags: added: patch
description: updated
Changed in agenda.app (Ubuntu):
milestone: none → oneiric-alpha-3
Revision history for this message
Philippe Roussel (p-o-roussel) wrote :

I think I gave the solution to this problem, even if the patch I
provided is not fully correct.

Is there something I can do to help close the bug fot good ?

Revision history for this message
Philippe Roussel (p-o-roussel) wrote :

This second patch fixes the build problem in a nicer way.

But the main problem of mixing libobjc2 with libobjc3 and libgnustep-base.1.20 with libgnustep-base.1.22 remains.

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package agenda.app - 0.41-2ubuntu1

---------------
agenda.app (0.41-2ubuntu1) oneiric; urgency=low

  * Apply patch from Philippe Roussel <p.o.roussel AT free.fr> to
    fix a FTBFS caused by wrong order of arguments to ld. (LP: #765936)
 -- Andreas Moog <email address hidden> Sun, 19 Jun 2011 16:28:20 +0000

Changed in agenda.app (Ubuntu Oneiric):
status: New → Fix Released
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.