groff fails to compile
Gregory Fleischer (Lists)
gfleischer.lists at gmail.com
Mon Jan 21 14:01:25 PST 2008
-----BEGIN PGP SIGNED MESSAGE-----
On Jan 21, 2008, at 8:34 AM, Chris Buxton wrote:
> Using the uClibc/linux 2.6 book, in chapter 6, the groff package
> fails. It appears to be due to this error:
> /usr/include/bits/getopt.h:155: error: declaration of 'int getopt
> (int, char* const*, const char*) throw ()' throws different exceptions
> /usr/src/groff/groff-184.108.40.206/src/include/groff-getopt.h:52: error:
> from previous declaration 'int getopt(int, char* const*, const char*)'
> make: *** [maxfilename.o] Error 1
> make: Leaving directory `/usr/src/groff/groff-220.127.116.11/src/libs/
> make: Leaving directory `/usr/src/groff/groff-18.104.22.168'
> make: *** [src/libs/libgroff] Error 2
> make: *** [all] Error 2
The older versions of groff attempted to implement its own getopt
which conflicts with the definition of the system version .
You could try this. Before running ./configure execute:
sed -i -e 's/groff-getopt/getopt/' src/include/lib.h
That should prevent groff from including its own definitions.
> If I'm building a server that has no need of man pages, can I skip
> groff? Or will later packages have problems?
I had problems when I skipped groff, but I don't remember what they
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (Darwin)
-----END PGP SIGNATURE-----
More information about the hlfs-dev