[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
fail.at failing on HP-UX
From: |
Albert Chin |
Subject: |
fail.at failing on HP-UX |
Date: |
Sun, 30 Apr 2006 10:00:46 -0500 |
User-agent: |
Mutt/1.5.6i |
I'm getting the following test failure from HEAD on HP-UX 11.23/PA:
$ gmake check-local TESTSUITE_FLAGS="15 -v"
...
fail.at:54: if $LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -o a a.$OBJEXT; then
(exit 1); else :; fi
stderr:
/usr/ccs/bin/ld: Unsatisfied symbols:
main (Not referenced yet! Probably due to -u option)
stdout:
libtool: link: cc -z +O2 +Olit=all +Onofltacc +Oentrysched +Odataprefetch
+Onolimit -o a a.o
fail.at:55: test -f a || test -f a$EXEEXT
fail.at:55: exit code was 0, expected 1
15. fail.at:22: FAILED (fail.at:55)
The code in tests/fail.at:
echo 'int not_main(void) { return 0; }' > a.c
$CC $CPPFLAGS $CFLAGS -c a.c
FAIL_CHECK([$LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -o a a.$OBJEXT])
AT_CHECK([test -f a || test -f a$EXEEXT], [1])
$ echo 'int not_main(void) { return 0; }' > a.c
$ cc -c a.c
$ sh /opt/build/libtool/libtool --mode=link cc -o a a.o
libtool: link: cc -o a a.o
/usr/ccs/bin/ld: Unsatisfied symbols:
main (Not referenced yet! Probably due to -u option)
However, even though there is no main, `a' is still created. How do we
work around this?
--
albert chin (address@hidden)
- fail.at failing on HP-UX,
Albert Chin <=