From nobody@FreeBSD.org  Fri Jan 18 21:26:11 2013
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1])
	by hub.freebsd.org (Postfix) with ESMTP id 1B9CCBCE
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 18 Jan 2013 21:26:11 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22])
	by mx1.freebsd.org (Postfix) with ESMTP id E4F288D9
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 18 Jan 2013 21:26:10 +0000 (UTC)
Received: from red.freebsd.org (localhost [127.0.0.1])
	by red.freebsd.org (8.14.5/8.14.5) with ESMTP id r0ILQA7p026287
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 18 Jan 2013 21:26:10 GMT
	(envelope-from nobody@red.freebsd.org)
Received: (from nobody@localhost)
	by red.freebsd.org (8.14.5/8.14.5/Submit) id r0ILQAJ6026286;
	Fri, 18 Jan 2013 21:26:10 GMT
	(envelope-from nobody)
Message-Id: <201301182126.r0ILQAJ6026286@red.freebsd.org>
Date: Fri, 18 Jan 2013 21:26:10 GMT
From: Stefan <schaecsn@gmx.net>
To: freebsd-gnats-submit@FreeBSD.org
Subject: png headers not found
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         175420
>Category:       ports
>Synopsis:       graphics/png headers not found
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    dinoex
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Jan 18 21:30:03 UTC 2013
>Closed-Date:    Sun Jan 27 09:17:27 CET 2013
>Last-Modified:  Sun Jan 27 09:17:27 CET 2013
>Originator:     Stefan
>Release:        9.1
>Organization:
>Environment:
FreeBSD freebsd 9.1-RELEASE FreeBSD 9.1-RELEASE #0 r243836: Tue Dec  4 15:49:34 UTC 2012     root@heller.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  sparc64

>Description:
I installed graphics/png via ports:

/usr/local/bin/libpng-config
/usr/local/bin/libpng15-config
/usr/local/include/png.h
/usr/local/include/pngconf.h
/usr/local/include/pnglibconf.h
/usr/local/include/libpng15
/usr/local/include/libpng15/png.h
/usr/local/include/libpng15/pngconf.h
/usr/local/include/libpng15/pnglibconf.h
/usr/local/include/libpng15/pngdebug.h
/usr/local/include/libpng15/pnginfo.h
/usr/local/include/libpng15/pngpriv.h
/usr/local/include/libpng15/pngstruct.h
/usr/local/lib/libpng15.so.15
/usr/local/lib/libpng15.so
/usr/local/lib/libpng.so
/usr/local/lib/libpng15.a
/usr/local/lib/libpng.a
/usr/local/lib/libpng
/usr/local/lib/libpng/libpng15.cmake
/usr/local/lib/libpng/libpng15-release.cmake
/usr/local/libdata/pkgconfig/libpng.pc
/usr/local/libdata/pkgconfig/libpng15.pc
/usr/local/man/man3/libpngpf.3.gz
/usr/local/man/man3/libpng.3.gz
/usr/local/man/man5/png.5.gz


Several programs don't compile, e.g. graphics/xv:

make   
:
gccmakedep -f-  -- -I/usr/local/include -I/usr/local/include -I/usr/local/include -I/usr/local/include -I/usr/include  -I/usr/local/include    -DCSRG_BASED  -DFUNCPROTO=15 -DNARROWPROTO
xvpng.c:36:21: error: pngpriv.h: No such file or directory
:
gcc -O2 -fno-strict-aliasing -mcpu=ultrasparc -pipe -mcpu=ultrasparc     -I/usr/local/include -I/usr/local/include -I/usr/local/include -I/usr/local/include -I/usr/include  -I/usr/local/include    -DCS
xvpng.c:36:21: error: pngpriv.h: No such file or directory
:

or print/transfig:

make   
:
gccmakedep -f-  -- -I.. -I../..  -I/usr/local/include    -DCSRG_BASED  -DFUNCPROTO=15 -DNARROWPROTO     -I/usr/local/include/libpng -- genbox.c gencgm.c gendxf.c genepic.c gengbx.o genibmgl.c genlatex.
cc: gengbx.o: No such file or directory
readpng.c:19:21: error: pngpriv.h: No such file or directory
:
gcc -O2 -fno-strict-aliasing -mcpu=ultrasparc -pipe -mcpu=ultrasparc     -I.. -I../..  -I/usr/local/include    -DCSRG_BASED  -DFUNCPROTO=15 -DNARROWPROTO   -DUSE_PNG -DUSE_XPM -I/usr/local/include/libp
readpng.c:19:21: error: pngpriv.h: No such file or directory
:


For the time being, I help myself with

# cd /usr/local/include
# ln -s libpng15/pngpriv.h .
# ln -s libpng15/pnginfo.h .
# ln -s libpng15/pngstruct.h .
# ln -s libpng15/pngdebug.h .
>How-To-Repeat:

>Fix:


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->dinoex 
Responsible-Changed-By: edwin 
Responsible-Changed-When: Sun Jan 20 00:27:03 UTC 2013 
Responsible-Changed-Why:  
Over to maintainer (via the GNATS Auto Assign Tool) 

http://www.freebsd.org/cgi/query-pr.cgi?pr=175420 
State-Changed-From-To: open->feedback 
State-Changed-By: dinoex 
State-Changed-When: Sat Jan 26 15:23:03 CET 2013 
State-Changed-Why:  

I can not reproduce the problem. 

> I started a new install from scratch of FreeBSD 9.1 
> I wanted to compile my favorite image viewer : XV, but I can't compile it :-( 

that should work out of the box. 

> gcc -O2 -pipe -fno-strict-aliasing -march=native 
> -I/usr/local/include -I/usr/local/include -I/usr/local/include 
> -I/usr/local/include -I/usr/include  -I/usr/local/include 

I see not the required director for png. 

> xvpng.c:36:21: error: pngpriv.h: No such file or directory 
> [...] 

please check if you use CFLAGS= in make.conf 
if you do, please change it to CFLAGS?= 

kind regards Dirk 


http://www.freebsd.org/cgi/query-pr.cgi?pr=175420 
State-Changed-From-To: feedback->closed 
State-Changed-By: dinoex 
State-Changed-When: Sun Jan 27 09:16:09 CET 2013 
State-Changed-Why:  

Feedback received: 

Oh,that helped. 

"Make configure" is still puzzled and does not find pngpriv.h in /usr/local/include/libpng15/, but the actual compilation includes -I/usr/local/include/libpng15 a 
nd everything compiles fine. 

Stefan 



http://www.freebsd.org/cgi/query-pr.cgi?pr=175420 
>Unformatted:
