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 7A7874F17 for ; Wed, 25 May 2011 20:52:28 +0000 (UTC) Received: (qmail 19451 invoked by uid 500); 25 May 2011 20:52:28 -0000 Delivered-To: apmail-incubator-celix-commits-archive@incubator.apache.org Received: (qmail 19430 invoked by uid 500); 25 May 2011 20:52:28 -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 19423 invoked by uid 99); 25 May 2011 20:52:28 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 25 May 2011 20:52:28 +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 20:52:27 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 60327DEC7E for ; Wed, 25 May 2011 20:51:47 +0000 (UTC) Date: Wed, 25 May 2011 20:51:47 +0000 (UTC) From: "Alexander Broekhuis (JIRA)" To: celix-commits@incubator.apache.org Message-ID: <1233928623.43200.1306356707390.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <871081409.43105.1306353347384.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (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 [ https://issues.apache.org/jira/browse/CELIX-4?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13039324#comment-13039324 ] Alexander Broekhuis commented on CELIX-4: ----------------------------------------- Committed to revision 1127681 > 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 > Attachments: fix_cmake_x86_64.patch > > > 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