GNU bug report logs - #7191
Gnulib failing to compile on Ubuntu 10.10

Previous Next

Package: coreutils;

Reported by: William Plusnick <pwplusnick2 <at> gmail.com>

Date: Mon, 11 Oct 2010 23:16:02 UTC

Severity: normal

Done: Jim Meyering <jim <at> meyering.net>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 7191 in the body.
You can then email your comments to 7191 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to owner <at> debbugs.gnu.org, bug-coreutils <at> gnu.org:
bug#7191; Package coreutils. (Mon, 11 Oct 2010 23:16:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to William Plusnick <pwplusnick2 <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-coreutils <at> gnu.org. (Mon, 11 Oct 2010 23:16:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: William Plusnick <pwplusnick2 <at> gmail.com>
To: bug-coreutils <at> gnu.org
Subject: Gnulib failing to compile on Ubuntu 10.10
Date: Mon, 11 Oct 2010 18:18:20 -0500
[Message part 1 (text/plain, inline)]
The latest version of Ubuntu 10.10 is not building the Coreutils. It appears
to fail due getopt. I ran:
$ git pull
$ make clean
$ ./bootstrap
$ ./configure
$ make

and get this error:
  CC     xstrtoimax.o
In file included from xstrtol.h:22,
                 from xstrtol.c:31,
                 from xstrtoimax.c:6:
./getopt.h:196: error: redefinition of 'struct option'
./getopt.h:242: error: conflicting types for 'getopt_long'
/usr/include/getopt.h:175: note: previous declaration of 'getopt_long' was
here
./getopt.h:246: error: conflicting types for 'getopt_long_only'
/usr/include/getopt.h:179: note: previous declaration of 'getopt_long_only'
was here
make[4]: *** [xstrtoimax.o] Error 1

I can try to solve it, but I'm a pretty bad programmer (maybe someday that
will change), so most likely someone else will solve it before I do.

William

P.S. Here is my gcc version:
$ gcc --version
gcc (Ubuntu/Linaro 4.4.4-14ubuntu5) 4.4.5
[Message part 2 (text/html, inline)]

Information forwarded to owner <at> debbugs.gnu.org, bug-coreutils <at> gnu.org:
bug#7191; Package coreutils. (Tue, 12 Oct 2010 11:39:02 GMT) Full text and rfc822 format available.

Message #8 received at 7191 <at> debbugs.gnu.org (full text, mbox):

From: Jim Meyering <jim <at> meyering.net>
To: William Plusnick <pwplusnick2 <at> gmail.com>
Cc: 7191 <at> debbugs.gnu.org
Subject: Re: bug#7191: Gnulib failing to compile on Ubuntu 10.10
Date: Tue, 12 Oct 2010 13:42:06 +0200
William Plusnick wrote:

> The latest version of Ubuntu 10.10 is not building the Coreutils. It appears
> to fail due getopt. I ran:
> $ git pull
> $ make clean
> $ ./bootstrap
> $ ./configure
> $ make
>
> and get this error:
>   CC     xstrtoimax.o
> In file included from xstrtol.h:22,
>                  from xstrtol.c:31,
>                  from xstrtoimax.c:6:
> ./getopt.h:196: error: redefinition of 'struct option'
> ./getopt.h:242: error: conflicting types for 'getopt_long'
> /usr/include/getopt.h:175: note: previous declaration of 'getopt_long' was
> here
> ./getopt.h:246: error: conflicting types for 'getopt_long_only'
> /usr/include/getopt.h:179: note: previous declaration of 'getopt_long_only'
> was here
> make[4]: *** [xstrtoimax.o] Error 1
>
> I can try to solve it, but I'm a pretty bad programmer (maybe someday that
> will change), so most likely someone else will solve it before I do.

Thanks for the report.
Did you try with the latest snapshot?

    http://meyering.net/cu/coreutils-ss.tar.xz
    http://meyering.net/cu/coreutils-ss.tar.gz

If that fails, too, please let us know ASAP,
since I'm making the next release any day now.




Information forwarded to owner <at> debbugs.gnu.org, bug-coreutils <at> gnu.org:
bug#7191; Package coreutils. (Tue, 12 Oct 2010 12:17:02 GMT) Full text and rfc822 format available.

Message #11 received at 7191 <at> debbugs.gnu.org (full text, mbox):

From: William Plusnick <pwplusnick2 <at> gmail.com>
To: 7191 <at> debbugs.gnu.org
Subject: Re: bug#7191: Gnulib failing to compile on Ubuntu 10.10
Date: Tue, 12 Oct 2010 07:19:45 -0500
[Message part 1 (text/plain, inline)]
[Forgot to keep the list in know...]

I tried it about 2 days ago and it worked fine. Just to be sure, I
re-downloaded it and am now in the process of building. When was this
snapshot taken? That will help us weed out what changes could be the
culprits.

William

-- 
"Once GNU is written, everyone will be able to obtain good system software
free, just like air."-- RMS in the GNU Manifesto
[Message part 2 (text/html, inline)]

Information forwarded to owner <at> debbugs.gnu.org, bug-coreutils <at> gnu.org:
bug#7191; Package coreutils. (Tue, 12 Oct 2010 12:18:01 GMT) Full text and rfc822 format available.

Message #14 received at 7191 <at> debbugs.gnu.org (full text, mbox):

From: William Plusnick <pwplusnick2 <at> gmail.com>
To: 7191 <at> debbugs.gnu.org
Subject: Re: bug#7191: Gnulib failing to compile on Ubuntu 10.10
Date: Tue, 12 Oct 2010 07:21:10 -0500
[Message part 1 (text/plain, inline)]
[Forgot to keep the list in the know...]

The snapshot builds fine, and passes the tests with the following: All 210
tests passed (17 tests were not run).

So it appears we need to look for the last few days changes to be the change
that broke it.

William
[Message part 2 (text/html, inline)]

Information forwarded to owner <at> debbugs.gnu.org, bug-coreutils <at> gnu.org:
bug#7191; Package coreutils. (Tue, 12 Oct 2010 12:44:02 GMT) Full text and rfc822 format available.

Message #17 received at 7191 <at> debbugs.gnu.org (full text, mbox):

From: Jim Meyering <jim <at> meyering.net>
To: William Plusnick <pwplusnick2 <at> gmail.com>
Cc: 7191 <at> debbugs.gnu.org
Subject: Re: bug#7191: Gnulib failing to compile on Ubuntu 10.10
Date: Tue, 12 Oct 2010 14:47:14 +0200
William Plusnick wrote:
> [Forgot to keep the list in know...]
>
> I tried it about 2 days ago and it worked fine. Just to be sure, I

"it" == snapshot?  There's been only one (on Oct 10) since coreutils-8.5.
And it has not changed.

The preceding snapshot was coreutils-8.4.100-81926.tar.xz, from April.

> re-downloaded it and am now in the process of building. When was this
> snapshot taken? That will help us weed out what changes could be the
> culprits.




Information forwarded to owner <at> debbugs.gnu.org, bug-coreutils <at> gnu.org:
bug#7191; Package coreutils. (Wed, 13 Oct 2010 13:16:02 GMT) Full text and rfc822 format available.

Message #20 received at 7191 <at> debbugs.gnu.org (full text, mbox):

From: William Plusnick <pwplusnick2 <at> gmail.com>
To: Jim Meyering <jim <at> meyering.net>
Cc: "7191 <at> debbugs.gnu.org" <7191 <at> debbugs.gnu.org>
Subject: Re: bug#7191: Gnulib failing to compile on Ubuntu 10.10
Date: Wed, 13 Oct 2010 08:18:57 -0500
On Tuesday, October 12, 2010, Jim Meyering <jim <at> meyering.net> wrote:
> William Plusnick wrote:
>> [Forgot to keep the list in know...]
>>
>> I tried it about 2 days ago and it worked fine. Just to be sure, I
>
> "it" == snapshot?  There's been only one (on Oct 10) since coreutils-8.5.
> And it has not changed.
Yes, it == snapshot. When I said changes I was the referring to
changes to the repository since the snapshot was taken. (I am assuming
it is a snapshot of the repository.) The snapshot I used is definitely
8.5, which build fine. Sorry for any ambiguity.

William




Information forwarded to owner <at> debbugs.gnu.org, bug-coreutils <at> gnu.org:
bug#7191; Package coreutils. (Wed, 13 Oct 2010 14:55:01 GMT) Full text and rfc822 format available.

Message #23 received at 7191 <at> debbugs.gnu.org (full text, mbox):

From: William Plusnick <pwplusnick2 <at> gmail.com>
To: Jim Meyering <jim <at> meyering.net>
Cc: "7191 <at> debbugs.gnu.org" <7191 <at> debbugs.gnu.org>
Subject: Re: bug#7191: Gnulib failing to compile on Ubuntu 10.10
Date: Wed, 13 Oct 2010 09:58:03 -0500
[Message part 1 (text/plain, inline)]
commit 9f4744534f1de87b9630dfbde91b9ebd9592d056
Author: Jim Meyering <meyering <at> redhat.com>
Date:   Mon Oct 11 22:41:12 2010 +0200

    build: update gnulib to latest; to fix failing Solaris 5.11 test

Just from looking at the git log, this appears to be the change that broke
the build for Ubuntu since it is gnulib that is actually failing to build
and not the Coreutils proper. The reason I believe it is this particular
change is because this is the only change to gnulib since the snapshot for
8.5 was taken on Oct 10. I will try to find exactly what is causing getopt
to throw an error.

Sorry for my relative lateness in further investigating this issue, I had to
be at school for 13 hours yesterday and they don't even have a *nix box. (Or
one I can access, anyway.)

William
[Message part 2 (text/html, inline)]

Information forwarded to owner <at> debbugs.gnu.org, bug-coreutils <at> gnu.org:
bug#7191; Package coreutils. (Wed, 13 Oct 2010 16:21:01 GMT) Full text and rfc822 format available.

Message #26 received at 7191 <at> debbugs.gnu.org (full text, mbox):

From: William Plusnick <pwplusnick2 <at> gmail.com>
To: Jim Meyering <jim <at> meyering.net>
Cc: "7191 <at> debbugs.gnu.org" <7191 <at> debbugs.gnu.org>
Subject: Re: bug#7191: Gnulib failing to compile on Ubuntu 10.10
Date: Wed, 13 Oct 2010 11:23:47 -0500
[Message part 1 (text/plain, inline)]
It seems that just removing my local repository and cloning it again fixed
the problem. I wonder if a local change didn't get removed correctly from an
old local branch or something?

In short, the problem seems to have been a local issue and now builds/passes
the tests. Sorry for the false alarm.

William
[Message part 2 (text/html, inline)]

Reply sent to Jim Meyering <jim <at> meyering.net>:
You have taken responsibility. (Wed, 13 Oct 2010 16:27:02 GMT) Full text and rfc822 format available.

Notification sent to William Plusnick <pwplusnick2 <at> gmail.com>:
bug acknowledged by developer. (Wed, 13 Oct 2010 16:27:02 GMT) Full text and rfc822 format available.

Message #31 received at 7191-done <at> debbugs.gnu.org (full text, mbox):

From: Jim Meyering <jim <at> meyering.net>
To: William Plusnick <pwplusnick2 <at> gmail.com>
Cc: 7191-done <at> debbugs.gnu.org
Subject: Re: bug#7191: Gnulib failing to compile on Ubuntu 10.10
Date: Wed, 13 Oct 2010 18:29:50 +0200
William Plusnick wrote:
> It seems that just removing my local repository and cloning it again fixed the
> problem. I wonder if a local change didn't get removed correctly from an old
> local branch or something?
>
> In short, the problem seems to have been a local issue and now builds/passes the
> tests. Sorry for the false alarm.

Thanks for letting us know.
I'm closing this ticket.




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Thu, 11 Nov 2010 12:24:04 GMT) Full text and rfc822 format available.

This bug report was last modified 14 years and 223 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.