Return-Path: X-Original-To: apmail-incubator-celix-commits-archive@minotaur.apache.org Delivered-To: apmail-incubator-celix-commits-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 2B2714B7A for ; Wed, 25 May 2011 19:56:31 +0000 (UTC) Received: (qmail 39670 invoked by uid 500); 25 May 2011 19:56:31 -0000 Delivered-To: apmail-incubator-celix-commits-archive@incubator.apache.org Received: (qmail 39650 invoked by uid 500); 25 May 2011 19:56:31 -0000 Mailing-List: contact celix-commits-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: celix-dev@incubator.apache.org Delivered-To: mailing list celix-commits@incubator.apache.org Received: (qmail 39643 invoked by uid 99); 25 May 2011 19:56:30 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 25 May 2011 19:56:30 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 25 May 2011 19:56:28 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 5EADCDE9AF for ; Wed, 25 May 2011 19:55:47 +0000 (UTC) Date: Wed, 25 May 2011 19:55:47 +0000 (UTC) From: "Rob ten Hove (JIRA)" To: celix-commits@incubator.apache.org Message-ID: <871081409.43105.1306353347384.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Created] (CELIX-4) Problems building Celix on x86_64 Linux MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org Problems building Celix on x86_64 Linux --------------------------------------- Key: CELIX-4 URL: https://issues.apache.org/jira/browse/CELIX-4 Project: Celix Issue Type: Bug Environment: Linux xray 2.6.38-8-generic #42-Ubuntu SMP Mon Apr 11 03:31:24 UTC 2011 x86_64 x86_64 x86_64 GNU/Linux Reporter: Rob ten Hove Priority: Minor Tried building Celix today on 64bit Linux, but encountered two problems: 1) Directory "deployer" is mentioned in /CMakeLists.txt, but doesn't exist: CMake Error at CMakeLists.txt:63 (add_subdirectory): add_subdirectory given source "deployer" which is not an existing directory. 2) Running cmake and then make causes linking problems: Linking C shared library libtracker_depman.so /usr/bin/ld: ../../dependency_manager/libdependency_manager.a(service_component.c.o): relocation R_X86_64_32S against `service_init' can not be used when making a shared object; recompile with -fPIC ../../dependency_manager/libdependency_manager.a: could not read symbols: Bad value collect2: ld returned 1 exit status make[2]: *** [whiteboard/tracker_depman/libtracker_depman.so] Error 1 make[1]: *** [whiteboard/tracker_depman/CMakeFiles/tracker_depman.dir/all] Error 2 make: *** [all] Error 2 Adding a global CFLAGS=-fPIC works, but I guess this is not a feasible solution. Building a shared lib instead of a static one for dependency_manager works, but don't know if this is feasible too. Solution that could work is adding a check for the platform for dependency_manager, and then specifically adding -fPIC for that lib in case the platform is 64bit Unix. Found the latter suggestion on http://www.cmake.org/pipermail/cmake/2007-May/014350.html -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira