Bug 45035 - gnuplot 3.7.2 port does not link with png library
Summary: gnuplot 3.7.2 port does not link with png library
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: chuckr
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-11-07 15:30 UTC by Oliver Eikemeier
Modified: 2002-11-08 03:50 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Oliver Eikemeier 2002-11-07 15:30:02 UTC
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.

Fix: apply the following path to the ports Makefile:



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 \--E41EsETcbbJ9dTYJ1SxhCxOgmoOauT0wy2Erl9VvBErG7zzD
Content-Type: text/plain; name="file.diff"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename="file.diff"

--- Makefile~   Thu Nov  7 16:13:00 2002
+++ Makefile    Thu Nov  7 16:12:24 2002
@@ -21,7 +21,7 @@
 .endif
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
Comment 1 Ying-Chieh Liao freebsd_committer freebsd_triage 2002-11-07 16:48:28 UTC
Responsible Changed
From-To: freebsd-ports->chuckr

over to maintainer
Comment 2 Greg Lewis freebsd_committer freebsd_triage 2002-11-08 03:49:53 UTC
State Changed
From-To: open->closed

Committed, thanks! 
Since I did the upgrade to 3.7.2 I thought I should fix the problem :).