From owner-freebsd-ports@FreeBSD.ORG Mon Mar 27 10:03:34 2006 Return-Path: X-Original-To: freebsd-ports@freebsd.org Delivered-To: freebsd-ports@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7299316A425 for ; Mon, 27 Mar 2006 10:03:34 +0000 (UTC) (envelope-from tobez@tobez.org) Received: from heechee.tobez.org (heechee.tobez.org [194.255.56.42]) by mx1.FreeBSD.org (Postfix) with ESMTP id B4C0B43D4C for ; Mon, 27 Mar 2006 10:03:31 +0000 (GMT) (envelope-from tobez@tobez.org) Received: by heechee.tobez.org (Postfix, from userid 1001) id A1B96125427; Mon, 27 Mar 2006 12:03:30 +0200 (CEST) Date: Mon, 27 Mar 2006 12:03:30 +0200 From: Anton Berezin To: "O. Hartmann" Message-ID: <20060327100330.GD58186@heechee.tobez.org> Mail-Followup-To: Anton Berezin , "O. Hartmann" , freebsd-ports@freebsd.org References: <4424047D.8090800@uni-mainz.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4424047D.8090800@uni-mainz.de> User-Agent: Mutt/1.4.2.1i X-Powered-By: FreeBSD http://www.freebsd.org/ Cc: freebsd-ports@freebsd.org Subject: Re: FreeBSD 6.1/AMD64: Celestia 1.3.2/1.4.1 not working? X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 27 Mar 2006 10:03:34 -0000 On Fri, Mar 24, 2006 at 03:38:53PM +0100, O. Hartmann wrote: > Compiling port Celestia 1.3.2 on FreeBSD 6.1-PRE/i386 works fine, but > while compiling works on FreeBSD 6.1-PRE/AMD64, starting application > results in segmentation fault: Signal 11. This leads me into conclusion > Celestia 1.3.2 is not 64 Bit clean. > Therefore, I tried compiling the sources of Celestia 1.4.1 taken from > www.shatters.net on FreeBSD 6.1/i386, but this task ends up in compiler > errors: > > -------------------------------------- > Making all in cel3ds > if g++ -DHAVE_CONFIG_H -I. -I. -I../.. -I.. -Wnon-virtual-dtor > -Wno-long-lon g > -Wundef -Wall -W -Wpointer-arith -Wwrite-strings -DNDEBUG -DNO_DEBUG -O2 > -pipe -pthread > -march=pentium4 -ffast-math -fno-strict-aliasing -fno-exceptions -fno- > check-new > -fno-common -O2 -Wall -ffast-math -fexpensive-optimizations -fomit-fr > ame-pointer > -DXTHREADS -DXUSE_MTSAFE_API -I/usr/local/include/atk-1.0 -I/usr/loc > al/include/cairo > -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include > > -I/usr/X11R6/include/gtk-2.0 -I/usr/X11R6/lib/gtk-2.0/include > -I/usr/X11R6/incl > ude/pango-1.0 -I/usr/X11R6/include -I/usr/local/include/freetype2 > -I/usr/local/i > nclude -I/usr/X11R6/include/gtkglext-1.0 > -I/usr/X11R6/lib/gtkglext-1.0/include > -I/usr/local/include/cairo -MT 3dsread.o -MD > -MP -MF ".deps/3dsread.Tpo" -c - > o 3dsread.o `test -f '3dsread.cpp' || echo > './'`3dsread.cpp; then mv -f ".deps/ > 3dsread.Tpo" ".deps/3dsread.Po"; else rm -f > ".deps/3dsread.Tpo"; exit 1; fi > In file included from ../celutil/bytes.h:15, > from 3dsread.cpp:15: > ../../config.h:256: error: declaration of C function `long unsigned int > strlcat( char*, > const char*, long unsigned int)' conflicts with > /usr/include/string.h:87: error: previous declaration `size_t > strlcat(char*, con > st char*, size_t)' here > ../../config.h:268: error: declaration of C function `long unsigned int > strlcpy( char*, > const char*, long unsigned int)' conflicts with > /usr/include/string.h:88: error: previous declaration `size_t > strlcpy(char*, con > st char*, size_t)' here > 3dsread.cpp:514: warning: unused parameter 'contentSize' > 3dsread.cpp:490: warning: unused parameter 'contentSize' > 3dsread.cpp:344: warning: unused parameter 'contentSize' > 3dsread.cpp:308: warning: unused parameter 'in' > 3dsread.cpp:308: warning: unused parameter 'chunkType' > 3dsread.cpp:308: warning: unused parameter 'contentSize' > 3dsread.cpp:308: warning: unused parameter 'obj' > 3dsread.cpp:276: warning: unused parameter 'nBytes' > 3dsread.cpp:264: warning: unused parameter 'nBytes' > 3dsread.cpp:252: warning: unused parameter 'nBytes' > 3dsread.cpp:119: warning: unused parameter 'chunkSize' > ../celutil/bytes.h:24: warning: 'short unsigned int bswap_16(short > unsigned int) ' > defined but not used > ../celutil/bytes.h:28: warning: 'unsigned int bswap_32(unsigned int)' > defined but not used > *** Error code 1 > > Stop in /usr/data/gnu/compile/system/celestia-1.4.1/src/cel3ds. > *** Error code 1 > > Stop in /usr/data/gnu/compile/system/celestia-1.4.1/src. > *** Error code 1 > > Stop in /usr/data/gnu/compile/system/celestia-1.4.1. > *** Error code 1 > > Stop in /usr/data/gnu/compile/system/celestia-1.4.1. > -------------------------------------- > > This looks like a very simple mistake where config.h overwrites > declarations done via string.h, but I'm not sure. Well. You are very welcome to produce necessary patches, esp. since the port is not maintained! > Compiling the same port on a box with same software releases, but > amd64, results in very different errors (not just here, due to the > fact the box is at home). I, for one, would love to have celestia both upgraded to 1.4.1 *and* working on amd64. If you make this work, I'll commit it in a heartbeat. :-) Thanks, \Anton. -- An undefined problem has an infinite number of solutions. -- Robert A. Humphrey