[uClibc]signal.h problem ?
Robert Schwebel
robert at schwebel.de
Thu Sep 6 18:25:02 UTC 2001
On Thu, 6 Sep 2001, Luke wrote:
> I was trying to compile a program that used <signal.h> with uclibc and
> was getting a parse error whereas the same code compiles fine under
> glibc. I narrowed down the problem to the simplest code that had the
> error:
Hmmm, test:
----------8<----------
robert at callisto:~/tmp/luke ! ./test
robert at callisto:~/tmp/luke ! /usr/i386-linux-uclibc/bin/gcc test.c -o
test.o
test.c: In function `main':
test.c:5: `siginfo_t' undeclared (first use in this function)
test.c:5: (Each undeclared identifier is reported only once
test.c:5: for each function it appears in.)
test.c:5: `sigInfo' undeclared (first use in this function)
robert at callisto:~/tmp/luke ! cd
robert at callisto:~ ! cd embedded/cvs/uClibc
---------->8----------
So siginfo_t seems not to be defined. Let's look where it comes from:
----------8<----------
robert at callisto:~/tmp/luke ! find /usr/i386-linux-uclibc/include/ \
-name "*.h" |xargs grep siginfo_t
[...]
/usr/i386-linux-uclibc/include/asm/siginfo.h:} siginfo_t;
[...]
---------->8----------
If I use #include <asm/siginfo.h> instead of your signal.h your example
compiles just fine here.
HTH,
Robert
--
+--------------------------------------------------------+
| Dipl.-Ing. Robert Schwebel |
| Linux Solutions for Science and Industry |
| Braunschweiger Straße 79, 31134 Hildesheim, Germany |
| Phone: +49-5121-28619-0 Fax: +49-5121-28619-4 |
+--------------------------------------------------------+
More information about the uClibc
mailing list