11a98 Can't build GTK2 apps after cleanup - The FreeBSD Forums
The FreeBSD Forums  

Go Back   The FreeBSD Forums > Ports & Packages > Installation and Maintenance of FreeBSD Ports or Packages

Installation and Maintenance of FreeBSD Ports or Packages Installing and maintaining the FreeBSD Ports Collection or FreeBSD Packages (i.e. third party software).

Reply
 
Thread Tools Display Modes
  #1  
Old September 10th, 2012, 18:27
freemason freemason is offline
Junior Member
 
Join Date: Aug 2012
Posts: 64
Thanks: 4
Thanked 0 Times in 0 Posts
Default Can't build GTK2 apps after cleanup

hallo.

How can I install gtk2 development headers from ports?
They are needed to build pidgin, but I can't find them in ports!

ACTION:
Code:
: cd /usr/ports/net-im/pidgin
: sudo make install clean

ERROR:
Code:
checking for GTK... no
no
configure: error: 

You must have GTK+ 2.10.0 or newer development headers installed to compile
Pidgin.  If you want to build only Finch then specify --disable-gtkui when
running configure.

===>  Script "configure" failed unexpectedly.
Please report the problem to marcus@FreeBSD.org [maintainer] and attach the
"/usr/ports/net-im/pidgin/work/pidgin-2.10.6/config.log" including the output
of the failure of your make command. Also, it might be a good idea to provide
an overview of all packages installed on your system (e.g. a /usr/sbin/pkg_info
-Ea).
*** [do-configure] Error code 1

Stop in /usr/ports/net-im/pidgin.
*** [install] Error code 1

Stop in /usr/ports/net-im/pidgin.
Also, I have gtk2 installed.

Last edited by freemason; September 21st, 2012 at 17:54.
Reply With Quote
  #2  
Old September 10th, 2012, 18:43
ColdfireMC ColdfireMC is offline
Junior Member
 
Join Date: Aug 2012
Posts: 78
Thanks: 4
Thanked 3 Times in 3 Posts
Default

cd to usr/ports and then

Code:
#make search name=gtk | more
this will show u all ports related to GTK on it's name. output will be paged with more using a pipe.

Code:
#make search key=gtk | more
this will show you al ports related by any reason with gtk

if you have already installed and configured sudo, place "sudo" before any of those 2 commands to avoid use root account(isn't safe to use root everyday).

every port has a directory in ports tree. find the port that you need, cd to that directory and type "make install". some ports have huge dependence lists, so you can pre-configure them with "make config-recursive" and save tons of time, ensure that your configs aren't broken.
it's hihgly recommended to update ports tree, use portsnap(read man) or cvsup. avoid to use packages with ports mixed.
Reply With Quote
  #3  
Old September 11th, 2012, 08:01
SirDice's Avatar
SirDice SirDice is offline
Moderator
 
Join Date: Nov 2008
Location: Rotterdam, Netherlands
Posts: 13,702
Thanks: 47
Thanked 2,022 Times in 1,861 Posts
Default

Are there any options in /etc/make.conf that might interfere?
__________________
Senior UNIX Engineer at Unix Support Nederland
Experience is something you don't get until just after you need it.
Reply With Quote
  #4  
Old September 11th, 2012, 12:58
freemason freemason is offline
Junior Member
 
Join Date: Aug 2012
Posts: 64
Thanks: 4
Thanked 0 Times in 0 Posts
Default

You mean one of these?

Code:
WITH_KMS="YES"
WITH_NEW_XORG="YES"
KERNCONF=LITE
WITHOUT_MODULES="netgraph"
CPUTYPE?=core2
CFLAGS= -O2 -fno-strict-aliasing -pipe
MAKE_SHELL?=sh
COPTFLAGS= -O -pipe
PERL_VERSION=5.14.2
Reply With Quote
  #5  
Old September 11th, 2012, 13:01
SirDice's Avatar
SirDice SirDice is offline
Moderator
 
Join Date: Nov 2008
Location: Rotterdam, Netherlands
Posts: 13,702
Thanks: 47
Thanked 2,022 Times in 1,861 Posts
Default

Quote:
Originally Posted by freemason View Post
You mean one of these?
Yep.
Quote:
Code:
CFLAGS= -O2 -fno-strict-aliasing -pipe
COPTFLAGS= -O -pipe
Remove these. They will do more harm than good.
__________________
Senior UNIX Engineer at Unix Support Nederland
Experience is something you don't get until just after you need it.
Reply With Quote
  #6  
Old September 21st, 2012, 18:01
freemason freemason is offline
Junior Member
 
Join Date: Aug 2012
Posts: 64
Thanks: 4
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by SirDice View Post
Remove these. They will do more harm than good.
Compile options are not the cause of my problem.

Once again, after cleaning up (doing sudo make clean in the /usr/ports) the whole ports tree (and removing unused dependencies from already installed packages with pkg_cutleaves) I can't build any port that uses GLIB/GTK2 headers to compile.

For example, now I'm trying to build package for gmrun to install it, but it cannot locate glib/gtk2 development headers and so gives lots of errors and doesn't build properly.

I'm lost somewhere. Please help
Reply With Quote
  #7  
Old September 21st, 2012, 19:56
break19 break19 is offline
Member
 
Join Date: Nov 2009
Posts: 109
Thanks: 10
Thanked 17 Times in 15 Posts
Default

re-install both gtk2 and glib2 - if you have those installed, the headers should be as well.. if not, then your installations of them are corrupt. FreeBSD does not separate headers from libraries..
Reply With Quote
  #8  
Old September 21st, 2012, 20:47
wblock@'s Avatar
wblock@ wblock@ is offline
Moderator
 
Join Date: Sep 2009
Location: Milky Way galaxy
Posts: 7,702
Thanks: 429
Thanked 1,757 Times in 1,456 Posts
Default

Changing settings from defaults without good reason to do so can cause that. CFLAGS are a known source of problems. I'm also curious about MAKE_SHELL. Why change that?
Reply With Quote
  #9  
Old September 21st, 2012, 23:01
freemason freemason is offline
Junior Member
 
Join Date: Aug 2012
Posts: 64
Thanks: 4
Thanked 0 Times in 0 Posts
Default

now I'll wipe the ports tree and begin a new life

Quote:
Originally Posted by wblock@ View Post
I'm also curious about MAKE_SHELL. Why change that?
MAKE_SHELL was written here before. I didn't touch it.

Also, glib and gtk headers are in the place, but are not seen by ports...

Last edited by freemason; September 22nd, 2012 at 21:19.
Reply With Quote
Reply

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
[Solved] freebsd-update cleanup? Dru Installing & Upgrading 0 January 5th, 2012 22:09
webkit-gtk2 build failure fmw Installation and Maintenance of FreeBSD Ports or Packages 1 December 19th, 2010 20:59
How to build X11 apps binary all *bsd compatible? Lomik Userland Programming & Scripting 8 December 4th, 2009 13:54
Dependency cleanup dbi Installation and Maintenance of FreeBSD Ports or Packages 3 May 13th, 2009 00:10
code cleanup aavzz FreeBSD Development 1 May 9th, 2009 13:49


All times are GMT +1. The time now is 19:12.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.
The mark FreeBSD is a registered trademark of The FreeBSD Foundation and is used by The FreeBSD Project with the permission of The FreeBSD Foundation.
Web protection and acceleration provided by CloudFlare
0