public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* RE: Problems with dll-generation under Win98
@ 1999-07-07 15:40 Heribert Dahms
  1999-07-07 15:51 ` DJ Delorie
  1999-07-31 18:34 ` Heribert Dahms
  0 siblings, 2 replies; 8+ messages in thread
From: Heribert Dahms @ 1999-07-07 15:40 UTC (permalink / raw)
  To: 'Mumit Khan', Oliver Oberschelp; +Cc: cygwin

Hi Mumit,

looks like you accidently omitted the critical word,
so to clarify for newbies:
Win9x does *not* zero out files past seek!
(as it should like Unix and NT)


Bye, Heribert (heribert_dahms@icon-gmbh.de)

> -----Original Message-----
> From:	Mumit Khan [SMTP:khan@xraylith.wisc.EDU]
> Sent:	Wednesday, July 07, 1999 21:20
> To:	Oliver Oberschelp
> Cc:	cygwin@sourceware.cygnus.com
> Subject:	Re: Problems with dll-generation under Win98
> 
> On Wed, 7 Jul 1999, Oliver Oberschelp wrote:
> 
> > Hello,
> > 
> > I've got a strange problem with building dlls under Win98.
> > Considering the following example for a batch file:
> 
> Known problem. Win9x does zero out files if you seek past the end and
> write. NT loader seems to be more forgiving and can successfully load
> some of these DLLs, but Win9x does not.
> 
> Regards,
> Mumit

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

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

* Re: Problems with dll-generation under Win98
  1999-07-07 15:40 Problems with dll-generation under Win98 Heribert Dahms
@ 1999-07-07 15:51 ` DJ Delorie
  1999-07-31 18:34   ` DJ Delorie
  1999-07-31 18:34 ` Heribert Dahms
  1 sibling, 1 reply; 8+ messages in thread
From: DJ Delorie @ 1999-07-07 15:51 UTC (permalink / raw)
  To: cygwin

> Win9x does *not* zero out files past seek!

Note that cygwin has a work-around to fix this, but it only works if
you let cygwin do it.  That was actually my first change to cygwin as
a full-time employee!

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

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

* RE: Problems with dll-generation under Win98
  1999-07-07 15:40 Problems with dll-generation under Win98 Heribert Dahms
  1999-07-07 15:51 ` DJ Delorie
@ 1999-07-31 18:34 ` Heribert Dahms
  1 sibling, 0 replies; 8+ messages in thread
From: Heribert Dahms @ 1999-07-31 18:34 UTC (permalink / raw)
  To: 'Mumit Khan', Oliver Oberschelp; +Cc: cygwin

Hi Mumit,

looks like you accidently omitted the critical word,
so to clarify for newbies:
Win9x does *not* zero out files past seek!
(as it should like Unix and NT)


Bye, Heribert (heribert_dahms@icon-gmbh.de)

> -----Original Message-----
> From:	Mumit Khan [SMTP:khan@xraylith.wisc.EDU]
> Sent:	Wednesday, July 07, 1999 21:20
> To:	Oliver Oberschelp
> Cc:	cygwin@sourceware.cygnus.com
> Subject:	Re: Problems with dll-generation under Win98
> 
> On Wed, 7 Jul 1999, Oliver Oberschelp wrote:
> 
> > Hello,
> > 
> > I've got a strange problem with building dlls under Win98.
> > Considering the following example for a batch file:
> 
> Known problem. Win9x does zero out files if you seek past the end and
> write. NT loader seems to be more forgiving and can successfully load
> some of these DLLs, but Win9x does not.
> 
> Regards,
> Mumit

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

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

* Re: Problems with dll-generation under Win98
  1999-07-07 15:51 ` DJ Delorie
@ 1999-07-31 18:34   ` DJ Delorie
  0 siblings, 0 replies; 8+ messages in thread
From: DJ Delorie @ 1999-07-31 18:34 UTC (permalink / raw)
  To: cygwin

> Win9x does *not* zero out files past seek!

Note that cygwin has a work-around to fix this, but it only works if
you let cygwin do it.  That was actually my first change to cygwin as
a full-time employee!

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

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

* Problems with dll-generation under Win98
  1999-07-07  2:49 Oliver Oberschelp
  1999-07-07 12:20 ` Mumit Khan
@ 1999-07-31 18:34 ` Oliver Oberschelp
  1 sibling, 0 replies; 8+ messages in thread
From: Oliver Oberschelp @ 1999-07-31 18:34 UTC (permalink / raw)
  To: cygwin

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

Hello,

I've got a strange problem with building dlls under Win98.
Considering the following example for a batch file:

++++++++++++++++

SET GCC_EXEC_PREFIX=C:\Praktikum_RT2\mingw32\lib\gcc-lib\
SET
LIBRARY_PATH=C:\Praktikum_RT2\mingw32\lib\gcc-lib\i386-mingw32\egcs-2.91.66;
C:\Praktikum_RT2\mingw32\i386-mingw32\lib;C:\Praktikum_RT2\mingw32\lib
SET
C_INCLUDE_PATH=C:\Praktikum_RT2\mingw32\lib\gcc-lib\i386-mingw32\egcs-2.91.6
6\include;C:\Praktikum_RT2\mingw32\i386-mingw32\include;C:\Praktikum_RT2\min
gw32\include
SET CPLUS_INCLUDE_PATH=%C_INCLUDE_PATH%;C:\Praktikum_RT2\mingw32\include\g++
SET OBJC_INCLUDE_PATH=%C_INCLUDE_PATH%

gcc -c -IC:\Praktikum_RT2\CAMeL-VIEW\CSources actuator.c

echo INPUT(C:\Praktikum_RT2\CAMeL-VIEW\CSources\dsc_math.o) > ACTUATOR.lnk
echo INPUT(C:\Praktikum_RT2\CAMeL-VIEW\CSources\s_intpol.o) >> ACTUATOR.lnk
echo INPUT(C:\Praktikum_RT2\CAMeL-VIEW\CSources\dllinit.o) >> ACTUATOR.lnk
echo INPUT(actuator.o) >> ACTUATOR.lnk

echo LIBRARY ACTUATOR > ACTUATOR.def
echo EXPORTS >> ACTUATOR.def
echo model=model@0 >> ACTUATOR.def

gcc -mdll -o jnk.dll -Wl,--base-file,ACTUATOR.bas,ACTUATOR.lnk

dlltool --dllname ACTUATOR.dll --base-file ACTUATOR.bas --output-exp
ACTUATOR.exp --def ACTUATOR.def

gcc -mdll -o jnk.dll -Wl,--base-file,ACTUATOR.bas,ACTUATOR.lnk ACTUATOR.exp

+++++++++++++++++

The jnk.dll is loadable when generated under NT in the program running NT.
The jnk.dll is loadable when generated under 98 in the program running NT.
The jnk.dll is loadable when generated under NT in the program running 98.
The jnk.dll is NOT loadable when generated under 98 in the program running
98.
(But we must have this constellation! :( )

We've checked the contents of the object-files - they are identical, but not
the ACTUATOR.exp.

Is it a known problem? Is there a solution?

MfG. Oliver Oberschelp


---------------

Dipl.-Ing. Oliver Oberschelp

E-Mail:	mailto:Oliver.Oberschelp@mlap.de

Dienstlich:	Pohlweg 55
		33098 Paderborn
		Tel.: +49-5251-60-2416
		FAX: +49-5251-60-3550

Privat:		Soester Weg 1
		33129 Delbrück
		Tel.: +49-5250-934494


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

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

* Re: Problems with dll-generation under Win98
  1999-07-07 12:20 ` Mumit Khan
@ 1999-07-31 18:34   ` Mumit Khan
  0 siblings, 0 replies; 8+ messages in thread
From: Mumit Khan @ 1999-07-31 18:34 UTC (permalink / raw)
  To: Oliver Oberschelp; +Cc: cygwin

On Wed, 7 Jul 1999, Oliver Oberschelp wrote:

> Hello,
> 
> I've got a strange problem with building dlls under Win98.
> Considering the following example for a batch file:

Known problem. Win9x does zero out files if you seek past the end and
write. NT loader seems to be more forgiving and can successfully load
some of these DLLs, but Win9x does not.

Regards,
Mumit



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

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

* Re: Problems with dll-generation under Win98
  1999-07-07  2:49 Oliver Oberschelp
@ 1999-07-07 12:20 ` Mumit Khan
  1999-07-31 18:34   ` Mumit Khan
  1999-07-31 18:34 ` Oliver Oberschelp
  1 sibling, 1 reply; 8+ messages in thread
From: Mumit Khan @ 1999-07-07 12:20 UTC (permalink / raw)
  To: Oliver Oberschelp; +Cc: cygwin

