DaemonForums  

Go Back   DaemonForums > FreeBSD > FreeBSD Ports and Packages

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

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 4th July 2008
chris chris is offline
Port Guard
 
Join Date: May 2008
Location: United Kingdom
Posts: 35
Thanked 6 Times in 3 Posts
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
  #2   (View Single Post)  
Old 5th July 2008
jb_daefo jb_daefo is offline
Package Pilot
 
Join Date: May 2008
Posts: 197
Thanked 5 Times in 5 Posts
Default

rebuild everything upon which /graphics/gd depends then
retry pfstat ? unclear if you tried that or not
__________________
using /LOOKAT/ with /var/db/pkg files and portmaster/aliases/pipes/find/grep to meteorically speedup port upgrades/installs...
Reply With Quote
  #3   (View Single Post)  
Old 5th July 2008
chris chris is offline
Port Guard
 
Join Date: May 2008
Location: United Kingdom
Posts: 35
Thanked 6 Times in 3 Posts
Default

Good call jb_daefo rebuilding everything that depended on gd fixed it! For those in the same position here's what I did;
Code:
cd /usr/ports/graphics/jpeg && make deinstall
cd /usr/ports/graphics/png && make deinstall
cd /usr/ports/print/freetype2 && make deinstall
cd /usr/ports/graphics/gd && make deinstall

** Update all ports - see http://www.daemonforums.org/showthread.php?t=594

cd /usr/ports/graphics/gd && make install clean
Reply With Quote
Reply

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 02:10 PM.


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