Question

udev/udevd.c:37:26: error: sys/signalfd.h: No such file or directory

Asked by: mlattari

Hi!

trying to compile udev-146 from source I get the following error:

udev/udevd.c:37:26: error: sys/signalfd.h: No such file or directory

I run configure with the option --disable-extras (i use only runlevel 3)
To compile I use gcc, g++ (gcc-4.4.2)
The kernel is 2.6.31.4
The machine is x86_64

This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.

Subscribe now for full access to Experts Exchange and get

Instant Access to this Solution

  • Plus...
  • 30 Day FREE access, no risk, no obligation
  • Collaborate with the world's top tech experts
  • Unlimited access to our exclusive solution database
  • Never be left without tech help again

Subscribe Now

Asked On
2009-10-26 at 03:59:31ID24843061
Tags

linux udev compile

Topics

Linux Programming

,

Fedora Linux

,

Red Hat Linux

Participating Experts
2
Points
500
Comments
5

Trusted by hundreds of thousands everyday for fast, accurate and reliable tech support.

  • "The time we save is the biggest benefit of Experts Exchange to Warner Bros. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange." Mike Kapnisakis, Warner Bros.
  • "Our team likes having a resource that is more secure than just using Google and most experts using this service really know their stuff. It's nice to look here first versus using Google." Dayna Sellner, Lockheed Martin
  • "Anytime that I've been stumped with a problem, 9 out of 10 times Experts Exchange has either the accepted solution or an open discussion of the potential solution to the problem." Kenny Red, eBay Inc.

See what Experts Exchange can do for you.

Got a question?

We've got the answer.

Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.

Screenshot of Experts Exchange Knowledgebase

Need individual assistance?

Our experts are ready to help.

If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.

Screenshot of Experts Exchange Knowledgebase

Want to learn from the best?

Read articles from industry experts.

Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.

Screenshot of an Article

Working on a long term project?

Store your work and research.

Save solutions to your questions, answers you’ve discovered through searching plus helpful articles in your personal knowledgebase for easy future access.

Screenshot of Experts Exchange Knowledgebase

Access the answers to your technology questions today.

Subscribe Now

30-day free trial. Register in 60 seconds.

What Makes Experts Exchange Unique?

Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Trusted by the world's most respected brands.

image of each brand's logo

Faithfully serving IT professionals since 1996.

Experts Exchange Logo

Try it out and discover for yourself.

Subscribe Now

30-day free trial. Register in 60 seconds.

Related Solutions

  1. /usr/include/sys
    I have inadvertently clobbered /usr/include/sys on my Linux 2.0.27 (Red Hat 4.0)/ AXP (DEC Alpha) system. Where can I find the files I need to restore it or what is the symbolic pointer I should enter to fix the problem?
  2. .SYS conversion
    how do I make an animated .SYS file for the boot and shutdown images in Win95/98?
  3. Build gcc project in VC (sys\time.h and unistd.h missing)
    Is there a simple way to build in Visual C a project developed in gcc? Currently I have one project with several __inline__ statements and using the include files sys\time.h and unistd.h. Is there some replacement for these includes, or for its the defined functions? Thank ...
  4. Kernel Compilation
    I am using a Intel machine with Redhat Linux 7.2., I am a newbie to Linux kernel. I want to compile linux kernel source code on my machine. It is absolutely important that nothing happens to my machine, while i go about trying this. In other words, my machine should not be d...
  5. gcc
    Iam trying to compile some 600 lines of code on a solaris platform using gcc compiler.When I am compiling as gcc convRptFile.c,it throws the below error.Please tell me wether I have to enable any environment setup commands or any commands to be executed before compiling.but i...

