On 02/01/2013 06:11 AM, Paul Eggert wrote:
* modules/regex-tests, tests/test-regex.c: New files.
This fails to build with external gettext.
From Solaris 2.6:
depbase=`echo test-regex.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
gcc -std=gnu99 -DHAVE_CONFIG_H -I. -DGNULIB_STRICT_CHECKING=1
-I. -I. -I.. -I./.. -I../gllib -I./../g
llib -I/usr/tgcware/include -D_REENTRANT -g -O2 -MT test-regex.o -MD
-MP -MF $depbase.Tpo -c -o test-regex.o
test-regex.c &&\
mv -f $depbase.Tpo $depbase.Po
test-regex.c: In function 'main':
test-regex.c:58: warning: implicit declaration of function 'memset'
test-regex.c:58: warning: incompatible implicit declaration of built-in
function 'memset'
test-regex.c:78: warning: incompatible implicit declaration of built-in
function 'memset'
test-regex.c:94: warning: incompatible implicit declaration of built-in
function 'memset'
gcc -std=gnu99 -g -O2 -L/usr/tgcware/lib -Wl,-R,/usr/tgcware/lib -o
test-regex test-regex.o ../gllib/libgnu.a -lm -lm -lm -lm -lm -lm
Undefined first referenced
symbol in file
libintl_gettext ../gllib/libgnu.a(regex.o)
ld: fatal: Symbol referencing errors. No output written to test-regex
collect2: ld returned 1 exit status
make[4]: *** [test-regex] Error 1
-tgc