[uClibc]wordexp() and pcmcia_cs

Erik Andersen andersen at codepoet.org
Sat Sep 21 23:07:03 UTC 2002


On Sat Sep 21, 2002 at 01:10:08PM -0700, andy preston wrote:
> I'm trying to build the latest pcmcia_cs utils (3.2.1) and it's failing
> on wordexp. I've done a search on it in the uClibc package to discover
> that it's not supported. I've got 3.1.30 to compile fine, anyone know
> the maximum version that can be compiled, or a way of getting it to
> compile or even if I can just steal the wordexp from glibc.
> 
> TIA
> 
> Andy
> PS You may have to change the Docs now Eric, I've found an app that does
> use wordexp !

There's a first for everything I suppose.  Regardless it 
doesn't _have_ to use wordexp.  This is the patch I used 
when compiling pcmcia-cs-3.2.1 with uClibc.


--- pcmcia-cs-3.2.1/cardmgr/lex_config.l.orig	Tue Sep 10 03:06:24 2002
+++ pcmcia-cs-3.2.1/cardmgr/lex_config.l	Tue Sep 10 03:07:00 2002
@@ -39,7 +39,7 @@
 #include <string.h>
 #include <syslog.h>
 
-#if defined(__GLIBC__) && (__GLIBC__ >= 2) && (__GLIBC_MINOR__ >= 1)
+#if defined(__GLIBC__) && (__GLIBC__ >= 2) && (__GLIBC_MINOR__ >= 1) && ! defined (__UCLIBC__)
 #define USE_WORDEXP
 #include <wordexp.h>
 #else
 
 -Erik

--
Erik B. Andersen             http://codepoet-consulting.com/
--This message was written using 73% post-consumer electrons--



More information about the uClibc mailing list