delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/03/31/10:33:13

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Message-ID: <018101c2f79a$c4386650$cc0aa8c0@adexainc.com>
From: "Rob Siklos" <rsiklos AT adexa DOT com>
To: <cygwin AT cygwin DOT com>
Subject: 1.3.22: (gcc) problem using gettimeofday with -mno-cygwin
Date: Mon, 31 Mar 2003 10:32:40 -0500
MIME-Version: 1.0
X-Priority: 3
X-MSMail-Priority: Normal
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106
X-Spam-Status: No, hits=-8.7 required=11.0
tests=AWL,BAYES_01
version=2.50
X-Spam-Level:
X-Spam-Checker-Version: SpamAssassin 2.50 (1.173-2003-02-20-exp)
Note-from-DJ: This may be spam

------=_NextPart_000_017E_01C2F770.DB377DC0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: 7bit

Hello,

I am trying to compile the following trivial program:

((((
#include <stdio.h>
#include <sys/time.h>

int main()
{
  struct timeval tv;
  gettimeofday(&tv, NULL) ;
  printf("%ld %ld\n", tv.tv_sec, tv.tv_usec);
  return 0;
}
))))))))


When I use gcc with no options, everything works fine.  However, if I use
the "-mno-cygwin" flag, I get the following error message:

((((
gcc -Wall -mno-cygwin    gettime.c   -o gettime
gettime.c: In function `main':
gettime.c:7: warning: implicit declaration of function `gettimeofday'
/c/DOCUME~1/rsiklos/LOCALS~1/Temp/ccqKF5Mc.o(.text+0x37):gettime.c:
undefined reference to `gettimeofday'
make: *** [gettime] Error 1
)))))

Anybody have any ideas?  I am using the latest versions of everthing from
the cygwin installer.  cygcheck file attached.

Thanks,

Rob.

------=_NextPart_000_017E_01C2F770.DB377DC0
Content-Type: application/octet-stream;
	name="cygcheck.out"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: attachment;
	filename="cygcheck.out"


Cygwin Win95/NT Configuration Diagnostics
Current System Time: Mon Mar 31 10:30:30 2003

Windows 2000 Professional Ver 5.0 Build 2195 Service Pack 3

Path:	c:\cygwin\usr\local\bin
	c:\cygwin\bin
	c:\cygwin\bin
	c:\cygwin\bin
	c:\Progra~1\Tcl\bin
	c:\oracle\ora901\bin
	c:\Oracle\jre\1.1.8\bin
	c:\PROGRA~1\NUTCROOT\bin
	c:\PROGRA~1\NUTCROOT\mksnt
	c:\WINNT\system32
	c:\WINNT
	c:\WINNT\System32\Wbem
	c:\PROGRA~1\Vision
	c:\PROGRA~1\Vision\SYSTEM
	c:\PROGRA~1\COMMON~1\Vision
	c:\Program Files\Rational\common
	c:\Program Files\Rational\ClearQuest
	c:\Program Files\Rational\Rational Test
	c:\progra~1\editplus
	.
	c:\Program Files\Support Tools\
	c:\cygwin\home\rsiklos\bin

c:\cygwin\bin\id.exe output (nontsec)
UID: 14103(rsiklos)        GID: 544(Administrators)
544(Administrators)        545(Users)
1002(OLAP Administrators)  10513(DomainUsers)
11190(Quality Assurance)   12765(Toronto Users)

c:\cygwin\bin\id.exe output (ntsec)
UID: 14103(rsiklos)        GID: 544(Administrators)
544(Administrators)        545(Users)
1002(OLAP Administrators)  10513(DomainUsers)
11190(Quality Assurance)   12765(Toronto Users)

SysDir: C:\WINNT\System32
WinDir: C:\WINNT

CYGWIN =3D `ntsec'
HOME =3D `c:\cygwin\home\rsiklos'
MAKE_MODE =3D `unix'
PWD =3D `/d/Rob/projects'
USER =3D `rsiklos'

ALLUSERSPROFILE =3D `C:\Documents and Settings\All Users'
APPDATA =3D `C:\Documents and Settings\rsiklos\Application Data'
CLASSPATH =3D `c:\Program Files\Rational\Rational =
Test\javaenabler\sqarobot.jar'
COMMONPROGRAMFILES =3D `c:\Program Files\Common Files'
COMPUTERNAME =3D `QAWKS6'
COMSPEC =3D `C:\WINNT\system32\cmd.exe'
DISPLAY =3D `localhost:0.0'
HISTFILE =3D `/home/rsiklos/.bash_history'
HOMEDRIVE =3D `W:'
HOMEPATH =3D `\'
HOMESHARE =3D `\\adexa-dc1\users\rsiklos'
LM_LICENSE_FILE =3D `d:\adexa\license\license.dat'
LOGONSERVER =3D `\\ADEXA-DC2'
MANPATH =3D `:/usr/ssl/man'
NCDIR =3D `C:\WINNT\Xsupport'
NUMBER_OF_PROCESSORS =3D `1'
NUTCROOT =3D `C:\PROGRA~1\NUTCROOT'
NUTSUFFIX =3D `1'
NUT_SUFFIXED_SEARCHING =3D `1'
OS2LIBPATH =3D `C:\WINNT\system32\os2\dll;'
OS =3D `Windows_NT'
PATHEXT =3D `.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.tcl'
PROCESSOR_ARCHITECTURE =3D `x86'
PROCESSOR_IDENTIFIER =3D `x86 Family 6 Model 7 Stepping 3, GenuineIntel'
PROCESSOR_LEVEL =3D `6'
PROCESSOR_REVISION =3D `0703'
PROGRAMFILES =3D `c:\Program Files'
PS1 =3D `\[\033]0;\w\007\033[32m\]\u@\h \[\033[32;1m\w\033[0m\]
$ '
RATL_JVM_LOCATION =3D =
`c:\PROGRA~1\Rational\common\java\jre\bin\hotspot\jvm.dll'
RATL_RTHOME =3D `c:\Program Files\Rational\Rational Test'
ROOTDIR =3D `C:\PROGRA~1\NUTCROOT'
SHELL =3D `/bin/bash'
SHLVL =3D `1'
SYSTEMDRIVE =3D `C:'
SYSTEMROOT =3D `C:\WINNT'
TEMP =3D `c:\DOCUME~1\rsiklos\LOCALS~1\Temp'
TERM =3D `cygwin'
TERMCAP =3D `C:\PROGRA~1\NUTCROOT\etc\termcap'
TERMINFO =3D `C:\PROGRA~1\NUTCROOT\usr\lib\terminfo'
TMP =3D `c:\DOCUME~1\rsiklos\LOCALS~1\Temp'
TMPDIR =3D `c:\DOCUME~1\rsiklos\LOCALS~1\Temp'
USERDNSDOMAIN =3D `adexa-inc.com'
USERDOMAIN =3D `ADEXA-INC'
USERNAME =3D `rsiklos'
USERPROFILE =3D `C:\Documents and Settings\rsiklos'
WINDIR =3D `C:\WINNT'
_ =3D `/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
HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin\Program Options
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2
  (default) =3D `/'
  cygdrive flags =3D 0x00000028
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/
  (default) =3D `c:\cygwin'
  flags =3D 0x00000008
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/usr/bin
  (default) =3D `c:\cygwin/bin'
  flags =3D 0x00000008
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/usr/lib
  (default) =3D `c:\cygwin/lib'
  flags =3D 0x00000008
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\Program Options

a:  fd           N/A    N/A                   =20
c:  hd  NTFS    6142Mb  62% CP CS UN PA FC     Primary
d:  hd  NTFS    6142Mb  29% CP CS UN PA FC     Work
e:  cd  CDFS     636Mb 100%    CS UN           MP3_7
j:  net NTFS   19532Mb  26% CP CS UN PA FC     Local Disk
k:  net NTFS    7976Mb  54% CP CS    PA        testing
p:  net NTFS   10001Mb  86% CP CS UN PA FC     W2K English
t:  net NTFS   26982Mb  33% CP CS UN PA FC     w
w:  net NTFS      30Mb   1% CP CS UN PA FC    =20
x:  net NTFS   14653Mb  68% CP CS UN PA FC    =20

c:\cygwin      /         system  textmode
c:\cygwin/bin  /usr/bin  system  textmode
c:\cygwin/lib  /usr/lib  system  textmode
.              /         system  textmode,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:\PROGRA~1\NUTCROOT\bin\cpp.exe
Warning: c:\cygwin\bin\cpp.exe hides c:\PROGRA~1\NUTCROOT\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

   58k 2002/05/07 c:\cygwin\bin\cygbz2-1.dll - os=3D4.0 img=3D1.0 =
sys=3D4.0
                  "cygbz2-1.dll" v0.0 ts=3D2002/5/7 2:33
  847k 2003/03/19 c:\cygwin\bin\cygcrypto-0.9.7.dll - os=3D4.0 img=3D1.0 =
sys=3D4.0
                  "cygcrypto-0.9.7.dll" v0.0 ts=3D2003/3/19 15:24
  645k 2003/03/19 c:\cygwin\bin\cygcrypto.dll - os=3D4.0 img=3D1.0 =
sys=3D4.0
                  "cygcrypto.dll" v0.0 ts=3D2003/3/19 15:35
  136k 2002/10/17 c:\cygwin\bin\cygexpat-0.dll - os=3D4.0 img=3D1.0 =
sys=3D4.0
                  "cygexpat-0.dll" v0.0 ts=3D2002/10/17 11:21
   45k 2001/04/25 c:\cygwin\bin\cygform5.dll - os=3D4.0 img=3D1.0 =
sys=3D4.0
                  "cygform5.dll" v0.0 ts=3D2001/4/25 1:28
   35k 2002/01/09 c:\cygwin\bin\cygform6.dll - os=3D4.0 img=3D1.0 =
sys=3D4.0
                  "cygform6.dll" v0.0 ts=3D2002/1/9 1:03
   19k 2003/03/22 c:\cygwin\bin\cyggdbm.dll - os=3D4.0 img=3D1.0 =
sys=3D4.0
                  "cyggdbm.dll" v0.0 ts=3D2002/2/19 22:05
   17k 2001/06/28 c:\cygwin\bin\cyghistory4.dll - os=3D4.0 img=3D1.0 =
sys=3D4.0
                  "cyghistory4.dll" v0.0 ts=3D2001/1/6 23:34
   20k 2002/10/10 c:\cygwin\bin\cyghistory5.dll - os=3D4.0 img=3D1.0 =
sys=3D4.0
                  "cyghistory5.dll" v0.0 ts=3D2002/10/10 13:28
  929k 2002/06/24 c:\cygwin\bin\cygiconv-2.dll - os=3D4.0 img=3D1.0 =
sys=3D4.0
                  "cygiconv-2.dll" v0.0 ts=3D2002/6/24 14:24
   22k 2001/12/13 c:\cygwin\bin\cygintl-1.dll - os=3D4.0 img=3D1.0 =
sys=3D4.0
                  "cygintl-1.dll" v0.0 ts=3D2001/12/13 4:28
   28k 2002/09/20 c:\cygwin\bin\cygintl-2.dll - os=3D4.0 img=3D1.0 =
sys=3D4.0
                  "cygintl-2.dll" v0.0 ts=3D2002/9/19 23:13
   21k 2001/06/20 c:\cygwin\bin\cygintl.dll - os=3D4.0 img=3D1.0 =
sys=3D4.0
                  "cygintl.dll" v0.0 ts=3D2001/6/20 13:09
   26k 2001/04/25 c:\cygwin\bin\cygmenu5.dll - os=3D4.0 img=3D1.0 =
sys=3D4.0
                  "cygmenu5.dll" v0.0 ts=3D2001/4/25 1:27
   20k 2002/01/09 c:\cygwin\bin\cygmenu6.dll - os=3D4.0 img=3D1.0 =
sys=3D4.0
                  "cygmenu6.dll" v0.0 ts=3D2002/1/9 1:03
  156k 2001/04/25 c:\cygwin\bin\cygncurses++5.dll - os=3D4.0 img=3D1.0 =
sys=3D4.0
                  "cygncurses++5.dll" v0.0 ts=3D2001/4/25 1:29
  175k 2002/01/09 c:\cygwin\bin\cygncurses++6.dll - os=3D4.0 img=3D1.0 =
sys=3D4.0
                  "cygncurses++6.dll" v0.0 ts=3D2002/1/9 1:03
  226k 2001/04/25 c:\cygwin\bin\cygncurses5.dll - os=3D4.0 img=3D1.0 =
sys=3D4.0
                  "cygncurses5.dll" v0.0 ts=3D2001/4/25 1:17
  202k 2002/01/09 c:\cygwin\bin\cygncurses6.dll - os=3D4.0 img=3D1.0 =
sys=3D4.0
                  "cygncurses6.dll" v0.0 ts=3D2002/1/9 1:03
   15k 2001/04/25 c:\cygwin\bin\cygpanel5.dll - os=3D4.0 img=3D1.0 =
sys=3D4.0
                  "cygpanel5.dll" v0.0 ts=3D2001/4/25 1:27
   12k 2002/01/09 c:\cygwin\bin\cygpanel6.dll - os=3D4.0 img=3D1.0 =
sys=3D4.0
                  "cygpanel6.dll" v0.0 ts=3D2002/1/9 1:03
   40k 2001/11/21 c:\cygwin\bin\cygpcre.dll - os=3D4.0 img=3D1.0 =
sys=3D4.0
                  "cygpcre.dll" v0.0 ts=3D2001/11/21 17:15
   39k 2001/11/21 c:\cygwin\bin\cygpcreposix.dll - os=3D4.0 img=3D1.0 =
sys=3D4.0
                  "cygpcreposix.dll" v0.0 ts=3D2001/11/21 17:15
   22k 2002/06/09 c:\cygwin\bin\cygpopt-0.dll - os=3D4.0 img=3D1.0 =
sys=3D4.0
                  "cygpopt-0.dll" v0.0 ts=3D2002/6/9 1:45
  108k 2001/06/28 c:\cygwin\bin\cygreadline4.dll - os=3D4.0 img=3D1.0 =
sys=3D4.0
                  "cygreadline4.dll" v0.0 ts=3D2001/1/6 23:34
  127k 2002/10/10 c:\cygwin\bin\cygreadline5.dll - os=3D4.0 img=3D1.0 =
sys=3D4.0
                  "cygreadline5.dll" v0.0 ts=3D2002/10/10 13:28
  177k 2003/03/19 c:\cygwin\bin\cygssl-0.9.7.dll - os=3D4.0 img=3D1.0 =
sys=3D4.0
                  "cygssl-0.9.7.dll" v0.0 ts=3D2003/3/19 15:24
  165k 2003/03/19 c:\cygwin\bin\cygssl.dll - os=3D4.0 img=3D1.0 =
sys=3D4.0
                  "cygssl.dll" v0.0 ts=3D2003/3/19 15:35
   50k 2002/03/12 c:\cygwin\bin\cygz.dll - os=3D4.0 img=3D1.0 sys=3D4.0
                  "cygz.dll" v0.0 ts=3D2002/3/11 23:38
  948k 2003/03/18 c:\cygwin\bin\cygwin1.dll - os=3D4.0 img=3D1.0 =
sys=3D4.0
                  "cygwin1.dll" v0.0 ts=3D2003/3/18 9:20
    Cygwin DLL version info:
        DLL version: 1.3.22
        DLL epoch: 19
        DLL bad signal mask: 19005
        DLL old termios: 5
        DLL malloc env: 28
        API major: 0
        API minor: 78
        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:=20
        Build date: Tue Mar 18 09:20:11 EST 2003
        CVS tag: dontuse-21
        Shared id: cygwin1S3


Cygwin Package Information
Last downloaded files to: D:\Archive\cygwin
Last downloaded files from: ftp://archive.progeny.com/cygwin

Package              Version
_update-info-dir     00159-1
ash                  20020731-1
base-files           1.1-1
base-passwd          1.1-1
bash                 2.05b-9
bc                   1.06-1
binutils             20030307-1
bzip2                1.0.2-2
clear                1.0-1
cron                 3.0.1-7
crypt                1.0-1
cvs                  1.11.0-1
cygrunsrv            0.95-1
cygutils             1.1.3-1
cygwin               1.3.22-1
cygwin-doc           1.3-2
diff                 1.0-1
diffutils            2.8.1-1
expat                1.95.5-1
fileutils            4.1-1
findutils            4.1.7-4
gawk                 3.1.2-2
gcc                  3.2-3
gcc-mingw            20020817-5
gdb                  20030303-1
gdbm                 1.8.0-5
grep                 2.5-1
groff                1.18.1-2
gzip                 1.3.3-4
inetutils            1.3.2-20
less                 378-1
libbz2_1             1.0.2-2
libgdbm              1.8.0-5
libgdbm-devel        1.8.0-5
libiconv2            1.8-2
libintl              0.10.38-3
libintl1             0.10.40-1
libintl2             0.11.5-1
libncurses5          5.2-1
libncurses6          5.2-8
libpopt0             1.6.4-4
libreadline4         4.1-2
libreadline5         4.3-2
login                1.8-1
make                 3.79.1-7
man                  1.5j-2
mingw-runtime        2.4-1
mktemp               1.4-1
mutt                 1.4-1
ncftp                3.1.4-1
ncurses              5.2-8
newlib-man           20020801
openssh              3.5p1-3
openssl              0.9.7a-3
openssl096           0.9.6i-3
pcre                 3.7-1
pine                 4.53-1
pinfo                0.6.6p1-1
procps               010801-2
rcs                  5.7-3
readline             4.3-2
rsync                2.5.5-2
sed                  4.0.5-1
sh-utils             2.0.15-3
sharutils            4.2.1-2
shutdown             1.2-2
squid                2.4.STABLE7-1
ssmtp                2.38.7-3
tar                  1.13.25-1
tcltk                20030214-1
termcap              20020930-1
terminfo             5.3-1
texinfo              4.2-4
textutils            2.0.21-1
w32api               2.3-1
which                1.5-1
xinetd               2.3.9-1
zlib                 1.1.4-1

Use -h to see help about each section


------=_NextPart_000_017E_01C2F770.DB377DC0
Content-Type: text/plain; charset=us-ascii

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/
------=_NextPart_000_017E_01C2F770.DB377DC0--



- Raw text -


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