Linux - SoftwareThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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?
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 .
Distribution: PCLinuxOS2023 CentOS7.9 + 50+ other Linux OS, for test only.
Posts: 17,486
Rep:
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. )
.....
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
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
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?
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 .
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
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.