LM | 1 May 2012 01:08
Picon
Favicon

Re: compiler generated dependencies

Eli Zaretskii wrote:
>>> What exactly do the makefiles/scripts expect that make
>>> c:\mingw\bin\../foo undesirable?  Commands and scripts that work on
>>> Windows should generally grok both forward- and back-slashes alike, so
>>> having mixed forward- and back-slashes in a file name is quite normal.
>
Jared Maddox wrote:
>From reading the post, it looks like the scripts expect *nix style
>paths instead of Windows style paths. Is that what you meant, LM?

Correct the scripts appear to be expecting Linux/Unix style forward slash
format only.  They can't handle the backslash or drive letters.  So, the mixed
slashes format is normal with MinGW?  There's nothing wrong with this?

Earnie wrote:
>Yes, but what scripts?  In general dependency tracking happens in many
>projects without issue so a better understanding of what is happening
>needs to happen before we try to guess what is wrong.

One project is a Linux program I'm trying to port, so I guess I shouldn't
be surprised that it chokes on the Windows syntax.  The first time I ran
into this issue was with SDL 2.0 (which is a cross-platform library).  It
was having trouble with the OpenGL header files being in a directory under
c:\mingw...  I asked on the SDL mailing list and they said they were having
no such trouble on their machines and that my installation of MinGW was
probably broken.  I'd just recently installed the latest version of MinGW
when I hit the issue too and several other projects I'd built on the machine
gave me no problems with compiling and linking.  So, I thought that was
unlikely.  It did lead me to wonder whether there was something
that could be set up with MinGW that could cause gcc to list dependencies using
a more Linux like syntax or whether the problem was with their scripts after
all.  Has anyone been able to build SDL 2.0 on Windows with MinGW?  I was
able to get it to build if I wiped out the .d files, but otherwise it failed.

Thanks.
Laura
http://www.distasis.com/cpp

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
MinGW-users mailing list
MinGW-users@...

This list observes the Etiquette found at 
http://www.mingw.org/Mailing_Lists.
We ask that you be polite and do the same.  Disregard for the list etiquette may cause your account to be moderated.

_______________________________________________
You may change your MinGW Account Options or unsubscribe at:
https://lists.sourceforge.net/lists/listinfo/mingw-users
Also: mailto:mingw-users-request@...?subject=unsubscribe
J- MAN | 1 May 2012 02:30
Picon
Favicon

Refresh Drive list

Sorry if this has been asked before, but is there any way to refresh the drive list from the shell without restarting it?
 
For example if i have a bash shell open and then perform the command "subst X: C:/tmp"
 
I can't cd into x until i restart the shell.  The problem is i'm trying to script this, but i can't script restarting the shell:
 
[jman <at> i52500k:/v/ 499]$cd /x
bash: cd: /x: No such file or directory
 

Thanks
 
-J
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
MinGW-users mailing list
MinGW-users@...

This list observes the Etiquette found at 
http://www.mingw.org/Mailing_Lists.
We ask that you be polite and do the same.  Disregard for the list etiquette may cause your account to be moderated.

_______________________________________________
You may change your MinGW Account Options or unsubscribe at:
https://lists.sourceforge.net/lists/listinfo/mingw-users
Also: mailto:mingw-users-request@...?subject=unsubscribe
Eli Zaretskii | 1 May 2012 04:37
Picon

Re: libgcc DLL

> Date: Mon, 30 Apr 2012 22:02:13 +0100
> From: Keith Marshall <keithmarshall@...>
> 
> We've adopted the same ABI version numbering strategy that cygwin uses.
>  AIUI, the ABI version number changes only when a *backwardly*
> incompatible ABI change is introduced.  Thus, it is possible, and even
> probable, that a newer release could add new APIs, (new entry points),
> without breaking backward ABI compatibility, and thus no change in ABI
> version number.  Installing the newer release, provided the ABI version
> number hasn't changed, should not be prejudicial to older applications.
> (OTOH, the converse is not reliable; reverting to an older DLL release
> may not provide the newer API support required by a newer application).
> 
> Yeah, I know that may seem a tad perverse, but it does work well in
> practice, provided you always stick with the newest DLL release of any
> required ABI version.

Thanks.

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
MinGW-users mailing list
MinGW-users@...

This list observes the Etiquette found at 
http://www.mingw.org/Mailing_Lists.
We ask that you be polite and do the same.  Disregard for the list etiquette may cause your account to be moderated.

_______________________________________________
You may change your MinGW Account Options or unsubscribe at:
https://lists.sourceforge.net/lists/listinfo/mingw-users
Also: mailto:mingw-users-request@...?subject=unsubscribe

Eli Zaretskii | 1 May 2012 04:49
Picon

Re: compiler generated dependencies

> Date: Mon, 30 Apr 2012 16:08:40 -0700 (PDT)
> From: LM <lmemsm@...>
> 
> So, the mixed slashes format is normal with MinGW?  There's nothing
> wrong with this?

Yes, this is normal.

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
MinGW-users mailing list
MinGW-users@...

This list observes the Etiquette found at 
http://www.mingw.org/Mailing_Lists.
We ask that you be polite and do the same.  Disregard for the list etiquette may cause your account to be moderated.

_______________________________________________
You may change your MinGW Account Options or unsubscribe at:
https://lists.sourceforge.net/lists/listinfo/mingw-users
Also: mailto:mingw-users-request@...?subject=unsubscribe

Earnie Boyd | 1 May 2012 14:37
Picon

Re: compiler generated dependencies

On Mon, Apr 30, 2012 at 7:08 PM, LM <lmemsm <at> yahoo.com> wrote:
> Eli Zaretskii wrote:
>>>> What exactly do the makefiles/scripts expect that make
>>>> c:\mingw\bin\../foo undesirable?  Commands and scripts that work on
>>>> Windows should generally grok both forward- and back-slashes alike, so
>>>> having mixed forward- and back-slashes in a file name is quite normal.
>>
> Jared Maddox wrote:
> >From reading the post, it looks like the scripts expect *nix style
>>paths instead of Windows style paths. Is that what you meant, LM?
>
> Correct the scripts appear to be expecting Linux/Unix style forward slash
> format only.  They can't handle the backslash or drive letters.  So, the
> mixed slashes format is normal with MinGW?  There's nothing wrong with this?
>

While mixed slashes format is normal any POSIX shell will treat \ as
an escape character where the next character following the \ may be
treated specially such as \r\n would become CRLF characters.  The work
around for this is to apply a sed script to the generated files if the
shell is going to be reading them to convert \ to /.

> Earnie wrote:
>>Yes, but what scripts?  In general dependency tracking happens in many
>>projects without issue so a better understanding of what is happening
>>needs to happen before we try to guess what is wrong.
>
> One project is a Linux program I'm trying to port, so I guess I shouldn't
> be surprised that it chokes on the Windows syntax.  The first time I ran
> into this issue was with SDL 2.0 (which is a cross-platform library).  It

You'll need to determine what the shell script is doing with the
dependencies.  Perhaps the script could do the sed translation before
reading the file.

> was having trouble with the OpenGL header files being in a directory under
> c:\mingw...  I asked on the SDL mailing list and they said they were having
> no such trouble on their machines and that my installation of MinGW was
> probably broken.  I'd just recently installed the latest version of MinGW
> when I hit the issue too and several other projects I'd built on the machine
> gave me no problems with compiling and linking.  So, I thought that was
> unlikely.  It did lead me to wonder whether there was something
> that could be set up with MinGW that could cause gcc to list dependencies
> using
> a more Linux like syntax or whether the problem was with their scripts after
> all.  Has anyone been able to build SDL 2.0 on Windows with MinGW?  I was
> able to get it to build if I wiped out the .d files, but otherwise it
> failed.

From what I remember I just used configure, make and make install to
generate a working SDL library with source downloaded from libsdl.org.
 I didn't have to do anything special.  It has been a long while
though.

-- 
Earnie
-- https://sites.google.com/site/earnieboyd

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
MinGW-users mailing list
MinGW-users <at> lists.sourceforge.net

This list observes the Etiquette found at 
http://www.mingw.org/Mailing_Lists.
We ask that you be polite and do the same.  Disregard for the list etiquette may cause your account to be moderated.

_______________________________________________
You may change your MinGW Account Options or unsubscribe at:
https://lists.sourceforge.net/lists/listinfo/mingw-users
Also: mailto:mingw-users-request <at> lists.sourceforge.net?subject=unsubscribe
Earnie Boyd | 1 May 2012 14:41
Picon

Re: Refresh Drive list

On Mon, Apr 30, 2012 at 8:30 PM, J- MAN <jmandawg <at> hotmail.com> wrote:
> Sorry if this has been asked before, but is there any way to refresh the
> drive list from the shell without restarting it?
>
> For example if i have a bash shell open and then perform the command "subst
> X: C:/tmp"
>
> I can't cd into x until i restart the shell.  The problem is i'm trying to
> script this, but i can't script restarting the shell:

``touch /etc/fstab'' will do the trick.  Doing this causes MSYS to
reset its mount table.

-- 
Earnie
-- https://sites.google.com/site/earnieboyd

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
MinGW-users mailing list
MinGW-users <at> lists.sourceforge.net

This list observes the Etiquette found at 
http://www.mingw.org/Mailing_Lists.
We ask that you be polite and do the same.  Disregard for the list etiquette may cause your account to be moderated.

