./lib/getopt.h:197: error: redefinition of `struct option'

2011-12-06 Thread Mark R Bannister
Hi, I'm banging my head against a wall here trying to port nss_db to Solaris 10. It includes a source file called makedb.c that requires argp.h and error.h. Incidentally it also requires a Berkeley database which I have in /opt/csw/bdb48/include/db.h. I thought the easiest thing was to use gnul

Re: ./lib/getopt.h:197: error: redefinition of `struct option'

2011-12-06 Thread Mark R Bannister
On Tue 06/12/11 13:56 , Eric Blake ebl...@redhat.com sent: > There's your problem. You have to #include prior to any > other include files, if you want gnulib's getopt replacements to work. Thanks Eric, that worked. May I suggest that gnulib-tool is improved to check that a) config.h is being