This is the mail archive of the cygwin@sourceware.cygnus.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

_ctype_ again (long)


Hello,
I have a problem with _ctype_. This problem was
already described early this year on this list,
but since then new versions of compilers appeared,
so I need some updates for possible solutions.
So, here is my story :
1. I have installed cygwin-20.1 from december
1998,
2. I have installed the 15Jan99-cygwin1.dll
snapshot only,
3. I have installed Mumit's egcs v1.1.2, from
17.03.99 (also known as 2.91.66),
4. So far, I have compiled some programs with
these tools, produced some libraries etc.,
5. I have recently installed both
"cygwin-inst-19990603" and "cygwin1-19990603-dll"
over the previous versions,
6. now I have compilation problems related with
_ctype_.
In the following, I describe these problems :

1. Problem with a library compiled with old
compilers.
The name of the library is 'libkpathsea' (part of
TeX tools). If I compile the following small file
:
    #define HAVE_KPSE_FORMATS 1
    char kpse_find_file();
    int main() { kpse_find_file() ; return 0; }
I obtain the following :
>helios:/tmp$ gcc -o test -O2 -w
-I/usr/local/include -s -L/usr/local/lib test.c
-lkpathsea
>/usr/local/lib/libkpathsea.a(fontmap.o)(.text+0x12):fontmap.c:
undefined referen ce to `_ctype_'
>/usr/local/lib/libkpathsea.a(fontmap.o)(.text+0x3e):fontmap.c:
undefined referen ce to `_ctype_'
>/usr/local/lib/libkpathsea.a(fontmap.o)(.text+0x1b3):fontmap.c:
undefined refere nce to `_ctype_'
>/usr/local/lib/libkpathsea.a(variable.o)(.text+0x37a):variable.c:
undefined refe rence to `_ctype_'
>/usr/local/lib/libkpathsea.a(variable.o)(.text+0x394):variable.c:
undefined refe rence to `_ctype_'
>/usr/local/lib/libkpathsea.a(uppercasify.o)(.text+0x16):uppercasify.c:
more unde fined references to `_ctype_' follow
>collect2: ld returned 1 exit status
I really had no problem before I upgraded to the
more recent snapshot.

2. Problem with a tool written in C++.
The name of the tool is 'pstoedit'. It is used to
export vector graphics from PostScript figures.
I reproduce here the error that appears on the
screen :
>helios:/usr/src/pstoedit.2.60/src$ make
>echo cmdmain.o pstoedit.o drvlwo.o drvrib.o
drvrpl.o drvmif.o drvdxf.o drvjava.o drvpdf.o   >
link.rsp
>echo lexyy.o   >> link.rsp
>echo drvsampl.o   drvtgif.o  drvfig.o
drvidraw.o  drvgnplt.o   >> link.rsp
>echo drvbase.o   >> link.rsp
>g++ -pedantic -w -O2 -Dunix -U_WIN32 -o pstoedit
-DDEFAULTGS=gs @link.rsp -lstdc ++
>D:/usr/lib/gcc-lib/i586-cygwin32/egcs-2.91.66/../../../libstdc++.a(iostream.o)(.
text+0x113): undefined reference to `_ctype_'
>D:/usr/lib/gcc-lib/i586-cygwin32/egcs-2.91.66/../../../libstdc++.a(iostream.o)(.
text+0x549): undefined reference to `_ctype_'
>D:/usr/lib/gcc-lib/i586-cygwin32/egcs-2.91.66/../../../libstdc++.a(iovfscanf.o)(
.text+0x61): undefined reference to `_ctype_'
>D:/usr/lib/gcc-lib/i586-cygwin32/egcs-2.91.66/../../../libstdc++.a(iovfscanf.o)(
.text+0x72): undefined reference to `_ctype_'
>D:/usr/lib/gcc-lib/i586-cygwin32/egcs-2.91.66/../../../libstdc++.a(iovfscanf.o)(
.text+0x501): undefined reference to `_ctype_'
>D:/usr/lib/gcc-lib/i586-cygwin32/egcs-2.91.66/../../../libstdc++.a(iovfscanf.o)(
.text+0x55a): more undefined references to
>`_ctype_' follow
>collect2: ld returned 1 exit status
>make: *** [pstoedit.exe] Error 1
The problem concerns both 'iostream' and
'iovfscan'. This problem was already described by
Mumit in a post dated 1999.02.25 (RE: _ctype_ ).
The solution was apparently to rebuild the whole
C++ toolchain.
I want to know if this solution still holds true.
My "libstdc++" is dated 17.03.99, and is posterior
to this disussion...
And my "libcygwin.a" is dated 06.04.99, and may be
things became different within cygwin tools since
march.

I suspect that some old versions of cygwin files
are interfering with new ones, but I am really
unable to find or guess which ones are concerned.
I need a very big help on this point.
In the eventuality that I have to recompile
someting, what do I have to do (step by step) ?

Many thanks in advance. (I also join the output of
"cygcheck -c -v -r").
--
Dr.-Ing. Sami Alex ZAIMI
Tohoku University - Sendai (Japan)

===================================================================================

Cygnus Win95/NT Configuration Diagnostics
Current System Time: Mon Jun 21 04:49:24 1999

Win95 Ver 4.0 build 67109975  B

Path: .
 /bin
 /usr/local/bin
 /usr/tools

SysDir: C:\WINDOWS\SYSTEM
WinDir: C:\WINDOWS

CYGWIN = `binmode tty title strip_title'
C_INCLUDE_PATH = `/usr/i586-cygwin32/include/'
GCC_EXEC_PREFIX = `/usr/lib/gcc-lib/'
HOME = `/home'
MAKE_MODE = `UNIX'
PWD = `/tmp'

!C: = `C:\'
!D: = `D:\home'
AR = `ar rcu'
BISONLIB = `/usr/local/lib/'
BLASTER = `A220 I5 D0 T4'
CC = `gcc'
CFLAGS = `-O2 -w'
CMDLINE = `d:\usr\bin\bash.exe'
COMSPEC = `C:\WINDOWS\COMMAND.COM'
CONFIG = `COMMON'
CPLUS_INCLUDE_PATH = `/usr/include/g++/'
CPPFLAGS = `-I/usr/local/include'
DISPLAY = `127.0.0.1:0.0'
HOSTNAME = `helios.iamp.tohoku.ac.jp'
HOSTTYPE = `i586'
INFOPATH = `/usr/local/info'
INSTALL = `/usr/local/bin/install.sh'
LDFLAGS = `-s -L/usr/local/lib'
LD_FLAGS = `-s -L/usr/local/lib'
LFN = `Y'
LIBDIR = `/usr/local/lib/'
LS_COLORS =
`*.c=32:*.h=32:*.o=1;32:*.txt=1:*~=35:*.zip=1;31:*.z=1;31:*.Z=1;31:*.gz=1;31:*.tgz=1;31:*.tar=31'

MACHTYPE = `i586-pc-cygwin32'
MAKE = `make'
MANPATH = `/usr/local/man'
OSTYPE = `cygwin32'
PAGER = `/usr/bin/less'
PROMPT = `$p$g'
PS1 = `\h:\w$ '
RANLIB = `ranlib'
SHELL = `/bin/bash'
SHLVL = `1'
SUFFIX = `.exe'
SYSROOT = `d:'
TEMP = `C:\temp'
TERM = `linux'
TERMCAP = `/etc/termcap'
TMP = `/tmp'
TMPDIR = `/tmp'
TZ = `-1'
VIM = `/usr/local/share/vim'
WINBOOTDIR = `C:\WINDOWS'
WINDIR = `C:\WINDOWS'
YACC = `bison -b y -y'
_ = `/usr/bin/cygcheck'
cc = `gcc'

