From owner-svn-src-head@FreeBSD.ORG Wed May 8 23:45:01 2013 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 4FFD9BCD for ; Wed, 8 May 2013 23:45:00 +0000 (UTC) (envelope-from peter@wemm.org) Received: from mail-vc0-f172.google.com (mail-vc0-f172.google.com [209.85.220.172]) by mx1.freebsd.org (Postfix) with ESMTP id 86359320 for ; Wed, 8 May 2013 23:45:00 +0000 (UTC) Received: by mail-vc0-f172.google.com with SMTP id m17so2286190vca.3 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=Xz/o+QEsmpeCwTSkHx/U+iSgbfb8Rj8mQsxpYRfBILpjYmlVPIQwwPvrRXDBWbZZv1 xDe6Zc6P2pMrR0FsYhwiJfxejMVJtf4ZTLBFerTqUwt8AoezinM3Wua3uCFBoe3YNTF8 hkEmyCDUZBq97VkqXZ68Fu5/LJQZzTc6m4DLNerhLEy46luZk7R2hs9brV/FFN03GsBz Nqp4U4n2oJDFKegWxI6yKD1GfB9z6LK39Vhm2FdMQB5VFcCxeaRltkX7pgjklyB29+Cs /Tva7VsKqIJsMJwgrDNnRxLaJl06ZwuQnGtAZgyusyoF1kBUb8oZ07PUUABy8HkhUVIa EbWA== 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: ALoCoQnWG5AFcJ6jXNHtNAOjdiqNDu5XSyMmq9zk5vm5jXnglHeCjNWFtUaI6FGH3SmUxvGCIyXQ Cc: svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 08 May 2013 23:45:01 -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