From owner-freebsd-sparc64@FreeBSD.ORG Tue Apr 22 20:37:00 2014 Return-Path: Delivered-To: sparc64@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 ESMTPS id C468989D for ; Tue, 22 Apr 2014 20:37:00 +0000 (UTC) Received: from mail-ee0-x229.google.com (mail-ee0-x229.google.com [IPv6:2a00:1450:4013:c00::229]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 569151920 for ; Tue, 22 Apr 2014 20:37:00 +0000 (UTC) Received: by mail-ee0-f41.google.com with SMTP id t10so105084eei.0 for ; Tue, 22 Apr 2014 13:36:58 -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:references :in-reply-to:content-type:content-transfer-encoding; bh=S9AB/PuzMriKU8Ecrvh/Ssdkp3w94aTuBGN97WCZeDA=; b=QXRE2NHaD38rBJXuw/PT8DYSY4/YSsMrlfFGtxrLICCTJsNzKrCepF6LcK1MF1NREc Dj/VHG2tCjxsGqqyjDGFlt0oMAzEL4rXxWP0+m4ffk/gH9UXDpufkHfCyY0dnpCBoRmA 5tGx6Dwxpcv4H51jsuaQ2Mehb/Kr67uadQ3r6uy6As4tuDnndH/GzfUNor/53I0VpnS+ /7QrRDnxpVGwahls5FfQaHlGu8vsPeebieAi2O7/6Bq40qbkh6v/urO/jd09SPU3ohzg LoyP6Bca13vNnC1C6nUkERa0RCV3kG5kD33Wwo7zY6eK7NvoWLFY7UU+qpZ1rjc39MA2 thHg== X-Received: by 10.14.219.137 with SMTP id m9mr13204388eep.77.1398199018569; Tue, 22 Apr 2014 13:36:58 -0700 (PDT) Received: from dhcp001.presid.infn.it (dhcp001.presid.infn.it. [141.108.8.51]) by mx.google.com with ESMTPSA id l42sm116122098eew.19.2014.04.22.13.36.57 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 22 Apr 2014 13:36:57 -0700 (PDT) Message-ID: <5356D2E9.4010009@gmail.com> Date: Tue, 22 Apr 2014 22:36:57 +0200 From: Riccardo Veraldi User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:24.0) Gecko/20100101 Thunderbird/24.4.0 MIME-Version: 1.0 To: sparc64@freebsd.org Subject: Re: libsoup References: <5350D21A.5050800@gmail.com> <25617748.123.1397978390159.JavaMail.craig@w520> <53569D98.1040507@gmail.com> <20140422172251.GC43976@funkthat.com> <5356A743.9010300@gmail.com> <20140422180040.GD43976@funkthat.com> In-Reply-To: <20140422180040.GD43976@funkthat.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-sparc64@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: Porting FreeBSD to the Sparc List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 22 Apr 2014 20:37:00 -0000 I did it an there are no complains... there is only a warning which was there before. test.c:4: warning: 'g_type_init' is deprecated (declared at /usr/local/include/glib-2.0/gobject/gtype.h:669) Craig compiling on his UltraSparc IIe does not have my problem... On 4/22/14 8:00 PM, John-Mark Gurney wrote: > Riccardo Veraldi wrote this message on Tue, Apr 22, 2014 at 19:30 +0200: >> On 4/22/14 7:22 PM, John-Mark Gurney wrote: >>> Riccardo Veraldi wrote this message on Tue, Apr 22, 2014 at 18:49 +0200: >>>> seems there is a problem with strcmp somewhere... >>> It's probably being passed a bogus pointer... >>> >>>> this happens on my Sun Blade 1000 UltraSPARC IIIcu >>>> >>>> here I reproduced the problem. >>> are you sure it isn't a problem where the prototype isn't in scope, >>> and so strcmp or other function is getting/returning an int (32bits) >>> instead of a pointer (64bits)? The C standard states that if there >>> isn't a prototype in scope it's assumed to always be an int... >> maybe... but how can I fix it then ? >> to succesfully compile libsoup I had to disable the configure script so >> that it won't compile the test program... >> bad idea but at least it goes on... > Try adding -Wimplicit-function-declaration to the gcc command and see > if it complains about something... If it does complain, like: > trc.c: In function 'main': > strc.c:5: warning: implicit declaration of function 'strcmp' > strc.c:5: warning: implicit declaration of function 'f' > > you should report it to the maintainers that it's not including the > correct headers... >