Yum GCC Errors
Posted by Nessa | Posted in centos,linux | Posted on November 17, 2007
6
This is coming from Shelby as a fix for the CentOS gcc compiler error that occurs when you try run a Yum update on some systems:
--> Processing Dependency: glibc-common = 2.3.4-2.25 for package: glibc-dummy-centos-4 --> Finished Dependency Resolution Error: Missing Dependency: glibc-common = 2.3.4-2.25 is needed by package glibc-dummy-centos-4
First you have to remove the existing package:
yum remove glibc-dummy-centos-4
Then you have to reinstall gcc:
yum install gcc & yum install gcc*
Then you should be able to proceed running the yum update command.
Related posts:














Glibc is specially compiled to function properly under OpenVZ, so that won’t function too well there.
Just add glibc to your yum.conf excludes. Under [main]:
exclude=glibc*
and yum upgrades will work properly.
True, but the above fix works when we use it on our systems (even on the VPS’s running Virtuozzo) when a yum update fails. Either of these fixes should work though (don’t take my word for it just because it works for us)
I was told by the lead sysadmin at work that it would be a bad idea with Virtuozzo , but hey, maybe he was blowing smoke up my pipe, or it was an older bug.
As long as it works!
I have not seen any issues with this fix. It was the only way I was able to have yum update properly otherwise every other time it would bomb out when trying to download/install everything. I don’t really see the harm in it as CPanel still protects certain aspects of this. Also with this fix I was able to bring my CentOS 4.4 install up to 4.5 in the VZ CPanel environment.
I keep getting this error, any help?
Creating config.mak and config.h…
root@cp1 [/usr/src/ffmpeg]# make
gcc -DHAVE_AV_CONFIG_H -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -I. -I”/usr/src/ffmpeg” -D_ISOC99_SOURCE -D_POSIX_C_SOURCE=200112 -fasm -std=c99 -fomit-frame-pointer -g -Wdeclaration-after-statement -Wall -Wno-switch -Wdisabled-optimization -Wpointer-arith -Wredundant-decls -Wcast-qual -Wwrite-strings -O3 -fno-math-errno -c -o libavdevice/alldevices.o libavdevice/alldevices.c
gcc -DHAVE_AV_CONFIG_H -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -I. -I”/usr/src/ffmpeg” -D_ISOC99_SOURCE -D_POSIX_C_SOURCE=200112 -fasm -std=c99 -fomit-frame-pointer -g -Wdeclaration-after-statement -Wall -Wno-switch -Wdisabled-optimization -Wpointer-arith -Wredundant-decls -Wcast-qual -Wwrite-strings -O3 -fno-math-errno -c -o libavdevice/dv1394.o libavdevice/dv1394.c
gcc -DHAVE_AV_CONFIG_H -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -I. -I”/usr/src/ffmpeg” -D_ISOC99_SOURCE -D_POSIX_C_SOURCE=200112 -fasm -std=c99 -fomit-frame-pointer -g -Wdeclaration-after-statement -Wall -Wno-switch -Wdisabled-optimization -Wpointer-arith -Wredundant-decls -Wcast-qual -Wwrite-strings -O3 -fno-math-errno -c -o libavdevice/audio.o libavdevice/audio.c
gcc -DHAVE_AV_CONFIG_H -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -I. -I”/usr/src/ffmpeg” -D_ISOC99_SOURCE -D_POSIX_C_SOURCE=200112 -fasm -std=c99 -fomit-frame-pointer -g -Wdeclaration-after-statement -Wall -Wno-switch -Wdisabled-optimization -Wpointer-arith -Wredundant-decls -Wcast-qual -Wwrite-strings -O3 -fno-math-errno -c -o libavdevice/v4l2.o libavdevice/v4l2.c
gcc -DHAVE_AV_CONFIG_H -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -I. -I”/usr/src/ffmpeg” -D_ISOC99_SOURCE -D_POSIX_C_SOURCE=200112 -fasm -std=c99 -fomit-frame-pointer -g -Wdeclaration-after-statement -Wall -Wno-switch -Wdisabled-optimization -Wpointer-arith -Wredundant-decls -Wcast-qual -Wwrite-strings -O3 -fno-math-errno -c -o libavdevice/v4l.o libavdevice/v4l.c
In file included from libavdevice/v4l.c:32:
/usr/include/linux/videodev.h:56: error: syntax error before “ulong”
/usr/include/linux/videodev.h:72: error: syntax error before ‘}’ token
libavdevice/v4l.c: In function `grab_read_header’:
libavdevice/v4l.c:77: error: storage size of ‘tuner’ isn’t known
libavdevice/v4l.c:141: error: invalid application of `sizeof’ to incomplete type `video_tuner’
libavdevice/v4l.c:148: error: invalid application of `sizeof’ to incomplete type `video_tuner’
libavdevice/v4l.c:77: warning: unused variable `tuner’
make: *** [libavdevice/v4l.o] Error 1
root@cp1 [/usr/src/ffmpeg]#
root@cp1 [/usr/src/ffmpeg]# yum -y update
Loading “fastestmirror” plugin
Setting up Update Process
Setting up repositories
Loading mirror speeds from cached hostfile
Reading repository metadata in from local files
Excluding Packages in global exclude list
Finished
No Packages marked for Update/Obsoletion
root@cp1 [/usr/src/ffmpeg]# apt-get install linux-headers-$(uname -r)
-bash: apt-get: command not found
root@cp1 [/usr/src/ffmpeg]# ln -sf /usr/src/linux-headers-$(uname -r) /usr/src/linux
root@cp1 [/usr/src/ffmpeg]# ln -sf /usr/src/linux-headers-$(uname -r) /usr/src/linux
root@cp1 [/usr/src/ffmpeg]# wget http://the.earth.li/pub/subversion/summersoft.fay.ar.us/pub/subversion/latest/rhel-4/i386/subversion-1.4.5-1.i386.rpm
–22:00:33– http://the.earth.li/pub/subversion/summersoft.fay.ar.us/pub/subversion/latest/rhel-4/i386/subversion-1.4.5-1.i386.rpm
=> `subversion-1.4.5-1.i386.rpm’
Resolving the.earth.li… 217.147.81.2
Connecting to the.earth.li|217.147.81.2|:80… connected.
HTTP request sent, awaiting response… 404 Not Found
22:00:34 ERROR 404: Not Found.
The compile error looks as if you’re either using an incompatible version of GCC, or are simply unluckily pulling broken code from SVN.
apt-get won’t work unless you’re running a debian-derived distro. As I see you’ve got yum installed, this clearly will not do. Do “yum install linux-headers” instead.
The error at the end clearly is an old version of subversion that isn’t up there anymore. Try wget http://the.earth.li/pub/subversion/summersoft.fay.ar.us/pub/subversion/latest/rhel-4/i386/subversion-1.5.1-1.i386.rpm