1 Reply Latest reply on Dec 4, 2017 9:18 PM by ONEEYEMAN

    Compilation failure, while configuring succeeded

    ONEEYEMAN

      Hi, ALL,

      I'd like to ask if someone from the Oracle developer community can reproduce what I see here.

       

      I have a VirtualBox installed on the Gentoo Linux. In there I installed Oracle Solaris 11.3 as a guest. In that OS I installed Oracle Developer Studio C++ part version 12.6,

      Everything was installed successfully.

       

      Then I tried to compile the software called wxWidgets.

       

      First I downloaded the official 3.1 release from Downloads - wxWidgets . Then I did the following:

       

      cd wxWidgets

      mkdir buildSol

      cd buildSol

      CXXFLAGS=-std=c++11 ../configure --with-gtk --enable-debug // this command succeeded

      make

       

      Unfortunately "make" command fails. Here is the command that is used for compilation and the error reported:

       

      [code]

      /export/home/igor/wxWidgets/

      buildSol/bk-deps CC -c -o basedll_any.o
      -D__WXGTK__        -DWXBUILDING        -I../src/regex  -DwxUSE_GUI=0
      -DWXMAKINGDLL_BASE  -DwxUSE_BASE=1 -KPIC -DPIC  -D_FILE_OFFSET_BITS=64
      -I/export/home/igor/wxWidgets/buildSol/lib/wx/include/gtk2-unicode-3.1
      -I../include -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -D_PTHREADS
      -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include
      -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0
      -I/usr/include/gio-unix-2.0/ -I/usr/include/glib-2.0
      -I/usr/lib/glib-2.0/include -I/usr/include/pixman-1
      -I/usr/include/freetype2 -I/usr/include/libpng12 -D_REENTRANT
      -D_PTHREADS -I/usr/include/gstreamer-0.10 -I/usr/include/glib-2.0
      -I/usr/lib/glib-2.0/include -I/usr/include/libxml2
      -I/usr/openwin/include -mt -D_REENTRANT -g -D_REENTRANT
      -D_POSIX_PTHREAD_SEMANTICS -D_PTHREADS -I/usr/include/gtk-2.0
      -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include
      -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include
      -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo
      -I/usr/include/pango-1.0 -I/usr/include/gio-unix-2.0/
      -I/usr/include/pixman-1 -I/usr/include/freetype2
      -I/usr/include/libpng12 -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS
      -D_PTHREADS -I/usr/include/gtk-unix-print-2.0 -I/usr/include/gtk-2.0
      -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0
      -I/usr/lib/gtk-2.0/include -I/usr/include/gio-unix-2.0/
      -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include
      -I/usr/include/pixman-1 -I/usr/include/freetype2
      -I/usr/include/libpng12 -features=tmplife -std=c++11
      ../src/common/any.cpp
      "../include/wx/wxcrtbase.h", line 654: Error: The function "wcsdup" must have a prototype.
      "../include/wx/wxcrt.h", line 187: Error: The function "wcsnlen" must have a prototype.
      "../include/wx/wxcrt.h", line 459: Error: The function "wcscasecmp" must have a prototype.
      "../include/wx/wxcrt.h", line 459: Error: The function "wcscasecmp" must have a prototype.
      "../include/wx/wxcrt.h", line 459: Error: The function "wcscasecmp" must have a prototype.
      "../include/wx/wxcrt.h", line 459: Error: The function "wcscasecmp" must have a prototype.
      "../include/wx/wxcrt.h", line 529: Error: The function "wcsncasecmp" must have a prototype.
      "../include/wx/wxcrt.h", line 529: Error: The function "wcsncasecmp" must have a prototype.
      "../include/wx/wxcrt.h", line 529: Error: The function "wcsncasecmp" must have a prototype.
      "../include/wx/wxcrt.h", line 529: Error: The function "wcsncasecmp" must have a prototype.
      10 Error(s) detected.
      *** Error code 2
      make: Fatal error: Command failed for target `basedll_any.o'

      [/code]

      I also have a config.log file which I can send to anyone upon request.

       

      Does this mean that my installation is bad? Can someone else reproduce this?

       

      Thank you.

       

      P.S.: If this forum is not appropriate for a C++ issues - I apologize. Please forward as appropriate.