Apache OpenOffice (AOO) Bugzilla – Issue 26468
Compilation error in vcl/unx/gtk
Last modified: 2004-03-15 10:58:38 UTC
Actually, I've checked out the m30 tag, but the same error as in m28 tag:- == BEGIN == In file included from /extra/SRC680_m30/vcl/unx/gtk/app/gtkdata.cxx:82: ../../../unx/inc/plugins/gtk/gtkdata.hxx:90: syntax error before `*' token ../../../unx/inc/plugins/gtk/gtkdata.hxx:96: parse error before `*' token ../../../unx/inc/plugins/gtk/gtkdata.hxx:99: syntax error before `*' token ../../../unx/inc/plugins/gtk/gtkdata.hxx:89: base `SalDisplay' with only non-default constructor in class without a constructor ../../../unx/inc/plugins/gtk/gtkdata.hxx:101: semicolon missing after declaration of `GtkSalDisplay' ../../../unx/inc/plugins/gtk/gtkdata.hxx:101: two or more data types in declaration of `registerFrame' ../../../unx/inc/plugins/gtk/gtkdata.hxx:104: virtual outside class declaration ../../../unx/inc/plugins/gtk/gtkdata.hxx:109: parse error before `}' token In file included from /extra/SRC680_m30/vcl/unx/gtk/app/gtkdata.cxx:88: ../../../unx/inc/plugins/gtk/gtkframe.hxx:140: syntax error before `*' token /extra/SRC680_m30/vcl/unx/gtk/app/gtkdata.cxx:114: parse error before `*' token /extra/SRC680_m30/vcl/unx/gtk/app/gtkdata.cxx:118: parse error before `;' token /extra/SRC680_m30/vcl/unx/gtk/app/gtkdata.cxx:118: syntax error before `++' token /extra/SRC680_m30/vcl/unx/gtk/app/gtkdata.cxx:120: `aCol' was not declared in this scope /extra/SRC680_m30/vcl/unx/gtk/app/gtkdata.cxx:120: `pVis' was not declared in this scope /extra/SRC680_m30/vcl/unx/gtk/app/gtkdata.cxx:120: ISO C++ forbids declaration of `Init' with no type /extra/SRC680_m30/vcl/unx/gtk/app/gtkdata.cxx:120: initializer list being treated as compound expression /extra/SRC680_m30/vcl/unx/gtk/app/gtkdata.cxx:121: parse error before `}' token /extra/SRC680_m30/vcl/unx/gtk/app/gtkdata.cxx:135: no `void GtkSalDisplay::registerFrame(GtkSalFrame*)' member function declared in class `GtkSalDisplay' /extra/SRC680_m30/vcl/unx/gtk/app/gtkdata.cxx:140: no `void GtkSalDisplay::deregisterFrame(GtkSalFrame*)' member function declared in class `GtkSalDisplay' /extra/SRC680_m30/vcl/unx/gtk/app/gtkdata.cxx:152: no `GdkFilterReturn GtkSalDisplay::filterGdkEvent(GdkXEvent*, GdkEvent*, void*)' member function declared in class `GtkSalDisplay' /extra/SRC680_m30/vcl/unx/gtk/app/gtkdata.cxx: In member function `GdkCursor* GtkSalDisplay::getFromXPM(const char*, const char*, int, int, int, int)': /extra/SRC680_m30/vcl/unx/gtk/app/gtkdata.cxx:185: `m_pGdkDisplay' undeclared (first use this function) /extra/SRC680_m30/vcl/unx/gtk/app/gtkdata.cxx:185: (Each undeclared identifier is reported only once for each function it appears in.) /extra/SRC680_m30/vcl/unx/gtk/app/gtkdata.cxx:185: `gdk_display_get_default_screen' undeclared (first use this function) /extra/SRC680_m30/vcl/unx/gtk/app/gtkdata.cxx:186: `gdk_screen_get_root_window' undeclared (first use this function) /extra/SRC680_m30/vcl/unx/gtk/app/gtkdata.cxx: At global scope: /extra/SRC680_m30/vcl/unx/gtk/app/gtkdata.cxx:216: no `GdkCursor* GtkSalDisplay::getCursor(short unsigned int)' member function declared in class `GtkSalDisplay' /extra/SRC680_m30/vcl/unx/gtk/app/gtkdata.cxx: In member function `GdkCursor* GtkSalDisplay::getCursor(short unsigned int)': /extra/SRC680_m30/vcl/unx/gtk/app/gtkdata.cxx:226: `gdk_cursor_new_for_display' undeclared (first use this function) /extra/SRC680_m30/vcl/unx/gtk/app/gtkdata.cxx: At global scope: /extra/SRC680_m30/vcl/unx/gtk/app/gtkdata.cxx:334: no `int GtkSalDisplay::CaptureMouse(SalFrame*)' member function declared in class `GtkSalDisplay' /extra/SRC680_m30/vcl/unx/gtk/app/gtkdata.cxx:383: cannot declare member function `GtkSalDisplay::GtkXLib::GtkXLib' within `GtkSalDisplay' /extra/SRC680_m30/vcl/unx/gtk/app/gtkdata.cxx:383: syntax error before `{' token /extra/SRC680_m30/vcl/unx/gtk/app/gtkdata.cxx:388: ISO C++ forbids declaration of `m_pTimeout' with no type /extra/SRC680_m30/vcl/unx/gtk/app/gtkdata.cxx:388: warning: initialization to non-pointer type `int' from NULL /extra/SRC680_m30/vcl/unx/gtk/app/gtkdata.cxx:388: warning: argument to non-pointer type `int' from NULL /extra/SRC680_m30/vcl/unx/gtk/app/gtkdata.cxx:389: parse error before `}' token /extra/SRC680_m30/vcl/unx/gtk/app/gtkdata.cxx:392: cannot declare member function `GtkSalDisplay::GtkXLib::GtkXLib' within `GtkSalDisplay' /extra/SRC680_m30/vcl/unx/gtk/app/gtkdata.cxx:392: syntax error before `{' token /extra/SRC680_m30/vcl/unx/gtk/app/gtkdata.cxx:399: cannot declare member function `GtkSalDisplay::GtkXLib::Init' within `GtkSalDisplay' /extra/SRC680_m30/vcl/unx/gtk/app/gtkdata.cxx:399: syntax error before `{' token /extra/SRC680_m30/vcl/unx/gtk/app/gtkdata.cxx:405: ISO C++ forbids declaration of `gtk_set_locale' with no type /extra/SRC680_m30/vcl/unx/gtk/app/gtkdata.cxx:405: new declaration `int gtk_set_locale()' /usr/include/gtk-2.0/gtk/gtkmain.h:117: ambiguates old declaration `gchar* gtk_set_locale()' /extra/SRC680_m30/vcl/unx/gtk/app/gtkdata.cxx:415: syntax error before `*' token /extra/SRC680_m30/vcl/unx/gtk/app/gtkdata.cxx:423: ISO C++ forbids declaration of `osl_getExecutableFile' with no type /extra/SRC680_m30/vcl/unx/gtk/app/gtkdata.cxx:423: `int osl_getExecutableFile' redeclared as different kind of symbol /extra/SRC680_m30/solver/680/unxlngi4.pro/inc/osl/process.h:409: previous declaration of `oslProcessError osl_getExecutableFile(rtl_uString**)' /extra/SRC680_m30/vcl/unx/gtk/app/gtkdata.cxx:423: cannot convert `rtl_uString**' to `int' in initialization /extra/SRC680_m30/vcl/unx/gtk/app/gtkdata.cxx:424: ISO C++ forbids declaration of `osl_getSystemPathFromFileURL' with no type /extra/SRC680_m30/vcl/unx/gtk/app/gtkdata.cxx:424: `int osl_getSystemPathFromFileURL' redeclared as different kind of symbol /extra/SRC680_m30/solver/680/unxlngi4.pro/inc/osl/file.h:1367: previous declaration of `oslFileError osl_getSystemPathFromFileURL(rtl_uString*, rtl_uString**)' /extra/SRC680_m30/vcl/unx/gtk/app/gtkdata.cxx:424: initializer list being treated as compound expression /extra/SRC680_m30/vcl/unx/gtk/app/gtkdata.cxx:424: cannot convert `rtl_uString**' to `int' in initialization /extra/SRC680_m30/vcl/unx/gtk/app/gtkdata.cxx:425: ISO C++ forbids declaration of `pCmdLineAry' with no type /extra/SRC680_m30/vcl/unx/gtk/app/gtkdata.cxx:425: conflicting types for `int pCmdLineAry[0]' /extra/SRC680_m30/vcl/unx/gtk/app/gtkdata.cxx:422: previous declaration as `char**pCmdLineAry' /extra/SRC680_m30/vcl/unx/gtk/app/gtkdata.cxx:425: invalid initializer /extra/SRC680_m30/vcl/unx/gtk/app/gtkdata.cxx:427: parse error before `for' /extra/SRC680_m30/vcl/unx/gtk/app/gtkdata.cxx:427: parse error before `;' token /extra/SRC680_m30/vcl/unx/gtk/app/gtkdata.cxx:427: syntax error before `++' token /extra/SRC680_m30/vcl/unx/gtk/app/gtkdata.cxx:432: parse error before `if' /extra/SRC680_m30/vcl/unx/gtk/app/gtkdata.cxx:435: ISO C++ forbids declaration of `osl_getCommandArg' with no type /extra/SRC680_m30/vcl/unx/gtk/app/gtkdata.cxx:435: `int osl_getCommandArg' redeclared as different kind of symbol /extra/SRC680_m30/solver/680/unxlngi4.pro/inc/osl/process.h:423: previous declaration of `oslProcessError osl_getCommandArg(long unsigned int, rtl_uString**)' /extra/SRC680_m30/vcl/unx/gtk/app/gtkdata.cxx:435: initializer list being treated as compound expression /extra/SRC680_m30/vcl/unx/gtk/app/gtkdata.cxx:435: cannot convert `rtl_uString**' to `int' in initialization /extra/SRC680_m30/vcl/unx/gtk/app/gtkdata.cxx:436: ISO C++ forbids declaration of `aDisplay' with no type /extra/SRC680_m30/vcl/unx/gtk/app/gtkdata.cxx:436: conflicting types for `int aDisplay' /extra/SRC680_m30/vcl/unx/gtk/app/gtkdata.cxx:436: cannot convert `rtl::OString' to `int' in initialization /extra/SRC680_m30/vcl/unx/gtk/app/gtkdata.cxx:437: parse error before `}' token /extra/SRC680_m30/vcl/unx/gtk/app/gtkdata.cxx:442: syntax error before `++' token /extra/SRC680_m30/vcl/unx/gtk/app/gtkdata.cxx:445: ISO C++ forbids declaration of `gtk_init_check' with no type /extra/SRC680_m30/vcl/unx/gtk/app/gtkdata.cxx:445: `int gtk_init_check' redeclared as different kind of symbol /usr/include/gtk-2.0/gtk/gtkmain.h:92: previous declaration of `gboolean gtk_init_check(int*, char***)' /extra/SRC680_m30/vcl/unx/gtk/app/gtkdata.cxx:445: initializer list being treated as compound expression /extra/SRC680_m30/vcl/unx/gtk/app/gtkdata.cxx:445: cannot convert `int (*)[0]' to `int' in initialization /extra/SRC680_m30/vcl/unx/gtk/app/gtkdata.cxx:447: parse error before `for' /extra/SRC680_m30/vcl/unx/gtk/app/gtkdata.cxx:447: parse error before `;' token /extra/SRC680_m30/vcl/unx/gtk/app/gtkdata.cxx:447: syntax error before `++' token /extra/SRC680_m30/vcl/unx/gtk/app/gtkdata.cxx:456: ISO C++ forbids declaration of `pGdkDisp' with no type /extra/SRC680_m30/vcl/unx/gtk/app/gtkdata.cxx:456: `gdk_display_get_default' was not declared in this scope /extra/SRC680_m30/vcl/unx/gtk/app/gtkdata.cxx:457: parse error before `if' /extra/SRC680_m30/vcl/unx/gtk/app/gtkdata.cxx:460: `aProgramFileURL' was not declared in this scope /extra/SRC680_m30/vcl/unx/gtk/app/gtkdata.cxx:460: ISO C++ forbids declaration of `osl_getExecutableFile' with no type /extra/SRC680_m30/vcl/unx/gtk/app/gtkdata.cxx:460: redefinition of `int osl_getExecutableFile' /extra/SRC680_m30/vcl/unx/gtk/app/gtkdata.cxx:423: `int osl_getExecutableFile' previously defined here /extra/SRC680_m30/vcl/unx/gtk/app/gtkdata.cxx:462: `aProgramFileURL' was not declared in this scope /extra/SRC680_m30/vcl/unx/gtk/app/gtkdata.cxx:462: ISO C++ forbids declaration of `osl_getSystemPathFromFileURL' with no type /extra/SRC680_m30/vcl/unx/gtk/app/gtkdata.cxx:462: redefinition of `int osl_getSystemPathFromFileURL' /extra/SRC680_m30/vcl/unx/gtk/app/gtkdata.cxx:424: `int osl_getSystemPathFromFileURL' previously defined here /extra/SRC680_m30/vcl/unx/gtk/app/gtkdata.cxx:462: initializer list being treated as compound expression /extra/SRC680_m30/vcl/unx/gtk/app/gtkdata.cxx:467: request for member `getStr' in `aDisplay', which is of non-aggregate type `int' /extra/SRC680_m30/vcl/unx/gtk/app/gtkdata.cxx:467: ISO C++ forbids declaration of `fprintf' with no type /extra/SRC680_m30/vcl/unx/gtk/app/gtkdata.cxx:467: `int fprintf' redeclared as different kind of symbol /usr/include/stdio.h:276: previous declaration of `int fprintf(FILE*, const char*, ...)' /extra/SRC680_m30/vcl/unx/gtk/app/gtkdata.cxx:467: initializer list being treated as compound expression /extra/SRC680_m30/vcl/unx/gtk/app/gtkdata.cxx:468: ISO C++ forbids declaration of `fprintf' with no type /extra/SRC680_m30/vcl/unx/gtk/app/gtkdata.cxx:468: redefinition of `int fprintf' /extra/SRC680_m30/vcl/unx/gtk/app/gtkdata.cxx:467: `int fprintf' previously defined here /extra/SRC680_m30/vcl/unx/gtk/app/gtkdata.cxx:468: initializer list being treated as compound expression /extra/SRC680_m30/vcl/unx/gtk/app/gtkdata.cxx:468: cannot convert `const char*' to `int' in initialization /extra/SRC680_m30/vcl/unx/gtk/app/gtkdata.cxx:469: ISO C++ forbids declaration of `fprintf' with no type /extra/SRC680_m30/vcl/unx/gtk/app/gtkdata.cxx:469: redefinition of `int fprintf' /extra/SRC680_m30/vcl/unx/gtk/app/gtkdata.cxx:468: `int fprintf' previously defined here /extra/SRC680_m30/vcl/unx/gtk/app/gtkdata.cxx:469: cannot convert `const char*' to `int' in initialization /extra/SRC680_m30/vcl/unx/gtk/app/gtkdata.cxx:470: ISO C++ forbids declaration of `fprintf' with no type /extra/SRC680_m30/vcl/unx/gtk/app/gtkdata.cxx:470: redefinition of `int fprintf' /extra/SRC680_m30/vcl/unx/gtk/app/gtkdata.cxx:469: `int fprintf' previously defined here /extra/SRC680_m30/vcl/unx/gtk/app/gtkdata.cxx:470: initializer list being treated as compound expression /extra/SRC680_m30/vcl/unx/gtk/app/gtkdata.cxx:470: cannot convert `const char*' to `int' in initialization /extra/SRC680_m30/vcl/unx/gtk/app/gtkdata.cxx:471: ISO C++ forbids declaration of `fflush' with no type /extra/SRC680_m30/vcl/unx/gtk/app/gtkdata.cxx:471: `int fflush' redeclared as different kind of symbol /usr/include/stdio.h:188: previous declaration of `int fflush(FILE*)' /extra/SRC680_m30/vcl/unx/gtk/app/gtkdata.cxx:471: cannot convert `FILE*' to `int' in initialization /extra/SRC680_m30/vcl/unx/gtk/app/gtkdata.cxx:472: ISO C++ forbids declaration of `exit' with no type /extra/SRC680_m30/vcl/unx/gtk/app/gtkdata.cxx:472: `int exit' redeclared as different kind of symbol /usr/include/stdlib.h:577: previous declaration of `void exit(int)' /extra/SRC680_m30/vcl/unx/gtk/app/gtkdata.cxx:473: parse error before `}' token /extra/SRC680_m30/vcl/unx/gtk/app/gtkdata.cxx:482: `gdk_display_get_name' was not declared in this scope /extra/SRC680_m30/vcl/unx/gtk/app/gtkdata.cxx:483: ISO C++ forbids declaration of `putenv' with no type /extra/SRC680_m30/vcl/unx/gtk/app/gtkdata.cxx:483: `int putenv' redeclared as different kind of symbol /usr/include/stdlib.h:597: previous declaration of `int putenv(char*)' /extra/SRC680_m30/vcl/unx/gtk/app/gtkdata.cxx:483: cannot convert `char*' to `int' in initialization /extra/SRC680_m30/vcl/unx/gtk/app/gtkdata.cxx:485: `gdk_x11_display_get_xdisplay' was not declared in this scope /extra/SRC680_m30/vcl/unx/gtk/app/gtkdata.cxx:490: parse error before `if' /extra/SRC680_m30/vcl/unx/gtk/app/gtkdata.cxx:498: ISO C++ forbids declaration of `XSetIOErrorHandler' with no type /extra/SRC680_m30/vcl/unx/gtk/app/gtkdata.cxx:498: `int XSetIOErrorHandler' redeclared as different kind of symbol /usr/X11R6/include/X11/Xlib.h:2049: previous declaration of `int (* XSetIOErrorHandler(int (*)(Display*)))(Display*)' /extra/SRC680_m30/vcl/unx/gtk/app/gtkdata.cxx:498: cannot convert `int (*)(Display*)' to `int' in initialization /extra/SRC680_m30/vcl/unx/gtk/app/gtkdata.cxx:499: ISO C++ forbids declaration of `XSetErrorHandler' with no type /extra/SRC680_m30/vcl/unx/gtk/app/gtkdata.cxx:499: `int XSetErrorHandler' redeclared as different kind of symbol /usr/X11R6/include/X11/Xlib.h:2036: previous declaration of `int (* XSetErrorHandler(int (*)(Display*, XErrorEvent*)))(Display*, XErrorEvent*)' /extra/SRC680_m30/vcl/unx/gtk/app/gtkdata.cxx:499: cannot convert `int (*)(Display*, XErrorEvent*)' to `int' in initialization /extra/SRC680_m30/vcl/unx/gtk/app/gtkdata.cxx:501: ISO C++ forbids declaration of `m_pGtkSalDisplay' with no type /extra/SRC680_m30/vcl/unx/gtk/app/gtkdata.cxx:501: no matching function for call to `GtkSalDisplay::GtkSalDisplay(int&, Visual*&, Colormap&)' ../../../unx/inc/plugins/gtk/gtkdata.hxx:89: candidates are: GtkSalDisplay::GtkSalDisplay(const GtkSalDisplay&) /extra/SRC680_m30/vcl/unx/gtk/app/gtkdata.cxx:503: ISO C++ forbids declaration of `gdk_window_add_filter' with no type /extra/SRC680_m30/vcl/unx/gtk/app/gtkdata.cxx:503: `int gdk_window_add_filter' redeclared as different kind of symbol /usr/include/gtk-2.0/gdk/gdkwindow.h:322: previous declaration of `void gdk_window_add_filter(GdkWindow*, GdkFilterReturn (*)(GdkXEvent*, GdkEvent*, void*), void*)' /extra/SRC680_m30/vcl/unx/gtk/app/gtkdata.cxx:503: initializer list being treated as compound expression /extra/SRC680_m30/vcl/unx/gtk/app/gtkdata.cxx:503: left-hand operand of comma cannot resolve address of overloaded function /extra/SRC680_m30/vcl/unx/gtk/app/gtkdata.cxx:505: `GetIgnoreXErrors' was not declared in this scope /extra/SRC680_m30/vcl/unx/gtk/app/gtkdata.cxx:506: ISO C++ forbids declaration of `SetIgnoreXErrors' with no type /extra/SRC680_m30/vcl/unx/gtk/app/gtkdata.cxx:508: ISO C++ forbids declaration of `XSync' with no type /extra/SRC680_m30/vcl/unx/gtk/app/gtkdata.cxx:508: `int XSync' redeclared as different kind of symbol /usr/X11R6/include/X11/Xlib.h:4069: previous declaration of `int XSync(Display*, int)' /extra/SRC680_m30/vcl/unx/gtk/app/gtkdata.cxx:508: initializer list being treated as compound expression /extra/SRC680_m30/vcl/unx/gtk/app/gtkdata.cxx:510: syntax error before `->' token /extra/SRC680_m30/vcl/unx/gtk/app/gtkdata.cxx:511: ISO C++ forbids declaration of `SetIgnoreXErrors' with no type /extra/SRC680_m30/vcl/unx/gtk/app/gtkdata.cxx:511: redefinition of `int SetIgnoreXErrors' /extra/SRC680_m30/vcl/unx/gtk/app/gtkdata.cxx:506: `int SetIgnoreXErrors' previously defined here /extra/SRC680_m30/vcl/unx/gtk/app/gtkdata.cxx:513: syntax error before `->' token dmake: Error code 1, while making '../../../unxlngi4.pro/slo/gtkdata.obj' ---* TG_SLO.MK *---
cp->pl: missing gtk header ? maybe we need a configure option to disable plugin compilation ? please have a look
the output is incomplete; my guess would be that you're missing the gtk 2 headers. Have you built the gtk project before building vcl ?
duplicate *** This issue has been marked as a duplicate of 26463 ***
closing duplicate