Free Tech Articles

  1. WARNING: 5 Reasons why you should NEVER fix a computer for free.
    It is in our nature to love the puzzle. We are obsessed. The lot of us. We love puzzles. We love the challenge. We thrive on finding the answer. We hate disarray. It bothers us deep in our soul. W...
  2. SCCM OSD Basic troubleshooting
    SCCM 2007 OSD is a fantastic way to deploy operating systems, however, like most things SCCM issues can sometimes be difficult to resolve due to the sheer volume of logs to sift through and the dispe...
  3. Migrate Small Business Server 2003 to Exchange 2010 and Windows 2008 R2
    This guide is intended to provide step by step instructions on how to migrate from Small Business Server 2003 to Windows 2008 R2 with Exchange 2010. For this migration to work you will need the fo...
  4. Create a Win7 Gadget
    This article shows you how to create a simple "Gadget" -- a sort of mini-application supported by Windows 7 and Vista. Gadgets can be dropped anywhere on the desktop to provide instant information, ...
  5. Outlook continually prompting for username and password
    There have been a lot of questions recently regarding Outlook prompting for a username and password whilst using Exchange 2007. There are a few reasons why this would happen and I will try to cover t...
  6. Backup Exchange 2010 Information Store using Windows Backup
    There seems to be quite a lot of confusion around the ability to backup Exchange 2010 using the built in Windows Backup feature. This stems from the omission of this feature prior to Exchange 2007 s...

Cloud Class Webinars

  1. Avoiding Bugs in Microsoft Access
    Alison Balter takes and in-depth look at avoiding bugs in Access. In this webinar you will learn about using the immediate window to debug your applications, invoking the debugger, using breakpoints to troubleshoot, stepping through code, setting the next statement to execute, ...
  2. Top 10 Best New Features in Visio 2010
    Scott Helmers gives live demonstrations of the top 10 new features in Visio 2010. This webinar will teach you how to create compelling diagrams by adding shapes to the page with a single click, linking the shapes in a diagram to data in Excel (or SQL Server, or SharePoint), ...
  3. IT Consultant Business Secrets Revealed
    Michael Munger, Experts Exchange tech pro and IT consultant, pulls back the curtain on his very successful businesses and answers question on every IT consultant and business owner should know about. He shares secrets on what he did to solve the 5 most common problems in IT, ...
  4. Disaster Recovery and Business Continuity
    Quest CTO, Mike Billon, gives an overview of the steps involved in building a dunamic disaster recovery plan. Through case studies and an examination of software/hardware tooles for monitoring and testing, you'll gain a better understandin of where you are, where you want ...
  5. Organize Your Visio Diagrams with Containers and Lists
    Scott Helmers uses cross functional flowcharts, wireframe diagrams, data graphic legends and seating charts to teach you: how to ustilize all three new structured diagram components in Visio 2010, the best practices for organizeing shapes in previous version of Visio, how to organize ...
  6. How to Us Objects, Properties, Events and Methods in Microsoft Access
    Alison Dalter gives an in-depbth look at objects, properties, events and methods in Microsoft Access. In this webinar you will learn about using the object browser, referring to objects, working with properties and methods, working with object variables, understanding the ...

Join the Community

Give a Little. Get a Lot.

Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.

Join the Community

Answers

 

by: askbPosted on 2009-10-26 at 05:28:14ID: 25661532

I have my signalfd.h installed in the following path.

/usr/include/linux/signalfd.h

I think you are missing the 'linux-kernel-headers' package/rpm, which you would need to install. Try building after installing the headers again.

Hope this helps!

 

by: mlattariPosted on 2009-10-26 at 07:40:03ID: 25662666

Thanks for the suggestion but I have compiled the kernel from source and I have this file in the same place as You... but what sould I do with the file then? Should I somewhere add a symlink to the directory? Thanks for any help

 

by: mlattariPosted on 2009-10-26 at 09:48:34ID: 25664165

I don't understand what the error means.... pls help :-(

./configure --disable-extras --prefix=/usr/local/udev-146 --enable-debug

checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for style of include used by make... GNU
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking dependency style of gcc... gcc3
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking minix/config.h usability... no
checking minix/config.h presence... no
checking for minix/config.h... no
checking whether it is safe to define __EXTENSIONS__... yes
checking for special C compiler options needed for large files... no
checking for _FILE_OFFSET_BITS value needed for large files... no
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking for a sed that does not truncate output... /bin/sed
checking for fgrep... /bin/grep -F
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 98304
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
checking for /usr/bin/ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for ar... ar
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for dlfcn.h... yes
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC -DPIC
checking if gcc PIC flag -fPIC -DPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
checking for gawk... (cached) gawk
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking whether to build gtk-doc documentation... no
checking for gtkdoc-check... no
checking for xsltproc... /usr/bin/xsltproc
configure: creating ./config.status
config.status: creating Makefile
config.status: creating libudev/libudev.pc
config.status: creating libudev/docs/Makefile
config.status: creating libudev/docs/version.xml
config.status: creating udev/udev.pc
config.status: creating extras/gudev/gudev-1.0.pc
config.status: creating extras/gudev/docs/Makefile
config.status: creating extras/gudev/docs/version.xml
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing depfiles commands
config.status: executing libtool commands

        udev 146
        ========

        prefix:                 /usr/local/udev-146
        sysconfdir:             ${prefix}/etc
        sbindir:                ${exec_prefix}/sbin
        libdir:                 ${exec_prefix}/lib
        rootlibdir:             ${exec_prefix}/lib
        libexecdir:             ${exec_prefix}/libexec

        datarootdir:            ${prefix}/share
        mandir:                 ${datarootdir}/man
        includedir:             ${prefix}/include
        logging:                yes
        debug:                  yes
        selinux:                no

       compiler:               gcc
       cflags:                 -g -O2
       ldflags:

       extras:                 no
       gintrospection:         no

       usb.ids:
       pci.ids:
 
       xsltproc:               /usr/bin/xsltproc
       gperf:



and then.......


root@filemon_bck udev-146] $ make
make --no-print-directory all-recursive
Making all in .
  CC     udev/udevd.o
udev/udevd.c:37:26: error: sys/signalfd.h: No such file or directory
udev/udevd.c: In function 'main':
udev/udevd.c:1064: error: storage size of 'fdsi' isn't known
udev/udevd.c:1067: error: invalid application of 'sizeof' to incomplete type 'struct signalfd_siginfo'
udev/udevd.c:1068: error: invalid application of 'sizeof' to incomplete type 'struct signalfd_siginfo'
make[2]: *** [udev/udevd.o] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2


 

by: duncan_roePosted on 2009-10-26 at 14:41:13ID: 25667223

I think your compile will go through if you copy signalfd.h from your Linux source to /usr/include/sys/
signalfd.h was introduced at about linux-2.6.22 - it looks like the udev developers never though to put a check for its existence in the /usr area into ./configure. You might like to drop them a note suggesting they do that.
To answer your question about what the error means: the gcc compiler encountered the error (that sys/signalfd.h could not be found) on line 37 of udev/udevd.c at character 26.
Sample cp command below - your source path may be different

# cp /usr/src/linux-2.6.31.4/include/linux/signalfd.h /usr/include/sys

                                              
1:

Select allOpen in new window

 

by: mlattariPosted on 2009-10-27 at 11:01:34ID: 25675458

Thanks duncan_roe but this has produced a lot of new errors....

I was able to normally compile starting the system with a previous kernel version.....


Thanks anyway for the help

20120131-EE-VQP-002

3 Ways to Join

30-Day Free Trial

The Experts

98% positive feedback on 31,087 answers since March 2000. angeliii is a Microsoft Most Valuable Professional for his work with MS SQL Server & Develoment.

He has also proven his knowledge of Visual Basic Programming, PHP Scripting and Oracle Databases.

The Experts

97% positive feedback on 10,752 answers since July 2000. lrmoore has more than 18 years experience in the networking industry.

The six-time Mircosoft MVPs specialties include firewalls, virtual private networking, and network management.

Testimonials

"...and excellent source for support... Kind of like having your very own IT dept." Electriciansnet

Testimonials

"I was apprehensive at signing up at first. However... it has already made my life as an IT administrator much easier." JaCrews

Testimonials

"WOW! You guys have great, active, and knowledgeable people on here." moore50

Business Clients

Business Clients

In the Press

"If you’ve got a question... Experts Exchange can supply an answer.”

In the Press

"...an invaluable aid for both IT professionals and those who require tech support."

In the Press

"where IT professionals provide quick answers on just about any topic"

Business Account Plans

Loading Advertisement...