Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 466160 - >=sys-apps/systemd-200 compile error
Summary: >=sys-apps/systemd-200 compile error
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo systemd Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-04-16 20:51 UTC by dieter ferdinand
Modified: 2013-07-13 21:06 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build log succesfull compiled gziped (systemd.log.gz,79.94 KB, application/octet-stream)
2013-04-17 15:45 UTC, dieter ferdinand
Details
build log error gziped (systemd-error.log.gz,30.08 KB, application/octet-stream)
2013-04-17 15:46 UTC, dieter ferdinand
Details

Note You need to log in before you can comment on or make changes to this bug.
Description dieter ferdinand 2013-04-16 20:51:14 UTC
hello,
for all new version of systemd, i get a compile-error because a type is defined two times for a source-file.

i try to resolve the problem, but then i get an other problem.

i will use the version 198-r1 as long i can't compiler a newer version.

goodby

Reproducible: Always

Actual Results:  
var/tmp/portage/sys-apps/systemd-201/work/systemd-201/src/core/unit.h:28:21: note: previous declaration of 'Unit' was here
In file included from /var/tmp/portage/sys-apps/systemd-201/work/systemd-201/src/core/unit.h:39:0,
                 from /var/tmp/portage/sys-apps/systemd-201/work/systemd-201/src/core/job.c:30:
/var/tmp/portage/sys-apps/systemd-201/work/systemd-201/src/core/execute.h:39:21: error: redefinition of typedef 'Unit'
Comment 1 dieter ferdinand 2013-04-17 15:15:06 UTC
hello,
it seems, that this problem only is on update.

on a new installed system, i can compile systemd-201 without problems, but i don't know, why it is not possible to update a system with systemd-198 to systemd-201.

i will try to find out why.

goodby
Comment 2 dieter ferdinand 2013-04-17 15:45:36 UTC
Created attachment 345800 [details]
build log succesfull compiled gziped
Comment 3 dieter ferdinand 2013-04-17 15:46:12 UTC
Created attachment 345802 [details]
build log error gziped
Comment 4 dieter ferdinand 2013-04-17 18:57:59 UTC
hello,
i find the reason for this problem:
systemd--2xx can only compiled with the newest gcc:
 [1] i586-pc-linux-gnu-4.5.4
 [2] i586-pc-linux-gnu-4.6.3 *

goodby
Comment 5 Tom Wijsman (TomWij) (RETIRED) gentoo-dev 2013-04-17 19:54:20 UTC
So, the developers need to fix it or change the dependency; please don't mark this bug as resolved as long as other users can still experience this.
Comment 6 Mike Gilbert gentoo-dev 2013-04-17 21:19:02 UTC
I can confirm the build failure with gcc-4.5.3.

Should we add a pkg_pretend check for it?
Comment 7 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2013-04-18 05:25:20 UTC
I've added a version check to -201 and -9999 for testing. Not sure if it doesn't affect non-gcc compilers which were able to build systemd. I'll backport it to 200-r2 when I have a complete patchset for it.
Comment 8 Mike Gilbert gentoo-dev 2013-07-13 21:06:40 UTC
systemd-200-r2 is no longer in the tree.