public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* how to create an import library with cygwin
@ 2002-04-11  7:51 ian reinhart geiser
  2002-04-11  9:12 ` strange delay in date? Marcos Lorenzo de Santiago
  0 siblings, 1 reply; 11+ messages in thread
From: ian reinhart geiser @ 2002-04-11  7:51 UTC (permalink / raw)
  To: cygwin

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Greetings
	I am using cygwin and cl.exe to build a project that links to some 3rd party 
dlls.  My issue is that libtool keeps createing static libs.  Can anyone tell 
me how to convince libtool to create import libs so that i can make my dll 
link to other windows applications.

	Basicly I am using libtool and autoconf because i am porting a lib to 
Windows, but I must use msvc because I am linking to Qt and it seems not to 
want to play nice with cygwin gcc.

	Thanks
	-ian reinhart geiser
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE8tZ+yPy62TRm8dvgRAu2cAJ9S0xMqYFgaAWXcdDp5NclyRlEV+wCgo9XJ
OTxunxyxRjpqwN0cckqg8+s=
=zFAQ
-----END PGP SIGNATURE-----


_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


--
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/

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

* strange delay in date?
  2002-04-11  7:51 how to create an import library with cygwin ian reinhart geiser
@ 2002-04-11  9:12 ` Marcos Lorenzo de Santiago
  2002-04-11  9:13   ` Markus Hoenicka
  0 siblings, 1 reply; 11+ messages in thread
From: Marcos Lorenzo de Santiago @ 2002-04-11  9:12 UTC (permalink / raw)
  To: cygwin


when I do in my winbox:

C:\TEMP>time /T
17.35

I get the system time, but when I do it using date I get 2 hours less than
the true hour:

C:\TEMP>c:\cygwin\bin\date
Thu Apr 11 15:35:04  2002

Anyone can give me a clue?

Thx.

m4c.


--
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/

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

* strange delay in date?
  2002-04-11  9:12 ` strange delay in date? Marcos Lorenzo de Santiago
@ 2002-04-11  9:13   ` Markus Hoenicka
  2002-04-11  9:27     ` Marcos Lorenzo de Santiago
  0 siblings, 1 reply; 11+ messages in thread
From: Markus Hoenicka @ 2002-04-11  9:13 UTC (permalink / raw)
  To: cygwin

date returns UTC, time returns your local time.

regards,
Markus

Marcos Lorenzo de Santiago writes:
 > 
 > when I do in my winbox:
 > 
 > C:\TEMP>time /T
 > 17.35
 > 
 > I get the system time, but when I do it using date I get 2 hours less than
 > the true hour:
 > 
 > C:\TEMP>c:\cygwin\bin\date
 > Thu Apr 11 15:35:04  2002

-- 
Markus Hoenicka, PhD
UT Houston Medical School
Dept. of Integrative Biology and Pharmacology
6431 Fannin MSB4.114
Houston, TX 77030
(713) 500-6313, -7477
(713) 500-7444 (fax)
Markus.Hoenicka@uth.tmc.edu
http://ourworld.compuserve.com/homepages/hoenicka_markus/


--
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/

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

* Re: strange delay in date?
  2002-04-11  9:13   ` Markus Hoenicka
@ 2002-04-11  9:27     ` Marcos Lorenzo de Santiago
  2002-04-11  9:33       ` Markus Hoenicka
  0 siblings, 1 reply; 11+ messages in thread
From: Marcos Lorenzo de Santiago @ 2002-04-11  9:27 UTC (permalink / raw)
  To: Markus Hoenicka; +Cc: cygwin

On Thu, 11 Apr 2002, Markus Hoenicka wrote:

     > date returns UTC, time returns your local time.
     > 
     > regards,
     > Markus

Well, now the question is: how can I get *MY* localtime??


thx in advance

m4c.


--
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/

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

* Re: strange delay in date?
  2002-04-11  9:27     ` Marcos Lorenzo de Santiago
@ 2002-04-11  9:33       ` Markus Hoenicka
  2002-04-11  9:56         ` Marcos Lorenzo de Santiago
  0 siblings, 1 reply; 11+ messages in thread