HKEY_CURRENT_USER\Software\Cygnus Solutions
HKEY_CURRENT_USER\Software\Cygnus
Solutions\CYGWIN.DLL setup
HKEY_CURRENT_USER\Software\Cygnus
Solutions\CYGWIN.DLL setup\b15.0
HKEY_CURRENT_USER\Software\Cygnus
Solutions\CYGWIN.DLL setup\b15.0\mounts
HKEY_CURRENT_USER\Software\Cygnus
Solutions\CYGWIN.DLL setup\b15.0\mounts\01
  (default) = 0x00000001
  fsilent = 0x00000000
  native = `\usr\bin'
  unix = `/bin'
HKEY_CURRENT_USER\Software\Cygnus
Solutions\CYGWIN.DLL setup\b15.0\mounts\00
  (default) = `C:'
  unix = `/home/_c'
  fbinary = 0x00000000
  fsilent = 0x00000000
HKEY_CURRENT_USER\Software\Cygnus
Solutions\CYGWIN.DLL setup\b15.0\mounts\02
  (default) = `D:'
  unix = `/'
  fbinary = 0x00000001
  fsilent = 0x00000000
HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin

HKEY_CURRENT_USER\Software\Cygnus
Solutions\Cygwin\mounts v2
  (default) = `'
  cygdrive flags = 0x00000020
HKEY_CURRENT_USER\Software\Cygnus
Solutions\Cygwin\mounts v2\/
  (default) = `D:'
  flags = 0x00000002
