From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kay Sievers Date: Wed, 12 Jan 2005 20:03:28 +0000 Subject: Re: compiling problems Message-Id: <1105560208.6564.79.camel@localhost.localdomain> List-Id: References: <681F01116A860B46874E634854F4DE620E704C@coastapps.westcoastdhb.org.nz> In-Reply-To: <681F01116A860B46874E634854F4DE620E704C@coastapps.westcoastdhb.org.nz> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-hotplug@vger.kernel.org On Wed, 2005-01-12 at 00:09 -0800, Greg KH wrote: > On Wed, Jan 12, 2005 at 08:27:04PM +1300, Miles Roper wrote: > > Trying to compile udev with glibc 2.1.3 and gcc 2.95.3. I use this version > > of glibc and gcc to save size as I work on an embedded thinclient software. > > No I can't use ulibc as some of the software I needs to use glibc. > > > > getting the below error > > > > gcc -pipe -DLOG -Os -fomit-frame-pointer -D_GNU_SOURCE -Wall -Wshadow > > -Wstric > > t-prototypes -Wmissing-prototypes -Wmissing-declarations > > -I/usr/local/lib/gcc > > -lib/i586-pc-linux-gnu/2.95.3/include -I/source/udev-050/libsysfs/sysfs > > -I/so > > urce/udev-050/libsysfs -c -o libsysfs/dlist.o libsysfs/dlist.c > > libsysfs/dlist.c: In function `dlist_sort_custom': > > libsysfs/dlist.c:550: parse error before `struct' > > libsysfs/dlist.c:555: `listsource' undeclared (first use in this function) > > libsysfs/dlist.c:555: (Each undeclared identifier is reported only once > > libsysfs/dlist.c:555: for each function it appears in.) > > libsysfs/dlist.c:556: `listdest' undeclared (first use in this function) > > libsysfs/dlist.c:556: `templist' undeclared (first use in this function) > > libsysfs/dlist.c:563: `mergecount' undeclared (first use in this function) > > libsysfs/dlist.c:565: `passcount' undeclared (first use in this function) > > libsysfs/dlist.c:570: `swap' undeclared (first use in this function) > > make: *** [libsysfs/dlist.o] Error 1 > > > > ideas? > > The patch below should fix up the gcc issues. But you will then get the > following one: > udev_add.c: In function `rename_net_if': > udev_add.c:271: structure has no member named `ifr_newname' > udev_add.c:271: structure has no member named `ifr_newname' > udev_add.c:271: structure has no member named `ifr_newname' > udev_add.c:271: structure has no member named `ifr_newname' > > which is a glibc issue that I don't know how to resolve. I suggest > building using the klibc that comes with udev and see if that fixes the issue. Just a very bad hack for your ancient glibc, but seems to work. :) Kay === udev_add.c 1.87 vs edited ==--- 1.87/udev_add.c 2004-12-20 00:57:30 +01:00 +++ edited/udev_add.c 2005-01-12 20:59:16 +01:00 @@ -268,7 +268,8 @@ memset(&ifr, 0x00, sizeof(struct ifreq)); strfieldcpy(ifr.ifr_name, udev->kernel_name); - strfieldcpy(ifr.ifr_newname, udev->name); + //strfieldcpy(ifr.ifr_newname, udev->name); + strfieldcpy(ifr.ifr_ifru.ifru_data, udev->name); retval = ioctl(sk, SIOCSIFNAME, &ifr); if (retval != 0) ------------------------------------------------------- The SF.Net email is sponsored by: Beat the post-holiday blues Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek. It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt _______________________________________________ Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net Linux-hotplug-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel