From owner-freebsd-gnome@FreeBSD.ORG Wed Apr 24 22:56:11 2013 Return-Path: Delivered-To: gnome@FreeBSD.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 93657579 for ; Wed, 24 Apr 2013 22:56:11 +0000 (UTC) (envelope-from russauld@gmail.com) Received: from mail-lb0-f196.google.com (mail-lb0-f196.google.com [209.85.217.196]) by mx1.freebsd.org (Postfix) with ESMTP id 21BBA12AF for ; Wed, 24 Apr 2013 22:56:10 +0000 (UTC) Received: by mail-lb0-f196.google.com with SMTP id y8so604937lbh.3 for ; Wed, 24 Apr 2013 15:56:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:date:message-id:subject:from:to :content-type; bh=ivzGHOKtvn35Q16CWRCmWljUA91mnJKTzleOdQMfrmQ=; b=HJIm8ah08JwNjW3gW7JuhdelJ3/194J+E5irM/Nr1BWW4p63uh9jsq53/ofthgOeRl GzhU+LuhRC/Gs4sQuOBSTSw6Hks05UdC3TtwKXwhNPYEDYNc09F9I4tXz3v40dhh8ks2 FIvhiMb8D87z05W97amVFC8IUA+LX/TDo23Y06Nc87kpXC2azZ/pEVpheb3Yc6KSabmP r7n2N8rBDREhcw5tVEfc/azDw13z/RmebG5BiPa9DVbYMqhKkjNyoDxZaSGLbUIGeNG0 zYNyv16JZhf+sPfIaN7kOBpk0yUxdz3Mq+DtvSu+1t6lAtabIIJ2ejc8CJFQecBRgxem fc1g== MIME-Version: 1.0 X-Received: by 10.112.140.1 with SMTP id rc1mr18628307lbb.43.1366844163622; Wed, 24 Apr 2013 15:56:03 -0700 (PDT) Received: by 10.112.169.36 with HTTP; Wed, 24 Apr 2013 15:56:03 -0700 (PDT) Date: Wed, 24 Apr 2013 18:56:03 -0400 Message-ID: Subject: FreeBSD Port: graphics/gegl From: Russell Auld To: gnome@FreeBSD.org Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.14 X-BeenThere: freebsd-gnome@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: GNOME for FreeBSD -- porting and maintaining List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 24 Apr 2013 22:56:11 -0000 Hi, I've been having some trouble building the gegl_0.2.0_2 port on my system (FreeBSD 8.0 i386). It was seg faulting when it tried to build the graphics files from xml in "/usr/ports/graphics/gegl/work/gegl-0.2.0/docs/gallery/" The expected result is "gegl -i OpenRaster-00.xml" should not crash. I did some digging and it turns out to be a problem with the "realpath" function call in bin/gegl.c Around line 119, you should see this: path_root = g_strdup (tmp = realpath (temp2, NULL)); That works fine on Linux, as the second argument is allowed to be NULL. However on FreeBSD, the second argument cannot be NULL and is expected to be a buffer capable of storing the resulting path. [see below] So, declaring "gchar abs_path[PATH_MAX]" and then changing the call to: path_root = g_strdup (tmp = realpath (temp2, abs_path)); Fixes the crash problem (as long as you also comment out the g_free(tmp) line afterwards). This problem also occurs in gegl/gegl-xml.c My system is 32-bit FreeBSD 8.0: FreeBSD xxx 8.0-RELEASE FreeBSD 8.0-RELEASE #0: Sat Nov 21 15:48:17 UTC 2009 root@almeida.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC i386 See here for linux manpage: http://man7.org/linux/man-pages/man3/realpath.3.html versus: The [second] argument must refer to a buffer capable of storing at least PATH_MAX characters. from my system, "man 3 realpath". It looks like that changed in version 8.1 to allow NULL as the second argument. http://www.freebsd.org/cgi/man.cgi?query=realpath&apropos=0&sektion=3&manpath=FreeBSD+8.1-RELEASE&arch=default&format=html vs http://www.freebsd.org/cgi/man.cgi?query=realpath&apropos=0&sektion=3&manpath=FreeBSD+8.0-RELEASE&arch=default&format=html Once I fixed the code, it was able to complete the tests and install. HOWEVER, I never got a "gegl.pc" file dropped into /usr/local/libdata/pkgconfig" despite the fact that "pkg_info -L gegl-0.2.0_2" shows that file as part of the manifest. This missing pkgconfig file is preventing me from building gimp. Thoughts?