Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 13 Feb 2007 03:39:47 +0300
From:      "Andrew Pantyukhin" <infofarmer@FreeBSD.org>
To:        "Tom McLaughlin" <tmclaugh@freebsd.org>
Cc:        youshi10@u.washington.edu, freebsd-ports@freebsd.org
Subject:   Re: Porting a Linux application to FreeBSD
Message-ID:  <cb5206420702121639xe11882atc7a37b2125256400@mail.gmail.com>
In-Reply-To: <1171323867.21134.1.camel@localhost>
References:  <Pine.LNX.4.43.0702121435340.10676@hymn08.u.washington.edu> <1171323867.21134.1.camel@localhost>

next in thread | previous in thread | raw e-mail | index | archive | help
On 2/13/07, Tom McLaughlin <tmclaugh@freebsd.org> 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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?cb5206420702121639xe11882atc7a37b2125256400>