diff options
author | Eric Andersen <andersen@codepoet.org> | 2001-03-14 01:31:11 +0000 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 2001-03-14 01:31:11 +0000 |
commit | 3c0b425cdee0883b0f5202b43e7d13845e7e1c79 (patch) | |
tree | 51d44b9eb89e85091a041e5697c92679b859a914 | |
parent | 14e9e9d1cab3ef5ed9910fadb5a327b5982c2049 (diff) | |
download | busybox-3c0b425cdee0883b0f5202b43e7d13845e7e1c79.tar.gz |
dpkg used tfind, which doesn't work with libc5. Print a friendy error
should someone try to use it...
-Erik
-rw-r--r-- | archival/dpkg.c | 9 | ||||
-rw-r--r-- | dpkg.c | 9 |
2 files changed, 18 insertions, 0 deletions
diff --git a/archival/dpkg.c b/archival/dpkg.c index 4e53652e4..e0fd8a31e 100644 --- a/archival/dpkg.c +++ b/archival/dpkg.c @@ -11,6 +11,15 @@ #include "busybox.h" + +/* Stupid libc doesn't have a reliable way for use to know + * that libc5 is being used. Assume this is good enough */ +#if defined __GLIBC__ || defined __UCLIBC__ +#error It looks like you are using libc5, which doesn't support +#error tfind(). tfind() is used by busybox dpkg. +#error Please disable BB_DPKG. Sorry. +#endif + #define DEPENDSMAX 64 /* maximum number of depends we can handle */ /* Should we do full dependency checking? */ @@ -11,6 +11,15 @@ #include "busybox.h" + +/* Stupid libc doesn't have a reliable way for use to know + * that libc5 is being used. Assume this is good enough */ +#if defined __GLIBC__ || defined __UCLIBC__ +#error It looks like you are using libc5, which doesn't support +#error tfind(). tfind() is used by busybox dpkg. +#error Please disable BB_DPKG. Sorry. +#endif + #define DEPENDSMAX 64 /* maximum number of depends we can handle */ /* Should we do full dependency checking? */ |