HKEY_CURRENT_USER\Software\Cygnus
Solutions\Cygwin\mounts v2\/home/_c/
  (default) = `C:'
  flags = 0x00000020
HKEY_CURRENT_USER\Software\Cygnus
Solutions\Cygwin\mounts v2\/bin
  (default) = `D:/usr/bin'
  flags = 0x00000002
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus
Solutions\Cygwin B20
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus
Solutions\Cygwin B20\B20.1
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus
Solutions\GNUPro
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus
Solutions\GNUPro\i586-cygwin32
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus
Solutions\GNUPro\i586-cygwin32\i586-cygwin32
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus
Solutions\GNUPro\i586-cygwin32\i586-cygwin32\cygwin-B20.1

  (default) = `d:\usr\cygnus'
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus
Solutions\CYGWIN.DLL setup
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus
Solutions\CYGWIN.DLL setup\b15.0
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus
Solutions\CYGWIN.DLL setup\b15.0\mounts
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus
Solutions\CYGWIN.DLL setup\b15.0\mounts\00
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus
Solutions\CYGWIN.DLL setup\b15.0\mounts\01
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus
Solutions\CYGWIN.DLL setup\b15.0\mounts\02
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus
Solutions\CYGWIN.DLL setup\b15.0\mounts\03
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus
Solutions\CYGWIN.DLL setup\b15.0\mounts\04
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus
Solutions\CYGWIN.DLL setup\b15.0\mounts\05
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus
Solutions\CYGWIN.DLL setup\b15.0\mounts\06
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus
Solutions\CYGWIN.DLL setup\b15.0\mounts\07
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus
Solutions\CYGWIN.DLL setup\b15.0\mounts\08
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus
Solutions\CYGWIN.DLL setup\b15.0\mounts\09
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus
Solutions\CYGWIN.DLL setup\b15.0\mounts\0A
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus
Solutions\CYGWIN.DLL setup\b15.0\mounts\0B
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus
Solutions\CYGWIN.DLL setup\b15.0\mounts\0C
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus
Solutions\CYGWIN.DLL setup\b15.0\mounts\0D
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus
Solutions\CYGWIN.DLL setup\b15.0\mounts\0E
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus
Solutions\CYGWIN.DLL setup\b15.0\mounts\0F
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus
Solutions\CYGWIN.DLL setup\b15.0\mounts\10
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus
Solutions\CYGWIN.DLL setup\b15.0\mounts\11
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus
Solutions\CYGWIN.DLL setup\b15.0\mounts\12
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus
Solutions\CYGWIN.DLL setup\b15.0\mounts\13
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus
Solutions\CYGWIN.DLL setup\b15.0\mounts\14
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus
Solutions\CYGWIN.DLL setup\b15.0\mounts\15
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus
Solutions\CYGWIN.DLL setup\b15.0\mounts\16
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus
Solutions\CYGWIN.DLL setup\b15.0\mounts\17
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus
Solutions\CYGWIN.DLL setup\b15.0\mounts\18
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus
Solutions\CYGWIN.DLL setup\b15.0\mounts\19
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus
Solutions\CYGWIN.DLL setup\b15.0\mounts\1A
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus
Solutions\CYGWIN.DLL setup\b15.0\mounts\1B
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus
Solutions\CYGWIN.DLL setup\b15.0\mounts\1C
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus
Solutions\CYGWIN.DLL setup\b15.0\mounts\1D
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus
Solutions\Cygwin
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus
Solutions\Cygwin\mounts v2

a:\ fd  FAT        1Mb  39% CP    UN
c:\ hd  FAT32   1373Mb  58% CP    UN
ACER
d:\ hd  FAT32   1615Mb  65% CP    UN
PCMCIA

C:          /home/_c  system,auto  textmode
C:          /home/_c  system,auto  textmode
C:          /home/_c  system,auto  textmode

Found: D:\usr\bin\bash.exe
Found: D:\usr\bin\cat.exe
Not Found: cpp (good!)
Found: D:\usr\bin\find.exe
Found: D:\usr\bin\gcc.exe
Found: D:\usr\bin\gdb.exe
Found: D:\usr\bin\ld.exe
Found: D:\usr\bin\ls.exe
Found: D:\usr\bin\make.exe
Found: D:\usr\bin\sh.exe

  496k 1999/06/04 C:\WINDOWS\cygwin1.dll - os=4.0
img=1.0 sys=4.0
                  "cygwin1.dll" v0.0 ts=1999/6/4
6:13
  371k 1998/12/01 D:\usr\bin\cygtcl80.dll - os=4.0
img=1.0 sys=4.0
                  "cygtcl80.dll" v0.0 ts=1998/12/1
10:25
    5k 1998/12/01 D:\usr\bin\cygtclpip80.dll -
os=4.0 img=1.0 sys=4.0
   10k 1998/12/01 D:\usr\bin\cygtclreg80.dll -
os=4.0 img=1.0 sys=4.0
                  "cygtclreg80.dll" v0.0
ts=1998/12/1 10:25
  600k 1998/12/01 D:\usr\bin\cygtk80.dll - os=4.0
img=1.0 sys=4.0
                  "cygtk80.dll" v0.0 ts=1998/12/1
10:28
  496k 1999/06/04 D:\usr\bin\cygwin1.dll - os=4.0
img=1.0 sys=4.0
                  "cygwin1.dll" v0.0 ts=1999/6/4
6:13
  451k 1999/01/16
D:\usr\bin\cygwin1_new_150199.dll - os=4.0 img=1.0
sys=4.0
                  "cygwin1.dll" v0.0 ts=1999/1/16
7:09
  451k 1999/01/16 D:\usr\bin\cygwin1_150199.dll -
os=4.0 img=1.0 sys=4.0
                  "cygwin1.dll" v0.0 ts=1999/1/16
7:09
  446k 1998/12/04 D:\usr\bin\cygwin1_ori_B20_1.dll
- os=4.0 img=1.0 sys=4.0
                  "cygwin1.dll" v0.0 ts=1998/12/4
6:39
  485k 1999/05/03 D:\usr\bin\cygwin1-19990502.dll
- os=4.0 img=1.0 sys=4.0
                  "cygwin1.dll" v0.0 ts=1999/5/3
6:12
  496k 1999/06/04 D:\usr\bin\cygwin1-19990603.dll
- os=4.0 img=1.0 sys=4.0
                  "cygwin1.dll" v0.0 ts=1999/6/4
6:13
Use -h to see help about each section





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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]