Ticket #235 (assigned task)

Opened 2 months ago

Last modified 2 months ago

fix compilation with cmake 2.6

Reported by: mbensi Assigned to: odole (accepted)
Priority: major Milestone: Galekid
Component: Bug Fix Version: 1.0
Keywords: cmake compilation Cc:
Number of hours worked: 1 % Complete: 00
Number of hours remaining:

Attachments

cmake-2.6_remove-duplicated-sources-warning.patch (3.1 kB) - added by odole on 06/19/08 21:59:43.
fix warning about multiple listed sources with cmake-2.6.0

Change History

06/19/08 21:34:20 changed by odole

  • hours_worked set to 1.
  • keywords set to cmake compilation.
  • status changed from new to assigned.

did a first. The following warnings must be fixed!

CMake Warning (dev) at CMakeLists_deepseeProject.txt:43 (ADD_DEFINITIONS):
  Policy CMP0005 is not set: Preprocessor definition values are now escaped
  automatically.  Run "cmake --help-policy CMP0005" for policy details.  Use
  the cmake_policy command to set the policy and suppress this warning.
Call Stack (most recent call first):
  CMakeLists.txt:374 (INCLUDE)
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) at JavaScriptCore/CMakeLists.txt:36 (ADD_LIBRARY):
  Policy CMP0002 is not set: Logical target names must be globally unique.
  Run "cmake --help-policy CMP0002" for policy details.  Use the cmake_policy
  command to set the policy and suppress this warning.
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Configuring done
CMake Warning (dev) at BAL/OWBAL/Tests/CMakeLists.txt:62 (ADD_EXECUTABLE):
  Policy CMP0003 should be set before this line.  Add code such as

    if(COMMAND cmake_policy)
      cmake_policy(SET CMP0003 NEW)
    endif(COMMAND cmake_policy)

  as early as possible but after the most recent call to
  cmake_minimum_required or cmake_policy(VERSION).  This warning appears
  because target "runOwbalTests" links to some libraries for which the linker
  must search:

    -lxslt, -lz, -lm, -lxml2, png12, -ljpeg, gstvideo-0.10, gstbase-0.10
    gstreamer-0.10, gnomevfs-2, gconf-2, ORBit-2, gthread-2.0, rt, cppunit
    xslt, m, xml2, -licui18n, -licuuc, -licudata, gtk-x11-2.0, gdk-x11-2.0
    atk-1.0, gdk_pixbuf-2.0, pangocairo-1.0, pango-1.0, cairo, gobject-2.0
    gmodule-2.0, dl, glib-2.0, freetype, z, pthread, fontconfig, curl, sqlite3
    cppunit, gtk-x11-2.0, gdk-x11-2.0, atk-1.0, gdk_pixbuf-2.0, pangocairo-1.0
    pango-1.0, cairo, gobject-2.0, gmodule-2.0, dl, glib-2.0

  and other libraries with known full path:

    /home/developer/Doduo_sand-labs/build_gcc4.3/lib/libowbaltests.so

  CMake is adding directories in the second list to the linker search path in
  case they are needed to find libraries from the first list (for backwards
  compatibility with CMake 2.4).  Set policy CMP0003 to OLD or NEW to enable
  or disable this behavior explicitly.  Run "cmake --help-policy CMP0003" for
  more information.
This warning is for project developers.  Use -Wno-dev to suppress it.

Warning: Source file "/home/developer/Doduo_sand-labs/JavaScriptCore/pcre/pcre_compile.cpp" is listed multiple times for target "jscore".
Warning: Source file "/home/developer/Doduo_sand-labs/JavaScriptCore/pcre/pcre_exec.cpp" is listed multiple times for target "jscore".
Warning: Source file "/home/developer/Doduo_sand-labs/JavaScriptCore/pcre/pcre_tables.cpp" is listed multiple times for target "jscore".
Warning: Source file "/home/developer/Doduo_sand-labs/JavaScriptCore/pcre/pcre_ucp_searchfuncs.cpp" is listed multiple times for target "jscore".
Warning: Source file "/home/developer/Doduo_sand-labs/JavaScriptCore/pcre/pcre_xclass.cpp" is listed multiple times for target "jscore".
Warning: Source file "/home/developer/Doduo_sand-labs/JavaScriptCore/API/JSBase.cpp" is listed multiple times for target "jscore".
Warning: Source file "/home/developer/Doduo_sand-labs/JavaScriptCore/API/JSCallbackConstructor.cpp" is listed multiple times for target "jscore".
Warning: Source file "/home/developer/Doduo_sand-labs/JavaScriptCore/API/JSCallbackFunction.cpp" is listed multiple times for target "jscore".
Warning: Source file "/home/developer/Doduo_sand-labs/JavaScriptCore/API/JSCallbackObject.cpp" is listed multiple times for target "jscore".
Warning: Source file "/home/developer/Doduo_sand-labs/JavaScriptCore/API/JSClassRef.cpp" is listed multiple times for target "jscore".
Warning: Source file "/home/developer/Doduo_sand-labs/JavaScriptCore/API/JSContextRef.cpp" is listed multiple times for target "jscore".
Warning: Source file "/home/developer/Doduo_sand-labs/JavaScriptCore/API/JSObjectRef.cpp" is listed multiple times for target "jscore".
Warning: Source file "/home/developer/Doduo_sand-labs/JavaScriptCore/API/JSStringRef.cpp" is listed multiple times for target "jscore".
Warning: Source file "/home/developer/Doduo_sand-labs/JavaScriptCore/API/JSValueRef.cpp" is listed multiple times for target "jscore".
Warning: Source file "/home/developer/Doduo_sand-labs/JavaScriptCore/kjs/ArrayPrototype.cpp" is listed multiple times for target "jscore".
Warning: Source file "/home/developer/Doduo_sand-labs/JavaScriptCore/kjs/BooleanObject.cpp" is listed multiple times for target "jscore".
Warning: Source file "/home/developer/Doduo_sand-labs/JavaScriptCore/kjs/CommonIdentifiers.cpp" is listed multiple times for target "jscore".
Warning: Source file "/home/developer/Doduo_sand-labs/JavaScriptCore/kjs/DateMath.cpp" is listed multiple times for target "jscore".
Warning: Source file "/home/developer/Doduo_sand-labs/JavaScriptCore/kjs/DebuggerCallFrame.cpp" is listed multiple times for target "jscore".
Warning: Source file "/home/developer/Doduo_sand-labs/JavaScriptCore/kjs/ExecState.cpp" is listed multiple times for target "jscore".
Warning: Source file "/home/developer/Doduo_sand-labs/JavaScriptCore/kjs/FunctionPrototype.cpp" is listed multiple times for target "jscore".
Warning: Source file "/home/developer/Doduo_sand-labs/JavaScriptCore/kjs/InitializeThreading.cpp" is listed multiple times for target "jscore".
Warning: Source file "/home/developer/Doduo_sand-labs/JavaScriptCore/kjs/JSActivation.cpp" is listed multiple times for target "jscore".
Warning: Source file "/home/developer/Doduo_sand-labs/JavaScriptCore/kjs/JSArray.cpp" is listed multiple times for target "jscore".
Warning: Source file "/home/developer/Doduo_sand-labs/JavaScriptCore/kjs/JSFunction.cpp" is listed multiple times for target "jscore".
Warning: Source file "/home/developer/Doduo_sand-labs/JavaScriptCore/kjs/JSGlobalData.cpp" is listed multiple times for target "jscore".
Warning: Source file "/home/developer/Doduo_sand-labs/JavaScriptCore/kjs/JSGlobalObject.cpp" is listed multiple times for target "jscore".
Warning: Source file "/home/developer/Doduo_sand-labs/JavaScriptCore/kjs/JSImmediate.cpp" is listed multiple times for target "jscore".
Warning: Source file "/home/developer/Doduo_sand-labs/JavaScriptCore/kjs/JSLock.cpp" is listed multiple times for target "jscore".
Warning: Source file "/home/developer/Doduo_sand-labs/JavaScriptCore/kjs/JSNotAnObject.cpp" is listed multiple times for target "jscore".
Warning: Source file "/home/developer/Doduo_sand-labs/JavaScriptCore/kjs/JSObject.cpp" is listed multiple times for target "jscore".
Warning: Source file "/home/developer/Doduo_sand-labs/JavaScriptCore/kjs/JSVariableObject.cpp" is listed multiple times for target "jscore".
Warning: Source file "/home/developer/Doduo_sand-labs/JavaScriptCore/kjs/JSValue.cpp" is listed multiple times for target "jscore".
Warning: Source file "/home/developer/Doduo_sand-labs/JavaScriptCore/kjs/JSWrapperObject.cpp" is listed multiple times for target "jscore".
Warning: Source file "/home/developer/Doduo_sand-labs/JavaScriptCore/kjs/MathObject.cpp" is listed multiple times for target "jscore".
Warning: Source file "/home/developer/Doduo_sand-labs/JavaScriptCore/kjs/NumberObject.cpp" is listed multiple times for target "jscore".
Warning: Source file "/home/developer/Doduo_sand-labs/JavaScriptCore/kjs/Parser.cpp" is listed multiple times for target "jscore".
Warning: Source file "/home/developer/Doduo_sand-labs/JavaScriptCore/kjs/PropertyMap.cpp" is listed multiple times for target "jscore".
Warning: Source file "/home/developer/Doduo_sand-labs/JavaScriptCore/kjs/PropertyNameArray.cpp" is listed multiple times for target "jscore".
Warning: Source file "/home/developer/Doduo_sand-labs/JavaScriptCore/kjs/PropertySlot.cpp" is listed multiple times for target "jscore".
Warning: Source file "/home/developer/Doduo_sand-labs/JavaScriptCore/kjs/RegExpObject.cpp" is listed multiple times for target "jscore".
Warning: Source file "/home/developer/Doduo_sand-labs/JavaScriptCore/kjs/ScopeChain.cpp" is listed multiple times for target "jscore".
Warning: Source file "/home/developer/Doduo_sand-labs/JavaScriptCore/kjs/collector.cpp" is listed multiple times for target "jscore".
Warning: Source file "/home/developer/Doduo_sand-labs/JavaScriptCore/kjs/date_object.cpp" is listed multiple times for target "jscore".
Warning: Source file "/home/developer/Doduo_sand-labs/JavaScriptCore/kjs/debugger.cpp" is listed multiple times for target "jscore".
Warning: Source file "/home/developer/Doduo_sand-labs/JavaScriptCore/kjs/dtoa.cpp" is listed multiple times for target "jscore".
Warning: Source file "/home/developer/Doduo_sand-labs/JavaScriptCore/kjs/error_object.cpp" is listed multiple times for target "jscore".
Warning: Source file "/home/developer/Doduo_sand-labs/JavaScriptCore/kjs/identifier.cpp" is listed multiple times for target "jscore".
Warning: Source file "/home/developer/Doduo_sand-labs/JavaScriptCore/kjs/internal.cpp" is listed multiple times for target "jscore".
Warning: Source file "/home/developer/Doduo_sand-labs/JavaScriptCore/kjs/interpreter.cpp" is listed multiple times for target "jscore".
Warning: Source file "/home/developer/Doduo_sand-labs/JavaScriptCore/kjs/lexer.cpp" is listed multiple times for target "jscore".
Warning: Source file "/home/developer/Doduo_sand-labs/JavaScriptCore/kjs/list.cpp" is listed multiple times for target "jscore".
Warning: Source file "/home/developer/Doduo_sand-labs/JavaScriptCore/kjs/lookup.cpp" is listed multiple times for target "jscore".
Warning: Source file "/home/developer/Doduo_sand-labs/JavaScriptCore/kjs/nodes.cpp" is listed multiple times for target "jscore".
Warning: Source file "/home/developer/Doduo_sand-labs/JavaScriptCore/kjs/nodes2string.cpp" is listed multiple times for target "jscore".
Warning: Source file "/home/developer/Doduo_sand-labs/JavaScriptCore/kjs/object_object.cpp" is listed multiple times for target "jscore".
Warning: Source file "/home/developer/Doduo_sand-labs/JavaScriptCore/kjs/operations.cpp" is listed multiple times for target "jscore".
Warning: Source file "/home/developer/Doduo_sand-labs/JavaScriptCore/kjs/regexp.cpp" is listed multiple times for target "jscore".
Warning: Source file "/home/developer/Doduo_sand-labs/JavaScriptCore/kjs/string_object.cpp" is listed multiple times for target "jscore".
Warning: Source file "/home/developer/Doduo_sand-labs/JavaScriptCore/kjs/ustring.cpp" is listed multiple times for target "jscore".
Warning: Source file "/home/developer/Doduo_sand-labs/JavaScriptCore/profiler/Profiler.cpp" is listed multiple times for target "jscore".
Warning: Source file "/home/developer/Doduo_sand-labs/JavaScriptCore/profiler/Profile.cpp" is listed multiple times for target "jscore".
Warning: Source file "/home/developer/Doduo_sand-labs/JavaScriptCore/profiler/ProfileNode.cpp" is listed multiple times for target "jscore".
Warning: Source file "/home/developer/Doduo_sand-labs/JavaScriptCore/VM/RegisterID.cpp" is listed multiple times for target "jscore".
Warning: Source file "/home/developer/Doduo_sand-labs/JavaScriptCore/VM/Machine.cpp" is listed multiple times for target "jscore".
Warning: Source file "/home/developer/Doduo_sand-labs/JavaScriptCore/VM/Opcode.cpp" is listed multiple times for target "jscore".
Warning: Source file "/home/developer/Doduo_sand-labs/JavaScriptCore/VM/RegisterFileStack.cpp" is listed multiple times for target "jscore".
Warning: Source file "/home/developer/Doduo_sand-labs/JavaScriptCore/VM/CodeGenerator.cpp" is listed multiple times for target "jscore".
Warning: Source file "/home/developer/Doduo_sand-labs/JavaScriptCore/VM/ExceptionHelpers.cpp" is listed multiple times for target "jscore".
Warning: Source file "/home/developer/Doduo_sand-labs/JavaScriptCore/VM/Instruction.cpp" is listed multiple times for target "jscore".
Warning: Source file "/home/developer/Doduo_sand-labs/JavaScriptCore/VM/Register.cpp" is listed multiple times for target "jscore".
Warning: Source file "/home/developer/Doduo_sand-labs/JavaScriptCore/VM/RegisterFile.cpp" is listed multiple times for target "jscore".
Warning: Source file "/home/developer/Doduo_sand-labs/JavaScriptCore/VM/CodeBlock.cpp" is listed multiple times for target "jscore".
Warning: Source file "/home/developer/Doduo_sand-labs/JavaScriptCore/VM/LabelID.cpp" is listed multiple times for target "jscore".
Warning: Source file "/home/developer/Doduo_sand-labs/JavaScriptCore/VM/JSPropertyNameIterator.cpp" is listed multiple times for target "jscore".

06/19/08 21:59:43 changed by odole

  • attachment cmake-2.6_remove-duplicated-sources-warning.patch added.

fix warning about multiple listed sources with cmake-2.6.0