[BusyBox] 'make docs/busybox.pod' warnings

Paul van Gool paul.vangool at rinconnetworks.com
Thu Dec 4 23:35:09 UTC 2003


While building busybox 1.00pre3, the 'make docs/busybox.pod' results in the
following warnings from Perl:

Use of uninitialized value in substitution (s///) at docs/autodocifier.pl line 47.
Use of uninitialized value in split at docs/autodocifier.pl line 49.
Use of uninitialized value in concatenation (.) or string at docs/autodocifier.pl line 81.

I traced these down to a few lines in include/usage.h, where '# define" was
used instead of "#define".

So I could either change the perl script or change include/usage.h. I chose
the latter. Here is the diff:

@@ -1282,24 +1282,24 @@
        "          [ broadcast ADDR ] [ anycast ADDR ]\n" \
        "          [ label STRING ] [ scope SCOPE-ID ]\n" \
        "SCOPE-ID := [ host | link | global | NUMBER ]\n"
 
 #ifndef CONFIG_FEATURE_IPCALC_FANCY
-# define ipcalc_trivial_usage \
+#define ipcalc_trivial_usage \
        "[--broadcast] [--netmask] [--network] ipaddr <netmask>"
 
-# define ipcalc_full_usage \
+#define ipcalc_full_usage \
        "Calculate IP network settings from a IP address\n\n" \
        "Options:\n" \
        "\t-b\t--broadcast\tDisplay calculated broadcast address.\n" \
        "\t-n\t--netmask\tDisplay default netmask for IP.\n" \
        "\t-w\t--network\tDisplay calculated network address." 
 #else
-# define ipcalc_trivial_usage \
+#define ipcalc_trivial_usage \
        "[OPTION]... ipaddr <netmask>"
 
-# define ipcalc_full_usage \
+#define ipcalc_full_usage \
        "Calculate IP network settings from a IP address\n\n" \
        "Options:\n" \
        "\t-b\t--broadcast\tDisplay calculated broadcast address.\n" \
        "\t-n\t--netmask\tDisplay default netmask for IP.\n" \
        "\t-w\t--network\tDisplay calculated network address.\n" \

Thanks.

Paul
-- 
Paul van Gool                                               Rincon Networks
paul.vangool at rinconnetworks.com                              (805)-705-1442



More information about the busybox mailing list