[uClibc]problem building xclass

Simon Davis sd1324 at yahoo.com
Thu Mar 13 16:20:12 UTC 2003


Hi,

Has anyone successfully built xclass (xclass.sourceforge.net)?  The error claims that there are
conflicting types for the struct.  Below are the definitions for the struct.  I'm not sure excatly
why it's failing.  The error from make is also included.  Any help is greatly appreciated.

libio.h
---------
typedef struct                                                       
{                                                            
  __io_read_fn *read;           /* Read bytes.  */             
  __io_write_fn *write;         /* Write bytes.  */                  
  __io_seek_fn *seek;           /* Seek/tell file position.  */
  __io_close_fn *close;         /* Close file.  */                     
} _IO_cookie_io_functions_t;                                     
typedef _IO_cookie_io_functions_t cookie_io_functions_t; 

uClibc_stdio.h
--------------
typedef struct {                                               
        __io_read_fn *read;                                     
        __io_write_fn *write;                                       
        __io_seek_fn *seek;                   
        __io_close_fn *close;                                      
} _IO_cookie_io_functions_t;                                      
                                                                     
#if defined(_LIBC) || defined(_GNU_SOURCE)              
typedef __io_read_fn cookie_read_function_t;            
typedef __io_write_fn cookie_write_function_t;                       
typedef __io_seek_fn cookie_seek_function_t;                  
typedef __io_close_fn cookie_close_function_t;                        
                                                        
typedef _IO_cookie_io_functions_t cookie_io_functions_t;

========================

c++ -I../../include -I/usr/X11R6/include -DOX_DEFAULT_POOL=\"/usr/local/xclass-icons\"
-DOX_DEFAULT_ROOT=\"/usr/local/xclass\"  -g -c OXFileDialog.cc
In file included from /usr/include/streambuf.h:36,
ucdev:/root/xclass-0.7.4/lib/libxclass# make
c++ -I../../include -I/usr/X11R6/include -DOX_DEFAULT_POOL=\"/usr/local/xclass-icons\"
-DOX_DEFAULT_ROOT=\"/usr/local/xclass\"  -g -c OXFileDialog.cc
In file included from /usr/include/streambuf.h:36,
                 from /usr/include/iostream.h:31,
                 from /usr/include/iterator.h:34,
                 from /usr/include/algobase.h:33,
                 from /usr/include/vector.h:30,
                 from ../../include/xclass/OXItemView.h:25,
                 from ../../include/xclass/OXListView.h:32,
                 from ../../include/xclass/OXFileDialog.h:26,
                 from OXFileDialog.cc:33:
/usr/include/libio.h:381: conflicting types for `typedef struct 
   _IO_cookie_io_functions_t _IO_cookie_io_functions_t'
/usr/include/bits/uClibc_stdio.h:218: previous declaration as `typedef struct 
   _IO_cookie_io_functions_t _IO_cookie_io_functions_t'
/usr/include/libio.h:382: conflicting types for `typedef struct 
   _IO_cookie_io_functions_t cookie_io_functions_t'
/usr/include/bits/uClibc_stdio.h:226: previous declaration as `typedef struct 
   _IO_cookie_io_functions_t cookie_io_functions_t'
make: *** [OXFileDialog.o] Error 1


Thanks

SD

__________________________________________________
Do you Yahoo!?
Yahoo! Web Hosting - establish your business online
http://webhosting.yahoo.com



More information about the uClibc mailing list