Anyone knows why I'm getting OpenDX 4.1.3 not compiling? I got the
following errors:

===========================================================================
c++ -DHAVE_CONFIG_H -I. -I. -I../../../include -I./../base -I../../../include 
-I./../dxui
-Dlinux  -DHAVE_CONFIG_H -I/usr/include/freetype2 -I/usr/include/freetype2 
-D_REENTRANT
-D_FILE_OFFSET_BITS=64 -I/usr/include -I/usr/X11R6/include 
-I/usr/X11R6/include/X11 
-D_FILE_OFFSET_BITS=64 -I/usr/X11R6/include  -O0 -I/usr/X11R6/include -c 
DXChild.C
DXChild.C:132: declaration of `int getdtablesize ()' throws different 
exceptions
/usr/include/unistd.h:857: than previous declaration `int getdtablesize 
() throw ()'
make[3]: *** [DXChild.o] Error 1
make[3]: Leaving directory `/home/ghibo/rpm/BUILD/dx-4.1.3/src/uipp/dxuilib'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/ghibo/rpm/BUILD/dx-4.1.3/src/uipp'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/ghibo/rpm/BUILD/dx-4.1.3/src'
make: *** [all-recursive] Error 1
============================================================================

even commenting the lines with:

extern "C" int getdtablesize(); 

in dx-4.1.3/src/uipp/dxuilib/DXChild.C, and 
dx-4.1.3/src/uipp/dxuilib/PacketIF.C, lead then to the following errors:

============================================================================
c++ -DHAVE_CONFIG_H -I. -I. -I../../../include -I./../base -I../../../include 
-I./../dxui
-Dlinux  -DHAVE_CONFIG_H -I/usr/include/freetype2 -I/usr/include/freetype2 
-D_REENTRANT
-D_FILE_OFFSET_BITS=64 -I/usr/include -I/usr/X11R6/include 
-I/usr/X11R6/include/X11 
-D_FILE_OFFSET_BITS=64 -I/usr/X11R6/include  -O0 -I/usr/X11R6/include -c 
ImageWindow.C
ImageWindow.C:130: declaration of `unsigned int sleep (unsigned int)' 
throws different exceptions
/usr/include/unistd.h:371: than previous declaration `unsigned int 
sleep (unsigned int) throw ()'
ImageWindow.C: In method `ImageWindow::ImageWindow (unsigned char, 
Network *)':
ImageWindow.C:347: warning: assignment to non-pointer type `Pixmap' 
from NULL
ImageWindow.C:347: warning: argument to non-pointer type `long unsigned 
int' from NULL
ImageWindow.C:349: warning: assignment to non-pointer type `long int' 
from NULL
ImageWindow.C:349: warning: argument to non-pointer type `long int' 
from NULL
ImageWindow.C: In function `void ImageWindow_ClientMessageCB 
(_WidgetRec *, void *, void *)':
ImageWindow.C:2906: warning: assignment to `int' from `double'
ImageWindow.C:2906: warning: argument to `int' from `double'
ImageWindow.C: In method `void ImageWindow::wait4GLAcknowledge ()':
ImageWindow.C:5624: warning: assignment of negative value `-1' to 
`Atom'
ImageWindow.C:5624: warning: argument of negative value `-1' to `long 
unsigned int'
ImageWindow.C: In method `void ImageWindow::sendClientMessage (long 
unsigned int, int, float *)':
ImageWindow.C:5652: warning: passing NULL used for non-pointer argument 
passing 4 of `XSendEvent (Display *, long unsigned int, int, long int, 
XEvent *)'
ImageWindow.C:5652: warning: argument to non-pointer type `long int' 
from NULL
ImageWindow.C: In method `void ImageWindow::sendClientMessage (long 
unsigned int, int, long int *)':
ImageWindow.C:5670: warning: passing NULL used for non-pointer argument 
passing 4 of `XSendEvent (Display *, long unsigned int, int, long int, 
XEvent *)'
ImageWindow.C:5670: warning: argument to non-pointer type `long int' 
from NULL
ImageWindow.C: In method `void ImageWindow::sendClientMessage (long 
unsigned int, int, short int *)':
ImageWindow.C:5688: warning: passing NULL used for non-pointer argument 
passing 4 of `XSendEvent (Display *, long unsigned int, int, long int, 
XEvent *)'
ImageWindow.C:5688: warning: argument to non-pointer type `long int' 
from NULL
ImageWindow.C: In method `void ImageWindow::sendClientMessage (long 
unsigned int, int, char *)':
ImageWindow.C:5706: warning: passing NULL used for non-pointer argument 
passing 4 of `XSendEvent (Display *, long unsigned int, int, long int, 
XEvent *)'
ImageWindow.C:5706: warning: argument to non-pointer type `long int' 
from NULL
ImageWindow.C: In method `void ImageWindow::newCanvasImage ()':
ImageWindow.C:6133: warning: assignment of negative value `-1' to 
`Pixmap'
ImageWindow.C:6133: warning: argument of negative value `-1' to `long 
unsigned int'
ImageWindow.C: In method `void ImageWindow::resetWindow ()':
ImageWindow.C:6500: warning: assignment to non-pointer type `Pixmap' 
from NULL
ImageWindow.C:6500: warning: argument to non-pointer type `long 
unsigned int' from NULL
make[3]: *** [ImageWindow.o] Error 1
make[3]: Leaving directory `/home/ghibo/rpm/BUILD/dx-4.1.3/src/uipp/dxuilib'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/ghibo/rpm/BUILD/dx-4.1.3/src/uipp'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/ghibo/rpm/BUILD/dx-4.1.3/src'
make: *** [all-recursive] Error 1
===============================================================================

The system where I'm compiling on is Linux Mandrake, X86 arch,
and I'm using lesstif 0.92.95, and Imagemagick 5.3.7 (but I tried every 
ImageMagick 
version starting from 5.3.0), glibc 2.2.3. Only way of getting rid of these 
errors is to 
./configure forcing --without-magick. OpenDX 4.1.0 instead compiles fine
(on the same platform with the same libraries). I've also tried
the 23 Jun OpenDX snapshot, with the same compiling errors.

Thanks in advance.

Bye.
Giuseppe

Reply via email to