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 Message----- From: Paul Eggert [mailto:[email protected]] Sent: 20 August 2012 23:28 To: Held, Douglas Cc: '[email protected]'; 'Held, Doug (Fortify/HP ESP)' Subject: Re: [Bug-tar] WARNING: ## Report this to [email protected] ## On 08/20/2012 02:57 AM, Held, Douglas wrote: > In file included from /usr/include/sys/cred.h:49, > > from /usr/include/sys/file.h:32, > > from /usr/include/sys/device.h:36, > > from system-ioctl.h:31, > > from rtapelib.c:36: > > /usr/include/sys/secattr.h:50: error: parse error before "rid_t" How is one supposed to "#include <sys/device.h>" in AIX? Can you try compiling the following one-line program? #include <sys/device.h> How about the following two-liner? #include <sys/types.h> #include <sys/device.h> I hope you get the idea. We need to find out what files must be included before we include <sys/device.h>.
