Building X man-pages with gnu gcc: don't build while make install.man

From: Anatoly Pugachev (mator@private)
Date: Thu Dec 20 2001 - 08:11:20 PST


     VERSION:

R6.5.1

     CLIENT MACHINE and OPERATING SYSTEM:

Owl (version 0.1) Linux 2.2.20 on Intel(x86) (http://www.openwall.com/Owl/)

     DISPLAY TYPE:

XF86_*

     WINDOW MANAGER:

xterm

     COMPILER:

gcc version 2.95.3 20010315 (release)

     AREA:

config

     SYNOPSIS:

If you have gcc version 2.95.3 compiler, then man pages wont build, because of
GNU GCC version 2.95.3 doesn't support '-undef' command line switch. 

     DESCRIPTION:

Example:
$ cd ~/code/xc/programs/Xserver
$ make install.man
rm -f Xserver._man
/lib/cpp -undef -traditional  -D__apploaddir__=/usr/X11R6/lib/X11/app-defaults -D__filemansuffix__=5x -D__miscmansuffix__=7 -D__drivermansuffix__=4 -D__projectroot__=/usr/X11R6 -D__xorgversion__='"Release 6.5" "X Version 11"' -D__vendorversion__="Version `echo 4 1 99 2 | sed 's/ /./g'` XFree86"  <Xserver.man | sed -e '/^#  *[0-9][0-9]*  *.*$/d' -e '/^XCOMM$/s//#/' -e '/^XCOMM[^a-zA-Z0-9_]/s/^XCOMM/#/' >Xserver._man
cpp: Invalid option `-undef'

and now you have empty Xserver._man
Simple solution is to disable to use '-undef' command-line option with '/lib/cpp' 
in config files (xc/config/cf/*) while building with GNU GCC 2.95.3


     REPEAT BY:

Install GNU GCC 2.95.3 and try to {build and install} xfree86 man pages.

     SAMPLE FIX:






regards.
-- 
/mator



This archive was generated by hypermail 2.1.3 : Sun Jan 15 2006 - 13:43:15 PST