From: "Gabor Z. Papp" <gzp@papp.hu>
To: linux-hotplug@vger.kernel.org
Subject: compiling udev 141 on linux 2.4
Date: Thu, 23 Apr 2009 21:27:17 +0000 [thread overview]
Message-ID: <310ca25e50765edce514c2eaa65ea3ff@gzp> (raw)
[-- Attachment #1: Type: text/plain, Size: 422 bytes --]
I would like to compile udev 141 on the following environment, but getting
the attached error.
[kernel]
Linux gzpLinux 2.4.37 #1 Tue Dec 2 19:24:20 CET 2008 i686 GNU/Linux
[glibc]
GNU C Library stable release version 2.3.6, by Roland McGrath et al.
Compiled by GNU CC version 4.1.2.
Compiled on a Linux 2.4.34-gzp1 system on 2007-04-04.
[gcc]
gcc (GCC) 4.3.3
[binutils]
GNU ld (Linux/GNU Binutils) 2.19.51.0.4.20090418
[-- Attachment #2: log.make --]
[-- Type: application/octet-stream, Size: 6534 bytes --]
make all-recursive
make[1]: Entering directory `/home/gzp/src/udev-141'
Making all in udev
make[2]: Entering directory `/home/gzp/src/udev-141/udev'
Making all in lib
make[3]: Entering directory `/home/gzp/src/udev-141/udev/lib'
/bin/sh ../../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I../.. -include ../../config.h -DSYSCONFDIR=\""/etc"\" -DUDEV_PREFIX=\"""\" -D_LIBUDEV_COMPILATION -g -O2 -MT libudev.lo -MD -MP -MF .deps/libudev.Tpo -c -o libudev.lo libudev.c
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I../.. -include ../../config.h -DSYSCONFDIR=\"/etc\" -DUDEV_PREFIX=\"\" -D_LIBUDEV_COMPILATION -g -O2 -MT libudev.lo -MD -MP -MF .deps/libudev.Tpo -c libudev.c -fPIC -DPIC -o .libs/libudev.o
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I../.. -include ../../config.h -DSYSCONFDIR=\"/etc\" -DUDEV_PREFIX=\"\" -D_LIBUDEV_COMPILATION -g -O2 -MT libudev.lo -MD -MP -MF .deps/libudev.Tpo -c libudev.c -o libudev.o >/dev/null 2>&1
mv -f .deps/libudev.Tpo .deps/libudev.Plo
/bin/sh ../../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I../.. -include ../../config.h -DSYSCONFDIR=\""/etc"\" -DUDEV_PREFIX=\"""\" -D_LIBUDEV_COMPILATION -g -O2 -MT libudev-list.lo -MD -MP -MF .deps/libudev-list.Tpo -c -o libudev-list.lo libudev-list.c
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I../.. -include ../../config.h -DSYSCONFDIR=\"/etc\" -DUDEV_PREFIX=\"\" -D_LIBUDEV_COMPILATION -g -O2 -MT libudev-list.lo -MD -MP -MF .deps/libudev-list.Tpo -c libudev-list.c -fPIC -DPIC -o .libs/libudev-list.o
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I../.. -include ../../config.h -DSYSCONFDIR=\"/etc\" -DUDEV_PREFIX=\"\" -D_LIBUDEV_COMPILATION -g -O2 -MT libudev-list.lo -MD -MP -MF .deps/libudev-list.Tpo -c libudev-list.c -o libudev-list.o >/dev/null 2>&1
mv -f .deps/libudev-list.Tpo .deps/libudev-list.Plo
/bin/sh ../../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I../.. -include ../../config.h -DSYSCONFDIR=\""/etc"\" -DUDEV_PREFIX=\"""\" -D_LIBUDEV_COMPILATION -g -O2 -MT libudev-util.lo -MD -MP -MF .deps/libudev-util.Tpo -c -o libudev-util.lo libudev-util.c
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I../.. -include ../../config.h -DSYSCONFDIR=\"/etc\" -DUDEV_PREFIX=\"\" -D_LIBUDEV_COMPILATION -g -O2 -MT libudev-util.lo -MD -MP -MF .deps/libudev-util.Tpo -c libudev-util.c -fPIC -DPIC -o .libs/libudev-util.o
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I../.. -include ../../config.h -DSYSCONFDIR=\"/etc\" -DUDEV_PREFIX=\"\" -D_LIBUDEV_COMPILATION -g -O2 -MT libudev-util.lo -MD -MP -MF .deps/libudev-util.Tpo -c libudev-util.c -o libudev-util.o >/dev/null 2>&1
mv -f .deps/libudev-util.Tpo .deps/libudev-util.Plo
/bin/sh ../../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I../.. -include ../../config.h -DSYSCONFDIR=\""/etc"\" -DUDEV_PREFIX=\"""\" -D_LIBUDEV_COMPILATION -g -O2 -MT libudev-device.lo -MD -MP -MF .deps/libudev-device.Tpo -c -o libudev-device.lo libudev-device.c
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I../.. -include ../../config.h -DSYSCONFDIR=\"/etc\" -DUDEV_PREFIX=\"\" -D_LIBUDEV_COMPILATION -g -O2 -MT libudev-device.lo -MD -MP -MF .deps/libudev-device.Tpo -c libudev-device.c -fPIC -DPIC -o .libs/libudev-device.o
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I../.. -include ../../config.h -DSYSCONFDIR=\"/etc\" -DUDEV_PREFIX=\"\" -D_LIBUDEV_COMPILATION -g -O2 -MT libudev-device.lo -MD -MP -MF .deps/libudev-device.Tpo -c libudev-device.c -o libudev-device.o >/dev/null 2>&1
mv -f .deps/libudev-device.Tpo .deps/libudev-device.Plo
/bin/sh ../../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I../.. -include ../../config.h -DSYSCONFDIR=\""/etc"\" -DUDEV_PREFIX=\"""\" -D_LIBUDEV_COMPILATION -g -O2 -MT libudev-enumerate.lo -MD -MP -MF .deps/libudev-enumerate.Tpo -c -o libudev-enumerate.lo libudev-enumerate.c
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I../.. -include ../../config.h -DSYSCONFDIR=\"/etc\" -DUDEV_PREFIX=\"\" -D_LIBUDEV_COMPILATION -g -O2 -MT libudev-enumerate.lo -MD -MP -MF .deps/libudev-enumerate.Tpo -c libudev-enumerate.c -fPIC -DPIC -o .libs/libudev-enumerate.o
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I../.. -include ../../config.h -DSYSCONFDIR=\"/etc\" -DUDEV_PREFIX=\"\" -D_LIBUDEV_COMPILATION -g -O2 -MT libudev-enumerate.lo -MD -MP -MF .deps/libudev-enumerate.Tpo -c libudev-enumerate.c -o libudev-enumerate.o >/dev/null 2>&1
mv -f .deps/libudev-enumerate.Tpo .deps/libudev-enumerate.Plo
/bin/sh ../../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I../.. -include ../../config.h -DSYSCONFDIR=\""/etc"\" -DUDEV_PREFIX=\"""\" -D_LIBUDEV_COMPILATION -g -O2 -MT libudev-monitor.lo -MD -MP -MF .deps/libudev-monitor.Tpo -c -o libudev-monitor.lo libudev-monitor.c
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I../.. -include ../../config.h -DSYSCONFDIR=\"/etc\" -DUDEV_PREFIX=\"\" -D_LIBUDEV_COMPILATION -g -O2 -MT libudev-monitor.lo -MD -MP -MF .deps/libudev-monitor.Tpo -c libudev-monitor.c -fPIC -DPIC -o .libs/libudev-monitor.o
In file included from libudev-monitor.c:22:
/usr/include/linux/netlink.h:22: error: expected specifier-qualifier-list before '__u32'
/usr/include/linux/netlink.h:28: error: expected specifier-qualifier-list before '__u32'
libudev-monitor.c: In function 'udev_monitor_new_from_netlink':
libudev-monitor.c:124: error: 'NETLINK_KOBJECT_UEVENT' undeclared (first use in this function)
libudev-monitor.c:124: error: (Each undeclared identifier is reported only once
libudev-monitor.c:124: error: for each function it appears in.)
libudev-monitor.c:133: error: 'struct sockaddr_nl' has no member named 'nl_groups'
libudev-monitor.c:135: error: 'struct sockaddr_nl' has no member named 'nl_groups'
libudev-monitor.c: In function 'udev_monitor_set_receive_buffer_size':
libudev-monitor.c:169: error: 'SO_RCVBUFFORCE' undeclared (first use in this function)
libudev-monitor.c: In function 'udev_monitor_receive_device':
libudev-monitor.c:296: error: 'struct sockaddr_nl' has no member named 'nl_groups'
libudev-monitor.c:300: error: 'struct sockaddr_nl' has no member named 'nl_groups'
libudev-monitor.c:300: error: 'struct sockaddr_nl' has no member named 'nl_pid'
libudev-monitor.c:301: error: 'struct sockaddr_nl' has no member named 'nl_pid'
make[3]: *** [libudev-monitor.lo] Error 1
make[3]: Leaving directory `/home/gzp/src/udev-141/udev/lib'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/gzp/src/udev-141/udev'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/gzp/src/udev-141'
make: *** [all] Error 2
[-- Attachment #3: log.configure --]
[-- Type: application/octet-stream, Size: 4803 bytes --]
checking for a BSD-compatible install... /pkg/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... 64
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-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... /pkg/bin/ld
checking if the linker (/pkg/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /pkg/bin/nm -B
checking the name lister (/pkg/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 32768
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
checking for /pkg/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 /pkg/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 (/pkg/bin/ld) 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... yes
checking for xsltproc... /pkg/bin/xsltproc
checking for inotify_init in -lc... no
configure: WARNING: inotify support disabled
configure: creating ./config.status
config.status: creating Makefile
config.status: creating udev/Makefile
config.status: creating udev/lib/Makefile
config.status: creating udev/lib/libudev.pc
config.status: creating rules/Makefile
config.status: creating extras/Makefile
config.status: creating extras/ata_id/Makefile
config.status: creating extras/cdrom_id/Makefile
config.status: creating extras/edd_id/Makefile
config.status: creating extras/path_id/Makefile
config.status: creating extras/firmware/Makefile
config.status: creating extras/collect/Makefile
config.status: creating extras/floppy/Makefile
config.status: creating extras/fstab_import/Makefile
config.status: creating extras/rule_generator/Makefile
config.status: creating extras/scsi_id/Makefile
config.status: creating extras/usb_id/Makefile
config.status: creating extras/volume_id/Makefile
config.status: creating extras/volume_id/lib/Makefile
config.status: creating extras/volume_id/lib/libvolume_id.pc
config.status: creating config.h
config.status: executing depfiles commands
config.status: executing libtool commands
udev 141
========
prefix: /usr
exec_prefix:
udev_prefix: ${exec_prefix}
libdir_name: lib
datarootdir: ${prefix}/share
mandir: ${datarootdir}/man
includedir: ${prefix}/include
logging: yes
debug: no
selinux: no
compiler: gcc
cflags: -g -O2
ldflags:
xsltproc: /pkg/bin/xsltproc
[-- Attachment #4: config.h --]
[-- Type: text/x-c, Size: 3022 bytes --]
/* config.h. Generated from config.h.in by configure. */
/* config.h.in. Generated from configure.ac by autoheader. */
/* Compile in debug messages */
/* #undef DEBUG */
/* Define to 1 if you have the <dlfcn.h> header file. */
#define HAVE_DLFCN_H 1
/* inotify available */
/* #undef HAVE_INOTIFY */
/* Define to 1 if you have the <inttypes.h> header file. */
#define HAVE_INTTYPES_H 1
/* Define to 1 if you have the `selinux' library (-lselinux). */
/* #undef HAVE_LIBSELINUX */
/* Define to 1 if you have the <memory.h> header file. */
#define HAVE_MEMORY_H 1
/* Define to 1 if you have the <stdint.h> header file. */
#define HAVE_STDINT_H 1
/* Define to 1 if you have the <stdlib.h> header file. */
#define HAVE_STDLIB_H 1
/* Define to 1 if you have the <strings.h> header file. */
#define HAVE_STRINGS_H 1
/* Define to 1 if you have the <string.h> header file. */
#define HAVE_STRING_H 1
/* Define to 1 if you have the <sys/stat.h> header file. */
#define HAVE_SYS_STAT_H 1
/* Define to 1 if you have the <sys/types.h> header file. */
#define HAVE_SYS_TYPES_H 1
/* Define to 1 if you have the <unistd.h> header file. */
#define HAVE_UNISTD_H 1
/* Define to the sub-directory in which libtool stores uninstalled libraries.
*/
#define LT_OBJDIR ".libs/"
/* Name of package */
#define PACKAGE "udev"
/* Define to the address where bug reports for this package should be sent. */
#define PACKAGE_BUGREPORT "linux-hotplug@vger.kernel.org"
/* Define to the full name of this package. */
#define PACKAGE_NAME "udev"
/* Define to the full name and version of this package. */
#define PACKAGE_STRING "udev 141"
/* Define to the one symbol short name of this package. */
#define PACKAGE_TARNAME "udev"
/* Define to the version of this package. */
#define PACKAGE_VERSION "141"
/* Define to 1 if you have the ANSI C header files. */
#define STDC_HEADERS 1
/* Use logging/syslog */
#define USE_LOG 1
/* compile with SELinux support */
/* #undef USE_SELINUX */
/* Enable extensions on AIX 3, Interix. */
#ifndef _ALL_SOURCE
# define _ALL_SOURCE 1
#endif
/* Enable GNU extensions on systems that have them. */
#ifndef _GNU_SOURCE
# define _GNU_SOURCE 1
#endif
/* Enable threading extensions on Solaris. */
#ifndef _POSIX_PTHREAD_SEMANTICS
# define _POSIX_PTHREAD_SEMANTICS 1
#endif
/* Enable extensions on HP NonStop. */
#ifndef _TANDEM_SOURCE
# define _TANDEM_SOURCE 1
#endif
/* Enable general extensions on Solaris. */
#ifndef __EXTENSIONS__
# define __EXTENSIONS__ 1
#endif
/* Version number of package */
#define VERSION "141"
/* Number of bits in a file offset, on hosts where this is settable. */
#define _FILE_OFFSET_BITS 64
/* Define for large files, on AIX-style hosts. */
/* #undef _LARGE_FILES */
/* Define to 1 if on MINIX. */
/* #undef _MINIX */
/* Define to 2 if the system does not provide POSIX.1 features except with
this defined. */
/* #undef _POSIX_1_SOURCE */
/* Define to 1 if you need to in order for `stat' and other things to work. */
/* #undef _POSIX_SOURCE */
next reply other threads:[~2009-04-23 21:27 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-04-23 21:27 Gabor Z. Papp [this message]
2009-04-23 22:10 ` compiling udev 141 on linux 2.4 Kay Sievers
2009-04-23 22:14 ` Gabor Z. Papp
2009-04-23 22:19 ` Kay Sievers
2009-04-29 18:39 ` Gabor Z. Papp
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=310ca25e50765edce514c2eaa65ea3ff@gzp \
--to=gzp@papp.hu \
--cc=linux-hotplug@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).