Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 7 Nov 2002 07:26:09 -0800 (PST)
From:      Oliver Eikemeier <eikemeier@fillmore-labs.com>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/45035: gnuplot 3.7.2 port does not link with png library
Message-ID:  <200211071526.gA7FQ9dT043421@www.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         45035
>Category:       ports
>Synopsis:       gnuplot 3.7.2 port does not link with png library
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Nov 07 07:30:02 PST 2002
>Closed-Date:
>Last-Modified:
>Originator:     Oliver Eikemeier
>Release:        4.7-STABLE
>Organization:
Fillmore Labs
>Environment:
FreeBSD lima.fillmore-labs.com 4.7-STABLE FreeBSD 4.7-STABLE #3: Thu Oct 17 03:06:15 CEST 2002     root@lima.fillmore-labs.com:/usr/obj/usr/src/sys/LIMA  i386
>Description:
the gnuplot port configure script tests for libpng with a small test program. The test does not find libraries in /usr/local/lib, because /usr/libexec/elf/ld does not search there.
>How-To-Repeat:
update to gnuplot 3.7.2
enter 'cd /usr/ports/math/gnuplot; make'
in the trace you see:

checking for png_init_io in -lpng... no
  PNG library not found.

and in the log:

configure:4153: cc -o conftest -O -pipe -march=k6 -I/usr/local/include -I/usr/local/include/gd  -I/usr/X11R6/include  conftest.c -lpng -lz -lm  1>&5
/usr/libexec/elf/ld: cannot find -lpng

>Fix:
apply the following path to the ports Makefile:

--- Makefile~   Thu Nov  7 16:13:00 2002
+++ Makefile    Thu Nov  7 16:12:24 2002
@@ -21,7 +21,7 @@
 .endif

 GNU_CONFIGURE= yes
-CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include -I${LOCALBASE}/include/gd"
+CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include -I${LOCALBASE}/include/gd" LDFLAGS="-L${LOCALBASE}/lib"
 CONFIGURE_ARGS=        --exec-prefix=${PREFIX} \
                --includedir=${LOCALBASE}/include/ \
                --libdir=${LOCALBASE}/lib \
>Release-Note:
>Audit-Trail:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




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