Bill,
This is getting ridiculous.  I really appreciate your patience and
expertise, but it seems that what is supposed to be there just isn't.  Now I
can run rebaseall from dash.exe but not as /bin/rebaseall, but as rebaseall.
In addition rebaseall errors out saying it can't find 'lib'.  I am also
having to substitute mingw32 for mingw because there is no mingw in JTSDK.

A long time ago I set up and maintained a Slackware Linux mail server, so I
am familiar with but by no means an expert with UNIX.  Still, I appreciate
the 'fork' explanation.  I didn't know there was a difference between UNIX
and Windows in how they share libraries.

What to do?  Since I have the MinGW Installation Manager I guess I could
install everything it offers, but it may be installed in the wrong place to
do any good.  Thinking of our email exchanges it seems you expect a lot of
utilities to be available and available in a particular place.  Is it
possible that something went missing during my initial package installation?
Several months ago when I first installed JTSDK, it all just
worked.....until it all of sudden didn't.  Uninstalled and deleted the JTSDK
directory, and started over.  The problem didn't change.  You've seen my
list of installed packages.  Did I miss something?  Should I wipe it out and
start over?  Should I install all of MinGW?  Fortunately the one thing I do
have is plenty of HD space with a 1TB SSD and more than half empty.

I really appreciate your time and advice

_____________________________
Dan Malcolm CFI/II
K4SHQ


-----Original Message-----
From: Bill Somerville [mailto:g4...@classdesign.com] 
Sent: Monday, March 06, 2017 5:54 AM
To: wsjt-devel@lists.sourceforge.net
Subject: Re: [wsjt-devel] Hamlib3 compile error

On 06/03/2017 03:50, Dan Malcolm wrote:
> Got that and installed it.  MIngw-get still failed but a search found 
> the program under C:\JTSDK\mingw32\bin so I used the full path from 
> the JTSDK MYS prompt.  That ran and seemed to install a few pages.  
> Closed all JTSDK windows and then found dash.exe right where you said 
> it would be.  It opened a window and /bin/rebaseall gave me this error:
> $ /bin/rebaseall
> /bin/rebaseall: 207: find: not found
> /bin/rebaseall: 207: grep: not found
> /bin/rebaseall: 207: find: not found
> /bin/rebaseall: 207: grep: not found

Hi Dan,

Hmmm, this may become a bit lengthy. Let me try and explain why rebaseall is
needed. Unix like systems use a system call named fork() to create all new
processes by exactly copying the memory content of the current process to
make a new child process, this is fundamental to how shells run programs.
Because msys is the MinGW (GNU gcc compilers on
Windows) shell and is based on Unix principles it needs an emulation of
fork() for Windows. Windows has a different way of creating processes with
the CreateProcess[Ex]() system call which does something very different. One
behaviour of Unix like systems is that in a forked child process any
references shared libraries (like DLLs) are loaded at exactly the same
virtual address in the new process as the old one. This is an
oversimplification as Unix like systems really use a technique called
position independent code but it amounts to the same thing. This means that
code pre-compiled to call shared library routines will continue to work in
the child process. In Windows this can go wrong as DLL code can appear at
different addresses in different processes. The rebase action fixes up the
msys and MinGW DLLs so that does not happen.

So what to do? I suspect that you can install enough of the msys system to
allow the rebseall command to work but it might take a few attempts. 
At least you have the mingw-get tool available now to install new packages.
Try this from a JTSDK msys prompt:

mingw-get install msys-base

and if it works try the procedure to run rebaseall from a dash shell again.

73
Bill
G4WJS.


----------------------------------------------------------------------------
--
Check out the vibrant tech community on one of the world's most engaging
tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
wsjt-devel mailing list
wsjt-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wsjt-devel


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
wsjt-devel mailing list
wsjt-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wsjt-devel

Reply via email to