From: Markus Hoenicka @ 2002-04-11  9:33 UTC (permalink / raw)
  To: cygwin

Upon re-reading my reply I noticed that it was too terse. date shows
UTC in your case because you did not set up your timezone
correctly. If you do, date will show your local time, date -u will
show UTC.

In my case, I set TZ to CST6CDT, which means time zone is CST, I'm 6 h
west of UTC, and my daylight savings time zone is CDT

regards,
Markus

Marcos Lorenzo de Santiago writes:
 > Well, now the question is: how can I get *MY* localtime??

-- 
Markus Hoenicka, PhD
UT Houston Medical School
Dept. of Integrative Biology and Pharmacology
6431 Fannin MSB4.114
Houston, TX 77030
(713) 500-6313, -7477
(713) 500-7444 (fax)
Markus.Hoenicka@uth.tmc.edu
http://ourworld.compuserve.com/homepages/hoenicka_markus/


--
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/

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

* Re: strange delay in date?
  2002-04-11  9:33       ` Markus Hoenicka
@ 2002-04-11  9:56         ` Marcos Lorenzo de Santiago
  2002-04-11  9:57           ` Markus Hoenicka
                             ` (2 more replies)
  0 siblings, 3 replies; 11+ messages in thread
From: Marcos Lorenzo de Santiago @ 2002-04-11  9:56 UTC (permalink / raw)
  To: Markus Hoenicka; +Cc: cygwin

On Thu, 11 Apr 2002, Markus Hoenicka wrote:

     > Upon re-reading my reply I noticed that it was too terse. date shows
     > UTC in your case because you did not set up your timezone
     > correctly. If you do, date will show your local time, date -u will
     > show UTC.
     > 
     > In my case, I set TZ to CST6CDT, which means time zone is CST, I'm 6 h
     > west of UTC, and my daylight savings time zone is CDT
     > 
     > regards,
     > Markus

Thanks a lot now I know what is the problem, but I don't know how to
resolve it. I know how to do it in linux, but not in cygwin (arrgh! :)

In linux you just had to link /etc/localtime to
/ush/share/zoneinfo/wherever_you_are and that's it, but in cygwin there's
no /usr/share/zoneinfo folder. I looked manpages but I found nothing.

Another question: how can I add inetd the inetd service to my winbox list
of services? and how can I get my crond running? 

If there's documentation that you know over the net just redirect me to
the page so I can stop bothering! ;)


rgrds,
m4c.


--
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/

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

* Re: strange delay in date?
  2002-04-11  9:56         ` Marcos Lorenzo de Santiago
@ 2002-04-11  9:57           ` Markus Hoenicka
  2002-04-11 10:48             ` Marcos Lorenzo de Santiago
  2002-05-29  4:43             ` Javier
  2002-04-11 10:05           ` Marcos Lorenzo de Santiago
  2002-04-11 10:05           ` Larry Hall (RFK Partners, Inc)
  2 siblings, 2 replies; 11+ messages in thread
From: Markus Hoenicka @ 2002-04-11  9:57 UTC (permalink / raw)
  To: cygwin

The date manpage tells you that date uses the environment variable
TZ. Set this variable in your /etc/profile or ~/.bashrc to the correct
value.

regards,
Markus

Marcos Lorenzo de Santiago writes:
 > Thanks a lot now I know what is the problem, but I don't know how to
 > resolve it. I know how to do it in linux, but not in cygwin (arrgh! :)
 > 
 > In linux you just had to link /etc/localtime to
 > /ush/share/zoneinfo/wherever_you_are and that's it, but in cygwin there's
 > no /usr/share/zoneinfo folder. I looked manpages but I found nothing.

-- 
Markus Hoenicka, PhD
UT Houston Medical School
Dept. of Integrative Biology and Pharmacology
6431 Fannin MSB4.114
Houston, TX 77030
(713) 500-6313, -7477
(713) 500-7444 (fax)
Markus.Hoenicka@uth.tmc.edu
http://ourworld.compuserve.com/homepages/hoenicka_markus/


