7 Building non-core clients with SVR4

Contents of this section

  1. A lot of clients (even some which have explicit SVR4 support) require -DSYSV when building under SVR4. This will not be set when using the default configuration. A quick fix is to add something like the following to the client's Imakefile:
          #if SystemV4
               DEFINES = -DSYSV OTHER_CLIENT_DEPENDENT_DEFINES
          #endif
    
    The best solution is to modify the code so it compiles correctly without -DSYSV.

  2. The default compiler options include `-ansi' for gcc, and `-Xc' for cc. A consequence of this is __STDC__ gets #defined to `1'. There are a number of functions which will not have prototypes declared unless either __STDC__ is not defined, or
            __STDC__ == 0 || defined(_POSIX_SOURCE) || defined(_XOPEN_SOURCE)
    
    Possible solutions are to change the definition of CCOPTIONS by adding a line to the Imakefile, or to add the required prototypes to the source.

Next Chapter, Previous Chapter

Table of contents of this chapter, General table of contents

Top of the document, Beginning of this Chapter