LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 03-12-2011, 08:56 AM   #1
abefroman
Senior Member
 
Registered: Feb 2004
Location: lost+found
Distribution: CentOS
Posts: 1,430

Rep: Reputation: 55
atomic.h missing/can't be found??? (glibc/kernel problem?)


When I'm recompiling apache and php, it doesn't go through and I get this error:
Code:
checking for atomic.h... no
/usr/include/mysql/my_global.h:364:24: error: asm/atomic.h: No such file or directory
That file is there though:
Code:
/usr/src/kernels/2.6.18-194.32.1.el5-x86_64/include/asm-generic/atomic.h
/usr/src/kernels/2.6.18-194.32.1.el5-x86_64/include/asm-generic/bitops/atomic.h
/usr/src/kernels/2.6.18-194.32.1.el5-x86_64/include/asm-generic/bitops/ext2-atomic.h
/usr/src/kernels/2.6.18-194.32.1.el5-x86_64/include/asm-generic/bitops/ext2-non-atomic.h
/usr/src/kernels/2.6.18-194.32.1.el5-x86_64/include/asm-generic/bitops/non-atomic.h
/usr/src/kernels/2.6.18-194.32.1.el5-x86_64/include/asm-i386/atomic.h
/usr/src/kernels/2.6.18-194.32.1.el5-x86_64/include/asm-x86_64/atomic.h
Someone mentioned the glibc headers might be corrupt, I forced a reinstall of glibc, glibc-common, glibc-devel, and glibc-headers, but I'm still getting that error.

Also I tried booting with a different kernel.

Any ideas?

TIA
 
Old 03-12-2011, 11:47 AM   #2
corp769
LQ Guru
 
Registered: Apr 2005
Location: /dev/null
Posts: 5,818

Rep: Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007
Your include directory for compiling should be /usr/include. Try looking in there. If it is not, you could always symlink to the appropriate file.
 
Old 03-12-2011, 12:16 PM   #3
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,519

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
What is the the version of libmysqlclient-dev ? ( libmysqlclient15-dev ).
The header my_global.h from libmysqlclient-dev is not supposed to ask
for a header, that is not present in /usr/include/asm/ .

Also : Which versions of apache and php are you trying to build ?

Ubuntu uses patches, that takes care of such situations. Examples :
apache2 http://packages.ubuntu.com/natty/apache2
> > [apache2_2.2.17-1ubuntu1.diff.gz]

php5 http://packages.ubuntu.com/natty/php5
> > [php5_5.3.5-1ubuntu2.diff.gz]

..
 
Old 03-13-2011, 06:47 AM   #4
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,519

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Sorry, CentOS 5.5 : The patching can be found in the SRC.RPMS.
http://mirror.centos.org/centos/5.5/updates/SRPMS/
httpd-2.2.3-43.el5.centos.3.src.rpm php-5.1.6-27.el5_5.3.src.rpm

Later versions : All Fedora php can be used : rpmbuild -bb php.spec
Examples, posts # 4 (# 5) here
http://www.linuxquestions.org/questi...-5-2-a-791943/
http://www.linuxquestions.org/questi...-0-a-764323/#3

'httpd' (apache) The Fedora SRC.RPMS can probably also be used ..
http://www.linuxquestions.org/questi...-5-a-790431/#5
http://www.linuxquestions.org/questi...-3-a-755016/#9
http://www.jasonlitka.com/ > http://www.jasonlitka.com/media/EL5/
http://www.jasonlitka.com/media/SRPMS/
 
Old 03-13-2011, 02:30 PM   #5
abefroman
Senior Member
 
Registered: Feb 2004
Location: lost+found
Distribution: CentOS
Posts: 1,430

Original Poster
Rep: Reputation: 55
Thanks!

Yep, its CentOS 5.5
 
Old 03-13-2011, 02:31 PM   #6
abefroman
Senior Member
 
Registered: Feb 2004
Location: lost+found
Distribution: CentOS
Posts: 1,430

Original Poster
Rep: Reputation: 55
Also it can be fixed by opening:
/usr/include/mysql/my_global.h
and commenting out this line:
#include <asm/atomic.h>
 
  


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
Atomic variable Vs. Atomic operation sinu_nayak2001 Programming 2 05-19-2010 08:46 AM
LXer: This week at LWN: Atomic context and kernel API design LXer Syndicated Linux News 0 04-09-2008 12:41 AM
Kernel Bug: Scheduling while atomic: IRQ 21/245 blindspy Linux - Software 1 02-23-2006 04:23 AM
glibc upgrade with upgrading kernel, problem? Gates1026 Linux - General 3 04-15-2005 04:10 PM
glibc is missing trouby Slackware 2 12-22-2003 11:33 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 12:14 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