LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-04-2009, 07:43 AM   #1
vikesh.u
LQ Newbie
 
Registered: Mar 2009
Posts: 13

Rep: Reputation: 0
semaphore.h ,class_create_device , klogd in fedora 10


1)I could not find semaphore.h(asm/semaphore.h) in fedora 10....is there any replacement for it..
2) when i tried to use udev functionality and when i used class_create_device() function it says...error:implicit declaration..why did this occur..
3)klogd doesn't work in fd10 ..rsyslogd and others are also not working..is there any replacement for it...
 
Old 03-04-2009, 09:20 AM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,634

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by vikesh.u View Post
1)I could not find semaphore.h(asm/semaphore.h) in fedora 10....is there any replacement for it..
2) when i tried to use udev functionality and when i used class_create_device() function it says...error:implicit declaration..why did this occur..
3)klogd doesn't work in fd10 ..rsyslogd and others are also not working..is there any replacement for it...
How about actually telling us what you're trying to do? semaphore.h is still present in the latest Linux offerings, as is udev, and remote syslogging.
 
Old 03-05-2009, 12:09 AM   #3
vikesh.u
LQ Newbie
 
Registered: Mar 2009
Posts: 13

Original Poster
Rep: Reputation: 0
sir...i did not use.

Quote:
Originally Posted by TB0ne View Post
How about actually telling us what you're trying to do? semaphore.h is still present in the latest Linux offerings, as is udev, and remote syslogging.
sir..I did not do anything with semaphores..I was trying to port an old code(module code) on to fd 10 which inluded the header file<asm/semaphore.h>(which gave an error)...
and regarding udev I was trying to create kobject using class_device_create() but it did not work...I solved this by device_create() on fd10...which worked(dont know whether it was correct but the signatures matched <linux/device.h>)
..and it was not about remote syslogging "klogd" is about kernel log buffer (to print on root console or /var/log/messages) settings

Last edited by vikesh.u; 03-05-2009 at 12:15 AM.
 
Old 03-05-2009, 02:21 AM   #4
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,624

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
porting old code ?
well use ether " gcc3.4 " or rewright the code so it is compatable with " gcc 4.3 "
for gcc3.4 you will need to group install the " legacy tools"
also if it built using gcc4.1( fedora 7,8 )but not gcc4.3 then additional " #include " ????" will needed to be added in the .cpp code
see
http://gcc.gnu.org/gcc-4.3/porting_to.html
 
  


Reply



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
klogd won't start pobbz Debian 5 08-24-2007 05:37 AM
'klogd' problem NervusMagnus Linux - Newbie 3 05-27-2007 03:11 PM
klogd and syslog asahlot Linux - Kernel 1 09-22-2006 10:35 AM
why my ssytem have klogd and syslogd? xcore_on Linux - Newbie 1 05-21-2006 09:34 AM
klogd - how to use full version sceadu Linux - General 0 04-22-2005 09:16 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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