_______________________________________________
You may change your MinGW Account Options or unsubscribe at:
https://lists.sourceforge.net/lists/listinfo/mingw-users
Also: mailto:mingw-users-request <at> lists.sourceforge.net?subject=unsubscribe
Michael Zimmers | 1 May 2012 15:29
Picon
Gravatar

Re: Run-time dependencies for binary MinGW packages

Eli Zaretskii <eliz <at> ...> writes:

> Sounds like your program simply exits immediately.  I suggest to run
> it under GDB, step through the 'main' function, and see what's going
> on there.  Or put a breakpoint at 'exit' and see who calls it.

OK, this is interesting. I entered "start" and immediately got 4 errors 
for DLLs (unnamed) not found. Just to see what would happen, I then 
entered "continue" and the program continued to completion.

Does this help narrow it down?

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
MinGW-users mailing list
MinGW-users@...

This list observes the Etiquette found at 
http://www.mingw.org/Mailing_Lists.
We ask that you be polite and do the same.  Disregard for the list etiquette may cause your account to be moderated.

_______________________________________________
You may change your MinGW Account Options or unsubscribe at:
https://lists.sourceforge.net/lists/listinfo/mingw-users
Also: mailto:mingw-users-request@...?subject=unsubscribe

Teemu Nätkinniemi | 1 May 2012 16:03
Picon
Favicon

Re: Run-time dependencies for binary MinGW packages

On 1.5.2012 16:29, Michael Zimmers wrote:

> Eli Zaretskii<eliz <at> ...>  writes:
>
>> Sounds like your program simply exits immediately.  I suggest to run
>> it under GDB, step through the 'main' function, and see what's going
>> on there.  Or put a breakpoint at 'exit' and see who calls it.
>
> OK, this is interesting. I entered "start" and immediately got 4 errors
> for DLLs (unnamed) not found. Just to see what would happen, I then
> entered "continue" and the program continued to completion.
>
> Does this help narrow it down?

One possibility is that the Qt DLLs have dependencies that Dependency 
Walker didn't catch. Try set the path to your QT bin directory and run 
your program from command line.

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
MinGW-users mailing list
MinGW-users@...

This list observes the Etiquette found at 
http://www.mingw.org/Mailing_Lists.
We ask that you be polite and do the same.  Disregard for the list etiquette may cause your account to be moderated.

_______________________________________________
You may change your MinGW Account Options or unsubscribe at:
https://lists.sourceforge.net/lists/listinfo/mingw-users
Also: mailto:mingw-users-request@...?subject=unsubscribe

Eli Zaretskii | 1 May 2012 18:07
Picon

Re: Run-time dependencies for binary MinGW packages

> From: Michael Zimmers <mzimmers@...>
> Date: Tue, 1 May 2012 13:29:37 +0000 (UTC)
> 
> Eli Zaretskii <eliz <at> ...> writes:
> 
> > Sounds like your program simply exits immediately.  I suggest to run
> > it under GDB, step through the 'main' function, and see what's going
> > on there.  Or put a breakpoint at 'exit' and see who calls it.
> 
> OK, this is interesting. I entered "start" and immediately got 4 errors 
> for DLLs (unnamed) not found.

Which errors? what was the exact messages you saw?

> Just to see what would happen, I then entered "continue" and the
> program continued to completion.

Which means what? that it worked as expected under GDB, but not
outside of GDB?  Or does it mean something else?

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
MinGW-users mailing list
MinGW-users@...

This list observes the Etiquette found at 
http://www.mingw.org/Mailing_Lists.
We ask that you be polite and do the same.  Disregard for the list etiquette may cause your account to be moderated.

_______________________________________________
You may change your MinGW Account Options or unsubscribe at:
https://lists.sourceforge.net/lists/listinfo/mingw-users
Also: mailto:mingw-users-request@...?subject=unsubscribe

Earnie Boyd | 1 May 2012 19:06
Picon

Re: compiler generated dependencies

On Tue, May 1, 2012 at 8:37 AM, Earnie Boyd
<earnie <at> users.sourceforge.net> wrote:
>
> From what I remember I just used configure, make and make install to
> generate a working SDL library with source downloaded from libsdl.org.
>  I didn't have to do anything special.  It has been a long while
> though.

FWIW, I just downloaded SDL-1.2.15.tar.gz and successfully did a
configure && make of the system.  I put the source in one directory
and did a build in another directory.

-- 
Earnie
-- https://sites.google.com/site/earnieboyd

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
MinGW-users mailing list
MinGW-users <at> lists.sourceforge.net

This list observes the Etiquette found at 
http://www.mingw.org/Mailing_Lists.
We ask that you be polite and do the same.  Disregard for the list etiquette may cause your account to be moderated.

_______________________________________________
You may change your MinGW Account Options or unsubscribe at:
https://lists.sourceforge.net/lists/listinfo/mingw-users
Also: mailto:mingw-users-request <at> lists.sourceforge.net?subject=unsubscribe

Gmane