X11 Issue - HP UX

This is a discussion on X11 Issue - HP UX ; I have brought up the new machine, HP UX 11. Below is the reference # make: ManufacturingCommands/MfgCmd.m/src/CATMfgGanttChartCom.cpp Error 173: "/usr/include/X11R6/X11/extensions/Print.h", line 275 # Redefined sym bol 'XExtensionVersion'; previously defined at ["/usr/include/X11R6/X11/extensio ns/XI.h", line 267]. } XExtensionVersion; ^^^^^^^^^^^^^^^^^ # make-ERROR: ManufacturingCommands/MfgCmd.m/src/CATMfgGanttChartCom.cpp ...

+ Reply to Thread
Results 1 to 2 of 2

Thread: X11 Issue

  1. X11 Issue

    I have brought up the new machine, HP UX 11.

    Below is the reference

    # make: ManufacturingCommands/MfgCmd.m/src/CATMfgGanttChartCom.cpp
    Error 173: "/usr/include/X11R6/X11/extensions/Print.h", line 275 #
    Redefined sym
    bol 'XExtensionVersion'; previously defined at
    ["/usr/include/X11R6/X11/extensio
    ns/XI.h", line 267].
    } XExtensionVersion;
    ^^^^^^^^^^^^^^^^^
    # make-ERROR:
    ManufacturingCommands/MfgCmd.m/src/CATMfgGanttChartCom.cpp
    # make: ManufacturingCommands/MfgCmd.m/src/CATMfgGanttChartEditor.cpp
    Error 173: "/usr/include/X11R6/X11/extensions/Print.h", line 275 #
    Redefined sym
    bol 'XExtensionVersion'; previously defined at
    ["/usr/include/X11R6/X11/extensio
    ns/XI.h", line 267].
    } XExtensionVersion;
    ^^^^^^^^^^^^^^^^^
    # make-ERROR:
    ManufacturingCommands/MfgCmd.m/src/CATMfgGanttChartEditor.cpp


  2. Re: X11 Issue

    "sachin" writes:

    > I have brought up the new machine, HP UX 11.


    Good for you ...

    > Below is the reference


    A reference to what?
    You probably ought to read this:
    http://www.catb.org/~esr/faqs/smart-questions.html
    since your question isn't.

    > # make: ManufacturingCommands/MfgCmd.m/src/CATMfgGanttChartCom.cpp
    > Error 173: "/usr/include/X11R6/X11/extensions/Print.h", line 275
    > # Redefined symbol 'XExtensionVersion'; previously defined at
    > ["/usr/include/X11R6/X11/extensions/XI.h", line 267].
    > } XExtensionVersion;
    > ^^^^^^^^^^^^^^^^^


    Someone messed up your /usr/include/X11R6/X11/extensions/Print.h,
    (or you have a very old version of it with a bug).

    In my /usr/include/X11R6/X11/extensions/XI.h:
    #ifndef _XI_H_
    #define _XI_H_
    ...

    and in my extensions/Print.h:

    #ifndef _XI_H_
    typedef struct {
    ...
    } XExtensionVersion;
    #endif

    These two chunks of code together prevent exactly the compilation
    error that you observed.

    Another possibility is that in your own code you do something
    like this:

    #include "X11/extensions/XI.h"
    #undef _XI_H_
    #include "X11/extensions/Print.h"

    If so, don't do *that*.

    Cheers,
    --
    In order to understand recursion you must first understand recursion.
    Remove /-nsp/ for email.

+ Reply to Thread