Paul, I am not a C developer but it looks to me like it works.
$ gcc test.c
ld: 0711-317 ERROR: Undefined symbol: .main
ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more information.
collect2: ld returned 8 exit status
$ echo $?
1
$ cat test.c
#include sys/types.h
-Original
I forgot to attach one patch containing fix for testsuite. Attaching now.
Sorry for that,
Pavel
* Note that I changed the temporary patch 0001-* for gnulib also in
gnulib-mailing list.
From ea08ea37712022411226e821c4f7cc429bd64724 Mon Sep 17 00:00:00 2001
From: Pavel Raiskup
On 08/21/2012 02:01 AM, Held, Douglas wrote:
$ cat test.c
#include sys/types.h
Sorry, that wasn't the test programs I was worried about.
Can you please try the following?
echo '#include sys/device.h' test.c
gcc -c test.c
echo '#include sys/types.h' test.c
echo '#include sys/device.h'
OK, test compile attempts as you specified. I am not a C developer and am not
knowledgeable enough to recognize/extend the pattern further. Output however is
below.
I do see your second question but I will need to repeat the configure/make
sequence later.
$ echo '#include sys/device.h'
On 08/21/2012 08:50 AM, Held, Douglas wrote:
echo '#include sys/types.h' test.c
echo '#include sys/device.h' test.c
gcc -c test.c
Since that didn't work, what *does* work?
How can one include sys/device.h?
Does the file itself say, or does the AIX
documentation say?