Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 354579 - net-libs/loudmouth-1.4.3-r1: failed to compile
Summary: net-libs/loudmouth-1.4.3-r1: failed to compile
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Gentoo Linux Gnome Desktop Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-02-12 08:24 UTC by Quasimodo
Modified: 2011-06-20 14:08 UTC (History)
1 user (show)

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


Attachments
build.log (build.log,10.04 KB, text/plain)
2011-02-12 08:27 UTC, Quasimodo
Details
emerge --info (emerge.info,5.20 KB, text/plain)
2011-02-12 11:10 UTC, Quasimodo
Details
Makefile (Makefile,26.27 KB, text/plain)
2011-06-19 18:48 UTC, Quasimodo
Details
autoreconf logfile from the broken build system (log.broken,194.77 KB, text/plain)
2011-06-20 04:02 UTC, Quasimodo
Details
autoreconf logfile from the working build system (log.working,173.23 KB, text/plain)
2011-06-20 04:08 UTC, Quasimodo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Quasimodo 2011-02-12 08:24:14 UTC
revdep-rebuild was trying to reinstall loudmouth which fails with:

Makefile:207: *** commands commence before first target.  Stop.


Reproducible: Always

Steps to Reproduce:




The working installation of loudmoth is of 13/07/2010 which is before the update of sys-devel/make-3.81-r2 (11/08/2010). So maybe there was a change in behavior of make?
Comment 1 Quasimodo 2011-02-12 08:27:28 UTC
Created attachment 262207 [details]
build.log

build.log of loudmouth with additional LC_ALL="C" FEATURES="" MAKEOPTS="-j1" to disable parallel compile and distcc
Comment 2 Pacho Ramos gentoo-dev 2011-02-12 11:04:40 UTC
Please provide emerge --info
Comment 3 Quasimodo 2011-02-12 11:10:36 UTC
Created attachment 262223 [details]
emerge --info
Comment 4 Pacho Ramos gentoo-dev 2011-02-12 11:23:19 UTC
I am surprised since I also have make-3.81-r2 and doesn't fail for me :-|, please attach build.log after dropping "-s" option in your MAKEOPTS
Comment 5 Pacho Ramos gentoo-dev 2011-02-12 11:24:00 UTC
(In reply to comment #4)
> please attach build.log after dropping "-s" option in your MAKEOPTS
> 

Well, this shouldn't be needed as I see you already compiled it only with -j1 :-S
Comment 6 Quasimodo 2011-02-12 13:28:47 UTC
Yes, and it didn't even start to compile because make is bailing out during parsing the makefile (?).
Comment 7 Quasimodo 2011-02-12 13:36:41 UTC
OK, I've messed around with the Makefiles to narrow down th problem and found the following: In more than one Makefile there is a variable called PACKAGE_COPYRIGHT, which seems to be the problem. it is set to

-- snip --
PACKAGE_COPYRIGHT =
        Copyright (C) 2003-2007 Imendio AB
        Copyright (C) 2007 Collabora Ltd
        Copyright (C) 2007 Nokia Corporation

-- snip --

which seems to be not a correct syntax because eleminating this line lets make continue.
Comment 8 Quasimodo 2011-02-12 13:45:09 UTC
Now it's confirmed. Deleting the PACKAGE_COPYRIGHT lines in all Makefiles and the package will compile.
Comment 9 Pacho Ramos gentoo-dev 2011-06-04 10:31:46 UTC
I don't understand why I cannot reproduce this even if I have the same versions for make and co. than you :(
Comment 10 Pacho Ramos gentoo-dev 2011-06-04 18:35:21 UTC
Is this still failing for you on a fully updated system?
Comment 11 Quasimodo 2011-06-05 16:42:07 UTC
Yes, it is
Comment 12 Quasimodo 2011-06-08 07:47:11 UTC
Well, now I have a similar problem with net-misc/curl-7.21.4. So it seems to be a problem with something in the build environment. I have rebuild all of automake, autoconf, libtools, binutils and make, but no luck.

Strange thing is, on my other amd64 system with almost the same setup (other packages installed, no X) it is working. Any ideas? Couldn't find anything in the forum and have no idea how to file a bug report for that.
Comment 13 Pacho Ramos gentoo-dev 2011-06-19 12:00:58 UTC
Maybe make maintainers have an idea about where could be the problem...
Comment 14 SpanKY gentoo-dev 2011-06-19 17:51:16 UTC
post the Makefile from the build dir as an attachment
Comment 15 Quasimodo 2011-06-19 18:48:50 UTC
Created attachment 277551 [details]
Makefile

Look for PACKAGE_COPYRIGHT
Comment 16 SpanKY gentoo-dev 2011-06-19 22:41:27 UTC
the question is what is installing PACKAGE_COPYRIGHT.  the PACKAGE_* things generally originate from autoconf itself based on things like AC_INIT.  but autoconf on my systems dont refer to PACKAGE_COPYRIGHT anywhere that i can see.  so what is causing it to show up on yours ?

go into the build dir (where configure is located) and run:
autoreconf -i -f -v -d >& log

then create a tar of that log file and the autom4te.cache subdir as an attachment
Comment 17 Quasimodo 2011-06-20 04:02:34 UTC
Created attachment 277563 [details]
autoreconf logfile from the broken build system
Comment 18 Quasimodo 2011-06-20 04:08:02 UTC
Created attachment 277565 [details]
autoreconf logfile from the working build system
Comment 19 Quasimodo 2011-06-20 04:36:56 UTC
OK, now we're talking...

After a look into the autoconf logs I found that my boken system is importing /usr/share/aclocal/libnih.m4 for aclocal. That seems to be the problem because as stated in the macro file (207-211):

# AC_COPYRIGHT
# -------------
# Wraps the Autoconf AC_COPYRIGHT but also defines PACKAGE_COPYRIGHT,
# required for nih_main_init

I don't even have this file on the working system because I don't have sys-libs/libnih. It seems that the sys-libs/libnih-1.0.1 is installing a broken m4 macro. I've manually exchanged it by the macro file from sys-libs/libnih-1.0.3, which seems to be fixed. 

Make is working again and loudmouth and curl are building again.

Thx for your help.
Comment 20 SpanKY gentoo-dev 2011-06-20 04:43:40 UTC
yes, that m4 should not be installed.  libnih isnt in the tree that i can see, otherwise we'd file a bug about it.  if you could take it up with upstream about now installing the m4, that'd be great.
Comment 21 Quasimodo 2011-06-20 04:50:48 UTC
Sorry, I can't follow you now...

Upstream already fixed the file in the newer versions. So I don't think, they will change the 1.0.1 version for that. Or did I missunderstood you...
Comment 22 Pacho Ramos gentoo-dev 2011-06-20 08:42:18 UTC
Thanks a lot SpanKY
Comment 23 SpanKY gentoo-dev 2011-06-20 12:52:34 UTC
(In reply to comment #21)

upstream should not be installing any m4 file that overrides AC_COPYRIGHT.  if they want to do that in their own package, then they should be using something like acinclude.m4 or a dedicated m4 files.  any m4 files that they include in the installed fileset has to be clean and not override/conflict any standard macros.

libnih isnt in the tree so i cant quickly check to see what they're doing.  i'm lazy if there's no ebuild :P.
Comment 24 Quasimodo 2011-06-20 14:08:19 UTC
I could send you an ebuild for 1.0.1 and 1.0.3, if you like.