pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Problems with sysutils/coreutils

On Wed, 12 Feb 2014 07:15:07 +0900, Thomas Klausner <> 

I've tried on NetBSD-6.0.1/amd64 and can reproduce the problem.
For some reason, the configure script thinks that strncat is broken.

configure:21990: checking whether strncat works
configure:22076: gcc -std=gnu99 -o conftest -O2 -I/usr/include -I/usr/include 
-L/usr/lib -Wl,-R/usr/lib -Wl,-R/usr/pkg/lib conftest.c  >&5
configure:22076: $? = 0
configure:22076: ./conftest
configure:22076: $? = 3

The program it's running is attached with an additional printf to
print dest. I can't reproduce the exit code 3 with that though, so I'm
a bit confused what's happening here.


optimization bug?
I can reproduce with -O2, but not happened without it.

(We could force the configure script to accept NetBSD's strncat by
setting some magic autoconf variable, perhaps that's the easiest

Or put following before declaration of "strncat" in lib/strncat.c?
#undef strncat

OBATA Akio /

Home | Main Index | Thread Index | Old Index