public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* Re: [ANN] GMP 2.0.2 binaries for cygwin/mingw
@ 1999-03-23  3:14 Serguei DACHIAN
       [not found] ` < 1.5.4.32.19990323111340.006747a4@lola.univ-lemans.fr >
  1999-03-31 19:45 ` Serguei DACHIAN
  0 siblings, 2 replies; 16+ messages in thread
From: Serguei DACHIAN @ 1999-03-23  3:14 UTC (permalink / raw)
  To: cygwin

        Dear Mumit

I've tried to install mingw32 version under my CygWin + egcs1.1.2 + mingw-libs,
and to compile with -mno-cygwin switch.  While compiling a sample program
"factorize.c" (comes from gmp-2.0.2 source distribution, from demos
directory) I got the following errors:
>
> C:\WINDOWS\TEMP/cclVNmrv.o(.text+0x629):factorize.c: undefined
> reference to `random'
> C:\WINDOWS\TEMP/cclVNmrv.o(.text+0x636):factorize.c: undefined
> reference to `random'
> /usr/local/libmingw32/libgmp.a(random.o)(.text+0x39):random.c: undefined
> reference to `random'
> /usr/local/libmingw32/libgmp.a(random.o)(.text+0x40):random.c: undefined
> referen ce to `random'
> collect2: ld returned 1 exit status
>
What is going wrong here???  Normally I have no problems for compiling with
-mno-cygwin.

Am I doing something wrong ???

Regards,
                Serguei.
___________________________________________________________________________
Serguei DACHIAN
Laboratoire de Statistique et Processus,
Universite du Maine, Av. Olivier Messiaen
72085 Le Mans CEDEX 9, FRANCE
Tel.   : +33 (0)2 43 83 37 18
Fax.   : +33 (0)2 43 83 35 79
E-mail : Serguei.Dachian@univ-lemans.fr
WWW    : http://www.univ-lemans.fr/sciences/statist/cvs/thesard.html#dachian


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

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

* Re: [ANN] GMP 2.0.2 binaries for cygwin/mingw
       [not found] ` < 1.5.4.32.19990323111340.006747a4@lola.univ-lemans.fr >
@ 1999-03-23  8:29   ` Mumit Khan
       [not found]     ` < 199903231629.KAA11455@modi.xraylith.wisc.edu >
  1999-03-31 19:45     ` Mumit Khan
  0 siblings, 2 replies; 16+ messages in thread
From: Mumit Khan @ 1999-03-23  8:29 UTC (permalink / raw)
  To: Serguei DACHIAN; +Cc: cygwin

Serguei DACHIAN <Serguei.Dachian@univ-lemans.fr> writes:
>         Dear Mumit
> 
> I've tried to install mingw32 version under my CygWin + egcs1.1.2 + mingw-lib
> s,
> and to compile with -mno-cygwin switch.  While compiling a sample program
> "factorize.c" (comes from gmp-2.0.2 source distribution, from demos
> directory) I got the following errors:
> >
> > C:\WINDOWS\TEMP/cclVNmrv.o(.text+0x629):factorize.c: undefined
> > reference to `random'
> > C:\WINDOWS\TEMP/cclVNmrv.o(.text+0x636):factorize.c: undefined
> > reference to `random'
> > /usr/local/libmingw32/libgmp.a(random.o)(.text+0x39):random.c: undefined
> > reference to `random'
> > /usr/local/libmingw32/libgmp.a(random.o)(.text+0x40):random.c: undefined
> > referen ce to `random'
> > collect2: ld returned 1 exit status
> >
> What is going wrong here???  Normally I have no problems for compiling with
> -mno-cygwin.
> 
> Am I doing something wrong ???

"random" is non-ANSI and non-POSIX (it's BSD), and is not part of MS
CRTDLL. It is however provided in libiberty.a, and all you need to do 
is to add -liberty.

Regards,
Mumit


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

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

* Re: [ANN] GMP 2.0.2 binaries for cygwin/mingw
       [not found]     ` < 199903231629.KAA11455@modi.xraylith.wisc.edu >
@ 1999-03-24  7:12       ` Michael Weiser
       [not found]         ` < 36fcbbe2.2163881@mail.weiser.saale-net.de >
  1999-03-31 19:45         ` Michael Weiser
  0 siblings, 2 replies; 16+ messages in thread
From: Michael Weiser @ 1999-03-24  7:12 UTC (permalink / raw)
  To: Mumit Khan; +Cc: cygwin

Hello Mumit, you wrote:
>"random" is non-ANSI and non-POSIX (it's BSD), and is not part of MS
>CRTDLL. It is however provided in libiberty.a, and all you need to do 
>is to add -liberty.
BTW: Why is libiberty called libiberty, what's it's origin and can it
be considered a misc-compatibility-functions library?
-- 
bye, Michael

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

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

* Re: [ANN] GMP 2.0.2 binaries for cygwin/mingw
       [not found]         ` < 36fcbbe2.2163881@mail.weiser.saale-net.de >
@ 1999-03-24  7:54           ` DJ Delorie
       [not found]             ` < 199903241554.KAA21789@envy.delorie.com >
  1999-03-31 19:45             ` DJ Delorie
  0 siblings, 2 replies; 16+ messages in thread
From: DJ Delorie @ 1999-03-24  7:54 UTC (permalink / raw)
  To: michael; +Cc: cygwin

> BTW: Why is libiberty called libiberty

It's a play on words, sort of.  In Unix, library "foo" has file
"libfoo.a" and uses "-lfoo" to link, so with libiberty, you end up
typing "-liberty" on your command lines all the time.  The idea was to
liberate the programmer from the deficiencies of the OS-supplied
library by fixing or supplying whatever the OS lacked, like strdup,
which isn't available in Ultrix, and memcmp, which isn't available in
SunOS.

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

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

* Re: [ANN] GMP 2.0.2 binaries for cygwin/mingw
       [not found]             ` < 199903241554.KAA21789@envy.delorie.com >
@ 1999-03-25  7:10               ` Michael Weiser
  1999-03-31 19:45                 ` Michael Weiser
  0 siblings, 1 reply; 16+ messages in thread
From: Michael Weiser @ 1999-03-25  7:10 UTC (permalink / raw)
  To: DJ Delorie; +Cc: cygwin

Hello DJ, you wrote:
>> BTW: Why is libiberty called libiberty
>It's a play on words, sort of.  In Unix, library "foo" has file
>"libfoo.a" and uses "-lfoo" to link, so with libiberty, you end up
>typing "-liberty" on your command lines all the time.  The idea was to
>liberate the programmer from the deficiencies of the OS-supplied
>library by fixing or supplying whatever the OS lacked, like strdup,
>which isn't available in Ultrix, and memcmp, which isn't available in
>SunOS.
Thanks a lot for that explanation. I already thought of something like
that while typing -liberty. :)
-- 
bye, Michael

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

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

* Re: [ANN] GMP 2.0.2 binaries for cygwin/mingw
  1999-03-25  7:10               ` Michael Weiser
@ 1999-03-31 19:45                 ` Michael Weiser
  0 siblings, 0 replies; 16+ messages in thread
From: Michael Weiser @ 1999-03-31 19:45 UTC (permalink / raw)
  To: DJ Delorie; +Cc: cygwin

Hello DJ, you wrote:
>> BTW: Why is libiberty called libiberty
>It's a play on words, sort of.  In Unix, library "foo" has file
>"libfoo.a" and uses "-lfoo" to link, so with libiberty, you end up
>typing "-liberty" on your command lines all the time.  The idea was to
>liberate the programmer from the deficiencies of the OS-supplied
>library by fixing or supplying whatever the OS lacked, like strdup,
>which isn't available in Ultrix, and memcmp, which isn't available in
>SunOS.
Thanks a lot for that explanation. I already thought of something like
that while typing -liberty. :)
-- 
bye, Michael

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


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

* Re: [ANN] GMP 2.0.2 binaries for cygwin/mingw
  1999-03-23  3:14 [ANN] GMP 2.0.2 binaries for cygwin/mingw Serguei DACHIAN
       [not found] ` < 1.5.4.32.19990323111340.006747a4@lola.univ-lemans.fr >
@ 1999-03-31 19:45 ` Serguei DACHIAN
  1 sibling, 0 replies; 16+ messages in thread
From: Serguei DACHIAN @ 1999-03-31 19:45 UTC (permalink / raw)
  To: cygwin

        Dear Mumit

I've tried to install mingw32 version under my CygWin + egcs1.1.2 + mingw-libs,
and to compile with -mno-cygwin switch.  While compiling a sample program
"factorize.c" (comes from gmp-2.0.2 source distribution, from demos
directory) I got the following errors:
>
> C:\WINDOWS\TEMP/cclVNmrv.o(.text+0x629):factorize.c: undefined
> reference to `random'
> C:\WINDOWS\TEMP/cclVNmrv.o(.text+0x636):factorize.c: undefined
> reference to `random'
> /usr/local/libmingw32/libgmp.a(random.o)(.text+0x39):random.c: undefined
> reference to `random'
> /usr/local/libmingw32/libgmp.a(random.o)(.text+0x40):random.c: undefined
> referen ce to `random'
> collect2: ld returned 1 exit status
>
What is going wrong here???  Normally I have no problems for compiling with
-mno-cygwin.

Am I doing something wrong ???

Regards,
                Serguei.
___________________________________________________________________________
Serguei DACHIAN
Laboratoire de Statistique et Processus,
Universite du Maine, Av. Olivier Messiaen
72085 Le Mans CEDEX 9, FRANCE
Tel.   : +33 (0)2 43 83 37 18
Fax.   : +33 (0)2 43 83 35 79
E-mail : Serguei.Dachian@univ-lemans.fr
WWW    : http://www.univ-lemans.fr/sciences/statist/cvs/thesard.html#dachian


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


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

* Re: [ANN] GMP 2.0.2 binaries for cygwin/mingw
  1999-03-24  7:12       ` Michael Weiser
       [not found]         ` < 36fcbbe2.2163881@mail.weiser.saale-net.de >
@ 1999-03-31 19:45         ` Michael Weiser
  1 sibling, 0 replies; 16+ messages in thread
From: Michael Weiser @ 1999-03-31 19:45 UTC (permalink / raw)
  To: Mumit Khan; +Cc: cygwin

Hello Mumit, you wrote:
>"random" is non-ANSI and non-POSIX (it's BSD), and is not part of MS
>CRTDLL. It is however provided in libiberty.a, and all you need to do 
>is to add -liberty.
BTW: Why is libiberty called libiberty, what's it's origin and can it
be considered a misc-compatibility-functions library?
-- 
bye, Michael

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


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

* Re: [ANN] GMP 2.0.2 binaries for cygwin/mingw
  1999-03-24  7:54           ` DJ Delorie
       [not found]             ` < 199903241554.KAA21789@envy.delorie.com >
@ 1999-03-31 19:45             ` DJ Delorie
  1 sibling, 0 replies; 16+ messages in thread
From: DJ Delorie @ 1999-03-31 19:45 UTC (permalink / raw)
  To: michael; +Cc: cygwin

> BTW: Why is libiberty called libiberty

It's a play on words, sort of.  In Unix, library "foo" has file
"libfoo.a" and uses "-lfoo" to link, so with libiberty, you end up
typing "-liberty" on your command lines all the time.  The idea was to
liberate the programmer from the deficiencies of the OS-supplied
library by fixing or supplying whatever the OS lacked, like strdup,
which isn't available in Ultrix, and memcmp, which isn't available in
SunOS.

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


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

* Re: [ANN] GMP 2.0.2 binaries for cygwin/mingw
  1999-03-23  8:29   ` Mumit Khan
       [not found]     ` < 199903231629.KAA11455@modi.xraylith.wisc.edu >
@ 1999-03-31 19:45     ` Mumit Khan
  1 sibling, 0 replies; 16+ messages in thread
From: Mumit Khan @ 1999-03-31 19:45 UTC (permalink / raw)
  To: Serguei DACHIAN; +Cc: cygwin

Serguei DACHIAN <Serguei.Dachian@univ-lemans.fr> writes:
>         Dear Mumit
> 
> I've tried to install mingw32 version under my CygWin + egcs1.1.2 + mingw-lib
> s,
> and to compile with -mno-cygwin switch.  While compiling a sample program
> "factorize.c" (comes from gmp-2.0.2 source distribution, from demos
> directory) I got the following errors:
> >
> > C:\WINDOWS\TEMP/cclVNmrv.o(.text+0x629):factorize.c: undefined
> > reference to `random'
> > C:\WINDOWS\TEMP/cclVNmrv.o(.text+0x636):factorize.c: undefined
> > reference to `random'
> > /usr/local/libmingw32/libgmp.a(random.o)(.text+0x39):random.c: undefined
> > reference to `random'
> > /usr/local/libmingw32/libgmp.a(random.o)(.text+0x40):random.c: undefined
> > referen ce to `random'
> > collect2: ld returned 1 exit status
> >
> What is going wrong here???  Normally I have no problems for compiling with
> -mno-cygwin.
> 
> Am I doing something wrong ???

"random" is non-ANSI and non-POSIX (it's BSD), and is not part of MS
CRTDLL. It is however provided in libiberty.a, and all you need to do 
is to add -liberty.

Regards,
Mumit


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


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

* [ANN] GMP 2.0.2 binaries for cygwin/mingw
  1999-03-22 23:12 Mumit Khan
@ 1999-03-31 19:45 ` Mumit Khan
  0 siblings, 0 replies; 16+ messages in thread
From: Mumit Khan @ 1999-03-31 19:45 UTC (permalink / raw)
  To: cygwin

I've uploaded a new set of binaries for GNU Arbitrary Precision Library
(GNU MP version 2.0.2) for cygwin b20.1 and Mingw32 built with egcs-1.1.2.

This release only provides a static library only; GMP DLL causes
problems and the fix is not trivial.

The Cygwin version passes all tests; the Mingw32 fails one test that
uses the Unix pipe function (but a rewritten one, using _pipe, passes).

For Cygwin:
  ftp://ftp.xraylith.wisc.edu/pub/khan/gnu-win32/cygwin/ports/
For Mingw32:
  ftp://ftp.xraylith.wisc.edu/pub/khan/gnu-win32/mingw32/ports/

Regards,
Mumit



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


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

* Re: [ANN] GMP 2.0.2 binaries for cygwin/mingw
  1999-03-23  8:48 Serguei DACHIAN
       [not found] ` < 1.5.4.32.19990323164802.0067b098@lola.univ-lemans.fr >
@ 1999-03-31 19:45 ` Serguei DACHIAN
  1 sibling, 0 replies; 16+ messages in thread
From: Serguei DACHIAN @ 1999-03-31 19:45 UTC (permalink / raw)
  To: cygwin

> "random" is non-ANSI and non-POSIX (it's BSD), and is not part of MS
> CRTDLL. It is however provided in libiberty.a, and all you need to do 
> is to add -liberty.

Thanks, now it works fine.  But now I don't understand why it worked when I
was compiling without -mno-cygwin switch, using the CygWin version of GMP,
and not specifying -liberty ???

Rgards,
                Serguei.
___________________________________________________________________________
Serguei DACHIAN
Laboratoire de Statistique et Processus,
Universite du Maine, Av. Olivier Messiaen
72085 Le Mans CEDEX 9, FRANCE
Tel.   : +33 (0)2 43 83 37 18
Fax.   : +33 (0)2 43 83 35 79
E-mail : Serguei.Dachian@univ-lemans.fr
WWW    : http://www.univ-lemans.fr/sciences/statist/cvs/thesard.html#dachian


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


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

* Re: [ANN] GMP 2.0.2 binaries for cygwin/mingw
  1999-03-23  9:06   ` Mumit Khan
@ 1999-03-31 19:45     ` Mumit Khan
  0 siblings, 0 replies; 16+ messages in thread
From: Mumit Khan @ 1999-03-31 19:45 UTC (permalink / raw)
  To: Serguei DACHIAN; +Cc: cygwin

Serguei DACHIAN <Serguei.Dachian@univ-lemans.fr> writes:
> Thanks, now it works fine.  But now I don't understand why it worked when I
> was compiling without -mno-cygwin switch, using the CygWin version of GMP,
> and not specifying -liberty ???
> 

Mingw and Cygwin uses different runtime libraries; random exists in the
Cygwin runtime and does not exist in Mingw runtime. Nothing weird about
it.

Regards,
Mumit


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


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

* Re: [ANN] GMP 2.0.2 binaries for cygwin/mingw
       [not found] ` < 1.5.4.32.19990323164802.0067b098@lola.univ-lemans.fr >
@ 1999-03-23  9:06   ` Mumit Khan
  1999-03-31 19:45     ` Mumit Khan
  0 siblings, 1 reply; 16+ messages in thread
From: Mumit Khan @ 1999-03-23  9:06 UTC (permalink / raw)
  To: Serguei DACHIAN; +Cc: cygwin

Serguei DACHIAN <Serguei.Dachian@univ-lemans.fr> writes:
> Thanks, now it works fine.  But now I don't understand why it worked when I
> was compiling without -mno-cygwin switch, using the CygWin version of GMP,
> and not specifying -liberty ???
> 

Mingw and Cygwin uses different runtime libraries; random exists in the
Cygwin runtime and does not exist in Mingw runtime. Nothing weird about
it.

Regards,
Mumit


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

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

* Re: [ANN] GMP 2.0.2 binaries for cygwin/mingw
@ 1999-03-23  8:48 Serguei DACHIAN
       [not found] ` < 1.5.4.32.19990323164802.0067b098@lola.univ-lemans.fr >
  1999-03-31 19:45 ` Serguei DACHIAN
  0 siblings, 2 replies; 16+ messages in thread
From: Serguei DACHIAN @ 1999-03-23  8:48 UTC (permalink / raw)
  To: cygwin

> "random" is non-ANSI and non-POSIX (it's BSD), and is not part of MS
> CRTDLL. It is however provided in libiberty.a, and all you need to do 
> is to add -liberty.

Thanks, now it works fine.  But now I don't understand why it worked when I
was compiling without -mno-cygwin switch, using the CygWin version of GMP,
and not specifying -liberty ???

Rgards,
                Serguei.
___________________________________________________________________________
Serguei DACHIAN
Laboratoire de Statistique et Processus,
Universite du Maine, Av. Olivier Messiaen
72085 Le Mans CEDEX 9, FRANCE
Tel.   : +33 (0)2 43 83 37 18
Fax.   : +33 (0)2 43 83 35 79
E-mail : Serguei.Dachian@univ-lemans.fr
WWW    : http://www.univ-lemans.fr/sciences/statist/cvs/thesard.html#dachian


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

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

* [ANN] GMP 2.0.2 binaries for cygwin/mingw
@ 1999-03-22 23:12 Mumit Khan
  1999-03-31 19:45 ` Mumit Khan
  0 siblings, 1 reply; 16+ messages in thread
From: Mumit Khan @ 1999-03-22 23:12 UTC (permalink / raw)
  To: cygwin

I've uploaded a new set of binaries for GNU Arbitrary Precision Library
(GNU MP version 2.0.2) for cygwin b20.1 and Mingw32 built with egcs-1.1.2.

This release only provides a static library only; GMP DLL causes
problems and the fix is not trivial.

The Cygwin version passes all tests; the Mingw32 fails one test that
uses the Unix pipe function (but a rewritten one, using _pipe, passes).

For Cygwin:
  ftp://ftp.xraylith.wisc.edu/pub/khan/gnu-win32/cygwin/ports/
For Mingw32:
  ftp://ftp.xraylith.wisc.edu/pub/khan/gnu-win32/mingw32/ports/

Regards,
Mumit



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

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

end of thread, other threads:[~1999-03-31 19:45 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-03-23  3:14 [ANN] GMP 2.0.2 binaries for cygwin/mingw Serguei DACHIAN
     [not found] ` < 1.5.4.32.19990323111340.006747a4@lola.univ-lemans.fr >
1999-03-23  8:29   ` Mumit Khan
     [not found]     ` < 199903231629.KAA11455@modi.xraylith.wisc.edu >
1999-03-24  7:12       ` Michael Weiser
     [not found]         ` < 36fcbbe2.2163881@mail.weiser.saale-net.de >
1999-03-24  7:54           ` DJ Delorie
     [not found]             ` < 199903241554.KAA21789@envy.delorie.com >
1999-03-25  7:10               ` Michael Weiser
1999-03-31 19:45                 ` Michael Weiser
1999-03-31 19:45             ` DJ Delorie
1999-03-31 19:45         ` Michael Weiser
1999-03-31 19:45     ` Mumit Khan
1999-03-31 19:45 ` Serguei DACHIAN
  -- strict thread matches above, loose matches on Subject: below --
1999-03-23  8:48 Serguei DACHIAN
     [not found] ` < 1.5.4.32.19990323164802.0067b098@lola.univ-lemans.fr >
1999-03-23  9:06   ` Mumit Khan
1999-03-31 19:45     ` Mumit Khan
1999-03-31 19:45 ` Serguei DACHIAN
1999-03-22 23:12 Mumit Khan
1999-03-31 19:45 ` Mumit Khan

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