[MacPorts] #40386: codeblocks: allow compilation with clang

MacPorts noreply at macports.org
Thu Sep 5 01:50:04 PDT 2013


#40386: codeblocks: allow compilation with clang
-------------------------+-------------------
  Reporter:  mojca@…     |      Owner:  afb@…
      Type:  defect      |     Status:  new
  Priority:  Normal      |  Milestone:
 Component:  ports       |    Version:
Resolution:              |   Keywords:
      Port:  codeblocks  |
-------------------------+-------------------

Comment (by mojca@…):

 Next compile error is:
 {{{
 /bin/sh ../../../../libtool --tag=CXX   --mode=compile /usr/bin/clang++
 -DHAVE_CONFIG_H -I. -I../../../../src/include
 -I/opt/local/Library/Frameworks/wxWidgets.framework/Versions/wxGTK/2.8/lib/wx/include/gtk2
 -unicode-release-2.8
 -I/opt/local/Library/Frameworks/wxWidgets.framework/Versions/wxGTK/2.8/include/wx-2.8
 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D__WXGTK__
 -I../../../../src/include -I../../../../src/sdk/wxscintilla/include
 -I./../wxContribItems/wxFlatNotebook/include
 -I../../../../src/include/scripting/include
 -I../../../../src/include/scripting/sqplus
 -I../../../../src/include/scripting/squirrel
 -I../../../../src/include/scripting/bindings
 -I../../../../src/include/mozilla_chardet  -I/opt/local/include -Ulinux
 -Uunix  -O2 -ffast-math -DCB_AUTOCONF -pipe -Os -arch x86_64 -DCB_PRECOMP
 -Winvalid-pch -fPIC -DPIC -fexceptions -MT projectmissinglibs.lo -MD -MP
 -MF .deps/projectmissinglibs.Tpo -c -o projectmissinglibs.lo
 projectmissinglibs.cpp
 libtool: compile:  /usr/bin/clang++ -DHAVE_CONFIG_H -I.
 -I../../../../src/include
 -I/opt/local/Library/Frameworks/wxWidgets.framework/Versions/wxGTK/2.8/lib/wx/include/gtk2
 -unicode-release-2.8
 -I/opt/local/Library/Frameworks/wxWidgets.framework/Versions/wxGTK/2.8/include/wx-2.8
 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D__WXGTK__
 -I../../../../src/include -I../../../../src/sdk/wxscintilla/include
 -I./../wxContribItems/wxFlatNotebook/include
 -I../../../../src/include/scripting/include
 -I../../../../src/include/scripting/sqplus
 -I../../../../src/include/scripting/squirrel
 -I../../../../src/include/scripting/bindings
 -I../../../../src/include/mozilla_chardet -I/opt/local/include -Ulinux
 -Uunix -O2 -ffast-math -DCB_AUTOCONF -pipe -Os -arch x86_64 -DCB_PRECOMP
 -Winvalid-pch -fPIC -DPIC -fexceptions -MT projectmissinglibs.lo -MD -MP
 -MF .deps/projectmissinglibs.Tpo -c projectmissinglibs.cpp  -fno-common
 -DPIC -o .libs/projectmissinglibs.o
 librariesdlg.cpp:93:7: error: array initializer must be an initializer
 list
     , m_WorkingCopy(knownLibraries)
       ^
 1 error generated.
 }}}
 I'm not sure how to fix that one, but a quick workaround is to disable the
 `libfinder` plugin.
 {{{
 configure.args      "--with-contrib-plugins=all,-FileManager,-libfinder"
 }}}
 In case that anyone has any idea, here are some possibly relevant blocks
 from the code:
 {{{
 enum LibraryResultType
 {
     rtDetected = 0,     ///< \brief Cnofiguration detected by lib_finder
     rtPredefined,       ///< \brief Predefined configuration
     rtPkgConfig,        ///< \brief Library provided by pkg-config
     ///////
     rtCount,            ///< \brief Here will be the number of result
 types
     rtUnknown = -1      ///< \brief Used for unknown result types
 };

 class ResultMap { ... }
 typedef ResultMap TypedResults[rtCount];

 class LibrariesDlg: public wxScrollingDialog
 {
   ...
   private:
     TypedResults& m_KnownLibraries;
     TypedResults m_WorkingCopy;
   ...
 }

 LibrariesDlg::LibrariesDlg(wxWindow* parent, TypedResults& knownLibraries)
     : m_KnownLibraries(knownLibraries)
     , m_WorkingCopy(knownLibraries)
     , m_SelectedConfig(0)
     , m_WhileUpdating(false)
 {
   ...
 }
 }}}

-- 
Ticket URL: <https://trac.macports.org/ticket/40386#comment:2>
MacPorts <http://www.macports.org/>
Ports system for OS X


More information about the macports-tickets mailing list