bug#12841: Make for AIX 8.20 fails with undefined symbol .rpl_malloc

2012-11-13 Thread Paul Eggert
On 11/12/2012 11:00 PM, Bernhard Voelker wrote: I'm not sure, but shouldn't the prime list src/primes.h depend on src/make-prime-list? I'd rather not do that, since that would mean every builder would have to build src/primes.h, and I'd rather that people used the one that's in the tarball, as

bug#12841: Make for AIX 8.20 fails with undefined symbol .rpl_malloc

2012-11-13 Thread Paul Eggert
Oops, sorry Bernhard, I confused you with Michael Felt, so the in your case in my previous message was wrong -- it should have been in Michael Felt's case.

bug#12841: Make for AIX 8.20 fails with undefined symbol .rpl_malloc

2012-11-13 Thread Bernhard Voelker
On 11/13/2012 04:46 PM, Paul Eggert wrote: On 11/12/2012 11:00 PM, Bernhard Voelker wrote: I'm not sure, but shouldn't the prime list src/primes.h depend on src/make-prime-list? I'd rather not do that, since that would mean every builder would have to build src/primes.h, and I'd rather that

bug#12841: Make for AIX 8.20 fails with undefined symbol .rpl_malloc

2012-11-13 Thread Eric Blake
On 11/13/2012 09:15 AM, Bernhard Voelker wrote: On 11/13/2012 04:46 PM, Paul Eggert wrote: On 11/12/2012 11:00 PM, Bernhard Voelker wrote: I'm not sure, but shouldn't the prime list src/primes.h depend on src/make-prime-list? I'd rather not do that, since that would mean every builder would

bug#12841: Make for AIX 8.20 fails with undefined symbol .rpl_malloc

2012-11-13 Thread Paul Eggert
On 11/13/2012 08:15 AM, Bernhard Voelker wrote: in which case will that file change? I mean, prime number are quite static, aren't they? :-) The file will change once we get practical machines with unsigned integers wider than 128 bits.

bug#12841: Make for AIX 8.20 fails with undefined symbol .rpl_malloc

2012-11-12 Thread Paul Eggert
On 11/11/2012 11:50 AM, Michael Felt wrote: FYI - the undef worked, make check completes Thanks, I've installed that patch. I also installed the more-ambitious one.

bug#12841: Make for AIX 8.20 fails with undefined symbol .rpl_malloc

2012-11-12 Thread Jim Meyering
Paul Eggert wrote: On 11/11/2012 11:50 AM, Michael Felt wrote: FYI - the undef worked, make check completes Thanks, I've installed that patch. I also installed the more-ambitious one. Thanks for addressing those problems. Did you intend to commit the generated primes.h? I noticed that right

bug#12841: Make for AIX 8.20 fails with undefined symbol .rpl_malloc

2012-11-12 Thread Paul Eggert
On 11/12/2012 08:12 PM, Jim Meyering wrote: Thanks for addressing those problems. Did you intend to commit the generated primes.h? I did, but I see now that I was mistaken. Thanks for catching that. I pushed the following further change, to fix it. A downside is that whoever generates

bug#12841: Make for AIX 8.20 fails with undefined symbol .rpl_malloc

2012-11-12 Thread Jim Meyering
Paul Eggert wrote: On 11/12/2012 08:12 PM, Jim Meyering wrote: Thanks for addressing those problems. Did you intend to commit the generated primes.h? I did, but I see now that I was mistaken. Thanks for catching that. I pushed the following further change, to fix it. A downside is that

bug#12841: Make for AIX 8.20 fails with undefined symbol .rpl_malloc

2012-11-12 Thread Bernhard Voelker
On 11/13/2012 06:19 AM, Paul Eggert wrote: I pushed the following further change, to fix it. Something seems to be not quite correct: $ make clean all [...] CC src/factor.o src/factor.c:679:1: error: 'WIDE_UINT_BITS' undeclared here (not in a function) src/factor.c:679:1:

bug#12841: Make for AIX 8.20 fails with undefined symbol .rpl_malloc

2012-11-11 Thread Pádraig Brady
On 11/11/2012 07:41 AM, Paul Eggert wrote: I think you can fix the bug by adding #undef malloc to the list of undefs in src/make-prime-list.c. You might want to give that a try. But this business with the primes has bitten us before, and I'd like to install the attached more-ambitious patch

bug#12841: Make for AIX 8.20 fails with undefined symbol .rpl_malloc

2012-11-11 Thread Paul Eggert
On 11/11/2012 07:04 AM, Pádraig Brady wrote: I notice that src/make-prime-list is made even if src/primes.h is present, is that intentional? No, but I don't know offhand how to turn that off (this is a bit of an automake corner, alas).

bug#12841: Make for AIX 8.20 fails with undefined symbol .rpl_malloc

2012-11-11 Thread Paul Eggert
On 11/11/2012 07:04 AM, Pádraig Brady wrote: Also for my own reference, after a `make maintainer-clean`, make-prime-list will best be generated with -Dwide_uint=__'unsigned __int128' Attached is a combined revised patch that attempts to automate that part. Doing this properly would require a

bug#12841: Make for AIX 8.20 fails with undefined symbol .rpl_malloc

2012-11-09 Thread Paul Eggert
On 11/08/2012 08:38 PM, Michael Felt wrote: ld: 0711-317 ERROR: Undefined symbol: .rpl_malloc Thanks for the bug report. Which command generated this diagnostic? Build with make V=1 to see. Come to think if it, it'd be helpful if you did a make clean followed by make V=1 and sent us the output

bug#12841: Make for AIX 8.20 fails with undefined symbol .rpl_malloc

2012-11-09 Thread Michael Felt
Working on what you requested. Last bit I have in a file is: ... GENlib/wctype.h CC src/make-prime-list.o CCLD src/make-prime-list On Fri, Nov 9, 2012 at 4:30 PM, Paul Eggert egg...@cs.ucla.edu wrote: On 11/08/2012 08:38 PM, Michael Felt wrote: ld: 0711-317 ERROR: Undefined

bug#12841: Make for AIX 8.20 fails with undefined symbol .rpl_malloc

2012-11-08 Thread Michael Felt
root@x104:[/data/prj/gnu/coreutils/coreutils-8.20]export FORCE_UNSAFE_CONFIGURE=1 root@x104:[/data/prj/gnu/coreutils/coreutils-8.20]CFLAGS=-O2 -qcpluscmt ./configure \ --prefix=/opt \ --sysconfdir=/var/coreutils/etc \ --sharedstatedir=/var/coreutils/com \