linux-hotplug.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Greg KH <greg@kroah.com>
To: linux-hotplug@vger.kernel.org
Subject: Re: compiling problems
Date: Wed, 12 Jan 2005 08:09:28 +0000	[thread overview]
Message-ID: <20050112080928.GA2707@kroah.com> (raw)
In-Reply-To: <681F01116A860B46874E634854F4DE620E704C@coastapps.westcoastdhb.org.nz>

On Wed, Jan 12, 2005 at 08:27:04PM +1300, Miles Roper wrote:
> 
> Hi,
> 
> 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.

Hope this helps,

greg k-h


=== libsysfs/dlist.c 1.5 vs edited ==--- 1.5/libsysfs/dlist.c	2004-10-19 20:15:26 -07:00
+++ edited/libsysfs/dlist.c	2005-01-12 00:02:40 -08:00
@@ -546,11 +546,14 @@ int _dlist_merge(struct dlist *listsourc
 void dlist_sort_custom(struct dlist *list, int (*compare)(void *, void *))
 {
 
-  dlist_start(list);
   struct dlist *listsource, *listdest, *swap;
-  struct dlist *templist = dlist_new(list->data_size);
+  struct dlist *templist;
   unsigned int passcount = 1;
   unsigned int mergecount = 1;
+
+  dlist_start(list);
+  templist = dlist_new(list->data_size);
+
   // do nothing if there isn't anything to sort
   listsource = list;
   listdest = templist;


-------------------------------------------------------
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

  reply	other threads:[~2005-01-12  8:09 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-01-12  7:27 compiling problems Miles Roper
2005-01-12  8:09 ` Greg KH [this message]
2005-01-12 20:03 ` Kay Sievers
2005-01-12 21:43 ` Greg KH
2005-01-13  0:20 ` Kay Sievers
2005-01-13  6:29 ` Miles Roper
2005-01-13  8:53 ` Miles Roper
2005-01-13 16:41 ` Richard Troth
2005-01-13 17:17 ` Greg KH
2005-01-14  7:51 ` Miles Roper
2005-01-19 19:41 ` Greg KH
2005-01-19 21:06 ` Kay Sievers
2005-01-19 21:31 ` Greg KH
2005-01-20  8:12 ` Miles Roper
2005-01-20  8:41 ` Miles Roper
2005-01-20 14:27 ` Greg KH
2005-01-21  9:47 ` Miles Roper
2005-01-21 17:05 ` Greg KH
2005-01-21 18:43 ` Chris Larson
2005-01-25  8:14 ` Miles Roper

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=20050112080928.GA2707@kroah.com \
    --to=greg@kroah.com \
    --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).