delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2000/03/28/08:30:18

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sourceware DOT cygnus DOT com>
List-Archive: <http://sourceware.cygnus.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sourceware DOT cygnus DOT com>
List-Help: <mailto:cygwin-help AT sourceware DOT cygnus DOT com>, <http://sourceware.cygnus.com/ml/#faqs>
Sender: cygwin-owner AT sourceware DOT cygnus DOT com
Delivered-To: mailing list cygwin AT sourceware DOT cygnus DOT com
Message-ID: <20000328132612.6664.qmail@web115.yahoomail.com>
Date: Tue, 28 Mar 2000 05:26:12 -0800 (PST)
From: Earnie Boyd <earnie_boyd AT yahoo DOT com>
Reply-To: earnie_boyd AT yahoo DOT com
Subject: Re: undefined reference to _ctype_ (WAS: Re: problems compiling *anything*)
To: tomcw AT localnet DOT com, cygwin AT sourceware DOT cygnus DOT com
MIME-Version: 1.0

> $ 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 AT yahoo DOT 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.
http://im.yahoo.com

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019