From owner-freebsd-ports@FreeBSD.ORG Thu Sep 26 13:00:40 2013 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 7AA15F9E for ; Thu, 26 Sep 2013 13:00:40 +0000 (UTC) (envelope-from never@nevermind.kiev.ua) Received: from mail-vb0-f47.google.com (mail-vb0-f47.google.com [209.85.212.47]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 3CBB4287A for ; Thu, 26 Sep 2013 13:00:39 +0000 (UTC) Received: by mail-vb0-f47.google.com with SMTP id h10so791689vbh.34 for ; Thu, 26 Sep 2013 06:00:32 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:date:message-id:subject:from:to :content-type; bh=wFS6lpXefGO7ggTTNvLFMRIPraVSUnUbwsxTF2SDQJM=; b=IM4DsPpMj2OnWLbhSElBsifsb+pJlGKQJqGjEdvoQlq3vNYnJBczEn6GExRmoqMyDW 9+p+EijLXQs5+k4fUe4GxR1ilVe/sr1hYmu142S947uOZY7ByPeuiz514z57I40FChNp SUFWfuGDCG3zfN+SLmFb/77mkcfjUebB2Np2rR4GbLGXJzvYoINsVkS0RDdahEMGy1Pt f8HRNGbUDtjRC9RU3f+ZaQnaTies4wFmrMVlaAW90jvKgxzRAbF4QxXAtyzx74j9Ypvx MXzmsitKUS1Z1nIH0KdOlCAHjVuxLACPAFZykZ4AbZF/MV5pKs/qZ8JBrD03WGKWQojd 6Apw== X-Gm-Message-State: ALoCoQlq7PqT+zD8UI/agSUwnxFtVQh+kDrF0ETt8W7LPXOxurGIe9DAAyDd3UHbUiFpIvLDBnHR MIME-Version: 1.0 X-Received: by 10.58.153.161 with SMTP id vh1mr510309veb.29.1380200432747; Thu, 26 Sep 2013 06:00:32 -0700 (PDT) Received: by 10.220.148.1 with HTTP; Thu, 26 Sep 2013 06:00:32 -0700 (PDT) Date: Thu, 26 Sep 2013 14:00:32 +0100 Message-ID: Subject: CMake, libexecinfo, ${LOCALBASE}/lib and ldconfig From: Alexandr Kovalenko To: freebsd-ports@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 26 Sep 2013 13:00:40 -0000 Hello, I'm working on 5.5.33a MariaDB port now and got trouble making cmake to find libexecinfo (stub for linuxish backtrace() function). I'm desperate now in trying to fight this thing: Determining if the function backtrace exists failed with the following output: Change Dir: /usr/ports/databases/mariadb55-server/work/mariadb-5.5.33a/CMakeFiles/CMakeTmp Run Build Command:/usr/local/bin/gmake "cmTryCompileExec343489733/fast" /usr/local/bin/gmake -f CMakeFiles/cmTryCompileExec343489733.dir/build.make CMakeFiles/cmTryCompileExec343489733.dir/build gmake[1]: Entering directory `/usr/ports/databases/mariadb55-server/work/mariadb-5.5.33a/CMakeFiles/CMakeTmp' /usr/local/bin/cmake -E cmake_progress_report /usr/ports/databases/mariadb55-server/work/mariadb-5.5.33a/CMakeFiles/CMakeTmp/CMakeFiles 1 Building C object CMakeFiles/cmTryCompileExec343489733.dir/CheckFunctionExists.c.o /usr/bin/clang -D_LARGEFILE_SOURCE -D_LARGE_FILES -D_FILE_OFFSET_BITS=64 -D__STDC_LIMIT_MACROS -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -O2 -pipe -fno-strict-aliasing -DCHECK_FUNCTION_EXISTS=backtrace -o CMakeFiles/cmTryCompileExec343489733.dir/CheckFunctionExists.c.o -c /usr/local/share/cmake/Modules/CheckFunctionExists.c Linking C executable cmTryCompileExec343489733 /usr/local/bin/cmake -E cmake_link_script CMakeFiles/cmTryCompileExec343489733.dir/link.txt --verbose=1 /usr/bin/clang -O2 -pipe -fno-strict-aliasing -DCHECK_FUNCTION_EXISTS=backtrace CMakeFiles/cmTryCompileExec343489733.dir/CheckFunctionExists.c.o -o cmTryCompileExec343489733 -lexecinfo /usr/bin/ld: cannot find -lexecinfo clang: error: linker command failed with exit code 1 (use -v to see invocation) gmake[1]: Leaving directory `/usr/ports/databases/mariadb55-server/work/mariadb-5.5.33a/CMakeFiles/CMakeTmp' gmake[1]: *** [cmTryCompileExec343489733] Error 1 gmake: *** [cmTryCompileExec343489733/fast] Error 2 root@vbox:~ # ldconfig -r | grep execinfo 141:-lexecinfo.1 => /usr/local/lib/libexecinfo.so.1 Could anyone, please, explain me, why clang can't see libexecinfo during link phase and how to fix it? Thanks in advance! -- Alexandr