DaemonForums  

Go Back   DaemonForums > FreeBSD > FreeBSD Ports and Packages

FreeBSD Ports and Packages Installation and upgrading of ports and packages on FreeBSD.

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #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
 

Tags
pfstat

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
vlans and pfstat zomo OpenBSD General 4 9th July 2009 09:19 PM
Undefined function in OpenBSD WeakSauceIII OpenBSD General 4 20th May 2009 12:58 PM
pfstat fopen failed: ? Calderon FreeBSD General 3 7th May 2009 08:52 AM
Networking: CLI quick reference anomie Other BSD and UNIX/UNIX-like 0 2nd October 2008 01:21 AM
NetBSD reference card Oliver_H NetBSD General 0 8th May 2008 06:20 PM


All times are GMT. The time now is 11:24 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick