LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 03-26-2009, 02:20 PM   #1
stockdox
LQ Newbie
 
Registered: Mar 2009
Posts: 3

Rep: Reputation: 0
Unhappy Problems with glib 2.20 installation


Hello,
I have the following problem:
I downloaded glib 2.20 tar package, ran ./configure command but after running "make" command I received an error message:

Quote:
In file included from gdir.c:34:
../dirent.h:42: error: field ‘dd_dta’ has incomplete type
../dirent.h:64: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘opendir’
../dirent.h:65: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘readdir’
../dirent.h:66: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘closedir’
../dirent.h:67: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘rewinddir’
../dirent.h:68: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘telldir’
../dirent.h:69: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘seekdir’
../dirent.h:79: error: expected specifier-qualifier-list before ‘wchar_t’
../dirent.h:89: error: field ‘dd_dta’ has incomplete type
../dirent.h:108: error: expected specifier-qualifier-list before ‘wchar_t’
../dirent.h:113: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘_wopendir’
../dirent.h:114: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘_wreaddir’
../dirent.h:115: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘_wclosedir’
../dirent.h:116: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘_wrewinddir’
../dirent.h:117: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘_wtelldir’
../dirent.h:118: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘_wseekdir’
So, the process of making the package was terminated. I tried to install an older glib package but received the same error message. Could you help me please?
 
Old 03-26-2009, 04:58 PM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 CentOS7.9 + 50+ other Linux OS, for test only.
Posts: 17,486

Rep: Reputation: 3635Reputation: 3635Reputation: 3635Reputation: 3635Reputation: 3635Reputation: 3635Reputation: 3635Reputation: 3635Reputation: 3635Reputation: 3635Reputation: 3635
Welcome to LQ.

All Linux's usually have 'glib-2.x' installed by default.

And you are probably using an old Linux OS, when dirent.h
causes those errors ?

So please tell, what you are using, ..... and the reason to
change the glib-2.x .
.....
 
Old 03-26-2009, 11:04 PM   #3
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,602

Rep: Reputation: 2648Reputation: 2648Reputation: 2648Reputation: 2648Reputation: 2648Reputation: 2648Reputation: 2648Reputation: 2648Reputation: 2648Reputation: 2648Reputation: 2648
Quote:
..... and the reason to change the glib-2.x .
MOST DEFIANTLY that .Installing a new / different glib on your system CAN kill it unless you take precautions
like passinf a build directory to "configure " that IS NOT IN THE SYSTEM PATH
Code:
./configure --prefix=/opt/myBuilds/Glib-2.20
then pass those lib and include folders to what ever programs you are building that need it
this dose become a VERY BIG PAIN IN THE A?? to do .
 
Old 03-27-2009, 03:27 AM   #4
stockdox
LQ Newbie
 
Registered: Mar 2009
Posts: 3

Original Poster
Rep: Reputation: 0
I am using Fedora 10. I need to install GTK+ and it requires glib 2.0 or better, however there is only glib 1.2 installed in Fedora 10.
 
Old 03-27-2009, 06:22 AM   #5
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 CentOS7.9 + 50+ other Linux OS, for test only.
Posts: 17,486

Rep: Reputation: 3635Reputation: 3635Reputation: 3635Reputation: 3635Reputation: 3635Reputation: 3635Reputation: 3635Reputation: 3635Reputation: 3635Reputation: 3635Reputation: 3635
Fedora 10 already has these packages installed :

glib2-2.18.2, gtk2-2.14.4

'gtk+' = 'gtk2' = 'gtk-2.xx'

> > Use this command to know installed packages, e.g.
'rpm -qa | grep glib'
and 'rpm -qa | sort > my-packages.txt' to get a text
file with all packages in /home/"username"/

You may want : glib2-devel, gtk2-devel :
# yum -y install glib2-devel gtk2-devel
to compile other stuff.
( Also try e.g. # yum search glib2 )
Please always use 'yum' for any install, when at all possible.

And changing to a different version of glib2 and gtk2
will trash "everything" as John VV said. 150....600
other applications depends on those.

If you think, you need glib2-devel etc. to compile an
application, it's a much better idea to have the
'rpmfusion.org' repo included in your system :
http://rpmfusion.org/Configuration

and then use # 'yum search <name>' for the required
new application.
...........................
( Concerning the glib 2.20 you tried to build : it will
compile in 2 minutes with no errors on a clean install
of Fedora 10 ......... I tried that yesterday. So what has
happened to your glibc-devel ? ? It includes the
header dirent.h causing the errors. )
.....

Last edited by knudfl; 03-27-2009 at 06:54 AM.
 
Old 03-27-2009, 12:53 PM   #6
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,602

Rep: Reputation: 2648Reputation: 2648Reputation: 2648Reputation: 2648Reputation: 2648Reputation: 2648Reputation: 2648Reputation: 2648Reputation: 2648Reputation: 2648Reputation: 2648
Quote:
And changing to a different version of glib2 and gtk2
will trash "everything" as John VV said. 150....600
other applications depends on those.
I DO know that from exp. ( although I HAVE NOT trashed fedora doing so ) i like to build the dev tree for gimp( and other programs) and it often will require a " newer/ testing" version of GTK( or some other things) . you MUST be very, VERY, VERYcareful when doing that .

Quote:
I am using Fedora 10. I need to install GTK+ and it requires glib 2.0 or better, however there is only glib 1.2 installed in Fedora 10.
there is a legacy install of the 1.2 for older programs but even fedora 9 has
" gtk2-2.12.12-2 " and " glib2-2.16.6-2 " installed
if you are trying to build a program that needs gtk and glib please install the devel lib's the easiest way would be to install the dev tools and dev libs for everything
Code:
yum groupinstall "Development Tools" "Development Libraries" "System Tools" "GNOME Software Development"
"System Tools" is nice but not 100% mandatory

you can also just install what you need for that one program
Code:
yum install gtk2-devel glib2-devel
 
Old 03-28-2009, 08:48 AM   #7
stockdox
LQ Newbie
 
Registered: Mar 2009
Posts: 3

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by John VV View Post
I DO know that from exp. ( although I HAVE NOT trashed fedora doing so ) i like to build the dev tree for gimp( and other programs) and it often will require a " newer/ testing" version of GTK( or some other things) . you MUST be very, VERY, VERYcareful when doing that .


there is a legacy install of the 1.2 for older programs but even fedora 9 has
" gtk2-2.12.12-2 " and " glib2-2.16.6-2 " installed
if you are trying to build a program that needs gtk and glib please install the devel lib's the easiest way would be to install the dev tools and dev libs for everything
Code:
yum groupinstall "Development Tools" "Development Libraries" "System Tools" "GNOME Software Development"
"System Tools" is nice but not 100% mandatory

you can also just install what you need for that one program
Code:
yum install gtk2-devel glib2-devel
OK. Thanks for advice.
 
Old 04-29-2009, 07:34 AM   #8
whoami_2007
LQ Newbie
 
Registered: Sep 2007
Posts: 4

Rep: Reputation: 0
Hi,

I am facing a similar problem. I am trying to install a newer version of firefox which requires GTK+ 2.10+, Glib 2.12+, Pango 1.14 and X.Org 1.0. While installing Glib 2.20 I got the error:

"configure: error: *** pkg-config too old; version 0.16 or better required."

It looks like the machine I am using has a pretty old version of RHEL Linux. The kernel version is 2.6.9.

I haven't ever used yum. Can somebody provide a list of rpms to install to get rid of the issues?

Thanks.
- whoami
 
Old 04-29-2009, 11:38 AM   #9
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,602

Rep: Reputation: 2648Reputation: 2648Reputation: 2648Reputation: 2648Reputation: 2648Reputation: 2648Reputation: 2648Reputation: 2648Reputation: 2648Reputation: 2648Reputation: 2648
whoami_2007
back in "09-18-07" you installed SUSE 10.2
and now you do not know WHAT version of REHL you installed , call your paid for tech support . of if the "free" unsupported version . then THERE are no updates and yum WILL not work until you pay for it .or configure it to use the cent repos .

install centos 5.3
 
Old 04-30-2009, 12:09 AM   #10
whoami_2007
LQ Newbie
 
Registered: Sep 2007
Posts: 4

Rep: Reputation: 0
Quote:
Originally Posted by John VV View Post
whoami_2007
back in "09-18-07" you installed SUSE 10.2
That was in a VM sitting on top on VMWare Server installed on a Windows machine. I am now have a Linux PC at my disposal.
Quote:
Originally Posted by John VV View Post
and now you do not know WHAT version of REHL you installed , call your paid for tech support . of if the "free" unsupported version . then THERE are no updates and yum WILL not work until you pay for it .or configure it to use the cent repos .
I believe it is a supported version. Wanted to check if I can fix things myself before approaching the office IT guy.
Quote:
Originally Posted by John VV View Post
install centos 5.3
Thanks for your response
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Please Help! GTK+ - Glib installation problems Stallion Linux - Software 5 12-12-2006 06:33 PM
GLib installation problems awlred Linux - Software 1 05-26-2004 02:24 PM
Problems relating to glib 1.2.10 and glib 1.2.9 p3ngu!n Mandriva 10 05-23-2004 09:03 PM
Solution to glib installation problems? coldfusion713 Linux - Software 1 08-03-2003 01:57 PM
ATK for GTK+ installation problems with GLIB Greg21 Linux - Software 5 04-21-2003 07:00 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 11:22 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration