public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* Linking with zlib
@ 2003-09-24 23:22 Mark Himsley
  2003-09-24 23:43 ` Igor Pechtchanski
  0 siblings, 1 reply; 3+ messages in thread
From: Mark Himsley @ 2003-09-24 23:22 UTC (permalink / raw)
  To: cygwin

[-- Attachment #1: Type: text/plain, Size: 835 bytes --]

I'm sorry if I sound ignorant but I've been looking at this problem for a 
few days and I'm lost. I have googled but failed to find a relevant answer.

I have been trying to compile mergelog <http://mergelog.sourceforge.net/> 
(or more importantly zmergelog which is built from the same source file) 
under Cygwin.

Zmergelog is a fairly simple program to merge gziped Apache log files. It 
uses zlib to open and read the gziped files.

Mergelog's configure script appears to find that I have zlib installed but 
when I get to make zmergelog the link fails with undefined references to 
_gzopen _gzread and _gzclose.

I would be really grateful if someone could give me a hint how to compile 
zmergelog under Cygwin.

The output of the configure / make session and also cygcheck are attached.

Many thanks in advance.

-- 
Mark Himsley

[-- Attachment #2: configure+make.txt --]
[-- Type: text/plain, Size: 2125 bytes --]

mdsh@bedroom:/home/mdsh/src/mergelog-4.5
$ ./configure
creating cache ./config.cache
checking for a BSD compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking whether make sets ${MAKE}... yes
checking for working aclocal... missing
checking for working autoconf... missing
checking for working automake... missing
checking for working autoheader... missing
checking for working makeinfo... found
checking for a BSD compatible install... /usr/bin/install -c
checking for gcc... gcc
checking whether the C compiler (gcc  ) works... yes
checking whether the C compiler (gcc  ) is a cross-compiler... no
checking whether we are using GNU C... yes
checking whether gcc accepts -g... yes
checking for main in -lz... yes
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking for unistd.h... yes
checking for size_t... yes
checking whether struct tm is in sys/time.h or time.h... time.h
checking for 8-bit clean memcmp... yes
checking for mktime... yes
updating cache ./config.cache
creating ./config.status
creating Makefile
creating src/Makefile
creating man/Makefile
mdsh@bedroom:/home/mdsh/src/mergelog-4.5
$ make
Making all in src
make[1]: Entering directory `/home/mdsh/src/mergelog-4.5/src'
gcc -DHAVE_LIBZ=1 -DSTDC_HEADERS=1 -DHAVE_UNISTD_H=1 -DHAVE_MKTIME=1  -I. -I.      -g -O2 -lz  -DVERSION=\"4.5\" -Wall -DUSE_ZLIB mergelog.c -o zmergelog
/cygdrive/c/DOCUME~1/mdsh/LOCALS~1/Temp/ccbBCPt8.o(.text+0x8a): In function `fast_gzgets':
/home/mdsh/src/mergelog-4.5/src/mergelog.c:77: undefined reference to `_gzread'
/cygdrive/c/DOCUME~1/mdsh/LOCALS~1/Temp/ccbBCPt8.o(.text+0x6a6): In function `main':
/home/mdsh/src/mergelog-4.5/src/mergelog.c:393: undefined reference to `_gzclose'
/cygdrive/c/DOCUME~1/mdsh/LOCALS~1/Temp/ccbBCPt8.o(.text+0xc22):/home/mdsh/src/mergelog-4.5/src/mergelog.c:139: undefined reference to `_gzopen'
collect2: ld returned 1 exit status
make[1]: *** [zmergelog] Error 1
make[1]: Leaving directory `/home/mdsh/src/mergelog-4.5/src'
make: *** [all-recursive] Error 1

