Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 10 Apr 2004 22:59:16 +0200 (CEST)
From:      Helge Oldach <rrdtoolapr04@oldach.net>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/65411: ports/net/rrdtool fails to build
Message-ID:  <200404102059.i3AKxGgM087824@sep.oldach.net>
Resent-Message-ID: <200404102100.i3AL0aW8083075@freefall.freebsd.org>

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

>Number:         65411
>Category:       ports
>Synopsis:       ports/net/rrdtool fails to build
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat Apr 10 14:00:36 PDT 2004
>Closed-Date:
>Last-Modified:
>Originator:     Helge Oldach
>Release:        FreeBSD 4.10-BETA i386
>Organization:
>Environment:
System: FreeBSD sep.oldach.net 4.10-BETA FreeBSD 4.10-BETA #1821: Fri Apr 9 16:24:09 CEST 2004 toor@sep.oldach.net:/usr/obj/usr/src/sys/GENERIC i386


>Description:

After the recent upgrade to 1.0.47 and using a shared PNG library,
rrdtool fails to build:

# cd /usr/ports/net/rrdtool && make
[...]
cp RRDs.pm blib/lib/RRDs.pm
/usr/bin/perl -I/usr/libdata/perl/5.00503/mach -I/usr/libdata/perl/5.00503 /usr/libdata/perl/5.00503/ExtUtils/xsubpp  -typemap /usr/libdata/perl/5.00503/ExtUtils/typemap RRDs.xs >xstmp.c && mv xstmp.c RRDs.c
cc -c -I../ -I.. -I../src -I../gd1.3 -DHAVE_CONFIG_H      -DVERSION=\"1.000471\"  -DXS_VERSION=\"1.000471\" -DPIC -fpic -I/usr/libdata/perl/5.00503/mach/CORE -DPERLPATCHLEVEL=5 RRDs.c
In file included from ../src/rrd_tool.h:24,
                 from RRDs.xs:13:
../config.h:164: warning: `PACKAGE' redefined
/usr/libdata/perl/5.00503/mach/CORE/perly.h:14: warning: this is the location of the previous definition
../config.h:191: warning: `VERSION' redefined
*Initialization*:1: warning: this is the location of the previous definition
RRDs.xs: In function `XS_RRDs_times':
RRDs.xs:363: warning: passing arg 1 of `Perl_sv_2mortal' makes pointer from integer without a cast
RRDs.xs:364: warning: passing arg 1 of `Perl_sv_2mortal' makes pointer from integer without a cast
mkdir blib/arch
mkdir blib/arch/auto
mkdir blib/arch/auto/RRDs
Running Mkbootstrap for RRDs ()
chmod 644 RRDs.bs
cc -o blib/arch/auto/RRDs/RRDs.so  -Wl,-E -shared -lperl -lm RRDs.o -L../src/.libs/ -lrrd_private -lpng -lz -lm    
/usr/libexec/elf/ld: cannot find -lpng
*** Error code 1

Stop in /usr/obj/usr/ports/net/rrdtool/work/rrdtool-1.0.47/perl-shared.
*** Error code 1

Stop in /usr/obj/usr/ports/net/rrdtool/work/rrdtool-1.0.47.
*** Error code 1

Stop in /usr/obj/usr/ports/net/rrdtool/work/rrdtool-1.0.47.
*** Error code 1

Stop in /usr/obj/usr/ports/net/rrdtool/work/rrdtool-1.0.47.
*** Error code 1

Stop in /usr/ports/net/rrdtool.
*** Error code 1

Stop in /usr/ports/net/rrdtool.
# 

>How-To-Repeat:
	see above

>Fix:

	Tweaking of Makefile to use the built-in libpng does make it work again. But it should indeed use the system's libpng.
>Release-Note:
>Audit-Trail:
>Unformatted:



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