bugXnee - Bugs: bug #10511, Compilation error on AIX

 
 

bug #10511: Compilation error on AIX

Submitted by:  None
Submitted on:  Mon 27 Sep 2004 02:02:26 PM UTC  
 
Category: XneeSeverity: 3 - Normal
Item Group: Error reportStatus: Fixed
Privacy: PublicAssigned to: Henrik Sandklef <hesa>
Open/Closed: Closed

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

(Jump to the original submission Jump to the original submission)

Wed 10 Jan 2007 07:32:17 PM UTC, comment #7:

This is for solaris 2.8.

Xlibint.h includes Xproto.h after defining some symbols obviously addressed at Xproto.h so that Xproto.h will define additional stuff.

Since Xproto.h has the usual #ifndef/#define/#endif guard, the above obviously fails when Xproto.h has been included before Xlibint.h.

The solution is to include Xlibint.h before all other X headers

Anonymous
Thu 23 Nov 2006 04:35:51 PM UTC, comment #6:

Moved all X11 includes to one file (libxnee/include/libxnee/x11_files.h). This file includes Xlibint.h like this:

#include <X11/Xlibint.h> /* Warning, there be dragons here.... */
#ifndef XLIBINT_H
#define XLIBINT_H
#endif /* XLIBINT_H */

A unofficial release including the above lines (+ lots of other stuff for the coming release) can be found here:
http://www.sandklef.com/xnee/nightly-dists/Xnee-cvs-20061123.tar.gz

/hesa

Henrik Sandklef <hesa>
Project AdministratorIn charge of this item.
Wed 22 Nov 2006 04:53:54 PM UTC, comment #5:

The solaris fix doesn't work.

As the original poster said, the problem is in the AIX version of Xlibint.h. It doesn't have the usual

#ifndef XLIBINT_H
#define XLIBINT_H

.... file contents ....

#endif

guard. The Xnee sources include it explicity when it has already been included by another header, and bang!

To be fair, I think this is more an AIX problem than an Xnee problem. The suggestion made by the original poster - add those damm guard defines to the AIX Xlibint.h yourself - is the easiest solution, and the one I've adopted.

Jim Hague <bears>
Wed 23 Mar 2005 10:45:06 AM UTC, comment #4:

Assuming fix for solaris works, closing bug

Henrik Sandklef <hesa>
Project AdministratorIn charge of this item.
Mon 04 Oct 2004 06:10:24 PM UTC, comment #3:

I have found the way...
1)to insert a #ifndef #define in Xlibint.h that encloses all.
2)to add #include <time.h> in any source file that give back a parse error.

Anonymous
Tue 28 Sep 2004 10:00:13 AM UTC, comment #2:

I have already carried out those operations. But the result is the same one.

Anonymous
Mon 27 Sep 2004 02:43:18 PM UTC, comment #1:

Perhaps thie corespondes to:
https://savannah.gnu.org/bugs/?func=detailitem&item_id=10470

Henrik Sandklef <hesa>
Project AdministratorIn charge of this item.
Mon 27 Sep 2004 02:02:26 PM UTC, original submission:

I could not compile xnee 1.08 on AIX 4.3
The compiler is gcc 3.3.3.
This is the make printout:
**********************************************************
(kagcl2)Root /usr/local/stfw1/xnee-1.08> make check
Making check in libxnee
Making check in src
cd ../.. && CONFIG_FILES=libxnee/src/Makefile CONFIG_HEADERS= /bin/sh ./config.status
config.status: creating libxnee/src/Makefile
gcc -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"xnee\" -DVERSION=\"1.08\" -DHAVE_VPRINTF=1 -DHAVE_DOPRNT=1 -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_UNISTD_H=1 -DHAVE_STDARG_H=1 -I. -I. -I../include -g -DUSE_VERBOSE -DNO_BUF_VERBOSE -c xnee.c
In file included from ../include/libxnee/xnee.h:43,
from xnee.c:44:
/usr/include/X11/Xlibint.h:77: error: redefinition of `struct _XGC'
/usr/include/X11/Xlibint.h:87: error: redefinition of `struct _XDisplay'
/usr/include/X11/Xlibint.h:198: error: redefinition of `struct _XSQEvent'
/usr/include/X11/Xlibint.h:711: error: redefinition of `struct _XInternalAsync'
/usr/include/X11/Xlibint.h:734: error: redefinition of `struct _XAsyncEState'
/usr/include/X11/Xlibint.h:754: error: redefinition of `struct _XFreeFuncs'
/usr/include/X11/Xlibint.h:769: error: redefinition of `struct _XExten'
/usr/include/X11/Xlibint.h:1228: error: redefinition of `struct _XConnectionInfo'
/usr/include/X11/Xlibint.h:1236: error: redefinition of `struct _XConnWatchInfo'
In file included from ../include/libxnee/xnee_record.h:44,
from ../include/libxnee/print.h:22,
from xnee.c:45:
/usr/include/X11/Xlibint.h:77: error: redefinition of `struct _XGC'
/usr/include/X11/Xlibint.h:87: error: redefinition of `struct _XDisplay'
/usr/include/X11/Xlibint.h:198: error: redefinition of `struct _XSQEvent'
/usr/include/X11/Xlibint.h:711: error: redefinition of `struct _XInternalAsync'
/usr/include/X11/Xlibint.h:734: error: redefinition of `struct _XAsyncEState'
/usr/include/X11/Xlibint.h:754: error: redefinition of `struct _XFreeFuncs'
/usr/include/X11/Xlibint.h:769: error: redefinition of `struct _XExten'
/usr/include/X11/Xlibint.h:1228: error: redefinition of `struct _XConnectionInfo'
/usr/include/X11/Xlibint.h:1236: error: redefinition of `struct _XConnWatchInfo'
In file included from ../include/libxnee/xnee_resource.h:25,
from xnee.c:53:
/usr/include/X11/Xlibint.h:77: error: redefinition of `struct _XGC'
/usr/include/X11/Xlibint.h:87: error: redefinition of `struct _XDisplay'
/usr/include/X11/Xlibint.h:198: error: redefinition of `struct _XSQEvent'
/usr/include/X11/Xlibint.h:711: error: redefinition of `struct _XInternalAsync'
/usr/include/X11/Xlibint.h:734: error: redefinition of `struct _XAsyncEState'
/usr/include/X11/Xlibint.h:754: error: redefinition of `struct _XFreeFuncs'
/usr/include/X11/Xlibint.h:769: error: redefinition of `struct _XExten'
/usr/include/X11/Xlibint.h:1228: error: redefinition of `struct _XConnectionInfo'
/usr/include/X11/Xlibint.h:1236: error: redefinition of `struct _XConnWatchInfo'
make: 1254-004 Il codice errore per l'ultimo comando 1.

Arrestare.
make: 1254-004 Il codice errore per l'ultimo comando 1.

Arrestare.
make: 1254-004 Il codice errore per l'ultimo comando 1.

Arrestare.
(kagcl2)Root /usr/local/stfw1/xnee-1.08>

**********************************************************
config.log is attached...

Regards Mauro Antonelli

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

Attached Files
file #1808:  config.log added by None (16KiB - text/plain - configure log)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by hesa (Updated the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 7 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Sun 01 Nov 2009 10:29:57 PM UTChesaOpen/ClosedOpen=>Closed
    Sun 12 Oct 2008 05:39:31 PM UTChesaStatusReady For Test=>Fixed
    Thu 23 Nov 2006 04:35:51 PM UTChesaStatusNone=>Ready For Test
      Open/ClosedClosed=>Open
    Wed 23 Mar 2005 10:45:06 AM UTChesaOpen/ClosedOpen=>Closed
    Mon 27 Sep 2004 02:43:18 PM UTChesaAssigned toNone=>hesa
    Mon 27 Sep 2004 02:02:26 PM UTCNoneAttached File-=>Added config.log, #1713

    Back to the top


    Powered by Savane 3.1-cleanup1