[-- Attachment #3: cygcheck.out --]
[-- Type: text/plain, Size: 27435 bytes --]

mdsh@bedroom:/home/mdsh/src/mergelog-4.5
$ cygcheck -s -v -r

Cygwin Win95/NT Configuration Diagnostics
Current System Time: Wed Sep 24 23:34:12 2003

Windows 2000 Professional Ver 5.0 Build 2195 Service Pack 4

Path:   C:\cygwin\usr\local\bin
        C:\cygwin\usr\X11R6\bin
        C:\cygwin\bin
        C:\cygwin\bin
        C:\cygwin\bin
        c:\Tcl\bin\
        c:\j2sdk1.4.1_01\bin
        c:\Program Files\Apache Group\apache-ant-1.5.2\bin
        c:\mysql\bin
        c:\Program Files\Network Associates\PGPNT
        c:\Program Files\SecureCRT
        c:\Program Files\rksupport
        c:\Program Files\snort-1.6.3\Binary
        c:\WINNT\system32
        c:\WINNT
        c:\WINNT\System32\Wbem
        c:\Program Files\Common Files\Sonic Shared\Ligos\GoMotion
        c:\Program Files\Common Files\Sonic Shared\Ligos\Decoders
        c:\Program Files\Common Files\Sonic Shared\MainConcept
        c:\gnupg
        C:\Documents and Settings\mdsh\My Documents\bin\
        c:\Program Files\Microsoft Visual Studio\Common\Tools\WinNT
        c:\Program Files\Microsoft Visual Studio\Common\MSDev98\Bin
        c:\Program Files\Microsoft Visual Studio\Common\Tools
        c:\Program Files\Microsoft Visual Studio\VC98\bin

Output from C:\cygwin\bin\id.exe (nontsec)
UID: 1009(mdsh) GID: 513(None)
513(None)

Output from C:\cygwin\bin\id.exe (ntsec)
UID: 1009(mdsh) GID: 513(None)
513(None)            544(Administrators)  
545(Users)

SysDir: C:\WINNT\system32
WinDir: C:\WINNT

CYGWIN = `binmode ntsec smbntsec tty notitle'
HOME = `C:\Documents and Settings\mdsh\My Documents'
MAKE_MODE = `unix'
PWD = `/home/mdsh/src/mergelog-4.5'
USER = `mdsh'

ALLUSERSPROFILE = `C:\Documents and Settings\All Users'
ANT_HOME = `C:\Program Files\Apache Group\apache-ant-1.5.2'
APPDATA = `C:\Documents and Settings\mdsh\Application Data'
CATALINA_HOME = `C:\Program Files\Apache Group\jakarta-tomcat-5.0.9'
CLASSPATH = `/cygdrive/c/Program Files/JMF21~1.1/lib/sound.jar;C:/PROGRA~1/JMF21~1.1/lib/jmf.jar;C:/PROGRA~1/JMF21~1.1/lib;C:/WINNT/java/classes;.'
COLORFGBG = `15;default;0'
COLORTERM = `rxvt-xpm'
COMMONPROGRAMFILES = `C:\Program Files\Common Files'
COMPUTERNAME = `BEDROOM'
COMSPEC = `C:\WINNT\system32\cmd.exe'
CVSROOT = `:pserver:mdsh@kitchen.mdsh.local:/usr/local/cvsroot'
DISPLAY = `:0'
HOMEDRIVE = `C:'
HOMEPATH = `\'
JAVA_HOME = `C:\j2sdk1.4.1_01'
LOGONSERVER = `\\BEDROOM'
MANPATH = `:/usr/ssl/man'
MSDEVDIR = `C:\Program Files\Microsoft Visual Studio\Common\MSDev98'
NTRESKIT = `C:\Program Files\rksupport'
NUMBER_OF_PROCESSORS = `1'
OLDPWD = `/home/mdsh/src'
OS2LIBPATH = `C:\WINNT\system32\os2\dll;'
OS = `Windows_NT'
PATHEXT = `.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH'
PROCESSOR_ARCHITECTURE = `x86'
PROCESSOR_IDENTIFIER = `x86 Family 6 Model 7 Stepping 3, GenuineIntel'
PROCESSOR_LEVEL = `6'
PROCESSOR_REVISION = `0703'
PROGRAMFILES = `C:\Program Files'
PS1 = `\[\033]0;\h:\w\007\u@\h:$PWD
\$ '
SHLVL = `1'
STARTEAM = `C:\Program Files\StarTeam 4.0\StarTeam.ini'
STARTEAMAPP = `C:\Program Files\StarTeam 4.0'
STLICENSE = `C:\Program Files\StarTeam 4.0'
SYSTEMDRIVE = `C:'
SYSTEMROOT = `C:\WINNT'
TEMP = `c:\DOCUME~1\mdsh\LOCALS~1\Temp'
TERM = `rxvt'
TMP = `c:\DOCUME~1\mdsh\LOCALS~1\Temp'
USERDOMAIN = `BEDROOM'
USERNAME = `mdsh'
USERPROFILE = `C:\Documents and Settings\mdsh'
WINDIR = `C:\WINNT'
WINDOWID = `168049744'
WORKSTATIONID = `C:\Program Files\StarTeam 4.0\ConnectionManager.ini'
_ = `/usr/bin/cygcheck'

HKEY_CURRENT_USER\Software\Cygnus Solutions
HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin
HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin\mounts v2
  (default) = `/cygdrive'
  cygdrive flags = 0x00000022
HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin\Program Options
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\MenuOrder\Start Menu\Programs\Cygnus Solutions
  (default) = (unsupported type)
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2
  (default) = `/cygdrive'
  cygdrive flags = 0x00000022
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/
  (default) = `C:/cygwin'
  flags = 0x0000000a
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/dev/nst0
  (default) = `\\.\tape0'
  flags = 0x0000000a
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/home/mdsh
  (default) = `C:\Documents and Settings\mdsh\My Documents'
  flags = 0x0000000a
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/usr/bin
  (default) = `C:/cygwin/bin'
  flags = 0x0000000a
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/usr/lib
  (default) = `C:/cygwin/lib'
  flags = 0x0000000a
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/usr/X11R6/lib/X11/fonts
  (default) = `C:\cygwin\usr\X11R6\lib\X11\fonts'
  flags = 0x0000000a
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\Program Options

a:  fd           N/A    N/A                    
c:  hd  NTFS   16112Mb  76% CP CS UN PA FC     
d:  cd           N/A    N/A                    
e:  cd           N/A    N/A                    
f:  cd  CDFS     646Mb 100%    CS UN           Red Hat Linux_i3
g:  hd  NTFS    8722Mb  70% CP CS UN PA FC     Local Disk
h:  fd           N/A    N/A                    
i:  fd           N/A    N/A                    
u:  net NTFS   18142Mb  21% CP CS    PA        mdsh
w:  net NTFS   43840Mb  12% CP CS    PA        www
x:  net NTFS   16716Mb  93% CP CS    PA        backup
y:  net NTFS   68408Mb  99% CP CS    PA        filestore

.                                            /cygdrive                 user    binmode,cygdrive
C:/cygwin                                    /                         system  binmode
\\.\tape0                                    /dev/nst0                 system  binmode
C:\Documents and Settings\mdsh\My Documents  /home/mdsh                system  binmode
C:/cygwin/bin                                /usr/bin                  system  binmode
C:/cygwin/lib                                /usr/lib                  system  binmode
C:\cygwin\usr\X11R6\lib\X11\fonts            /usr/X11R6/lib/X11/fonts  system  binmode
.                                            /cygdrive                 system  binmode,cygdrive

Found: C:\cygwin\bin\awk.exe
Found: C:\cygwin\bin\bash.exe
Found: C:\cygwin\bin\cat.exe
Found: C:\cygwin\bin\cp.exe
Found: C:\cygwin\bin\cpp.exe
Found: C:\cygwin\bin\find.exe
Found: C:\cygwin\bin\gcc.exe
Found: C:\cygwin\bin\gdb.exe
Found: C:\cygwin\bin\grep.exe
Found: C:\cygwin\bin\ld.exe
Found: C:\cygwin\bin\ls.exe
Found: C:\cygwin\bin\make.exe
Found: C:\cygwin\bin\mv.exe
Found: C:\cygwin\bin\rm.exe
Found: C:\cygwin\bin\sed.exe
Found: C:\cygwin\bin\sh.exe
Found: C:\cygwin\bin\tar.exe

  673k 2003/09/20 C:\cygwin\usr\X11R6\bin\cygdps-1.dll - os=4.0 img=1.0 sys=4.0
                  "cygdps-1.dll" v0.0 ts=2003/9/20 7:37
  184k 2003/09/20 C:\cygwin\usr\X11R6\bin\cygdpstk-1.dll - os=4.0 img=1.0 sys=4.0
                  "cygdpstk-1.dll" v0.0 ts=2003/9/20 7:37
  176k 2003/09/20 C:\cygwin\usr\X11R6\bin\cygfontconfig-1.dll - os=4.0 img=1.0 sys=4.0
                  "cygfontconfig-1.dll" v0.0 ts=2003/9/20 7:38
  340k 2003/09/20 C:\cygwin\usr\X11R6\bin\cygfreetype-9.dll - os=4.0 img=1.0 sys=4.0
                  "cygfreetype-9.dll" v0.0 ts=2003/9/20 7:38
  520k 2003/09/20 C:\cygwin\usr\X11R6\bin\cygGL-1.dll - os=4.0 img=1.0 sys=4.0
                  "cygGL-1.dll" v0.0 ts=2003/9/20 7:35
  593k 2003/09/20 C:\cygwin\usr\X11R6\bin\cygGLU-1.dll - os=4.0 img=1.0 sys=4.0
                  "cygGLU-1.dll" v0.0 ts=2003/9/20 7:36
  111k 2003/09/20 C:\cygwin\usr\X11R6\bin\cygICE-6.dll - os=4.0 img=1.0 sys=4.0
                  "cygICE-6.dll" v0.0 ts=2003/9/20 7:28
   25k 2003/09/20 C:\cygwin\usr\X11R6\bin\cygoldX-6.dll - os=4.0 img=1.0 sys=4.0
                  "cygoldX-6.dll" v0.0 ts=2003/9/20 7:27
 1511k 2003/09/20 C:\cygwin\usr\X11R6\bin\cygOSMesa-4.dll - os=4.0 img=1.0 sys=4.0
                  "cygOSMesa-4.dll" v0.0 ts=2003/9/20 7:35
   40k 2003/09/20 C:\cygwin\usr\X11R6\bin\cygpsres-1.dll - os=4.0 img=1.0 sys=4.0
                  "cygpsres-1.dll" v0.0 ts=2003/9/20 7:37
   54k 2003/09/20 C:\cygwin\usr\X11R6\bin\cygSM-6.dll - os=4.0 img=1.0 sys=4.0
                  "cygSM-6.dll" v0.0 ts=2003/9/20 7:28
 1073k 2003/09/20 C:\cygwin\usr\X11R6\bin\cygX11-6.dll - os=4.0 img=1.0 sys=4.0
                  "cygX11-6.dll" v0.0 ts=2003/9/20 7:27
   68k 2003/09/20 C:\cygwin\usr\X11R6\bin\cygXcursor-1.dll - os=4.0 img=1.0 sys=4.0
                  "cygXcursor-1.dll" v0.0 ts=2003/9/20 7:39
   84k 2003/09/20 C:\cygwin\usr\X11R6\bin\cygXext-6.dll - os=4.0 img=1.0 sys=4.0
                  "cygXext-6.dll" v0.0 ts=2003/9/20 7:28
   99k 2003/09/20 C:\cygwin\usr\X11R6\bin\cygXft-1.dll - os=4.0 img=1.0 sys=4.0
                  "cygXft-1.dll" v0.0 ts=2003/9/20 7:39
  118k 2003/09/20 C:\cygwin\usr\X11R6\bin\cygXft-2.dll - os=4.0 img=1.0 sys=4.0
                  "cygXft-2.dll" v0.0 ts=2003/9/20 7:39
   53k 2003/09/20 C:\cygwin\usr\X11R6\bin\cygXi-6.dll - os=4.0 img=1.0 sys=4.0
                  "cygXi-6.dll" v0.0 ts=2003/9/20 7:30
   29k 2003/09/20 C:\cygwin\usr\X11R6\bin\cygXmuu-1.dll - os=4.0 img=1.0 sys=4.0
                  "cygXmuu-1.dll" v0.0 ts=2003/9/20 7:29
   59k 2003/09/20 C:\cygwin\usr\X11R6\bin\cygXp-6.dll - os=4.0 img=1.0 sys=4.0
                  "cygXp-6.dll" v0.0 ts=2003/9/20 7:31
   83k 2003/09/20 C:\cygwin\usr\X11R6\bin\cygXpm-4.dll - os=4.0 img=1.0 sys=4.0
                  "cygXpm-4.dll" v0.0 ts=2003/9/20 7:29
   34k 2003/09/20 C:\cygwin\usr\X11R6\bin\cygXrandr-2.dll - os=4.0 img=1.0 sys=4.0
                  "cygXrandr-2.dll" v0.0 ts=2003/9/20 7:39
   49k 2003/09/20 C:\cygwin\usr\X11R6\bin\cygXrender-1.dll - os=4.0 img=1.0 sys=4.0
                  "cygXrender-1.dll" v0.0 ts=2003/9/20 7:38
  386k 2003/09/20 C:\cygwin\usr\X11R6\bin\cygXTrap-6.dll - os=4.0 img=1.0 sys=4.0
                  "cygXTrap-6.dll" v0.0 ts=2003/9/20 7:39
   38k 2003/09/20 C:\cygwin\usr\X11R6\bin\cygXtst-6.dll - os=4.0 img=1.0 sys=4.0
                  "cygXtst-6.dll" v0.0 ts=2003/9/20 7:30
   34k 2003/09/20 C:\cygwin\usr\X11R6\bin\cygXv-1.dll - os=4.0 img=1.0 sys=4.0
                  "cygXv-1.dll" v0.0 ts=2003/9/20 7:31
   61k 2003/08/09 C:\cygwin\bin\cygbz2-1.dll - os=4.0 img=1.0 sys=4.0
                  "cygbz2-1.dll" v0.0 ts=2003/8/9 7:35
   54k 2002/01/27 C:\cygwin\bin\cygbz21.0.dll - os=4.0 img=1.0 sys=4.0
                  "cygbz21.0.dll" v0.0 ts=2002/1/27 1:07
  849k 2003/08/11 C:\cygwin\bin\cygcrypto-0.9.7.dll - os=4.0 img=1.0 sys=4.0
                  "cygcrypto-0.9.7.dll" v0.0 ts=2003/8/11 9:58
  645k 2003/04/11 C:\cygwin\bin\cygcrypto.dll - os=4.0 img=1.0 sys=4.0
                  "cygcrypto.dll" v0.0 ts=2003/4/11 11:37
  551k 2003/04/02 C:\cygwin\bin\cygcurl-2.dll - os=4.0 img=1.0 sys=4.0
                  "cygcurl-2.dll" v0.0 ts=2003/4/2 22:09
   28k 2003/08/11 C:\cygwin\bin\cygcygipc-2.dll - os=4.0 img=1.0 sys=4.0
                  "cygcygipc-2.dll" v0.0 ts=2003/8/11 1:54
  380k 2002/07/24 C:\cygwin\bin\cygdb-3.1.dll - os=4.0 img=1.0 sys=4.0
                  "cygdb-3.1.dll" v0.0 ts=2002/7/24 17:24
  487k 2002/07/24 C:\cygwin\bin\cygdb_cxx-3.1.dll - os=4.0 img=1.0 sys=4.0
                  "cygdb_cxx-3.1.dll" v0.0 ts=2002/7/24 17:25
  132k 2003/07/12 C:\cygwin\bin\cygexpat-0.dll - os=4.0 img=1.0 sys=4.0
                  "cygexpat-0.dll" v0.0 ts=2003/7/12 12:33
   45k 2001/04/25 C:\cygwin\bin\cygform5.dll - os=4.0 img=1.0 sys=4.0
                  "cygform5.dll" v0.0 ts=2001/4/25 6:28
   35k 2002/01/09 C:\cygwin\bin\cygform6.dll - os=4.0 img=1.0 sys=4.0
                  "cygform6.dll" v0.0 ts=2002/1/9 6:03
   48k 2003/08/09 C:\cygwin\bin\cygform7.dll - os=4.0 img=1.0 sys=4.0
                  "cygform7.dll" v0.0 ts=2003/8/9 10:25
   28k 2003/07/20 C:\cygwin\bin\cyggdbm-3.dll - os=4.0 img=1.0 sys=4.0
                  "cyggdbm-3.dll" v0.0 ts=2003/7/20 8:58
   30k 2003/08/11 C:\cygwin\bin\cyggdbm-4.dll - os=4.0 img=1.0 sys=4.0
                  "cyggdbm-4.dll" v0.0 ts=2003/8/11 3:12
   19k 2003/03/22 C:\cygwin\bin\cyggdbm.dll - os=4.0 img=1.0 sys=4.0
                  "cyggdbm.dll" v0.0 ts=2002/2/20 3:05
   15k 2003/07/20 C:\cygwin\bin\cyggdbm_compat-3.dll - os=4.0 img=1.0 sys=4.0
                  "cyggdbm_compat-3.dll" v0.0 ts=2003/7/20 9:00
   15k 2003/08/11 C:\cygwin\bin\cyggdbm_compat-4.dll - os=4.0 img=1.0 sys=4.0
                  "cyggdbm_compat-4.dll" v0.0 ts=2003/8/11 3:13
   69k 2003/08/10 C:\cygwin\bin\cyggettextlib-0-12-1.dll - os=4.0 img=1.0 sys=4.0
                  "cyggettextlib-0-12-1.dll" v0.0 ts=2003/8/10 23:10
   12k 2003/08/10 C:\cygwin\bin\cyggettextpo-0.dll - os=4.0 img=1.0 sys=4.0
                  "cyggettextpo-0.dll" v0.0 ts=2003/8/10 23:11
  134k 2003/08/10 C:\cygwin\bin\cyggettextsrc-0-12-1.dll - os=4.0 img=1.0 sys=4.0
                  "cyggettextsrc-0-12-1.dll" v0.0 ts=2003/8/10 23:10
   17k 2001/06/28 C:\cygwin\bin\cyghistory4.dll - os=4.0 img=1.0 sys=4.0
                  "cyghistory4.dll" v0.0 ts=2001/1/7 4:34
   29k 2003/08/10 C:\cygwin\bin\cyghistory5.dll - os=4.0 img=1.0 sys=4.0
                  "cyghistory5.dll" v0.0 ts=2003/8/11 0:16
  306k 2002/04/27 C:\cygwin\bin\cyghttpd.dll - os=4.0 img=1.0 sys=4.0
                  "cyghttpd.dll" v0.0 ts=2002/4/27 14:23
  958k 2003/08/10 C:\cygwin\bin\cygiconv-2.dll - os=4.0 img=1.0 sys=4.0
                  "cygiconv-2.dll" v0.0 ts=2003/8/10 21:57
   22k 2001/12/13 C:\cygwin\bin\cygintl-1.dll - os=4.0 img=1.0 sys=4.0
                  "cygintl-1.dll" v0.0 ts=2001/12/13 9:28
   37k 2003/08/10 C:\cygwin\bin\cygintl-2.dll - os=4.0 img=1.0 sys=4.0
                  "cygintl-2.dll" v0.0 ts=2003/8/10 22:50
   21k 2001/06/20 C:\cygwin\bin\cygintl.dll - os=4.0 img=1.0 sys=4.0
                  "cygintl.dll" v0.0 ts=2001/6/20 18:09
  132k 2003/08/11 C:\cygwin\bin\cygjpeg-62.dll - os=4.0 img=1.0 sys=4.0
                  "cygjpeg-62.dll" v0.0 ts=2003/8/11 1:37
  119k 2002/02/09 C:\cygwin\bin\cygjpeg6b.dll - os=4.0 img=1.0 sys=4.0
                  "cygjpeg6b.dll" v0.0 ts=2002/2/9 5:19
   60k 2003/09/17 C:\cygwin\bin\cygkpathsea-3.dll - os=4.0 img=1.0 sys=4.0
                  "cygkpathsea-3.dll" v0.0 ts=2003/9/17 17:37
   60k 2003/07/27 C:\cygwin\bin\cygkpathsea-3abi13.dll - os=4.0 img=1.0 sys=4.0
                  "cygkpathsea-3abi13.dll" v0.0 ts=2003/7/27 21:23
   26k 2001/04/25 C:\cygwin\bin\cygmenu5.dll - os=4.0 img=1.0 sys=4.0
                  "cygmenu5.dll" v0.0 ts=2001/4/25 6:27
   20k 2002/01/09 C:\cygwin\bin\cygmenu6.dll - os=4.0 img=1.0 sys=4.0
                  "cygmenu6.dll" v0.0 ts=2002/1/9 6:03
   29k 2003/08/09 C:\cygwin\bin\cygmenu7.dll - os=4.0 img=1.0 sys=4.0
                  "cygmenu7.dll" v0.0 ts=2003/8/9 10:25
  156k 2001/04/25 C:\cygwin\bin\cygncurses++5.dll - os=4.0 img=1.0 sys=4.0
                  "cygncurses++5.dll" v0.0 ts=2001/4/25 6:29
  175k 2002/01/09 C:\cygwin\bin\cygncurses++6.dll - os=4.0 img=1.0 sys=4.0
                  "cygncurses++6.dll" v0.0 ts=2002/1/9 6:03
  226k 2001/04/25 C:\cygwin\bin\cygncurses5.dll - os=4.0 img=1.0 sys=4.0
                  "cygncurses5.dll" v0.0 ts=2001/4/25 6:17
  202k 2002/01/09 C:\cygwin\bin\cygncurses6.dll - os=4.0 img=1.0 sys=4.0
                  "cygncurses6.dll" v0.0 ts=2002/1/9 6:03
  224k 2003/08/09 C:\cygwin\bin\cygncurses7.dll - os=4.0 img=1.0 sys=4.0
                  "cygncurses7.dll" v0.0 ts=2003/8/9 10:24
   15k 2001/04/25 C:\cygwin\bin\cygpanel5.dll - os=4.0 img=1.0 sys=4.0
                  "cygpanel5.dll" v0.0 ts=2001/4/25 6:27
   12k 2002/01/09 C:\cygwin\bin\cygpanel6.dll - os=4.0 img=1.0 sys=4.0
                  "cygpanel6.dll" v0.0 ts=2002/1/9 6:03
   19k 2003/08/09 C:\cygwin\bin\cygpanel7.dll - os=4.0 img=1.0 sys=4.0
                  "cygpanel7.dll" v0.0 ts=2003/8/9 10:24
   67k 2003/09/10 C:\cygwin\bin\cygpcre-0.dll - os=4.0 img=1.0 sys=4.0
                  "cygpcre-0.dll" v0.0 ts=2003/9/10 15:25
   63k 2003/04/11 C:\cygwin\bin\cygpcre.dll - os=4.0 img=1.0 sys=4.0
                  "cygpcre.dll" v0.0 ts=2003/4/11 9:31
   15k 2003/09/10 C:\cygwin\bin\cygpcreposix-0.dll - os=4.0 img=1.0 sys=4.0
                  "cygpcreposix-0.dll" v0.0 ts=2003/9/10 15:25
   61k 2003/04/11 C:\cygwin\bin\cygpcreposix.dll - os=4.0 img=1.0 sys=4.0
                  "cygpcreposix.dll" v0.0 ts=2003/4/11 9:31
 1100k 2003/08/29 C:\cygwin\bin\cygperl5_8_0.dll - os=4.0 img=1.0 sys=4.0
                  "cygperl5_8_0.dll" v0.0 ts=2003/8/29 11:20
  173k 2003/08/10 C:\cygwin\bin\cygpng12.dll - os=4.0 img=1.0 sys=4.0
                  "cygpng12.dll" v0.0 ts=2003/8/10 23:35
  170k 2002/01/21 C:\cygwin\bin\cygpng2.dll - os=4.0 img=1.0 sys=4.0
                  "cygpng2.dll" v0.0 ts=2002/1/21 1:05
   22k 2002/06/09 C:\cygwin\bin\cygpopt-0.dll - os=4.0 img=1.0 sys=4.0
                  "cygpopt-0.dll" v0.0 ts=2002/6/9 6:45
  108k 2001/06/28 C:\cygwin\bin\cygreadline4.dll - os=4.0 img=1.0 sys=4.0
                  "cygreadline4.dll" v0.0 ts=2001/1/7 4:34
  148k 2003/08/10 C:\cygwin\bin\cygreadline5.dll - os=4.0 img=1.0 sys=4.0
                  "cygreadline5.dll" v0.0 ts=2003/8/11 0:16
   66k 2001/11/20 C:\cygwin\bin\cygregex.dll - os=4.0 img=1.0 sys=4.0
                  "cygregex.dll" v0.0 ts=2001/11/20 14:44
  176k 2003/08/11 C:\cygwin\bin\cygssl-0.9.7.dll - os=4.0 img=1.0 sys=4.0
                  "cygssl-0.9.7.dll" v0.0 ts=2003/8/11 9:58
  165k 2003/04/11 C:\cygwin\bin\cygssl.dll - os=4.0 img=1.0 sys=4.0
                  "cygssl.dll" v0.0 ts=2003/4/11 11:37
  254k 2003/09/18 C:\cygwin\bin\cygtidy-0-99-0.dll - os=4.0 img=1.0 sys=4.0
                  "cygtidy-0-99-0.dll" v0.0 ts=2003/9/18 16:52
  281k 2003/02/24 C:\cygwin\bin\cygtiff3.dll - os=4.0 img=1.0 sys=4.0
                  "cygtiff3.dll" v0.0 ts=2003/2/24 4:58
  282k 2003/08/11 C:\cygwin\bin\cygtiff4.dll - os=4.0 img=1.0 sys=4.0
                  "cygtiff4.dll" v0.0 ts=2003/8/11 3:32
  751k 2002/02/25 C:\cygwin\bin\cygwin1-1.3.10.dll - os=4.0 img=1.0 sys=4.0
                  "cygwin1.dll" v0.0 ts=2002/2/25 16:14
  701k 2001/09/13 C:\cygwin\bin\cygwin1-1.3.3.dll - os=4.0 img=1.0 sys=4.0
                  "cygwin1.dll" v0.0 ts=2001/9/13 4:54
   60k 2003/08/09 C:\cygwin\bin\cygz.dll - os=4.0 img=1.0 sys=4.0
                  "cygz.dll" v0.0 ts=2003/8/9 7:28
  949k 2003/09/20 C:\cygwin\bin\cygwin1.dll - os=4.0 img=1.0 sys=4.0
                  "cygwin1.dll" v0.0 ts=2003/9/20 21:31
    Cygwin DLL version info:
        DLL version: 1.5.5
        DLL epoch: 19
        DLL bad signal mask: 19005
        DLL old termios: 5
        DLL malloc env: 28
        API major: 0
        API minor: 94
        Shared data: 3
        DLL identifier: cygwin1
        Mount registry: 2
        Cygnus registry name: Cygnus Solutions
        Cygwin registry name: Cygwin
        Program options name: Program Options
        Cygwin mount registry name: mounts v2
        Cygdrive flags: cygdrive flags
        Cygdrive prefix: cygdrive prefix
        Cygdrive default prefix: 
        Build date: Sat Sep 20 16:31:15 EDT 2003
        CVS tag: cr-0x9b
        Shared id: cygwin1S3


Cygwin Package Information
Last downloaded files to: Y:\software\i386\windows\Cygwin.com\Cygwin-download
Last downloaded files from: http://mirrors.rcn.net/pub/sourceware/cygwin

Package                 Version            
_update-info-dir        00219-1            
a2ps                    4.13-1             
apache                  1.3.24-5           
ash                     20020731-3         
base-files              2.6-1              
base-passwd             1.1-1              
bash                    2.05b-15           
bc                      1.06-1             
binutils                20030901-1         
bzip2                   1.0.2-5            
clear                   1.0-1              
cpio                    2.5-3              
cron                    3.0.1-11           
crypt                   1.0-2              
curl                    7.10.4-1           
cvs                     1.11.6-3           
cygipc                  2.01-2             
cygrunsrv               0.96-2             
cygutils                1.2.1-2            
cygwin                  1.5.5-1            
cygwin-doc              1.3-6              
diff                    1.0-1              
diffutils               2.8.4-1            
ed                      0.2-1              
exim                    4.22-1             
expat                   1.95.6-2           
expect                  20030128-1         
fetchmail               6.2.4-1            
figlet                  2.2-1              
file                    4.03-2             
fileutils               4.1-2              
findutils               4.1.7-4            
gawk                    3.1.3-3            
gcc                     3.3.1-1            
gcc-mingw               20030911-2         
gdb                     20030919-1         
gdbm                    1.8.3-7            
gettext                 0.12.1-3           
ghostscript             7.05-2             
ghostscript-base        7.05-2             
ghostscript-x11         7.05-2             
gnupg                   1.2.2-3            
gperf                   2.7.2-1            
grep                    2.5-1              
groff                   1.18.1-2           
gzip                    1.3.5-1            
inetutils               1.3.2-25           
irc                     20010101-3         
jpeg                    6b-11              
keychain                1.9-1              
less                    381-1              
libbz2_0                1.0.2-1            
libbz2_1                1.0.2-5            
libdb3.1                3.1.17-2           
libgdbm                 1.8.0-5            
libgdbm-devel           1.8.3-7            
libgdbm3                1.8.3-3            
libgdbm4                1.8.3-7            
libgettextpo0           0.12.1-3           
libiconv2               1.9.1-3            
libintl                 0.10.38-3          
libintl1                0.10.40-1          
libintl2                0.12.1-3           
libjpeg62               6b-11              
libjpeg6b               6b-8               
libkpathsea3            2.0.2-13           
libkpathsea3abi13       2.0.2-2            
libncurses5             5.2-1              
libncurses6             5.2-8              
libncurses7             5.3-4              
libpcre                 4.1-1              
libpcre0                4.4-2              
libpng                  1.2.5-4            
libpng12                1.2.5-4            
libpng2                 1.0.12-1           
libpopt0                1.6.4-4            
libreadline4            4.1-2              
libreadline5            4.3-5              
libtiff-devel           3.6.0-5            
libtiff3                3.6.0-2            
libtiff4                3.6.0-5            
login                   1.9-7              
lynx                    2.8.4-7            
m4                      1.4-1              
make                    3.80-1             
man                     1.5j-2             
mingw                   20010917-1         
mingw-runtime           3.1-1              
mktemp                  1.5-3              
mod_auth_ntsec          1.7-1              
mod_dav                 1.0.3-1.3.6-1      
mod_ssl                 2.8.8-1.3.24-1     
more                    2.11o-1            
mt                      2.0.1-2            
mutt                    1.4-1              
ncftp                   3.1.4-1            
ncurses                 5.3-4              
netcat                  1.10-2             
newlib-man              20020801           
openssh                 3.7.1p2-1          
openssl                 0.9.7b-3           
openssl-devel           0.9.7b-3           
openssl096              0.9.6j-1           
patch                   2.5.8-8            
pcre                    4.4-2              
pcre-doc                4.4-2              
perl                    5.8.0-5            
perl_manpages           5.8.0-5            
popt                    1.6.4-4            
procmail                3.22-8             
procps                  010801-2           
proftpd                 1.2.9rc1-3         
psutils                 1.17-1             
python                  2.3-2              
rcs                     5.7-3              
readline                4.3-5              
rebase                  2.2-3              
regex                   4.4-2              
rsync                   2.5.6-2            
rxvt                    2.7.10-3           
sed                     4.0.7-3            
sh-utils                2.0.15-4           
sharutils               4.2.1-3            
shutdown                1.4-1              
ssmtp                   2.38.7-4           
sunrpc                  4.0-1              
tar                     1.13.25-3          
tcltk                   20030901-1         
tcp_wrappers            7.6-1              
tcsh                    6.12.00-7          
termcap                 20021106-2         
terminfo                5.3_20030726-1     
tetex                   2.0.2-13           
tetex-base              2.0.2-13           
tetex-beta              20020911-1         
tetex-bin               2.0.2-13           
tetex-doc               2.0.2-13           
tetex-extra             2.0.2-13           
tetex-tiny              2.0.2-13           
texinfo                 4.2-4              
texmf                   20020911-1         
texmf-base              20020911-1         
texmf-doc               20020911-1         
texmf-extra             20020911-1         
texmf-tiny              20020911-1         
textutils               2.0.21-1           
tidy                    030901-1           
tiff                    3.6.0-5            
time                    1.7-1              
ttcp                    19980512-1         
ucl                     1.01-1             
units                   1.77-1             
unzip                   5.50-5             
uw-imap                 2002e-1            
uw-imap-imapd           2002e-1            
uw-imap-util            2002e-1            
vim                     6.2.098-1          
w32api                  2.4-1              
wget                    1.8.2-2            
which                   1.5-2              
whois                   4.6.7-1            
XFree86-base            4.3.0-1            
XFree86-bin             4.3.0-4            
XFree86-etc             4.3.0-3            
XFree86-fenc            4.2.0-3            
XFree86-fnts            4.2.0-3            
XFree86-lib             4.3.0-1            
XFree86-lib-compat      4.3.0-1            
XFree86-startup-scripts 4.2.0-5            
XFree86-xserv           4.3.0-14           
xinetd                  2.3.9-1            
zip                     2.3-5              
zlib                    1.1.4-4                1.1.4-4


[-- Attachment #4: Type: text/plain, Size: 218 bytes --]

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Linking with zlib
  2003-09-24 23:22 Linking with zlib Mark Himsley
@ 2003-09-24 23:43 ` Igor Pechtchanski
  2003-09-25  2:33   ` Mark Himsley
  0 siblings, 1 reply; 3+ messages in thread
From: Igor Pechtchanski @ 2003-09-24 23:43 UTC (permalink / raw)
  To: Mark Himsley; +Cc: cygwin

On Thu, 25 Sep 2003, Mark Himsley wrote:

> I'm sorry if I sound ignorant but I've been looking at this problem for a
> few days and I'm lost. I have googled but failed to find a relevant answer.
>
> I have been trying to compile mergelog <http://mergelog.sourceforge.net/>
> (or more importantly zmergelog which is built from the same source file)
> under Cygwin.
>
> Zmergelog is a fairly simple program to merge gziped Apache log files. It
> uses zlib to open and read the gziped files.
>
> Mergelog's configure script appears to find that I have zlib installed but
> when I get to make zmergelog the link fails with undefined references to
> _gzopen _gzread and _gzclose.
>
> I would be really grateful if someone could give me a hint how to compile
> zmergelog under Cygwin.
>
> The output of the configure / make session and also cygcheck are attached.
>
> Many thanks in advance.

Mark,

This is definitely a bug in zmergelog's Makefile:

gcc -DHAVE_LIBZ=1 -DSTDC_HEADERS=1 -DHAVE_UNISTD_H=1 -DHAVE_MKTIME=1 -I.
    -I.  -g -O2 -lz -DVERSION=\"4.5\" -Wall -DUSE_ZLIB mergelog.c -o zmergelog
                ^^^
The -lz should go to the *end* of the compile line (at least, after the .c
file).  In other words, the correct gcc invocation is

gcc -DHAVE_LIBZ=1 -DSTDC_HEADERS=1 -DHAVE_UNISTD_H=1 -DHAVE_MKTIME=1 -I.
    -I.  -g -O2 -DVERSION=\"4.5\" -Wall -DUSE_ZLIB mergelog.c -lz -o zmergelog

I haven't seen the Makefile, but I have a feeling that this is because the
"zmergelog" target depends on a ".c" file instead of a ".o".  If you
changed the dependence to "mergelog.o", you might get the correct link
sequence.

Hope this helps,
	Igor
-- 
				http://cs.nyu.edu/~pechtcha/
      |\      _,,,---,,_		pechtcha@cs.nyu.edu
ZZZzz /,`.-'`'    -.  ;-;;,_		igor@watson.ibm.com
     |,4-  ) )-,_. ,\ (  `'-'		Igor Pechtchanski, Ph.D.
    '---''(_/--'  `-'\_) fL	a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

"I have since come to realize that being between your mentor and his route
to the bathroom is a major career booster."  -- Patrick Naughton

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Linking with zlib
  2003-09-24 23:43 ` Igor Pechtchanski
@ 2003-09-25  2:33   ` Mark Himsley
  0 siblings, 0 replies; 3+ messages in thread
From: Mark Himsley @ 2003-09-25  2:33 UTC (permalink / raw)
  To: cygwin

On 24 September 2003 19:22 -0400 Igor Pechtchanski wrote:

> The -lz should go to the *end* of the compile line (at least, after the .c
> file).

Ah - damn, I've read that before but it obviously hadn't sunk in. Editing 
the Makefile to put -lz after the .c file worked exactly as you suggested. 
I shall see if I can look into the Makefile.am and Makefile.in to correct 
that problem and feed it back to the author.

> Hope this helps,

It did :-) Thanks!

-- 
Mark Himsley

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2003-09-24 23:43 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-09-24 23:22 Linking with zlib Mark Himsley
2003-09-24 23:43 ` Igor Pechtchanski
2003-09-25  2:33   ` Mark Himsley

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).