From owner-svn-src-all@FreeBSD.ORG Wed May 8 23:44:55 2013 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 22C40AF9 for ; Wed, 8 May 2013 23:44:55 +0000 (UTC) (envelope-from peter@wemm.org) Received: from mail-ve0-x22e.google.com (mail-ve0-x22e.google.com [IPv6:2607:f8b0:400c:c01::22e]) by mx1.freebsd.org (Postfix) with ESMTP id D77A231E for ; Wed, 8 May 2013 23:44:54 +0000 (UTC) Received: by mail-ve0-f174.google.com with SMTP id pb11so2351883veb.5 for ; Wed, 08 May 2013 16:44:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=wemm.org; s=google; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:cc:content-type; bh=c23ZaRZbGcl1IhdaeHUkXlHJn3qyZURUNNu7x+rfcg4=; b=VXlP7LqwJlAcgh/Xj/Xp6DV/wsVBuDUAMr7QfOMlda+NAsAnrMvmt2jLzXda90L26S zW+rV2TqMNENq9PtXy46sxqL9JZZ9++v0qCIobFopt7/y5MTA6NPOyRhHcwlxLyy3qUU oRNnK+AOaZdW0wsxgDfNU0DEWsP22c6E2eOQo= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:cc:content-type:x-gm-message-state; bh=c23ZaRZbGcl1IhdaeHUkXlHJn3qyZURUNNu7x+rfcg4=; b=faoSTr5wtABUXJPTuUoyWVg4bj9cx/ztHijVxus81ztyIdwUdOY/frk8VD4rPZA15k kPfIeotfyWEpFsdh5N6NiR+c03eZN1mrm1WD75YYFb+8gh5kQOSMyuBo20KTOrz8z+zP kYDp8sXvLVUjZ+jQWz/Tm2M++eeMk9Uo05ltf24fMw9jkqlGsbYuLYXI3SybYIUSJ97D x2OUA4Qn9oR8sc77RA+yu365E6kwhVk50OvkzAK1h68mTY3DsKkoFmTmtSAuytbBxfN4 d+UIrpnldJmTLdfhaOf3J0kyksvrCpYP1eqURBYNjhRwcPMhc6p9Ge+tnkesBWeWMoRF 3FlA== MIME-Version: 1.0 X-Received: by 10.59.11.199 with SMTP id ek7mr6363436ved.19.1368056694168; Wed, 08 May 2013 16:44:54 -0700 (PDT) Received: by 10.220.197.66 with HTTP; Wed, 8 May 2013 16:44:54 -0700 (PDT) In-Reply-To: References: <201305082003.r48K3cYv062256@svn.freebsd.org> Date: Wed, 8 May 2013 16:44:54 -0700 Message-ID: Subject: Re: svn commit: r250379 - in head/usr.sbin/bsnmpd/modules: . snmp_hast From: Peter Wemm To: Mikolaj Golub Content-Type: text/plain; charset=ISO-8859-1 X-Gm-Message-State: ALoCoQkT7sEZsYElU/meEKCHU07NPzNfIpjrLrH90shPrZ9iJvZDwzjbBr6qgJ3bMu4sVzQKw/Ij Cc: svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 08 May 2013 23:44:55 -0000 On Wed, May 8, 2013 at 4:25 PM, Peter Wemm wrote: > On Wed, May 8, 2013 at 1:03 PM, Mikolaj Golub wrote: >> Author: trociny >> Date: Wed May 8 20:03:37 2013 >> New Revision: 250379 >> URL: http://svnweb.freebsd.org/changeset/base/250379 >> >> Log: >> HAST module for bsnmpd(1). >> >> Reviewed by: harti, pjd >> MFC after: 2 weeks > > This breaks world on just about everything other than i386, and it is > technically broken there too but doesn't actually cause a build > failure. > > You cannot link a .so file against a non-pic library, libl.a in this case. > > ===> usr.sbin/bsnmpd/modules/snmp_hast (all)^M > /usr/obj/usr/src/tmp/usr/bin/ld: /usr/obj/usr/src/tmp/usr/lib/libl.a(libyywrap.o > ): relocation R_X86_64_32 against `a local symbol' can not be used when making a > shared object; recompile with -fPIC^M > /usr/obj/usr/src/tmp/usr/lib/libl.a: could not read symbols: Bad value^M > *** [snmp_hast.so.6] Error code 1^M Hmm. It seems clang optimizes something away that gcc doesn't. When building with clang the problem doesn't show up. -- Peter Wemm - peter@wemm.org; peter@FreeBSD.org; peter@yahoo-inc.com; KI6FJV