Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:59764 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 37629 invoked from network); 11 Apr 2012 23:28:19 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 11 Apr 2012 23:28:19 -0000 Authentication-Results: pb1.pair.com smtp.mail=luke@cywh.com; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=luke@cywh.com; sender-id=unknown Received-SPF: error (pb1.pair.com: domain cywh.com from 209.85.210.45 cause and error) X-PHP-List-Original-Sender: luke@cywh.com X-Host-Fingerprint: 209.85.210.45 mail-pz0-f45.google.com Received: from [209.85.210.45] ([209.85.210.45:61763] helo=mail-pz0-f45.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id E3/A8-23245-193168F4 for ; Wed, 11 Apr 2012 19:28:18 -0400 Received: by dacx6 with SMTP id x6so1836706dac.18 for ; Wed, 11 Apr 2012 16:28:15 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=user-agent:date:subject:from:to:message-id:thread-topic:in-reply-to :mime-version:content-type:x-gm-message-state; bh=cwE4V6qi5NzKw4jW2XTLFKScKA9ZiCetPES7YV4BdKM=; b=bP9Rns478qjc5WEkd8j7LgiulNsSttzx3ZVGMEKHmLc/pBjjTA5hiuf5TkJH5bQTTw 95/oE456+1q5xuvmUEAoEVBpx/Xr5ePNGe/tPmk8C3Ql/rUGSEudUXxrPMSXKJBu1/Rs lX9ty85+lNBeBup3JSJB3qov86cSv8RYYb0d+4PwsOM0Y6w3MCbS9CvNORpHhFlIDA5I F4C0kJgiRfC7rPPwlwu1tnV1W/7q5HK7cg+d8wJ7t1YwSg4XC03yT1m7obwwqUKPDFoy qmQI8Q1u0IVaYJRYD/YaWGaSg2HqETKphd2m54xBnykPdi19D915Y8O06XccNLMWpq4e wOQw== Received: by 10.68.125.226 with SMTP id mt2mr1734381pbb.38.1334186895043; Wed, 11 Apr 2012 16:28:15 -0700 (PDT) Received: from [10.1.10.222] ([66.60.139.106]) by mx.google.com with ESMTPS id o2sm4114365pbq.61.2012.04.11.16.28.12 (version=SSLv3 cipher=OTHER); Wed, 11 Apr 2012 16:28:14 -0700 (PDT) User-Agent: Microsoft-MacOutlook/14.13.0.110805 Date: Wed, 11 Apr 2012 16:29:58 -0700 To: Message-ID: Thread-Topic: Why is my library linking to the wrong path? In-Reply-To: Mime-version: 1.0 Content-type: multipart/alternative; boundary="B_3417006601_4753584" X-Gm-Message-State: ALoCoQkRdju5fKeSOJ1tcC7iyllzQ76s8WtsvHmjr8rQnCMG4HvGszWckxz6vM2kaf3sRiA5aqsr Subject: Re: Why is my library linking to the wrong path? From: luke@cywh.com (Luke Scott) References: --B_3417006601_4753584 Content-type: text/plain; charset="US-ASCII" Content-transfer-encoding: 7bit > I'm using the line: > > PHP_ADD_LIBRARY_WITH_PATH(v8, $V8_DIR/$PHP_LIBDIR, V8PHP_SHARED_LIBADD) > > Where the path is /phpdev/lib. But my extension is actually linking to > /v8/out/x64.release/libv8.dylib instead of /phpdev/lib/libv8.dylib even though > /v8/out/x64.release no longer exists. > > What am I doing wrong? > > Luke Was probably super obvious, but install_name_tool is how you fix the issue. First use the "-id" parameter on the .dylib to fix the dylib. Then recompile (or fix with -change flag). Luke --B_3417006601_4753584--