LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 08-17-2008, 06:15 AM   #1
Bambi535
LQ Newbie
 
Registered: Nov 2007
Posts: 7

Rep: Reputation: 0
Question glibc change in header file sysdeps/unix/sysv/linux/bits/socket.h


Hi,
I tried to compile cups-1.2.4-11.18.el5_2.1.src.rpm on my Fedora 9 desktop (virtual) machine.
It failed where the code referenced
Code:
struct ucred
. This worked fine when I tried it on my (RIP) Fedora Core 6 machine.
After some research I found that there was a change in
Code:
bits/socket.h
whereby the
Code:
struct ucred
was enveloped in
Code:
#ifdef __USE_GNU
.

Anyone knows what was the reasoning for this change?

Thanks,
Opher.
 
Old 08-17-2008, 09:57 AM   #2
estabroo
Senior Member
 
Registered: Jun 2008
Distribution: debian, ubuntu, sidux
Posts: 1,094
Blog Entries: 2

Rep: Reputation: 111Reputation: 111
Most likely because it's a gnu extended structure rather than a posix one. You should be able to add a define of _GNU_SOURCE to make the compile work. If you look at /usr/include/features.h you can see that define will turn on lots good things including __USE_GNU
 
Old 08-18-2008, 10:10 AM   #3
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 13,522

Rep: Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503
Reason for change ? May be /usr/share/doc/glibc-2.8/CONFORMANCE
is giving kind of explanation. The question can also be asked here :
http://fcp.surfsite.org/modules/newb...ime=1207792293

If you want to compile "old versions" of software for
EL5, CentOS-5 would work (or Fedora 7 and 8 probably)
I would not expect anything but the latest stable
versions of software to be fixed to compile with
gcc 4.3 and glibc 2.8 .
( Fedora 9 uses 'cups-1.3.7-1.fc9.i386.rpm' and
'cups-libs-1.3.7-1.fc9.i386.rpm' )

Regards
 
Old 08-19-2008, 02:26 PM   #4
Bambi535
LQ Newbie
 
Registered: Nov 2007
Posts: 7

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by estabroo View Post
Most likely because it's a gnu extended structure rather than a posix one. You should be able to add a define of _GNU_SOURCE to make the compile work. If you look at /usr/include/features.h you can see that define will turn on lots good things including __USE_GNU
Thanks for your reply.
I know that __USE_GNU code is activated with -D_GNU_SOURCE. I was actually interested in the why the change took place in glibc.

Thanks.
 
Old 08-19-2008, 02:45 PM   #5
Bambi535
LQ Newbie
 
Registered: Nov 2007
Posts: 7

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by knudfl View Post
Reason for change ? May be /usr/share/doc/glibc-2.8/CONFORMANCE
is giving kind of explanation.
I skimmed through it... did not find it there .
Quote:
The question can also be asked here :
http://fcp.surfsite.org/modules/newb...ime=1207792293
That I'll do .

Thanks for the reply.
 
  


Reply

Tags
glibc


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Can't connect to UNIX socket /var/run/clamav/clamd.socket ganick Linux - Server 8 08-01-2008 01:22 PM
unix socket file jahanzeb1982 Linux - Networking 1 03-22-2008 08:57 AM
How to change MAC address from 48 bits to 32 bits? cywong.digi Linux - Networking 1 09-05-2007 09:28 AM
Unable to connect to UNIX socket /tmp/.esd/socket error while using grip dr_zayus69 Linux - Software 4 08-23-2005 07:28 PM
Unix socket programming - how to sent a file Scrag Programming 9 03-28-2004 09:54 PM


All times are GMT -5. The time now is 10:24 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration