Bug 2399 - xrx compile error on AIX (X11R6.8.2 RC3)
Summary: xrx compile error on AIX (X11R6.8.2 RC3)
Status: RESOLVED DUPLICATE of bug 2398
Alias: None
Product: xorg
Classification: Unclassified
Component: App/other (show other bugs)
Version: 6.8.2
Hardware: Other AIX
: high normal
Assignee: Xorg Project Team
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-01-27 13:27 UTC by Dan McNichol
Modified: 2005-01-26 19:28 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:


Attachments

Description Dan McNichol 2005-01-27 13:27:43 UTC
The xrx plugin does not compile cleanly on AIX.
The file npapi.h tries to redefine a couple of sybols that are already
defined in a system header file.

Here is the error:
making all in programs/xrx/plugin...
Target "all" is up to date.








        rm -f Main.o
        xlc_r -c -O -D__STR31__ -DNDEBUG    -I. -I./include -I../rx   -
I../../.. -I../../../exports/include   -DSYSV -DAIXV3 -DAIXV4 -DAIXV5 -
D_ALL_SOURCE  -DFUNCPROTO=15   -DNETSCAPE_PLUGIN -DXP_UNIX  -
DBSD44SOCKETS     -DSHAREDCODE -bM\:SRE Main.c
"./include/npapi.h", line 44.15: 1506-334 (S) Identifier int16 has already 
been defined on line 619 of "/usr/include/sys/inttypes.h".
"./include/npapi.h", line 47.13: 1506-334 (S) Identifier int32 has already 
been defined on line 620 of "/usr/include/sys/inttypes.h".
make: The error code from the last command is 1.


Stop.
make: The error code from the last command is 2.


Stop.




Here is a quick patch I put together:
*** xc/programs/xrx/plugin/include/npapi.h.orig Fri Apr 23 14:55:03 2004
--- xc/programs/xrx/plugin/include/npapi.h      Thu Jan 27 13:42:54 2005
***************
*** 40,50 ****
--- 40,53 ----
  #ifndef _UINT32
  typedef unsigned int uint32;
  #endif
+ 
+ #if !(defined(_AIX) && defined(_H_INTTYPES) && defined(_ALL_SOURCE))
  #ifndef _INT16
  typedef short int16;
  #endif
  #ifndef _INT32
  typedef int int32;
+ #endif
  #endif
  
  #ifndef FALSE
Comment 1 Roland Mainz 2005-01-27 14:28:36 UTC
Uhm... this report looks identical to bug 2398 - marking as DUPlicate...

*** This bug has been marked as a duplicate of 2398 ***


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.