[uClibc]undefined reference to `stpncpy'

Erik Andersen andersen at lineo.com
Sat Aug 11 04:18:28 UTC 2001


On Fri Aug 10, 2001 at 10:36:47PM -0500, boris at microtrader.com wrote:
> I have noticed that compiling a few programs that I keep getting "undefined 
> reference to stpncpy". Any idea on how to fix this or if uclibc will fix this? 
> [or add it]
> 
> Example: 
> gcc -Wall -g -O2 -D_GNU_SOURCE -Wall -Wpointer-arith -Wstrict-prototypes -Wmissi
> ng-prototypes -Wno-char-subscripts -o test1 -static test1.o  ./.libs/libpopt.a
> ./.libs/libpopt.a(popthelp.o): In function `singleOptionDefaultValue':
> /tmp/rpm-4.0.3/popt/popthelp.c:125: undefined reference to `stpncpy'
> collect2: ld returned 1 exit status
> make[4]: *** [test1] Error 1

I just wrote and committed it for you... 

 -Erik

--
Erik B. Andersen   email:  andersen at lineo.com
--This message was written using 73% post-consumer electrons--





More information about the uClibc mailing list