View Single Post
  #1   (View Single Post)  
Old 4th July 2008
chris chris is offline
Port Guard
 
Join Date: May 2008
Location: United Kingdom
Posts: 35
Default ports/sysutils/pfstat; undefined reference to `gdImagePng'

Hi all,
I have been trying to install pfstat on my FBSD 6.2-Release-p2 box via ports but get the following error;

Code:
zeus# cd /usr/ports/sysutils/pfstat/
zeus# make clean
===>  Cleaning for pfstat-2.2_3
zeus# make install clean
===>  Vulnerability check disabled, database not found
===>  Extracting for pfstat-2.2_3
=> MD5 Checksum OK for pfstat-2.2.tar.gz.
=> SHA256 Checksum OK for pfstat-2.2.tar.gz.
===>  Patching for pfstat-2.2_3
===>  Applying extra patch /usr/ports/sysutils/pfstat/files/pre41-patch-pf.c
===>  Applying FreeBSD patches for pfstat-2.2_3
===>   pfstat-2.2_3 depends on shared library: gd.4 - found
===>   pfstat-2.2_3 depends on shared library: iconv.3 - found
===>  Configuring for pfstat-2.2_3
===>  Building for pfstat-2.2_3
Warning: Object directory not changed from original /usr/ports/sysutils/pfstat/work/pfstat-2.2
yacc -d -o parse.c parse.y
cc -O2 -fno-strict-aliasing -pipe   -Wall -I/usr/local/include -I/usr/ports/sysutils/pfstat/work/pfstat-2.2  -c pfstat.c
cc -O2 -fno-strict-aliasing -pipe   -Wall -I/usr/local/include -I/usr/ports/sysutils/pfstat/work/pfstat-2.2  -c pf.c
cc -O2 -fno-strict-aliasing -pipe   -Wall -I/usr/local/include -I/usr/ports/sysutils/pfstat/work/pfstat-2.2  -c data.c
cc -O2 -fno-strict-aliasing -pipe   -Wall -I/usr/local/include -I/usr/ports/sysutils/pfstat/work/pfstat-2.2  -c graph.c
cc -O2 -fno-strict-aliasing -pipe   -Wall -I/usr/local/include -I/usr/ports/sysutils/pfstat/work/pfstat-2.2  -c parse.c
cc -O2 -fno-strict-aliasing -pipe   -Wall -I/usr/local/include -I/usr/ports/sysutils/pfstat/work/pfstat-2.2   -L/usr/local/lib -L/usr/local/lib -lgd -lm -lpng -lz -ljpeg -liconv -o pfstat pfstat.o pf.o data.o graph.o parse.o
graph.o(.text+0xfb6): In function `graph_generate_images':
: undefined reference to `gdImagePng'
*** Error code 1

Stop in /usr/ports/sysutils/pfstat/work/pfstat-2.2.
*** Error code 1

Stop in /usr/ports/sysutils/pfstat.
I updated then reinstalled libgd and libpng from scratch but this changed nothing. If i try to build pfstat from source I get a similar error;

Code:
graph.c: At top level:
graph.c:303: error: syntax error before "im"
graph.c: In function `draw_grid':
graph.c:305: error: `gdFontSmall' undeclared (first use in this function)
graph.c:306: error: `matrix' undeclared (first use in this function)
graph.c:315: error: `im' undeclared (first use in this function)
graph.c:401: warning: implicit declaration of function `gdImageStringUp'
*** Error code 1

Stop in /root/pfstat-2.3.
If anyone's got any ideas I'd be grateful.

Chris
Reply With Quote