undefined reference to _ctype_ (WAS: Re: problems compiling *anything*)

Earnie Boyd earnie_boyd@yahoo.com
Tue Mar 28 05:26:00 GMT 2000

> $ make
> rm -f bash
> gcc -L./builtins -L./lib/readline -L./lib/readline -L./lib/glob
> -L./lib/tilde - L ./lib/malloc -L./lib/sh    -g -O2 -o bash shell.o 
> eval.o
> y.tab.o general.o make_ cmd.o print_cmd.o  dispose_cmd.o 
> execute_cmd.o
> variables.o copy_cmd.o error.o ex pr.o flags.o jobs.o subst.o 
> hashcmd.o
> hashlib.o mailcheck.o trap.o input.o unwin d_prot.o pathexp.o 
> sig.o test.o
> version.o alias.o array.o braces.o bracecomp.o b ashhist.o 
> bashline.o
> siglist.o list.o stringlib.o locale.o findcmd.o redir.o xma lloc.o
> -lbuiltins -lreadline -lhistory -lncurses -lglob -ltilde -lmalloc - lsh -
> l
> user32 
> /usr/local/lib/libncurses.a(lib_tputs.o)(.text+0x2a4):lib_tputs.c:
> undefined ref erence to `_ctype_'
> /usr/local/lib/libncurses.a(lib_tputs.o)(.text+0x32c):lib_tputs.c:
> undefined ref erence to `_ctype_' collect2: ld returned 1 exit 
> status
> make: *** [bash] Error 1

This is caused by having a snapshot Cygwin1.dll and not obtaining the
cygwin-inst tarball to update the headers and libraries.  Cygwin1.dll is
backward compatible with previous .exe files but is not backward compatible
with any existing .o or lib*.a files.

In order to fix this you will need to get the most recent cygwin-inst tarball
and install the files over top of what you have.  Note, the directory structure
is different from the full.exe directory structure and you'll have to manually
move the files to where they belong.

As always, have a fall back plan.  I.E.: Backup you current environment before
installing the snapshot.

   Earnie Boyd: < mailto:earnie_boyd@yahoo.com >
            __Cygwin: POSIX on Windows__
Cygwin Newbies: < http://www.freeyellow.com/members5/gw32/index.html >
           __Minimalist GNU for Windows__
  Mingw32 List: < http://www.egroups.com/group/mingw32/ >
    Mingw Home: < http://www.mingw.org/ >

Do You Yahoo!?
Talk to your friends online with Yahoo! Messenger.

Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com

More information about the Cygwin mailing list