bug-gettext
[Top][All Lists]
Advanced

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

[bug-gettext] undefined reference to `stpncpy'


From: YuGiOhJCJ Mailing-List
Subject: [bug-gettext] undefined reference to `stpncpy'
Date: Wed, 12 Aug 2015 06:26:18 +0200

Hello,

I try to cross-compile gettext-0.19.5 (from a linux 32 bit to a windows 32 bit 
system).
No problem for compiling gettext-0.19.5 but for cross-compiling I have an error:
$ ./configure --prefix=/usr/i686-pc-mingw32 --host=i686-pc-mingw32
[...]
$ make
[...]
make[5]: Entering directory 
`/tmp/build/gettext-0.19.5/gettext-tools/libgettextpo'
/bin/sh ../libtool  --tag=CC   --mode=link i686-pc-mingw32-gcc -std=gnu99  -g 
-O2 -version-info 5:3:5 -rpath /usr/i686-pc-mingw32/lib ../intl/libintl.la 
-L/usr/i686-pc-mingw32/lib -liconv -R/usr/i686-pc-mingw32/lib  
-L/usr/i686-pc-mingw32/lib -liconv -R/usr/i686-pc-mingw32/lib 
-L/usr/i686-pc-mingw32/lib -lexpat -R/usr/i686-pc-mingw32/lib -lc -no-undefined 
-Wl,--export-all-symbols -Wl,--disable-auto-import -o libgettextpo.la -rpath 
/usr/i686-pc-mingw32/lib gettext-po.lo ../src/str-list.lo ../src/dir-list.lo 
../src/message.lo ../src/msgl-ascii.lo ../src/po-error.lo ../src/po-xerror.lo 
../src/write-catalog.lo ../src/write-po.lo ../src/open-catalog.lo 
../src/po-charset.lo ../src/po-lex.lo ../src/po-gram-gen.lo ../src/read-po.lo 
../src/read-catalog-abstract.lo ../src/read-catalog.lo ../src/plural-table.lo 
../src/format-c.lo ../src/format-sh.lo ../src/format-python.lo 
../src/format-python-brace.lo ../src/format-lisp.lo ../src/format-elisp.lo 
../src/format-librep.lo ../src/format-scheme.lo 
 ../src/format-java.lo ../src/format-javascript.lo ../src/format-csharp.lo 
../src/format-awk.lo ../src/format-pascal.lo ../src/format-ycp.lo 
../src/format-tcl.lo ../src/format-perl.lo ../src/format-perl-brace.lo 
../src/format-php.lo ../src/format-gcc-internal.lo 
../src/format-gfc-internal.lo ../src/format-qt.lo ../src/format-qt-plural.lo 
../src/format-kde.lo ../src/format-kde-kuit.lo ../src/format-boost.lo 
../src/format-lua.lo ../src/format.lo ../src/plural-exp.lo 
../src/plural-eval.lo ../src/msgl-check.lo ../src/sentence.lo 
../src/libexpat-compat.lo ../woe32dll/gettextpo-exports.lo libgnu.la 
libgettextpo.res.lo  
libtool: link: rm -fr  .libs/libgettextpo.dll.a
libtool: link: i686-pc-mingw32-gcc -std=gnu99 -shared  .libs/gettext-po.o 
../src/.libs/str-list.o ../src/.libs/dir-list.o ../src/.libs/message.o 
../src/.libs/msgl-ascii.o ../src/.libs/po-error.o ../src/.libs/po-xerror.o 
../src/.libs/write-catalog.o ../src/.libs/write-po.o 
../src/.libs/open-catalog.o ../src/.libs/po-charset.o ../src/.libs/po-lex.o 
../src/.libs/po-gram-gen.o ../src/.libs/read-po.o 
../src/.libs/read-catalog-abstract.o ../src/.libs/read-catalog.o 
../src/.libs/plural-table.o ../src/.libs/format-c.o ../src/.libs/format-sh.o 
../src/.libs/format-python.o ../src/.libs/format-python-brace.o 
../src/.libs/format-lisp.o ../src/.libs/format-elisp.o 
../src/.libs/format-librep.o ../src/.libs/format-scheme.o 
../src/.libs/format-java.o ../src/.libs/format-javascript.o 
../src/.libs/format-csharp.o ../src/.libs/format-awk.o 
../src/.libs/format-pascal.o ../src/.libs/format-ycp.o 
../src/.libs/format-tcl.o ../src/.libs/format-perl.o 
../src/.libs/format-perl-brace.o ../src/.libs/format-php.
 o ../src/.libs/format-gcc-internal.o ../src/.libs/format-gfc-internal.o 
../src/.libs/format-qt.o ../src/.libs/format-qt-plural.o 
../src/.libs/format-kde.o ../src/.libs/format-kde-kuit.o 
../src/.libs/format-boost.o ../src/.libs/format-lua.o ../src/.libs/format.o 
../src/.libs/plural-exp.o ../src/.libs/plural-eval.o ../src/.libs/msgl-check.o 
../src/.libs/sentence.o ../src/.libs/libexpat-compat.o 
../woe32dll/.libs/gettextpo-exports.o .libs/libgettextpo.res.o  
-Wl,--whole-archive ./.libs/libgnu.a -Wl,--no-whole-archive  
../intl/.libs/libintl.dll.a -L/usr/i686-pc-mingw32/lib 
/usr/i686-pc-mingw32/lib/libexpat.dll.a 
/tmp/build/gettext-0.19.5/gettext-tools/intl/.libs/libintl.dll.a 
/usr/i686-pc-mingw32/lib/libiconv.dll.a  -g -O2 -Wl,--export-all-symbols 
-Wl,--disable-auto-import   -o .libs/libgettextpo-0.dll 
-Wl,--enable-auto-image-base -Xlinker --out-implib -Xlinker 
.libs/libgettextpo.dll.a
../src/.libs/format-kde-kuit.o: In function `format_parse':
/tmp/build/gettext-0.19.5/gettext-tools/libgettextpo/../src/format-kde-kuit.c:227:
 undefined reference to `stpncpy'
collect2: error: ld returned 1 exit status
make[5]: *** [libgettextpo.la] Error 1
make[5]: Leaving directory 
`/tmp/build/gettext-0.19.5/gettext-tools/libgettextpo'
make[4]: *** [all] Error 2
make[4]: Leaving directory 
`/tmp/build/gettext-0.19.5/gettext-tools/libgettextpo'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/tmp/build/gettext-0.19.5/gettext-tools'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/tmp/build/gettext-0.19.5/gettext-tools'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/tmp/build/gettext-0.19.5'
make: *** [all] Error 2

Any idea how to solve this problem?

Thank you.
Best regards.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]