You are not logged in.

#1 2008-07-17 15:49:46

IncredibleLaser
Member
From: Germany, NRW
Registered: 2008-07-16
Posts: 158

acpid does not compile with latest version of gcc

See title. It can be fixed by adding "-D_GNU_SOURCE" to the CFLAGS in the MAKEFILE. I used diff and patch to patch the makefile automatically, but berhaps someone knows a better way to do this. If you're lazy and think this is the right way, my patchfile looks like this:

24c24
< CFLAGS = -Wall -Werror -g $(DEFS)
---
> CFLAGS = -D_GNU_SOURCE -Wall -Werror -g $(DEFS)

My build-section in the PKGBUILD looks like this:

  cd $startdir/src/$pkgname-$pkgver
  patch Makefile < ../gcc-4.3-patch.diff
  /usr/bin/make || return 1

...and so on (it't the one from ABS).

Offline

#2 2008-07-18 05:38:59

Snowman
Developer/Forum Fellow
From: Montreal, Canada
Registered: 2004-08-20
Posts: 5,212

Re: acpid does not compile with latest version of gcc

Please submit a bug report if it hasn't been done already.

Offline

#3 2008-07-18 12:56:16

IncredibleLaser
Member
From: Germany, NRW
Registered: 2008-07-16
Posts: 158

Re: acpid does not compile with latest version of gcc

I reported the bug upstream. Should i still file a bug report for the Makefile or do you just wait for the new version to come out, as there is a precompiled and working version available?

Offline

#4 2008-07-19 05:19:38

Snowman
Developer/Forum Fellow
From: Montreal, Canada
Registered: 2004-08-20
Posts: 5,212

Re: acpid does not compile with latest version of gcc

IncredibleLaser wrote:

I reported the bug upstream. Should i still file a bug report for the Makefile or do you just wait for the new version to come out, as there is a precompiled and working version available?

Yes. That way the maintainer for that package will be aware of this problem and of the needed fix.

Offline

Board footer

Powered by FluxBB