--
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/

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

* Re: strange delay in date?
  2002-04-11  9:56         ` Marcos Lorenzo de Santiago
  2002-04-11  9:57           ` Markus Hoenicka
  2002-04-11 10:05           ` Marcos Lorenzo de Santiago
@ 2002-04-11 10:05           ` Larry Hall (RFK Partners, Inc)
  2 siblings, 0 replies; 11+ messages in thread
From: Larry Hall (RFK Partners, Inc) @ 2002-04-11 10:05 UTC (permalink / raw)
  To: Marcos Lorenzo de Santiago; +Cc: cygwin

At 12:51 PM 4/11/2002, Marcos Lorenzo de Santiago wrote:
>If there's documentation that you know over the net just redirect me to
>the page so I can stop bothering! ;)


Well, let's see.  There's documentation at the Cygwin web site (user's guide,
api guide, FAQ, email list archives), there's documentation in /usr/doc and
/usr/doc/Cygwin, and there's documentation all over the web concerning GNU
packages and their setup/configuration.  Seems like that should be an 
adequate pointer to get you started.

These are all great places to review for any question before posting too.

Hope that helps,


Larry Hall                              lhall@rfk.com
RFK Partners, Inc.                      http://www.rfk.com
838 Washington Street                   (508) 893-9779 - RFK Office
Holliston, MA 01746                     (508) 893-9889 - FAX


--
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/

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

* Re: strange delay in date?
  2002-04-11  9:56         ` Marcos Lorenzo de Santiago
  2002-04-11  9:57           ` Markus Hoenicka
@ 2002-04-11 10:05           ` Marcos Lorenzo de Santiago
  2002-04-11 10:05           ` Larry Hall (RFK Partners, Inc)
  2 siblings, 0 replies; 11+ messages in thread
From: Marcos Lorenzo de Santiago @ 2002-04-11 10:05 UTC (permalink / raw)
  To: Marcos Lorenzo de Santiago; +Cc: Markus Hoenicka, cygwin

On Thu, 11 Apr 2002, Marcos Lorenzo de Santiago wrote:

     > On Thu, 11 Apr 2002, Markus Hoenicka wrote:
     > 
     >      > Upon re-reading my reply I noticed that it was too terse. date shows
     >      > UTC in your case because you did not set up your timezone
     >      > correctly. If you do, date will show your local time, date -u will
     >      > show UTC.
     >      > 
     >      > In my case, I set TZ to CST6CDT, which means time zone is CST, I'm 6 h
     >      > west of UTC, and my daylight savings time zone is CDT
     >      > 
     >      > regards,
     >      > Markus
     > 
     > Thanks a lot now I know what is the problem, but I don't know how to
     > resolve it. I know how to do it in linux, but not in cygwin (arrgh! :)

OK! I answer myself: setting the TZ variable:

$ export TZ=CST-1CDT; date
Thu Apr 11 18:55:26  2002
$ date -u
Thu Apr 11 16:55:29  2002

How can I set this variable as the default? In /etc/profile?... let's
try... yes! it works although I don't get bash hour prompt to work:

17:01:07 ~$ date
Thu Apr 11 19:01:10  2002

there's still a delay of 2 hours between the two dates. Maybe there's any
other configuration for this...

And now I want this command (date) to work from cmd.exe too (not only from
bash.exe): I guessed that probably setting a variable TZ to the timezone
in cmd.exe would work and so it does!:

C:\>c:\cygwin\bin\date
Thu Apr 11 17:00:15  2002

C:\>set TZ=CST-1CDT

C:\>c:\cygwin\bin\date
Thu Apr 11 19:00:35  2002


That's it!

m4c.


--
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/

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

* Re: strange delay in date?
  2002-04-11  9:57           ` Markus Hoenicka
@ 2002-04-11 10:48             ` Marcos Lorenzo de Santiago
  2002-05-29  4:43             ` Javier
  1 sibling, 0 replies; 11+ messages in thread
From: Marcos Lorenzo de Santiago @ 2002-04-11 10:48 UTC (permalink / raw)
  To: Markus Hoenicka; +Cc: cygwin

On Thu, 11 Apr 2002, Markus Hoenicka wrote:

     > The date manpage tells you that date uses the environment variable
     > TZ. Set this variable in your /etc/profile or ~/.bashrc to the correct
     > value.
     > 
     > regards,
     > Markus

Thanx. I just answered to myself just before reading your mail :)

m4c.


--
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/

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

* RE: strange delay in date?
  2002-04-11  9:57           ` Markus Hoenicka
  2002-04-11 10:48             ` Marcos Lorenzo de Santiago
@ 2002-05-29  4:43             ` Javier
  1 sibling, 0 replies; 11+ messages in thread
From: Javier @ 2002-05-29  4:43 UTC (permalink / raw)
  To: cygwin

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 2511 bytes --]

Hi!

I've been doing some "extra" testing (sorry if I'm beating a dead horse :),
and it seems that building a set of timezone data files and linking
/etc/localtime to them is _not_ the answer :(

I went to http://www.twinsun.com/tz/tz-link.htm, I got both tz files
( wget 'ftp://elsie.nci.nih.gov/pub/tz*.tar.gz')
and after tweaking the Makefile (setting the timezone to Europe/Madrid and
setting cc = gcc and AWK = awk instead of their settings), I did
make zones and I got a bunch of output files ('file' tells me they are
timezone data files). So I mv the output to /usr/share/zoneinfo, I do a
ln -s /usr/share/zoneinfo/Europe/Madrid /etc/localtime....
...
...
and date is still giving me the wrong output!!

So, is that change of any use, or should I stick with ""declare -x
TZ=ECT-1DST"" ? (that does work, but I was wondering if the timezone and
/etc/localtime are going to be of any use or should I just forget about
them??

Thanks a lot, and sorry if I'm just doing something stupid...

    Javier


--
----

You are nobody until you have been ignored by a cat.



"Markus Hoenicka" <Markus.Hoenicka@uth.tmc.edu> escribió en el mensaje
news:15541.49155.260000.104176@gargle.gargle.HOWL...
> The date manpage tells you that date uses the environment variable
> TZ. Set this variable in your /etc/profile or ~/.bashrc to the correct
> value.
>
> regards,
> Markus
>
> Marcos Lorenzo de Santiago writes:
>  > Thanks a lot now I know what is the problem, but I don't know how to
>  > resolve it. I know how to do it in linux, but not in cygwin (arrgh! :)
>  >
>  > In linux you just had to link /etc/localtime to
>  > /ush/share/zoneinfo/wherever_you_are and that's it, but in cygwin
there's
>  > no /usr/share/zoneinfo folder. I looked manpages but I found nothing.
>
> --
> Markus Hoenicka, PhD
> UT Houston Medical School
> Dept. of Integrative Biology and Pharmacology
> 6431 Fannin MSB4.114
> Houston, TX 77030
> (713) 500-6313, -7477
> (713) 500-7444 (fax)
> Markus.Hoenicka@uth.tmc.edu
> http://ourworld.compuserve.com/homepages/hoenicka_markus/
>
>
> --
> 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/
>
>





--
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/

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

end of thread, other threads:[~2002-05-29  1:30 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-04-11  7:51 how to create an import library with cygwin ian reinhart geiser
2002-04-11  9:12 ` strange delay in date? Marcos Lorenzo de Santiago
2002-04-11  9:13   ` Markus Hoenicka
2002-04-11  9:27     ` Marcos Lorenzo de Santiago
2002-04-11  9:33       ` Markus Hoenicka
2002-04-11  9:56         ` Marcos Lorenzo de Santiago
2002-04-11  9:57           ` Markus Hoenicka
2002-04-11 10:48             ` Marcos Lorenzo de Santiago
2002-05-29  4:43             ` Javier
2002-04-11 10:05           ` Marcos Lorenzo de Santiago
2002-04-11 10:05           ` Larry Hall (RFK Partners, Inc)

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).