On Wed, 7 Jul 1999, Oliver Oberschelp wrote:

> Hello,
> 
> I've got a strange problem with building dlls under Win98.
> Considering the following example for a batch file:

Known problem. Win9x does zero out files if you seek past the end and
write. NT loader seems to be more forgiving and can successfully load
some of these DLLs, but Win9x does not.

Regards,
Mumit



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

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

* Problems with dll-generation under Win98
@ 1999-07-07  2:49 Oliver Oberschelp
  1999-07-07 12:20 ` Mumit Khan
  1999-07-31 18:34 ` Oliver Oberschelp
  0 siblings, 2 replies; 8+ messages in thread
From: Oliver Oberschelp @ 1999-07-07  2:49 UTC (permalink / raw)
  To: cygwin

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

Hello,

I've got a strange problem with building dlls under Win98.
Considering the following example for a batch file:

++++++++++++++++

SET GCC_EXEC_PREFIX=C:\Praktikum_RT2\mingw32\lib\gcc-lib\
SET
LIBRARY_PATH=C:\Praktikum_RT2\mingw32\lib\gcc-lib\i386-mingw32\egcs-2.91.66;
C:\Praktikum_RT2\mingw32\i386-mingw32\lib;C:\Praktikum_RT2\mingw32\lib
SET
C_INCLUDE_PATH=C:\Praktikum_RT2\mingw32\lib\gcc-lib\i386-mingw32\egcs-2.91.6
6\include;C:\Praktikum_RT2\mingw32\i386-mingw32\include;C:\Praktikum_RT2\min
gw32\include
SET CPLUS_INCLUDE_PATH=%C_INCLUDE_PATH%;C:\Praktikum_RT2\mingw32\include\g++
SET OBJC_INCLUDE_PATH=%C_INCLUDE_PATH%

gcc -c -IC:\Praktikum_RT2\CAMeL-VIEW\CSources actuator.c

echo INPUT(C:\Praktikum_RT2\CAMeL-VIEW\CSources\dsc_math.o) > ACTUATOR.lnk
echo INPUT(C:\Praktikum_RT2\CAMeL-VIEW\CSources\s_intpol.o) >> ACTUATOR.lnk
echo INPUT(C:\Praktikum_RT2\CAMeL-VIEW\CSources\dllinit.o) >> ACTUATOR.lnk
echo INPUT(actuator.o) >> ACTUATOR.lnk

echo LIBRARY ACTUATOR > ACTUATOR.def
echo EXPORTS >> ACTUATOR.def
echo model=model@0 >> ACTUATOR.def

gcc -mdll -o jnk.dll -Wl,--base-file,ACTUATOR.bas,ACTUATOR.lnk

dlltool --dllname ACTUATOR.dll --base-file ACTUATOR.bas --output-exp
ACTUATOR.exp --def ACTUATOR.def

gcc -mdll -o jnk.dll -Wl,--base-file,ACTUATOR.bas,ACTUATOR.lnk ACTUATOR.exp

+++++++++++++++++

The jnk.dll is loadable when generated under NT in the program running NT.
The jnk.dll is loadable when generated under 98 in the program running NT.
The jnk.dll is loadable when generated under NT in the program running 98.
The jnk.dll is NOT loadable when generated under 98 in the program running
98.
(But we must have this constellation! :( )

We've checked the contents of the object-files - they are identical, but not
the ACTUATOR.exp.

Is it a known problem? Is there a solution?

MfG. Oliver Oberschelp


---------------

Dipl.-Ing. Oliver Oberschelp

E-Mail:	mailto:Oliver.Oberschelp@mlap.de

Dienstlich:	Pohlweg 55
		33098 Paderborn
		Tel.: +49-5251-60-2416
		FAX: +49-5251-60-3550

Privat:		Soester Weg 1
		33129 Delbrück
		Tel.: +49-5250-934494


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

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

end of thread, other threads:[~1999-07-31 18:34 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-07-07 15:40 Problems with dll-generation under Win98 Heribert Dahms
1999-07-07 15:51 ` DJ Delorie
1999-07-31 18:34   ` DJ Delorie
1999-07-31 18:34 ` Heribert Dahms
  -- strict thread matches above, loose matches on Subject: below --
1999-07-07  2:49 Oliver Oberschelp
1999-07-07 12:20 ` Mumit Khan
1999-07-31 18:34   ` Mumit Khan
1999-07-31 18:34 ` Oliver Oberschelp

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