From owner-freebsd-ppc@FreeBSD.ORG Tue Mar 17 12:59:48 2015 Return-Path: Delivered-To: freebsd-ppc@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 6C9DA5AE for ; Tue, 17 Mar 2015 12:59:48 +0000 (UTC) Received: from mail-we0-x231.google.com (mail-we0-x231.google.com [IPv6:2a00:1450:400c:c03::231]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id F34C2AA1 for ; Tue, 17 Mar 2015 12:59:47 +0000 (UTC) Received: by wegp1 with SMTP id p1so7032130weg.1 for ; Tue, 17 Mar 2015 05:59:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject :content-type:content-transfer-encoding; bh=v9dpcMo8/EJC1mHnooyowEtGHPd5qVEgquvVqZZ71PE=; b=vIx0dEVtxYUvCHYmxh4zjB1CfgoEeEke5SCtdTzuqJ1V2xHJ1BKbyy/BafzueV9F45 k17MXeORV/C6OTqUaID8na4u0ZtIG2wK5kXc1NtoBa+67zunPTsKOYvMB67i5Y6P93xF 3tsK4ndw0UiTL8Ss3BWnXsMCpNit8bMOUMoPYE+I1RnPlkXi5o6Fz8xRYIRdepTvBW7S 9cmkrsAINtyceHZ+sGjufTLNQ46rhEhy759VlEXk7qAfQ0fr/TnyfofW0z+4frf17h7+ K0vYVZVert2j3TF6d/0tSikcI7F4cY1EzJ1tcVUzggZjSNPj5W0udmI9mA7AvgquYStB a26A== X-Received: by 10.180.76.147 with SMTP id k19mr98871558wiw.92.1426597186354; Tue, 17 Mar 2015 05:59:46 -0700 (PDT) Received: from [192.168.1.131] (xdsl-205-163.nblnetworks.fi. [83.145.205.163]) by mx.google.com with ESMTPSA id s19sm2558273wik.18.2015.03.17.05.59.45 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 17 Mar 2015 05:59:45 -0700 (PDT) Message-ID: <55082540.1020001@gmail.com> Date: Tue, 17 Mar 2015 14:59:44 +0200 From: Jukka Ukkonen User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:31.0) Gecko/20100101 Thunderbird/31.5.0 MIME-Version: 1.0 To: freebsd-ppc@FreeBSD.org Subject: Something missing perhaps? Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 17 Mar 2015 12:59:48 -0000 Hello all, I was trying to build kyotocabinet from the ports tree on an old PowerMac G4 Quicksilver, but the attempt failed in a very peculiar manner... Do these complaints from cc ring any bells... ./libkyotocabinet.so: undefined reference to `__sync_lock_test_and_set_8' ./libkyotocabinet.so: undefined reference to `__sync_fetch_and_add_8' ./libkyotocabinet.so: undefined reference to `__sync_bool_compare_and_swap_8' ./libkyotocabinet.so: undefined reference to `__sync_lock_test_and_set_8' ./libkyotocabinet.so: undefined reference to `__sync_fetch_and_add_8' ./libkyotocabinet.so: undefined reference to `__sync_bool_compare_and_swap_8' Those missing names are apparenly being referenced by work/kyotocabinet-1.2.76/kcthread.cc. Since I failed to find the definition of these names anywhere in the kyotocabinet source, I assume the names are used in some compiler header file. Were those names really intended to be in the headers as-is or were they actually some sort of place holders for something which have then been completely forgotten for some reason? The all important details of the system are... # uname -a FreeBSD yggdrasil 10.1-STABLE FreeBSD 10.1-STABLE #0 r280132: Mon Mar 16 06:12:57 EET 2015 root@yggdrasil:/opt2/obj/usr/src-10.1/sys/GENERIC powerpc # uname -KU 1001510 1001510 # freebsd-version -ku 10.1-STABLE 10.1-STABLE --jau