#77 Can't comp. xdao with glibc-2.3-gcc-3.2

open
nobody
None
5
2002-11-17
2002-11-17
Anonymous
No

If I try to compile cdrdao-1.1.7 with glibc-2.3 and
gcc-3.2 I get:

g++ -DHAVE_CONFIG_H -D_THREAD_SAFE -D_REENTRANT
-DVERSION=\"1.1.7\" -I.. -I. -I./../dao -I./../trackdb
-g -O2 -I/usr/include/gnome-1.0 -DNEED_GNOMESUPPORT_H
-I/usr/lib/gnome-libs/include -I/usr/include/gtk-1.2
-I/usr/include/glib-1.2 -I/usr/lib/glib/include
-I/usr/X11R6/include -I/usr/lib/gnomemm/include
-I/usr/include/gnome-1.0 -DNEED_GNOMESUPPORT_H
-I/usr/lib/gnome-libs/include -I/usr/include/glib-1.2
-I/usr/lib/glib/include -I/usr/include/orbit-1.0
-I/usr/include/gtk-1.2 -I/usr/X11R6/include
-I/usr/lib/sigc++/include -I/usr/lib/gtkmm/include -c
xcdrdao.cc -o xcdrdao.o
cc1plus: warning: changing search order for system
directory "."
cc1plus: warning: as it has already been specified as
a non-system directory
In file included from
/usr/include/c++/3.2/i686-pc-linux-gnu/bits/c++locale.h:39,
from
/usr/include/c++/3.2/bits/localefwd.h:46,
from /usr/include/c++/3.2/ios:48,
from /usr/include/c++/3.2/ostream:45,
from /usr/include/c++/3.2/iterator:70,
from /usr/include/gtk--/base.h:29,
from /usr/include/gtk--.h:70,
from xcdrdao.cc:35:
/usr/include/libintl.h:40: parse error before `__const'
/usr/include/libintl.h:44: parse error before `__const'
/usr/include/libintl.h:52: parse error before `__const'
/usr/include/libintl.h:81: parse error before `__const'
/usr/include/libintl.h:86: parse error before `__const'
make[1]: *** [xcdrdao.o] Error 1

Any hint would be very appreciated.
Juergen (rose@rz.uni-potsdam.de)

Discussion

  • Logged In: YES
    user_id=696153

    Try this patch, you can compile it with it, but I've no idea
    whether it works.
    ----------------------------------
    --- cdrdao-1.1.7.orig/xdao/xcdrdao.cc
    +++ cdrdao-1.1.7/xdao/xcdrdao.cc
    @@ -22,9 +22,9 @@
    #include <signal.h>
    #include <stdlib.h>

    -#include <gnome.h>

    #include <gtk--.h>
    +#include <gnome.h>
    #include <gtk/gtk.h>

    #include <gnome--.h>
    only in patch2:
    --- cdrdao-1.1.7.orig/xdao/gcdmaster.cc
    +++ cdrdao-1.1.7/xdao/gcdmaster.cc
    @@ -17,6 +17,7 @@
    * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
    */

    +#include <gtk--.h>
    #include <gnome.h>

    #include "xcdrdao.h"
    only in patch2:
    --- cdrdao-1.1.7.orig/xdao/ViewSwitcher.cc
    +++ cdrdao-1.1.7/xdao/ViewSwitcher.cc
    @@ -17,6 +17,7 @@
    * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
    */

    +#include <gtk--.h>
    #include <gnome.h>

    #include "ViewSwitcher.h"
    only in patch2:
    --- cdrdao-1.1.7.orig/xdao/RecordTocSource.cc
    +++ cdrdao-1.1.7/xdao/RecordTocSource.cc
    @@ -22,6 +22,7 @@
    #include <math.h>
    #include <assert.h>

    +#include <gtk--.h>
    #include <gnome.h>

    #include "RecordTocSource.h"
    only in patch2:
    --- cdrdao-1.1.7.orig/xdao/RecordHDTarget.cc
    +++ cdrdao-1.1.7/xdao/RecordHDTarget.cc
    @@ -22,6 +22,7 @@
    #include <math.h>
    #include <assert.h>

    +#include <gtk--.h>
    #include <gnome.h>

    #include "RecordHDTarget.h"
    only in patch2:
    --- cdrdao-1.1.7.orig/xdao/DeviceList.cc
    +++ cdrdao-1.1.7/xdao/DeviceList.cc
    @@ -22,6 +22,7 @@
    #include <math.h>
    #include <assert.h>

    +#include <gtk--.h>
    #include <gnome.h>

    #include "DeviceList.h"
    only in patch2:
    --- cdrdao-1.1.7.orig/xdao/CdDevice.cc
    +++ cdrdao-1.1.7/xdao/CdDevice.cc
    @@ -27,6 +27,7 @@
    #include <ctype.h>
    #include <assert.h>

    +#include <gtk--.h>
    #include <gnome.h>

    #include "TocEdit.h"
    ----------------------------------
    cu andreas

     
  • Martijn Lina
    Martijn Lina
    2003-06-23

    Logged In: YES
    user_id=11154

    FYI, patch works great, dispite all remaining compile
    warnings, it apears to be as 'stable' as before