<html>
    <head>
      <base href="https://bugs.freedesktop.org/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Priority</th>
          <td>medium
          </td>
        </tr>

        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW --- - udev fails to build with uclibc"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=73729">73729</a>
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>systemd-bugs@lists.freedesktop.org
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>udev fails to build with uclibc
          </td>
        </tr>

        <tr>
          <th>QA Contact</th>
          <td>systemd-bugs@lists.freedesktop.org
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Linux (All)
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>natanael.copa@gmail.com
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>Other
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>unspecified
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>general
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>systemd
          </td>
        </tr></table>
      <p>
        <div>
        <pre>I haven't updated udev for a long time (due to some instability after
udev-175). It seems like udev sources has merged into systemd since then.

According <a href="http://lwn.net/Articles/490413/">http://lwn.net/Articles/490413/</a> it should still be possible to build
udev as a standalone, just checking out the sources from systemd. (i was also
pleased to see the first comment: "BASICALLY NOTHING WILL CHANGE" there so I am
comfortable this should be simple to fix)

After running './configure --disable-localed && cd src/udev && make' I get the
following build error when building with uClibc:

make -C ..
make[1]: Entering directory '/home/ncopa/src/systemd/src'
make -C ..
make[2]: Entering directory '/home/ncopa/src/systemd'
make --no-print-directory all-recursive
Making all in .
  CC       src/libsystemd/libsystemd_la-sd-bus.lo
In file included from src/libsystemd/sd-bus.c:32:0:
./src/shared/util.h:796:9: error: unknown type name 'locale_t'
         locale_t saved_locale;
         ^
./src/shared/util.h:797:9: error: unknown type name 'locale_t'
         locale_t new_locale;
         ^
./src/shared/util.h: In function '_reset_locale_':
./src/shared/util.h:803:33: error: 'locale_t' undeclared (first use in this
function)
         if (s->saved_locale != (locale_t) 0)
                                 ^
./src/shared/util.h:803:33: note: each undeclared identifier is reported only
once for each function it appears in
./src/shared/util.h:803:43: error: expected ')' before numeric constant
         if (s->saved_locale != (locale_t) 0)
                                           ^
./src/shared/util.h:804:17: warning: implicit declaration of function
'uselocale' [-Wimplicit-function-declaration]
                 uselocale(s->saved_locale);
                 ^
./src/shared/util.h:804:17: warning: nested extern declaration of 'uselocale'
[-Wnested-externs]
./src/shared/util.h:805:41: error: expected ')' before numeric constant
         if (s->new_locale != (locale_t) 0)
                                         ^
./src/shared/util.h:806:17: warning: implicit declaration of function
'freelocale' [-Wimplicit-function-declaration]
                 freelocale(s->new_locale);
                 ^
./src/shared/util.h:806:17: warning: nested extern declaration of 'freelocale'
[-Wnested-externs]
In file included from src/libsystemd/sd-bus.c:36:0:
./src/shared/missing.h: At top level:
./src/shared/missing.h:299:6: error: #error neither secure_getenv nor
__secure_getenv are available
 #    error neither secure_getenv nor __secure_getenv are available
      ^
src/libsystemd/sd-bus.c: In function 'sd_bus_open_system':
src/libsystemd/sd-bus.c:1047:9: warning: implicit declaration of function
'secure_getenv' [-Wimplicit-function-declaration]
         e = secure_getenv("DBUS_SYSTEM_BUS_ADDRESS");
         ^
src/libsystemd/sd-bus.c:1047:9: warning: nested extern declaration of
'secure_getenv' [-Wnested-externs]
src/libsystemd/sd-bus.c:1047:11: warning: assignment makes pointer from integer
without a cast [enabled by default]
         e = secure_getenv("DBUS_SYSTEM_BUS_ADDRESS");
           ^
src/libsystemd/sd-bus.c: In function 'sd_bus_open_user':
src/libsystemd/sd-bus.c:1085:11: warning: assignment makes pointer from integer
without a cast [enabled by default]
         e = secure_getenv("DBUS_SESSION_BUS_ADDRESS");
           ^
src/libsystemd/sd-bus.c:1091:19: warning: assignment makes pointer from integer
without a cast [enabled by default]
                 e = secure_getenv("XDG_RUNTIME_DIR");
                   ^
Makefile:11504: recipe for target 'src/libsystemd/libsystemd_la-sd-bus.lo'
failed
make[4]: *** [src/libsystemd/libsystemd_la-sd-bus.lo] Error 1
Makefile:13308: recipe for target 'all-recursive' failed
make[3]: *** [all-recursive] Error 1
Makefile:7058: recipe for target 'all' failed
make[2]: *** [all] Error 2
make[2]: Leaving directory '/home/ncopa/src/systemd'
Makefile:23: recipe for target 'all' failed
make[1]: *** [all] Error 2
make[1]: Leaving directory '/home/ncopa/src/systemd/src'
Makefile:23: recipe for target 'all' failed
make: *** [all] Error 2


I am not really interested in localized /dev.</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the QA Contact for the bug.</li>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>