groff fails to compile

Gregory Fleischer (Lists) gfleischer.lists at gmail.com
Mon Jan 21 14:01:25 PST 2008


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

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-1.18.1.4/src/include/groff-getopt.h:52: error:  
> from previous declaration 'int getopt(int, char* const*, const char*)'
> make[2]: *** [maxfilename.o] Error 1
> make[2]: Leaving directory `/usr/src/groff/groff-1.18.1.4/src/libs/ 
> libgroff'
> make[1]: Leaving directory `/usr/src/groff/groff-1.18.1.4'
> make[1]: *** [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 [1].

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  
were.

[1] http://cvs.savannah.gnu.org/viewvc/groff/src/include/lib.h? 
root=groff&view=log#rev1.40

>


-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (Darwin)

iD8DBQFHlRY1WbVJrJm/lrsRAhr5AJ4rdIKVdB2oDlcf0X6Akughv4phkgCfXBgC
f71KQapHIChYQpFZZOiiJGo=
=MZai
-----END PGP SIGNATURE-----



More information about the hlfs-dev mailing list