From owner-freebsd-ports@FreeBSD.ORG Tue Feb 13 00:39:50 2007 Return-Path: X-Original-To: freebsd-ports@freebsd.org Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 19C0E16A401 for ; Tue, 13 Feb 2007 00:39:50 +0000 (UTC) (envelope-from infofarmer@gmail.com) Received: from hu-out-0506.google.com (hu-out-0506.google.com [72.14.214.238]) by mx1.freebsd.org (Postfix) with ESMTP id A0B0B13C428 for ; Tue, 13 Feb 2007 00:39:49 +0000 (UTC) (envelope-from infofarmer@gmail.com) Received: by hu-out-0506.google.com with SMTP id 38so2572963huc for ; Mon, 12 Feb 2007 16:39:48 -0800 (PST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:sender:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; b=K/iIcE1SScoGI7QyF4hQIi9XDnYEZy0BtonHmPuDLRyB5hw5PzA5C5nZGVUfAyGDVE7o6wh8w3uUARsnIXduCTZ5Nz5xByy29/MpngWNXNrEQ/ABOl2w237137tpiIRQ3UMCk0vIeGe5VLiMh3cvORWRKXostEomlRKL+1DL5Bw= Received: by 10.78.178.5 with SMTP id a5mr5616356huf.1171327187837; Mon, 12 Feb 2007 16:39:47 -0800 (PST) Received: by 10.78.164.20 with HTTP; Mon, 12 Feb 2007 16:39:47 -0800 (PST) Message-ID: Date: Tue, 13 Feb 2007 03:39:47 +0300 From: "Andrew Pantyukhin" Sender: infofarmer@gmail.com To: "Tom McLaughlin" In-Reply-To: <1171323867.21134.1.camel@localhost> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <1171323867.21134.1.camel@localhost> X-Google-Sender-Auth: 57be55ac4a197bd2 Cc: youshi10@u.washington.edu, freebsd-ports@freebsd.org Subject: Re: Porting a Linux application to FreeBSD 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: Tue, 13 Feb 2007 00:39:50 -0000 On 2/13/07, Tom McLaughlin wrote: > On Mon, 2007-02-12 at 14:35 -0800, youshi10@u.washington.edu wrote: > > Hello, > > I was referred here by some people in the hackers@ list because I > > asked a porting related question and I should have asked it on this > > list. > > I was wondering steps people had used in the past for porting > > linux applications, in particular applications that need libpng (i.e. > > the differences between FreeBSD and Linux's libpng, if there are any). > > I ran configure with no arguments and with the > > --with-png=/usr/local/lib argument, but both sets of arguments fail > > saying that they require png_read_png (just a C generated autoconf > > test). The odd thing that I discovered too when I manually tried to > > compile the autoconf generated C file is that it segfaulted when I > > tried to execute the program (not sure if this behavior's intended or > > not). > > Linux does not have it's own libpng and neither do we. Most Linux > distros and us use libpng from libpng.org. I took a quick look at the > current libpng in the ports tree and it appears to have png_read_png(). > With out seeing a Makefile for the ports system and some error output it > is hard to comment as to the specific reason stuff is failing for you. Yes, but my money says == =CPPFLAGS= -I${LOCALBASE}/include =LDFLAGS= -L${LOCALBASE}/lib =GNU_CONFIGURE= yes =CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}" === will help, it always(x0.999) does :-) It's one of those things everyone knows about but no one commits into Mk/* because we enjoy routine so much.