Skip to contentSkip to conversation

udev compile problem: dlist

DISCUSSION Thomas Strösslin 2 participants 2 messages Dec 20, 2004

lore
Share & tools
lore
#0 lore raw

Hi,

I failed to compile udev-050.
in dlist.c, the function dlist_sort_custom() contains:
dlist_start(list);
struct dlist *listsource, *listdest, *swap; etc.

This does not compile on my system (SuSE 7.3, gcc 2.95.3)

It does compile if you move dlist_start(list) below all declarations. I actually don't understand how it could compile on any system...

cheers,
tom

-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now.
http://productguide.itmanagersjournal.com/
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel

#1 lore raw

Hi

Quoted 7 lines · Thomas Strösslin

I failed to compile udev-050.
in dlist.c, the function dlist_sort_custom() contains:

   dlist_start(list);
   struct dlist *listsource, *listdest, *swap;
   etc.

This does not compile on my system (SuSE 7.3, gcc 2.95.3)

Do you mind if I ask why you're using a nearly 3 year old system which is not supported by Suse anymore? This system is built to run a 2.4 Kernel so that may be a problem too.

Quoted 2 lines

It does compile if you move dlist_start(list) below all declarations. I actually don't understand how it could compile on any system...

AFAIK, C99 allows this. The support for C99 is very limited in 2.95 series gcc compilers.

Cheers, Tobias