Re: Updated sysvinit-2.84-3 package available for upload

2003-01-12 Thread Pavel Tsekov
On Sun, 12 Jan 2003, Sergey Okhapkin wrote:

 The release adds missed /bin/pidof.
 
 http://users.rcn.com/sokhapkin/release/sysvinit/setup.hint
 http://users.rcn.com/sokhapkin/release/sysvinit/sysvinit-2.84-3-src.tar.bz2
 http://users.rcn.com/sokhapkin/release/sysvinit/sysvinit-2.84-3.tar.bz2
 
 -1 and -2 releases may be deleted from the download area.

Done. Please, send an announcement in a few hours.




RE: [ANNOUNCEMENT] Server Test 70

2003-01-12 Thread Harold L Hunt II
As a sanity check, try starting without the -multiwindow parameter.  Let us
know if the server comes up at all.

Harold

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of J S
Sent: Sunday, January 12, 2003 4:20 PM
To: [EMAIL PROTECTED]
Subject: Re: [ANNOUNCEMENT] Server Test 70


Links:

I just posted Test 70 to the server development page:
http://xfree86.cygwin.com/devel/shadow/

You can install the Test 70 package via setup.exe by selecting the
'test' package (and be sure to check the 'Bin' box):
XFree86-xserv-4.2.0-18

Server Test Series binary and source code releases are now
available via the sources.redhat.com ftp mirror network
(http://cygwin.com/mirrors.html) in the
pub/cygwin/xfree/devel/shadow/ directory.  You may wish to note the
desired filename in the links below, then download from your
closest mirror (http://cygwin.com/mirrors.html).

Server binary, direct link:
http://www.msu.edu/~huntharo/xwin/shadow/XWin-Test70.exe.bz2 (1196 KiB)

Server source, direct link:
http://www.msu.edu/~huntharo/xwin/shadow/xwin-20030112-1434.tar.bz2 (95
KiB)


Changes:

1) EXPERIMENTAL: New multiwindow mode (invoked with the
``-multiwindow'' command-line parameter) that creates each
top-level X window in a Microsoft Windows window.  Note that there are
still debugging options on in this release, so do not expect
multiwindow mode to be polished enough for everyday use.  (Kensuke
Matsuzaki)


Enjoy,

Harold

Hi Harold,

I've just tried to test it out on my windows machine at home and got a
sefmentation fault.

$ xwin -multiwindow
Segmentation fault (core dumped)

Nothing is written to /tmp/xwin.log and there isn't even a core file.
Not sure what else I can do to debug this.

FYI, I'm using Windows 98 SE, and all my cygwin packages are up to date.

Cheers,

JS.

Sorry just found /tmp/Xwinrl.log is used instead of /tmp/xwin.log. This is
all I got though:

winFinishScreenInitFB - Masks: 00ff ff00 00ff
winInitVisualsShadowGDI - Masks 00ff ff00 00ff BPRGB 8 d 24 bpp
24
winCreateDefColormap - Deferring to fbCreateDefColormap ()
null screen fn ReparentWindow
null screen fn RestackWindow
Queue Size 0 0
winScreenInit - returning
(EE) No primary keyboard configured
(==) Using compiletime defaults for keyboard
Rules = xfree86 Model = pc101 Layout = us Variant = (null) Options =
(n
ull)
DISPLAY=:0.0
Could not init font path element /usr/X11R6/lib/X11/fonts/Speedo/, removing
from
list!
Could not init font path element /usr/X11R6/lib/X11/fonts/Type1/, removing
from
list!
10104218:winCreateWindowMultiWindow
10104218:winPositionWindowMultiWindow
10104218:winChangeWindowAttributesMultiWindow
10104218:winMapWindowMultiWindow
winUpdateWindowsWindow
-winUpdateWindowsWindow


_
The new MSN 8: smart spam protection and 2 months FREE*
http://join.msn.com/?page=features/junkmail




Re: [ANNOUNCEMENT] Server Test 70

2003-01-12 Thread Yadin Y Goldschmidt
Hi Harold,
I would like to report success with windows xp. Multiwindow mode works!
However there is still one problem:
from startxwin.bat I invoke rxvt and this starts fine. If from this rxvt I
start xterm or another rxvt then first time it starts it kind of vibrate non
stop and I have to kill it by clicking on the x on the top right corner. If
I now start again rxvt it starts fine and so are all other windows like
xclock, xcircuit, etc. I don't understand why the first time I invoke
another window it enters into a trans and later instances are fine.
Yadin.
Harold L Hunt II [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
 Links:

 I just posted Test 70 to the server development page:
 http://xfree86.cygwin.com/devel/shadow/

 You can install the Test 70 package via setup.exe by selecting the
 'test' package (and be sure to check the 'Bin' box):
XFree86-xserv-4.2.0-18

 Server Test Series binary and source code releases are now
 available via the sources.redhat.com ftp mirror network
 (http://cygwin.com/mirrors.html) in the
 pub/cygwin/xfree/devel/shadow/ directory.  You may wish to note the
 desired filename in the links below, then download from your
 closest mirror (http://cygwin.com/mirrors.html).

 Server binary, direct link:
 http://www.msu.edu/~huntharo/xwin/shadow/XWin-Test70.exe.bz2 (1196 KiB)

 Server source, direct link:
 http://www.msu.edu/~huntharo/xwin/shadow/xwin-20030112-1434.tar.bz2 (95
KiB)


 Changes:

 1) EXPERIMENTAL: New multiwindow mode (invoked with the
 ``-multiwindow'' command-line parameter) that creates each
 top-level X window in a Microsoft Windows window.  Note that there are
 still debugging options on in this release, so do not expect
 multiwindow mode to be polished enough for everyday use.  (Kensuke
 Matsuzaki)


 Enjoy,

 Harold








[ANNOUNCEMENT] xwinclip Test 08 (Cygwin/XFree86 and Windows clipboard integration)

2003-01-12 Thread Harold L Hunt II
Links:

I just posted Test 08 to the xwinclip development page:
http://xfree86.cygwin.com/devel/xwinclip/

You can install the Test 08 package via setup.exe by selecting the
'release' package (and be sure to check the 'Bin' box):
XFree86-xwinclip-4.2.0-8

xwinclip binary and source code releases are available via the
sources.redhat.com ftp mirror network
(http://cygwin.com/mirrors.html) in the
pub/cygwin/xfree/devel/xwinclip/ directory.  You may wish to note the
desired filename in the links below, then download from your
closest mirror (http://cygwin.com/mirrors.html).

xwinclip binary, direct link:
http://www.msu.edu/~huntharo/xwin/xwinclip/xwinclip-Test08.exe.bz2 (10 KiB)

Server source, direct link:
http://www.msu.edu/~huntharo/xwin/xwinclip/xwinclip-20030112-2032.tar.bz2
(10 KiB)


Changes:

1) Add support for ``-display'' and ``--display'' command-line
parameters.  (Jeremy Wilkins)


Enjoy,

Harold



RE: Patch for multiple monitors

2003-01-12 Thread Harold L Hunt II
Nick,

I am merging your patch right now.

However, I have a few questions.

In winshaddd.c/winAllocateFBShadowDD () (etc.) you load the height and width
(dwHeight, dwWidth) of either the screen or the virtual screen, depending
upon whether we are using multiple monitors or not.  You then use the
equality or non-equality of the height and width of the screen or virtual
screen versus the size specified on the command-line to determine whether or
not to switch the display mode of only the primary display.

That doesn't make much sense.  We really can't be switching modes of any of
the multiple monitors when the size of the virtual screen does not match the
requested size.  I mean, how would we know which monitor to change the
resolution of, and by how much, without some extensive logic that is simply
not present?

I suggest that we leave out the changes in winAllocateFBShadowDD and its
cousins.

Am I simply misunderstanding things, or does this make sense to you too?

Harold

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Nick Crabtree
Sent: Friday, January 10, 2003 11:24 AM
To: [EMAIL PROTECTED]
Subject: Patch for multiple monitors


Hi,

I attach a patch for multiple monitors, diffed against
xwin-20021107-0015. I have added a command-line flag -multiplemonitors
which activates the extra code.

This works on my machine in both windowed and rootless modes for engines
1, 2 and 4. It does not work in fullscreen mode because the defaults for
the fullscreen dimensions are calculated before the command line
parameters are parsed (as far as I could figure out).

It should be possible to make this behaviour the default (SM_CXSCREEN ==
SM_CXVIRTUALSCREEN etc. if there is only one monitor), which would
remove many of the if {} else {} blocks, and also might make fullscreen
mode work

My machine is running Windows 2000. Both my graphics cards are set at
1600x1200 32bit colour. It's great - I'm running KDE in rootless mode,
and I get the kicker across the bottom of both monitors, and I can drag
X windows from one monitor to the other ...

Comments?

Nick

diff -uw ./InitOutput.c
../../x-devel/build/opt/programs/Xserver/hw/xwin/InitOutput.c
--- ./InitOutput.c  2002-11-07 05:21:18.0 +
+++ ../../x-devel/build/opt/programs/Xserver/hw/xwin/InitOutput.c
2003-01-09 16:51:10.0 +
@@ -114,7 +114,8 @@
   /* Zero the memory used for storing the screen info */
   ZeroMemory (g_ScreenInfo, MAXSCREENS * sizeof (winScreenInfo));

-  /* Get default width and height */
+  /* Get default width and height. These will just be for the primary
+ monitor in the case that we have multiple monitors. */
   dwWidth = GetSystemMetrics (SM_CXSCREEN);
   dwHeight = GetSystemMetrics (SM_CYSCREEN);

@@ -139,6 +140,7 @@
   g_ScreenInfo[i].fFullScreen = FALSE;
   g_ScreenInfo[i].fDecoration = TRUE;
   g_ScreenInfo[i].fRootless = FALSE;
+  g_ScreenInfo[i].fMultiplemonitors = FALSE;
   g_ScreenInfo[i].fLessPointer = FALSE;
   g_ScreenInfo[i].fScrollbars = FALSE;
   g_ScreenInfo[i].iE3BTimeout = WIN_E3B_OFF;
@@ -303,6 +305,10 @@
   ErrorF (-rootless\n
  \tEXPERIMENTAL: Run the server in pseudo-rootless mode.\n);

+  ErrorF (-multiplemonitors\n
+ \tEXPERIMENTAL: Use the entire virtual screen if multiple\n
+ \tmonitors are present.\n);
+
   ErrorF (-scrollbars\n
  \tIn windowed mode, allow screens bigger than the Windows
desktop.\n
  \tMoreover, if the window has decorations, one can now
resize\n
@@ -653,6 +659,32 @@
 }

   /*
+   * Look for the '-multiplemonitors' argument
+   */
+  if (strcmp (argv[i], -multiplemonitors) == 0)
+{
+  /* Is this parameter attached to a screen or is it global? */
+  if (-1 == g_iLastScreen)
+   {
+ int   j;
+
+ /* Parameter is for all screens */
+ for (j = 0; j  MAXSCREENS; j++)
+   {
+ g_ScreenInfo[j].fMultiplemonitors = TRUE;
+   }
+   }
+  else
+   {
+ /* Parameter is for a single screen */
+ g_ScreenInfo[g_iLastScreen].fMultiplemonitors = TRUE;
+   }
+
+  /* Indicate that we have processed this argument */
+  return 1;
+}
+
+  /*
* Look for the '-scrollbars' argument
*/
   if (strcmp (argv[i], -scrollbars) == 0)
diff -uw ./win.h ../../x-devel/build/opt/programs/Xserver/hw/xwin/win.h
--- ./win.h 2002-11-07 05:33:17.0 +
+++ ../../x-devel/build/opt/programs/Xserver/hw/xwin/win.h
2003-01-09 16:51:38.0 +
@@ -390,6 +390,7 @@
   Bool fFullScreen;
   Bool fDecoration;
   Bool fRootless;
+  Bool  fMultiplemonitors;
   Bool fLessPointer;
   Bool fScrollbars;
   int  iE3BTimeout;
diff -uw ./wincreatewnd.c
../../x-devel/build/opt/programs/Xserver/hw/xwin/wincreatewnd.c
--- ./wincreatewnd.c2002-10-19 

RE: Patch for multiple monitors

2003-01-12 Thread Harold L Hunt II
Nick,

Before I make an official multi-monitor test release, I want to have you
(and brave others) take a look at this executable and let me know if it
doesn't work as expected:

http://www.msu.edu/~huntharo/xwin/shadow/XWin-MultiMonitors.exe.bz2

Thanks,

Harold




BUSINESS PROPOSAL

2003-01-12 Thread Owen Mubane
Good Day,
With warm heart I offer my friendship, and my greetings, and I hope
this letter meets you in good time. It will be surprising  to you to
receive this proposal from me since you do not know me personally.
However, I am sincerely seeking your confidence in this transaction,
which I propose with my free mind and as a person of integrity.
My name is  Owen Mubane, the first son of Mapele Mubane, of the
most popular black farmer  from Zimbabwe, murdered in the land
dispute in my country. As led by my instict, I decided to contact you
through email, after searching  for contacts via the internet, as it
is the only means I can contact anybody since I am cutting off ties
with Zimbabwe for security and safety reasons.  However, I apologize
if this is not acceptable to you.
The purpose of this letter is to seek your most needed assistance in
a business venture. Due to the land and political problems in
Zimbabwe, as a result of President Robert Mugabe's introduction of
new Land Act Reform wholly affecting the rich white farmers and the
few rich black farmers, and his desire to hold on to power for life,
my father for saw the danger that came in Zimbabwe. Before he was
murdered, he withdrew all of our business foreign accounts in dollars
and sold up our shares in major companies. We then went to
SOUTH AFRICA  to deposit the sum of US$14.5 million
(Fourteen million, Five Hundred thousand US dollars), in a private
security company. This money was deposited with this Private Security
company for safety and security reasons, and  was to be used for the
purchase of land, new machines and chemicals establishment of new
farms in Europe.
President Mugabe's support for the violent  Zimbabwean war veterans
and some lunatics in the society, led to the murder of my beloved
father and other innocent lives. I was continually threatened to
abandon my inheritance from my father after he was murdered. I
resited for a while, but when the danger became unbearable, and I
survived two murder attempts, I fled Zimbabwe.
I am currently staying in the Netherlands where I am seeking
political asylum. In fact my decision to come here to seek asylum, is
because the security company from South Africa, has a branch here,
and they have moved the deposit from their office in Johannesburg down
here. I need to transfer this money to  an account and invest part of
the money. Since the law of Netherlands prohibits a refugee (asylum
seeker) to open any bank account or to be involved in any financial
transaction, this is why  I am seeking a genuine and reliable
partner, whose account this money can be transferred, hence this
proposal to you.You have to understand that this decision taken by me
entrusts my future and in your hands, as a result of the safe keeping
of this money. If you accept to assist me, all I want you to do for
me, is to assist with arrangements to claim the deposit from the
security company from their office here in The Netherlands, as it has
now been transfered from Johannesburg, South Afri!
ca to their branch here. The company will be legally informed of you
representing me.
For your assistance, I have two options for you. Firstly you can
choose to have 10% of the money for your assistance, and helping me
open an account for the money to be deposited here, or you can go
into partnership with me for the proper profitable investment of the
money in your country. Whichever the option you want, please to
notify me in your reply.
I have also set aside 1%($145,000,00) of this money for all kinds of
expenses that come our way in the process of this transaction, and 4%
($580,000,00) for Charity donation. If you prefer to accept the 10%
for assisting with opening an account, then 85%will be left in the
account here for me.
Please, I want you maintain the absolute secrecy for the purpose
of this transaction.
I look forward to your reply and co-operation, and I thank you in
advance as I anticipate your co-operation.You can reach me on my
direct line which is 31 612 722 388 or via email [EMAIL PROTECTED]
Sincerely,
Owen Mubane.  


Re: ntsec: inheritance, sec_acl and chown

2003-01-12 Thread Corinna Vinschen
On Wed, Jan 08, 2003 at 10:31:42PM -0500, Pierre A. Humblet wrote:
 2003/01/07  Pierre Humblet  [EMAIL PROTECTED]
 
   * sec_acl.cc (search_ace): Use id == -1, instead of  0, as wildcard.
   (setacl): Start the search for a matching default at the next entry.
   Invalidate the type of merged entries instead of clearing it.
   Use well_known_creator for default owner and owning group and do 
   not try to merge non-default and default entries in these cases.
   (getacl): Recognize well_known_creator for default owner and group.
   (acl_worker): Improve errno settings and streamline the nontsec case.
   * security.cc (write_sd): Remove the call to set_process_privilege.
   (alloc_sd): If the owner changes, call set_process_privilege and return
   immediately on failure. Change inheritance rules: on new directories add
   inherit only allow ACEs for creator_owner, creator_group and everyone. 
   Preserve all inheritances through chmod and chown calls. Introduce 
   isownergroup to implement the uid == gid case, to keep the inheritance 
   code simple. Do not initialize owner_sid and group_sid and stop using 
   the variable psd.

Finally applied.  Good work, IMHO!

Let's test this a week before releasing 1.3.19, ok?

Corinna

-- 
Corinna Vinschen  Please, send mails regarding Cygwin to
Cygwin Developermailto:[EMAIL PROTECTED]
Red Hat, Inc.



Re: ntsec: inheritance, sec_acl and chown

2003-01-12 Thread Christopher Faylor
On Sun, Jan 12, 2003 at 12:41:14PM +0100, Corinna Vinschen wrote:
On Wed, Jan 08, 2003 at 10:31:42PM -0500, Pierre A. Humblet wrote:
 2003/01/07  Pierre Humblet  [EMAIL PROTECTED]
 
  * sec_acl.cc (search_ace): Use id == -1, instead of  0, as wildcard.
  (setacl): Start the search for a matching default at the next entry.
  Invalidate the type of merged entries instead of clearing it.
  Use well_known_creator for default owner and owning group and do 
  not try to merge non-default and default entries in these cases.
  (getacl): Recognize well_known_creator for default owner and group.
  (acl_worker): Improve errno settings and streamline the nontsec case.
  * security.cc (write_sd): Remove the call to set_process_privilege.
  (alloc_sd): If the owner changes, call set_process_privilege and return
  immediately on failure. Change inheritance rules: on new directories add
  inherit only allow ACEs for creator_owner, creator_group and everyone. 
  Preserve all inheritances through chmod and chown calls. Introduce 
  isownergroup to implement the uid == gid case, to keep the inheritance 
  code simple. Do not initialize owner_sid and group_sid and stop using 
  the variable psd.

Finally applied.  Good work, IMHO!

Let's test this a week before releasing 1.3.19, ok?

AGH.  If I knew that we were going to wait a week, I would have just
released 1.3.19.  1.3.18 has some serious problems that I want to
rectify.

cgf



Re: ntsec: inheritance, sec_acl and chown

2003-01-12 Thread Pierre A. Humblet
At 12:25 PM 1/12/2003 -0500, Christopher Faylor wrote:
On Sun, Jan 12, 2003 at 12:41:14PM +0100, Corinna Vinschen wrote:
Finally applied.  Good work, IMHO!

Let's test this a week before releasing 1.3.19, ok?

AGH.  If I knew that we were going to wait a week, I would have just
released 1.3.19.  1.3.18 has some serious problems that I want to
rectify.

I have been running with it for a while. IMO possible new bugs
won't be as significant as those fixed in 1.3.19. Wait one day? 

Pierre




SysVInit: No symbolic link for /sbin/pidof

2003-01-12 Thread Alex Tribble
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

The Cygwin SysVInit package include the pidof(8) manpage, but no such
command exists. /sbin/pidof should be a symbolic link to
/sbin/killall5

Alex

-BEGIN PGP SIGNATURE-
Version: PGP 8.0 - not licensed for commercial use: www.pgp.com

iQA/AwUBPiEpPG4IsMyAUEajEQIguACeKl9JsaXZvXIXySR4jj9CKijIIakAoO+M
Peu5PzqVor0D8zPofRvDMkw9
=Yjbh
-END PGP SIGNATURE-


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




R: postgres

2003-01-12 Thread Xa
Hi,
yes I dounloded the pic-demon and started it.

By

xaver

-Messaggio originale-
Da: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]Per conto di Elfyn McBratney
Inviato: domenica 12 gennaio 2003 1.46
A: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Oggetto: Re: postgres


 creating directory erro... ok
 creating directory erro/base... ok
 creating directory erro/global... ok
 creating directory erro/pg_xlog... ok
 creating directory erro/pg_clog... ok
 creating template1 database in erro/base/1... IpcSemaphoreCreate:
 semget(key=1, num=17, 03600) failed: Function not implemented

 initdb failed.

This has come up in the list recently. Search the archives for help on this
one. From what I can remember this is caused by not having the ipc-daemon
running... Have you started that?

Elfyn
[EMAIL PROTECTED]


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




Re: SysVInit: No symbolic link for /sbin/pidof

2003-01-12 Thread Sergey Okhapkin
Thanx! I will fix the packaging problem soon.

Sergey Okhapkin
Somerset, NJ
- Original Message -
From: Alex Tribble [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Sunday, January 12, 2003 3:37 AM
Subject: SysVInit: No symbolic link for /sbin/pidof


 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1

 The Cygwin SysVInit package include the pidof(8) manpage, but no such
 command exists. /sbin/pidof should be a symbolic link to
 /sbin/killall5

 Alex

 -BEGIN PGP SIGNATURE-
 Version: PGP 8.0 - not licensed for commercial use: www.pgp.com

 iQA/AwUBPiEpPG4IsMyAUEajEQIguACeKl9JsaXZvXIXySR4jj9CKijIIakAoO+M
 Peu5PzqVor0D8zPofRvDMkw9
 =Yjbh
 -END PGP SIGNATURE-


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




Re: [Mingw-users] Re: Solving the relink exe's libtool problem[take 2]

2003-01-12 Thread Earnie Boyd
Charles Wilson wrote:


There are two places in ltmain.sh where the shell wrapper is directly 
sourced.  This doesn't work very well, because when both foo and 
foo.exe exist, . ./foo ends up sourcing foo.exe -- which is bad.


This can be resolved by ``. ./foo.'' instead for the cygwin/mingw hosts.


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




Blue screen of death on cygwin+win98+./configure

2003-01-12 Thread Bhiksha Raj
Hi All,

Im trying to install TeXmacs on my win98+cygwin laptop.
First I installed the binaries for guile from the cygwin setup
(I have XFree and Tex and all associated libs already)
downloaded TeXmacs sources, ran ./configure and then
gave a make.
I got  the blue screen of death (BSD).
After iterating through several BSDs, I hunted on the web
and found a site that said that static linkages were a problem with
the latest guile and that I must install guile 1.4.1. So I uninstalled
guile,
downloaded the sources for guile 1.4.1, untarred them and
ran
./configure --disable-shared

It runs through several checks, but never completes - insted it
gives me at some point it simply gives me the blue screen of death.
This time around Im not even getting past configure.

Im not sure what to do now.
Any advice at all would be greatly appreciated.

Much thanks
Bhiksha
[EMAIL PROTECTED]

P.S: Ive hunted on the web and faqs for answers and couldnt find
any.

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




Re: Blue screen of death on cygwin+win98+./configure

2003-01-12 Thread Igor Pechtchanski
On Sun, 12 Jan 2003, Bhiksha Raj wrote:

 Hi All,

 Im trying to install TeXmacs on my win98+cygwin laptop.
 First I installed the binaries for guile from the cygwin setup
 (I have XFree and Tex and all associated libs already)
 downloaded TeXmacs sources, ran ./configure and then
 gave a make.
 I got  the blue screen of death (BSD).
 After iterating through several BSDs, I hunted on the web
 and found a site that said that static linkages were a problem with
 the latest guile and that I must install guile 1.4.1. So I uninstalled
 guile,
 downloaded the sources for guile 1.4.1, untarred them and
 ran
 ./configure --disable-shared

 It runs through several checks, but never completes - insted it
 gives me at some point it simply gives me the blue screen of death.
 This time around Im not even getting past configure.

 Im not sure what to do now.
 Any advice at all would be greatly appreciated.

 Much thanks
 Bhiksha
 [EMAIL PROTECTED]

 P.S: Ive hunted on the web and faqs for answers and couldnt find
 any.

Bhiksha,

Just two notes: it is unlikely that anyone will answer your post right
away on a weekend, so repeating your posts is only going to annoy people.
Especially if your second post continues an unrelated thread - it's much
better to start a new one, so people with threaded browsers notice your
post.  Your second message does have a much more descriptive subject,
though.

For further info, see answers to your original post 
http://cygwin.com/ml/cygwin/2003-01/msg00561.html.
Igor
-- 
http://cs.nyu.edu/~pechtcha/
  |\  _,,,---,,_[EMAIL PROTECTED]
ZZZzz /,`.-'`'-.  ;-;;,_[EMAIL PROTECTED]
 |,4-  ) )-,_. ,\ (  `'-'   Igor Pechtchanski
'---''(_/--'  `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

Oh, boy, virtual memory! Now I'm gonna make myself a really *big* RAMdisk!
  -- /usr/games/fortune


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




RE: mean grumpy (cygwin path analysis)

2003-01-12 Thread Igor Pechtchanski
On Sat, 11 Jan 2003, LA Walsh wrote:

  What so it's the list managers fault? The reason you don't
  have to subscribe to this list, I'm guessing, is to make it
  easier for new user's post here instead of *forcing* them to
  sign-up first. If thats being different and violates
  normal expectations then I obviously cannot argue with you
  on this matter. If you send a mail to a mailing list, come to
  realise that you used the wrong address, do you then go back
  and send it again even though it's already got there?
 ===
 Well, not no more...now that I know this list doesn't bounce.

It does.  Just not everyone. ;-)

 [snip]
 The TTY's have gotten fancier, but its still mostly ascii text in
 terminal windows... sorta sad (not mean though..thats different), though
 it could be mean if it was a conspiracy...) :-)

It is.  Pblblblblt!
Igor
-- 
http://cs.nyu.edu/~pechtcha/
  |\  _,,,---,,_[EMAIL PROTECTED]
ZZZzz /,`.-'`'-.  ;-;;,_[EMAIL PROTECTED]
 |,4-  ) )-,_. ,\ (  `'-'   Igor Pechtchanski
'---''(_/--'  `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

Oh, boy, virtual memory! Now I'm gonna make myself a really *big* RAMdisk!
  -- /usr/games/fortune



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




Re: BSOD on cygwin

2003-01-12 Thread Igor Pechtchanski
On Sat, 11 Jan 2003, Bhiksha Raj wrote:

 Hi All,

 I hope this is not the wrong forum for this:

 Im trying to install TeXmacs on my win98+cygwin laptop.
 First I installed the binaries for guile from the cygwin setup
 (I have XFree and Tex and all associated libs already)
 downloaded TeXmacs sources, ran ./configure and then
 gave a make.
 I got  the blue screen of death (BSD).
 After iterating through several BSDs, I hunted on the web
 and found a site that said that static linkages were a problem with
 the latest guile and that I must install guile 1.4.1. So I uninstalled
 guile,
 downloaded the sources for guile 1.4.1, untarred them and
 ran
 ./configure --disable-shared

 It runs through several checks, but never completes - insted it
 gives me at some point it simply gives me the blue screen of death.
 This time around Im not even getting past configure.

 Im not sure what to do now.
 Any advice at all would be greatly appreciated.

 Much thanks
 Bhiksha
 [EMAIL PROTECTED]

Bhiksha,

This is a forum for all problems with Cygwin, so your question fits in
nicely.  To answer it, Cygwin never *causes* a BSOD.  It may expose or
trigger a bug in Windows or some process running with system privileges
(antivirus programs have been blamed a lot), but Cygwin itself doesn't
have enough access to the low-level OS to be able to cause a BSOD.

Try turning off your antivirus program(s) and see if it makes the BSOD go
away.  Another possibility is firewall or VPN software.  The output of
'cygcheck -s -v -r' as a non-inline uncompressed text *attachment*
wouldn't hurt, either (as indicated in http://cygwin.com/bugs/).
Igor
P.S. I'm sure you'll get more and better responses on Monday.
-- 
http://cs.nyu.edu/~pechtcha/
  |\  _,,,---,,_[EMAIL PROTECTED]
ZZZzz /,`.-'`'-.  ;-;;,_[EMAIL PROTECTED]
 |,4-  ) )-,_. ,\ (  `'-'   Igor Pechtchanski
'---''(_/--'  `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

Oh, boy, virtual memory! Now I'm gonna make myself a really *big* RAMdisk!
  -- /usr/games/fortune


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




Re: BSOD on cygwin

2003-01-12 Thread Igor Pechtchanski
On Sun, 12 Jan 2003, Igor Pechtchanski wrote:

 On Sat, 11 Jan 2003, Bhiksha Raj wrote:

  Hi All,
 
  I hope this is not the wrong forum for this:
 
  Im trying to install TeXmacs on my win98+cygwin laptop.
  First I installed the binaries for guile from the cygwin setup
  (I have XFree and Tex and all associated libs already)
  downloaded TeXmacs sources, ran ./configure and then
  gave a make.
  I got  the blue screen of death (BSD).
  After iterating through several BSDs, I hunted on the web
  and found a site that said that static linkages were a problem with
  the latest guile and that I must install guile 1.4.1. So I uninstalled
  guile,
  downloaded the sources for guile 1.4.1, untarred them and
  ran
  ./configure --disable-shared
 
  It runs through several checks, but never completes - insted it
  gives me at some point it simply gives me the blue screen of death.
  This time around Im not even getting past configure.
 
  Im not sure what to do now.
  Any advice at all would be greatly appreciated.
 
  Much thanks
  Bhiksha
  [EMAIL PROTECTED]

 Bhiksha,

 This is a forum for all problems with Cygwin, so your question fits in
 nicely.  To answer it, Cygwin never *causes* a BSOD.  It may expose or
 trigger a bug in Windows or some process running with system privileges
 (antivirus programs have been blamed a lot), but Cygwin itself doesn't
 have enough access to the low-level OS to be able to cause a BSOD.

 Try turning off your antivirus program(s) and see if it makes the BSOD go
 away.  Another possibility is firewall or VPN software.  The output of
 'cygcheck -s -v -r' as a non-inline uncompressed text *attachment*
 wouldn't hurt, either (as indicated in http://cygwin.com/bugs/).
 Igor
 P.S. I'm sure you'll get more and better responses on Monday.

Whoops!  Fingers striving to be independent from the brain...  Make the
above link http://cygwin.com/bugs.html (also at the bottom of every
message).
Igor
-- 
http://cs.nyu.edu/~pechtcha/
  |\  _,,,---,,_[EMAIL PROTECTED]
ZZZzz /,`.-'`'-.  ;-;;,_[EMAIL PROTECTED]
 |,4-  ) )-,_. ,\ (  `'-'   Igor Pechtchanski
'---''(_/--'  `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

Oh, boy, virtual memory! Now I'm gonna make myself a really *big* RAMdisk!
  -- /usr/games/fortune


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




Cygwin Exim

2003-01-12 Thread Aldon Hynes
I've been trying to get exim to run as a service under Windows 2000, using
cygrunsrv.  I found a set of mails on an Exim mailing list from back in 2001
that you had spoken about ways to get this to work.  (ref:
http://www.exim.org/pipermail/exim-users/Week-of-Mon-2009/032420.html
and following)  I've tried changing the /etc/services both in cygwin and in
Windows to have just a single tab.  This hasn't produced any affect.  I've
tried using the -oX 25 option.  When I add that option, I get IPv4 socket
creation failed: Operation not permitted.

I am wondering if either of you have ideas about how to get this to work.
It runs fine when started from the command line, but just won't start as a
service.

Aldon


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




Re: 1.18 mysql+perl+dbi+dbd::mysql

2003-01-12 Thread Gerrit P. Haase
Hallo Nikolayev,

Am Sonntag, 12. Januar 2003 um 07:28 schriebst du:

 I have installed cygwin 1.18, perl 5.6, DBI 1.30, mysql for windows 3.23.54
 But when I tryied to install DBD::mysql, I got some errors with compiling:

 dbdimp.c:632: `MYSQL_OPT_COMPRESS' undeclared (first use in this function)
 dbdimp.c:632: (Each undeclared identifier is reported only once
 dbdimp.c:632: for each function it appears in.)
 dbdimp.c:641: `MYSQL_OPT_CONNECT_TIMEOUT' undeclared (first use in this
 function
 )
 dbdimp.c:652: `MYSQL_READ_DEFAULT_FILE' undeclared (first use in this
 function)
 dbdimp.c:662: `MYSQL_READ_DEFAULT_GROUP' undeclared (first use in this
 function)

 dbdimp.c:729: warning: passing arg 5 of `mysql_real_connect' makes integer
 from
 pointer without a cast
 dbdimp.c:729: warning: passing arg 6 of `mysql_real_connect' makes pointer
 from
 integer without a cast
 dbdimp.c:729: warning: passing arg 7 of `mysql_real_connect' makes integer
 from
 pointer without a cast
 dbdimp.c:729: too many arguments to function `mysql_real_connect'
 dbdimp.c: At top level:
 dbdimp.c:1117: parse error before val
 dbdimp.c: In function `my_ulonglong2str':
 dbdimp.c:1118: `val' undeclared (first use in this function)
 dbdimp.c: In function `mysql_st_fetch':
 dbdimp.c:1523: warning: assignment from incompatible pointer type
 make: *** [dbdimp.o] Error 1

 Did anybody installed DBD::mysql? Or where can I read any information about
 installing cygwin + mysql?


You need to create an importlibrary from libmysqlclient for cygwin and
link against it to build the Cygwin Perl based module.


Gerrit
-- 
=^..^=


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




PATCH: libwin32 0.191 builds and tests on Visual Studio, Cygwin, MinGW and Borland5.5.1

2003-01-12 Thread Rafael Kitover
Located here:

http://www.io.com/~rkitover/libwin32-0.191-port.diff

This patch against libwin32 0.191 was created for one purpose, which it
fulfills:

Allowing a Perl CPAN shell user on Win32, regardless of their build
environment, to type perl -MCPAN -e shell, install Win32 and have it
compiled, tested, installed and working. It is no longer the case that
the modules fail to build under Cygwin, and only half build on MinGW.
Also, all warnings have been cleaned up.

I've used Clive Nicolson's June Cygwin port patch as a reference for the
Cygwin related stuff.

Also, Win32API::File has the new functions: setFilePointer, getFileSize,
GetFileSize and GetOverlappedResult.

The functions setFilePointer and getFileSize are simpler wrappers for
their respective APIs to support 64bitness (either through 64 bit ints
like in the Cygwin 5.8 build, or through Math::BigInt if 64 bit ints are
not available, like in the ActiveState builds and the Cygwin 5.6 build.)

Also added to Win32API::File is a tied file handle interface that allows
using the module as a normal Perl file handle or IO::File object, this
is experimental for now. Buffering and overlapped IO has not been
implemented yet. See APIFile/t/tie.t for an example. Initially it was
created to emulate an OSF handle since Cygwin lacks the _open_osfhandle
function.

Build environments tested:

Latest Cygwin with the new perl 5.8 package

Latest Cygwin with the standard perl 5.6 package (I made the patch with
cygwin 5.8 and AS508 then fixed it to support special cases in 5.6)

ActiveState Perl build 508 with Visual Studio

ActiveState Perl build 506 with Visual Studio

Recent BleedPerl built with visual studio

Recent BleedPerl built with latest MinGW and Gurusamy's dmake

ActiveState Perl source 508 built with Borland BCC55 and dmake


ActiveState Perl 5.005 build 522 (does NOT build Win32.xs, EventLog,
FileSecurity, Job, NetAdmin, OLE, PerfLib and Process).


The test suites have been slightly cleaned up to allow make test to
run through successfully.


Notes:

There are some test-foo.pl and such files that get erroneously picked up
and installed into ../blib/lib.

There is still work to do to make the test suites more comprehensive and
use the standard output format (they can always check for TEST_VERBOSE
for debugging).

It will not build on Perl 5.005 due to some XS incompatibility issues,
I'd be happy to fix that, but does anyone really care?

APIFile/test.pl should be moved under APIFile/t/file.t, and
APIRegistry/test.pl to t/registry.t or something similar. I didn't want
to make the patch any bigger.

The OLE tests seem to leave orphaned Excel processes lying around, not
sure which environments this applies to.

DllMain in ODBC.xs is disabled in the cygwin and mingw builds because of
export issues, it seems work fine without it.

 

It would be incredibly cool if this patch could be applied to the
libwin32 currently on CPAN, as that was its purpose. If there is
anything I can do to make this a reality, please let me know.

 

-- 

Rafael Kitover

(Caelum on EfNet #perl)


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




Re: [Mingw-users] Re: Solving the relink exe's libtool problem[take 2]

2003-01-12 Thread Charles Wilson
Earnie Boyd wrote:

Charles Wilson wrote:



There are two places in ltmain.sh where the shell wrapper is directly 
sourced.  This doesn't work very well, because when both foo and 
foo.exe exist, . ./foo ends up sourcing foo.exe -- which is bad.


This can be resolved by ``. ./foo.'' instead for the cygwin/mingw hosts.


I knew that would work for cygwin, but wasn't sure it would work for 
mingw.  In that case, this portion of the earlier patch:

@@ -5066,8 +5261,12 @@

 	  # If there is no directory component, then add one.
 	  case $file in
-	  */* | *\\*) . $wrapper ;;
-	  *) . ./$wrapper ;;
+	  */* | *\\*) cp ${wrapper} ${wrapper}-lt.sh
+	. ${wrapper}-lt.sh
+	$rm -f ${wrapper}-lt.sh ;;
+	  *) cp ./${wrapper} ./${wrapper}-lt.sh
+	. ./${wrapper}-lt.sh
+	$rm -f ${wrapper}-lt.sh ;;
 	  esac

 	  # Check the variables that should have been set.
@@ -5097,8 +5296,12 @@
 	  relink_command=
 	  # If there is no directory component, then add one.
 	  case $file in
-	  */* | *\\*) . $file ;;
-	  *) . ./$file ;;
+	  */* | *\\*) cp ${wrapper} ${wrapper}-lt.sh
+	. ${wrapper}-lt.sh
+	$rm -f ${wrapper}-lt.sh ;;
+	  *) cp ./${wrapper} ./${wrapper}-lt.sh
+	. ./${wrapper}-lt.sh
+	$rm -f ${wrapper}-lt.sh ;;
 	  esac

 	  outputname=

could be replaced with the attached version, instead (note: attached 
file is NOT a complete patch, and hasn't been tested extensively.)  The 
newer version has the benefit that it avoids the race introduced by the 
above.  I'm not sure it is advisable to change the definition of 
$wrapper itself for cygwin/mingw host, though, so I introduced a new 
variable wrapperdot.

--
Chuck


@@ -5064,10 +5259,17 @@
  notinst_deplibs=
  relink_command=
 
+ # To insure that foo is sourced, and not foo.exe,
+ # finese the cygwin/MSYS system by explicitly sourcing foo.
+ # which disallows the automatic-append-.exe behavior.
+ case $host in
+ *cygwin* | *mingw*) wrapperdot=${wrapper}.
+ *) wrapperdot=${wrapper}
+ esac
  # If there is no directory component, then add one.
  case $file in
- */* | *\\*) . $wrapper ;;
- *) . ./$wrapper ;;
+ */* | *\\*) . ${wrapperdot}
+ *) . ./${wrapperdot}
  esac
 
  # Check the variables that should have been set.
@@ -5095,10 +5297,17 @@
  done
 
  relink_command=
+ # To insure that foo is sourced, and not foo.exe,
+ # finese the cygwin/MSYS system by explicitly sourcing foo.
+ # which disallows the automatic-append-.exe behavior.
+ case $host in
+ *cygwin* | *mingw*) wrapperdot=${wrapper}.
+ *) wrapperdot=${wrapper}
+ esac
  # If there is no directory component, then add one.
  case $file in
- */* | *\\*) . $file ;;
- *) . ./$file ;;
+ */* | *\\*) . ${wrapperdot}
+ *) . ./${wrapperdot}
  esac
 
  outputname=


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


Re: Cygwin Exim

2003-01-12 Thread Pierre A. Humblet
What exim are you using? Is it the precompiled version from
the cygwin distribution or a self-built version?

If you download the distribution version (with setup, look in the
Mail category) and run exim-config you will be offered the 
option to start a service.

The -oX 25 works fine here (WinME). At any rate you don't need it,
25 is the default

I am not sure what you mean about single tab and why you want
to change /etc/services. 

Pierre

At 12:58 PM 1/12/2003 +0100, Aldon Hynes wrote:
I've been trying to get exim to run as a service under Windows 2000, using
cygrunsrv.  I found a set of mails on an Exim mailing list from back in 2001
that you had spoken about ways to get this to work.  (ref:
http://www.exim.org/pipermail/exim-users/Week-of-Mon-2009/032420.html
and following)  I've tried changing the /etc/services both in cygwin and in
Windows to have just a single tab.  This hasn't produced any affect.  I've
tried using the -oX 25 option.  When I add that option, I get IPv4 socket
creation failed: Operation not permitted.

I am wondering if either of you have ideas about how to get this to work.
It runs fine when started from the command line, but just won't start as a
service.

Aldon


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




Re: PATCH: libwin32 0.191 builds and tests on Visual Studio, Cygwin, MinGW and Borland5.5.1

2003-01-12 Thread Michael A Chase
On Sun, 12 Jan 2003 13:50:16 +0100 Rafael Kitover [EMAIL PROTECTED] wrote:

 It would be incredibly cool if this patch could be applied to the
 libwin32 currently on CPAN, as that was its purpose. If there is
 anything I can do to make this a reality, please let me know.

The package maintainer is Gurusamy Sarathy [EMAIL PROTECTED];
talk to him about getting your patch applied to the base source.
It looks like you did a lot of work and I'm sure it will be
appreciated.  I'm sure he'll be glad to include it as long as it
doesn't break anything in the ActivePerl releases.

-- 
Mac :})
** I normally forward private questions to the appropriate mail list. **
Ask Smarter: http://www.tuxedo.org/~esr/faqs/smart-questions.html
Give a hobbit a fish and he eats fish for a day.
Give a hobbit a ring and he eats fish for an age.


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




typo?

2003-01-12 Thread Jean-Baptiste Nivoit
 while looking at cygwin-snapshot-20030109-1
i noticed in winsup/cygwin/ntdll.h that line 336 defines 
 MemoryBaiscVlmInformation as last member of the MEMORY_INFORMATION_CLASS
enum... shouln't that be MemoryBasicVlmInformation instead?

jb.


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




Losing data with routine cp and mv -- cannot create hard link

2003-01-12 Thread Thomas Baker
I use Cygwin 1.3.17, NTFS file systems, and Win2000 (see
excerpt from cygcheck -s below).  Both with cp and mv, I am
getting error messages when copying or moving rather large
directories (1.4 GB, 89,000 files).  For example, the command:

$ cp -Rip p:/rchive q:/

starts off fine, but half-way through the job, error messages such
as the following start to appear:

cp: will not create hard link `q:/rchive/foo/bar' to directory 
`q:/rchive/fli/bers.gif'

..where the both filename A is always a directory name
and filename B (called a directory in the error message)
is usually a file, not a directory.

While showing these messages, cp and mv continue to execute
normally -- with error messages appearing intermittently --
except the directories named by filenames A are not copied,
i.e. the data is lost.  (Good thing I was paying attention
and not running these in batch mode!)

I could not find anything relevant in the mailing list archive
or FAQ.  Can anyone advise?  Is this an inherent limit of
these commands?  Should I perhaps be using xargs?

Tom



Cygwin Win95/NT Configuration Diagnostics
Current System Time: Sun Jan 12 18:41:03 2003

Windows 2000 Professional Ver 5.0 Build 2195 Service Pack 1

SysDir: C:\WINNT\System32
WinDir: C:\WINNT

Cygwin DLL version info:
DLL version: 1.3.17
DLL epoch: 19
DLL bad signal mask: 19005
DLL old termios: 5
DLL malloc env: 28
API major: 0
API minor: 67
Shared data: 3
DLL identifier: cygwin1
Mount registry: 2
Cygnus registry name: Cygnus Solutions
Cygwin registry name: Cygwin
Program options name: Program Options
Cygwin mount registry name: mounts v2
Cygdrive flags: cygdrive flags
Cygdrive prefix: cygdrive prefix
Cygdrive default prefix: 
Build date: Wed Nov 27 18:54:29 EST 2002
Shared id: cygwin1S3

-- 
Dr. Thomas Baker[EMAIL PROTECTED]
Institutszentrum Schloss Birlinghoven  mobile +49-171-408-5784
Fraunhofer-Gesellschaft  work +49-30-8109-9027
53754 Sankt Augustin, Germanyfax +49-2241-144-2352

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




static libs imported into DSO?

2003-01-12 Thread Kent Watsen
Hi all,

I have simple application that I want to link a
plugin into.  The intent is for the plugin the
use the same libraries linked into the main app,
but instead the plugin is linking in its own copy!
This code works as expected using gcc on OpenBSD.
What am I doing wrong?  Can I tell the linker to
ignore unresolved symbols and rld will be ok?


$ uname -a
CYGWIN_NT-5.1 1.3.10(0.51/3/2) 2002-02-25 i686

$ gcc -v
gcc version 2.95.3-5 (cygwin special)


staticlib.h
---
void setVal(int val);
int  getVal(void);


staticlib.c
---
static int VAL = -1;
void setVal(int val) { VAL = val; }
int  getVal(void) { return VAL; }


dynamiclib.c

#include staticlib.h
void foo(void) { printf(val = %d\n, getVal()); }


main.c
--
#include staticlib.h
typedef void Func(void);

int main(void) {
  int   dl;
  Func* func;
  int   result;

  setVal(5);
  printf(val = %d\n, getVal());

  dl = dlopen(./dynamiclib.so);
  if (dl == 0) {
printf(dlopen failed\n);
return 1;
  }

  func = (Func*)dlsym(dl, foo);
  if (func == 0) {
printf(dlsym failed\n);
return 1;
  }

  func();

  result = dlclose(dl);
  if (result != 0) {
printf(dlclose failed\n);
return 1;
  }

  return 0;
}



$ gcc -c staticlib.c
$ gcc main.c staticlib.o
$ gcc -shared dynamiclib.c staticlib.o -o dynamiclib.so
   ^^^
  else undefined ref ---^


$ ./a.exe
val = 5
val = -1 THIS SHOULD HAVE BEEN 5!












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




BUSINESS PROPOSAL

2003-01-12 Thread Owen Mubane
Good Day,

With warm heart I offer my friendship, and my greetings, and I hope
this letter meets you in good time. It will be surprising  to you to
receive this proposal from me since you do not know me personally.
However, I am sincerely seeking your confidence in this transaction,
which I propose with my free mind and as a person of integrity.

My name is  Owen Mubane, the first son of Mapele Mubane, of the
most popular black farmer  from Zimbabwe, murdered in the land
dispute in my country. As led by my instict, I decided to contact you
through email, after searching  for contacts via the internet, as it
is the only means I can contact anybody since I am cutting off ties
with Zimbabwe for security and safety reasons.  However, I apologize
if this is not acceptable to you.

The purpose of this letter is to seek your most needed assistance in
a business venture. Due to the land and political problems in
Zimbabwe, as a result of President Robert Mugabe's introduction of
new Land Act Reform wholly affecting the rich white farmers and the
few rich black farmers, and his desire to hold on to power for life,
my father for saw the danger that came in Zimbabwe. Before he was
murdered, he withdrew all of our business foreign accounts in dollars
and sold up our shares in major companies. We then went to
SOUTH AFRICA  to deposit the sum of US$14.5 million
(Fourteen million, Five Hundred thousand US dollars), in a private
security company. This money was deposited with this Private Security
company for safety and security reasons, and  was to be used for the
purchase of land, new machines and chemicals establishment of new
farms in Europe.

President Mugabe's support for the violent  Zimbabwean war veterans
and some lunatics in the society, led to the murder of my beloved
father and other innocent lives. I was continually threatened to
abandon my inheritance from my father after he was murdered. I
resited for a while, but when the danger became unbearable, and I
survived two murder attempts, I fled Zimbabwe.

I am currently staying in the Netherlands where I am seeking
political asylum. In fact my decision to come here to seek asylum, is
because the security company from South Africa, has a branch here,
and they have moved the deposit from their office in Johannesburg down
here. I need to transfer this money to  an account and invest part of
the money. Since the law of Netherlands prohibits a refugee (asylum
seeker) to open any bank account or to be involved in any financial
transaction, this is why  I am seeking a genuine and reliable
partner, whose account this money can be transferred, hence this
proposal to you.You have to understand that this decision taken by me
entrusts my future and in your hands, as a result of the safe keeping
of this money. If you accept to assist me, all I want you to do for
me, is to assist with arrangements to claim the deposit from the
security company from their office here in The Netherlands, as it has
now been transfered from Johannesburg, South Afri!
ca to their branch here. The company will be legally informed of you
representing me.

For your assistance, I have two options for you. Firstly you can
choose to have 10% of the money for your assistance, and helping me
open an account for the money to be deposited here, or you can go
into partnership with me for the proper profitable investment of the
money in your country. Whichever the option you want, please to
notify me in your reply.

I have also set aside 1%($145,000,00) of this money for all kinds of
expenses that come our way in the process of this transaction, and 4%
($580,000,00) for Charity donation. If you prefer to accept the 10%
for assisting with opening an account, then 85%will be left in the
account here for me.

Please, I want you maintain the absolute secrecy for the purpose
of this transaction.

I look forward to your reply and co-operation, and I thank you in
advance as I anticipate your co-operation.You can reach me on my
direct line which is 31 612 722 388 or via email [EMAIL PROTECTED]

Sincerely,

Owen Mubane.

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


RE: mean grumpy (cygwin path analysis)

2003-01-12 Thread linda w \(cyg\)

 From: Igor Pechtchanski [mailto:[EMAIL PROTECTED]] 
  The TTY's have gotten fancier, but its still mostly ascii text in terminal windows 
though it could be mean if it was a
conspiracy...) :-)
 
 It is.  Pblblblblt!
   Igor
---
--- originally it was designed to be a perfect human world were nobody 
suffered and everyone would be happy [one large
3-dimensional GUI where humans could just think of what they wanted and it would 
appear; no famine, no hunger, everyone having
limitless wealth].  There was a disaster -- no one would accept the program, entire 
crops were lost.  Some believed that we lacked
the programming language to describe your perfect world, but I believe that human 
beings, as a species, define their reality through
misery and SUFfering [; argumentationm, domination, inflicting those on each other].  
The perfect world was a dream that your
primitive cerebrum kept trying to...wake up from, which was why ~things~ were 
redesigned [over time] to this [what we have now],
...the peak of your civilization... with ASCII text. 

I guess I should go back to 1 tty window/screen with green text now, so I can 
start getting used to it. 

-l

(how long before some secret service looking types come knocking on my door for 
'questioning'...)



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




Default Text File Type

2003-01-12 Thread Michael Hipp
Could someone explain the meaning and implications of the Setup option to
select Default Text File Type ( DOS or Unix)? I couldn't find it in the FAQ
or User's Manual.

Thanks.


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




Re: Default Text File Type

2003-01-12 Thread Max Bowsher
Michael Hipp wrote:
 Could someone explain the meaning and implications of the Setup
 option to select Default Text File Type ( DOS or Unix)? I couldn't
 find it in the FAQ or User's Manual.

It affects the text/binary flag on the mounts that setup creates.
http://cygwin.com/cygwin-ug-net/using-textbinary.html
has more info on how this affects things.

Max.


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




Re: Default Text File Type

2003-01-12 Thread Michael A Chase
On Sun, 12 Jan 2003 14:25:19 -0600 Michael Hipp [EMAIL PROTECTED] wrote:

 Could someone explain the meaning and implications of the Setup option to
 select Default Text File Type ( DOS or Unix)? I couldn't find it in the
 FAQ or User's Manual.

http://cygwin.com/faq/faq.html#TOC74

http://cygwin.com/cygwin-ug-net/highlights.html#OV-HI-TEXTVSBINARY

-- 
Mac :})
** I normally forward private questions to the appropriate mail list. **
Ask Smarter: http://www.tuxedo.org/~esr/faqs/smart-questions.html
Give a hobbit a fish and he eats fish for a day.
Give a hobbit a ring and he eats fish for an age.


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




/sbin/genksyms

2003-01-12 Thread DEEPA SIVASANKARANE
Hi all,

   I looked for this utility in Setup search could'nt find 
it. Would any one know in which pkg, this sbin utility would
be ?

   I looked up the binutils pkg.. etc..

thanx,
Deepa

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




Re: /sbin/genksyms

2003-01-12 Thread Elfyn McBratney
I looked for this utility in Setup search could'nt find
 it. Would any one know in which pkg, this sbin utility would
 be ?

genksyms is a linux kernel module support binary and is not distributed with
cygwin.

Elfyn
[EMAIL PROTECTED]




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




Re: FW: Sed Script works in 3.02-1, fails in 4.0.1-1

2003-01-12 Thread Peter S Tillier
- Original Message -
From: Randall R Schulz [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, January 10, 2003 4:30 PM
Subject: Re: FW: Sed Script works in 3.02-1, fails in 4.0.1-1


 Dwight,

 I can reproduce your problem using sed 4.0.1, assuming sed actually
gets
 some input (if there's no input on standard input, the diagnostic does
not
 occur). Changing the pattern separators does not cure the problem.
 Replicating the address range pattern (.BLOCKQUOTE) in the empty
 substitute target pattern does not help.

 I'm not a total SED junkie, so maybe there's something I'm overlooking
 here, but it does appear to me to be a bug.

 Randall Schulz


 At 07:41 2003-01-10, Dwight Neal wrote:

 I included the WRONG sed script with the original message.
 
 Attached is the correct one--that is, the one that creates the
fuss--,
 with the (obviously) missing RE.
 
 Sorry to waste your time on that--I had been doing a lot of testing
and
 forgot I fiddled with the script.
 
 Thanks,
 Dwight Neal

I can reproduce the problem too, but I'm not sure that this is
a bug.  When you use an address range such as

1,/.BLOCKQUOTE/

there will only be a previously compiled RE when the

/.BLOCKQUOTE/

part of the address is matched, hence the error message from
GNU sed 4.  Oddly enough GNU sed v3.02.80 seems quite happy
with this form of address pattern.  I think that the bug, if
anywhere, is in earlier versions of sed.

If what you are trying to do is replace /BLOCKQUOTE with
the string (which will have wrapped in the posting)

font face=verdana size=2When installation completes, click a
href=..\\..\\Update.asphere \/ato return.\/font\/BLOCKQUOTE

then you don't really need the 1, part of the address.

If you only want to change the first occurrence then you would
need to reorganize the script (or use another tool which makes
it easier to do so, such as awk).

HTH
Peter S Tillier


__
Do You Yahoo!?
Everything you'll ever need on one web page
from News and Sport to Email and Music Charts
http://uk.my.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/




Pipelines and return codes

2003-01-12 Thread Rolf Campbell
/home/rcampbell (true | true)  echo true || echo false
true
/home/rcampbell (true | false)  echo true || echo false
false
/home/rcampbell (false | true)  echo true || echo false
true
/home/rcampbell (false | false)  echo true || echo false
false

The third test above yields different results when run on Linux.  I'm
wondering if this was the desired result or not?  (This is not a new
problem, it's been around for at least a year of releases).  It makes
some makefiles not work as expected, specifically, the GCC manual
describes how to perform auto-dependency analysis like:

gcc ... | sed ...

But, if gcc fails, sed will still work, thus make will not consider it a
failure and will continue.

I know there are many ways to avoid this specific problem, already
implemented one.  Just wanted to let you guys know.


-Rolf Campbell
Software Designer
Tropic Networks

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




Return codes and pipelines

2003-01-12 Thread Rolf Campbell
/home/rcampbell (true | true)  echo true || echo false
true
/home/rcampbell (true | false)  echo true || echo false 
false 
/home/rcampbell (false | true)  echo true || echo false 
true 
/home/rcampbell (false | false)  echo true || echo false 
false

The third test above yields different results when run on Linux.  I'm
wondering if this was the desired result or not?  (This is not a new
problem, it's been around for at least a year of releases).  It makes
some makefiles not work as expected, specifically, the GCC manual
describes how to perform auto-dependency analysis like:

gcc ... | sed ...

But, if gcc fails, sed will still work, thus make will not consider it a
failure and will continue.

I know there are many ways to avoid this specific problem, already
implemented one.  Just wanted to let you guys know.


-Rolf Campbell
Software Designer
Tropic Networks

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




Setting up cvs on Windows 2000

2003-01-12 Thread Melonie Brown
Environment: Windows 2000, sp3

I downloaded and installed cygwin.
I followed the steps outlined in
http://www.adamswann.com/library/2001/Cygwin-Inetd.html
From the cygwin prompt, I can create repositories, check in, check out
files, etc.  I can telnet remotely to that system and connect with my
system login and password (not to cvs - just the system). That all seems
to work just fine.

The problem is in trying to set up my system to behave as a cvs server
with pserver.  If I do a telnet localhost 2401, I get  
connected to [computername]
Escape character is '^]'.
Connection closed by foreign host

I'm not getting a prompt to login, authorization failures or anything
along those lines.  It just doesn't work - which leads me to believe
that I'm missing an important configuration step.  Suggestions would be
greatly appreciated.  I have scoured the archives and google and just
don't see what I'm missing.

Please help.

Melonie Brown






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




Re: Return codes and pipelines

2003-01-12 Thread Randall R Schulz
Rolf,

One posting is enough, really.

There is no guaranteed or specified parent child relationship between the 
processes in a pipeline. This means that you cannot predict which process's 
status will be the one returned as that of the pipeline as a whole.

You can force this in your contrived example by adding an exit call.

All of these will print true:

(true | true; exit 0)  echo true || echo false
(false | true; exit 0)  echo true || echo false
(true | false; exit 0)  echo true || echo false
(false | false; exit 0)  echo true || echo false


Randall Schulz


At 14:09 2003-01-12, Rolf Campbell wrote:
/home/rcampbell (true | true)  echo true || echo false
true
/home/rcampbell (true | false)  echo true || echo false
false
/home/rcampbell (false | true)  echo true || echo false
true
/home/rcampbell (false | false)  echo true || echo false
false

The third test above yields different results when run on Linux.  I'm
wondering if this was the desired result or not?  (This is not a new
problem, it's been around for at least a year of releases).  It makes
some makefiles not work as expected, specifically, the GCC manual
describes how to perform auto-dependency analysis like:

gcc ... | sed ...

But, if gcc fails, sed will still work, thus make will not consider it a
failure and will continue.

I know there are many ways to avoid this specific problem, already
implemented one.  Just wanted to let you guys know.


-Rolf Campbell



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




Re: Setting up cvs on Windows 2000

2003-01-12 Thread Elfyn McBratney
 The problem is in trying to set up my system to behave as a cvs server
 with pserver.  If I do a telnet localhost 2401, I get
 connected to [computername]
 Escape character is '^]'.
 Connection closed by foreign host

When you telnet to port 2401 (the pserver) your not supposed to actually get
a login prompt like telnet or ftp gives you. The pserver will just wait for
the auth protocol. What happens when you try `cvs -d
:pserver:USER@SERVER:/path/to/cvsroot login'?

If that doesn't work you may have a mis-configuration... How did you set up
inetd? Here's my cvspserver directive in inetd.conf:

  cvspserver stream tcp nowait root /usr/bin/cvs cvs --allow-root=/repos/cvs
pserver

Also have you added the following to your
C:WINNT\system32\drivers\etc\services?

  cvspserver   2401/tcp

Elfyn
[EMAIL PROTECTED]




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




Re: Setting up cvs on Windows 2000

2003-01-12 Thread Larry Hall (RFK Partners, Inc)
At 05:18 PM 1/12/2003, Melonie Brown wrote:
Environment: Windows 2000, sp3

I downloaded and installed cygwin.
I followed the steps outlined in
http://www.adamswann.com/library/2001/Cygwin-Inetd.html


That's fine if that's what you want to do but you should realize the 
following:

   1. The directions you used are not from the Cygwin site.  We can't 
  validate or support information that doesn't come from the Cygwin
  site.  If you have questions about the information given by this
  site, you should contact the site's creator directly.  If you think
  the information at this site is useful and should be available at
  the Cygwin site so this list can support it, please ask the owner
  to provide this documentation to the Cygwin project.

   2. There is documentation that come with Cygwin's inetutils 
  (/usr/doc/Cygwin/inetutils-1.3.2.README) which describes the inetutils
  installation.  Questions/issues you have about this documentation can
  be directed to this list.

As a matter of general operation, this list doesn't entertain inquiries 
about other sites' information, even if the information is related to 
Cygwin.



Larry Hall  [EMAIL PROTECTED]
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/




Re: Cygwin Exim

2003-01-12 Thread Greg Matheson
On Sun, 12 Jan 2003, Pierre A. Humblet wrote:

  http://www.exim.org/pipermail/exim-users/Week-of-Mon-2009/032420.html

 The -oX 25 works fine here (WinME). At any rate you don't need it,
 25 is the default

 I am not sure what you mean about single tab and why you want
 to change /etc/services. 

He was reading some advice to Gerrit Haase to put tabs instead of
spaces in /etc/services to get exim working on cygwin.

-- 
Greg MathesonThose who can do.
Chinmin College  Those who can't operate.
 --G B Shaw
Taiwan Penpals Archive URL: http://penpals.chinmin.edu.tw/

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




Re: Setting up cvs on Windows 2000

2003-01-12 Thread Randall R Schulz
Elfyn, Melonie,

Unless something has changed that escaped my attention, what has repeatedly 
been stated here (though no time very recently) is that Cygwin CVS does not 
support the pserver access mode. The recommendation has been to use the 
external access mode via SSH.

If that has changed, it would be nice, but as I said, I haven't heard about it.

Randall Schulz


At 14:58 2003-01-12, Elfyn McBratney wrote:
 The problem is in trying to set up my system to behave as a cvs server
 with pserver.  If I do a telnet localhost 2401, I get
 connected to [computername]
 Escape character is '^]'.
 Connection closed by foreign host

When you telnet to port 2401 (the pserver) your not supposed to actually get
a login prompt like telnet or ftp gives you. The pserver will just wait for
the auth protocol. What happens when you try `cvs -d
:pserver:USER@SERVER:/path/to/cvsroot login'?

If that doesn't work you may have a mis-configuration... How did you set up
inetd? Here's my cvspserver directive in inetd.conf:

  cvspserver stream tcp nowait root /usr/bin/cvs cvs --allow-root=/repos/cvs
pserver

Also have you added the following to your
C:WINNT\system32\drivers\etc\services?

  cvspserver   2401/tcp

Elfyn
[EMAIL PROTECTED]



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




Re: BSOD on cygwin

2003-01-12 Thread Bhiksha Raj
Hi,

First I must apologize for my multiple posts earlier.
I wasnt sure if the first one had gone through, since I never
got a copy myself. So I figured Id messed up and posted again.

Anyway,
the problem (as I mentioned earlier) is that on my windows 98
machine, with the latest cygwin, I get a blue screen of death
when I try to run configure --disable-shared on guile-1.4.1.
(Im using 1.4.1 because Im tyring to compile TeXmacs).

Ive since dug around a bit, crashed my machine a hunded times,
and collected logs. I found that the configure script dies
on line 4791, at a line that goes 
if sort conftest.nm|uniq  conftest.ntM;then

I get an empty conftest.nmT and the machine dies.
I tried running the same command from command line. The first time
I ran it, my cygwin window froze (although my machine didnt die),
but thereafter Ive been able to run it from command line.
However, running the configure script kills the machine at the
uniq again.

Im attaching the configure script, the config.log, and the 
conftest.nm files (the conftest.nmT file I get is empty).
I hope this is not bad practice, but I figure they would help
find the problem.
The tail of the config.log file should indicate where exactly
my machine dies (every time!).
Also, as per Igor Pechtchanski's suggestion, I ran a cygcheck -s -v -r and
am attaching the output.

Curiously, cygcheck -s -v -r gave me output the first time I
ran it. Afterwards, running the command simply gives me no output
at all - it simply runs silently and comes back. Im not sure why
this is so - I was pretty sure it was supposed to repeat the
information everytime I ran it. I hope this doesnt indicate a
bug with my setup.

Many thanks for any and all help in this issue.

Regards,
Bhiksha
[EMAIL PROTECTED]


On Sun, Jan 12, 2003 at 10:40:48AM -0500, Igor Pechtchanski wrote:
 On Sun, 12 Jan 2003, Igor Pechtchanski wrote:
 
  On Sat, 11 Jan 2003, Bhiksha Raj wrote:
 
   Hi All,
  
   I hope this is not the wrong forum for this:
  
   Im trying to install TeXmacs on my win98+cygwin laptop.
   First I installed the binaries for guile from the cygwin setup
   (I have XFree and Tex and all associated libs already)
   downloaded TeXmacs sources, ran ./configure and then
   gave a make.
   I got  the blue screen of death (BSD).
   After iterating through several BSDs, I hunted on the web
   and found a site that said that static linkages were a problem with
   the latest guile and that I must install guile 1.4.1. So I uninstalled
   guile,
   downloaded the sources for guile 1.4.1, untarred them and
   ran
   ./configure --disable-shared
  
   It runs through several checks, but never completes - insted it
   gives me at some point it simply gives me the blue screen of death.
   This time around Im not even getting past configure.
  
   Im not sure what to do now.
   Any advice at all would be greatly appreciated.
  
   Much thanks
   Bhiksha
   [EMAIL PROTECTED]
 
  Bhiksha,
 
  This is a forum for all problems with Cygwin, so your question fits in
  nicely.  To answer it, Cygwin never *causes* a BSOD.  It may expose or
  trigger a bug in Windows or some process running with system privileges
  (antivirus programs have been blamed a lot), but Cygwin itself doesn't
  have enough access to the low-level OS to be able to cause a BSOD.
 
  Try turning off your antivirus program(s) and see if it makes the BSOD go
  away.  Another possibility is firewall or VPN software.  The output of
  'cygcheck -s -v -r' as a non-inline uncompressed text *attachment*
  wouldn't hurt, either (as indicated in http://cygwin.com/bugs/).
  Igor
  P.S. I'm sure you'll get more and better responses on Monday.
 
 Whoops!  Fingers striving to be independent from the brain...  Make the
 above link http://cygwin.com/bugs.html (also at the bottom of every
 message).
   Igor
 -- 
   http://cs.nyu.edu/~pechtcha/
   |\  _,,,---,,_  [EMAIL PROTECTED]
 ZZZzz /,`.-'`'-.  ;-;;,_  [EMAIL PROTECTED]
  |,4-  ) )-,_. ,\ (  `'-' Igor Pechtchanski
 '---''(_/--'  `-'\_) fL   a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!
 
 Oh, boy, virtual memory! Now I'm gonna make myself a really *big* RAMdisk!
   -- /usr/games/fortune
 
 
 --
 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/
 


Cygwin Win95/NT Configuration Diagnostics
Current System Time: Sun Jan 12 11:25:03 2003

Windows 98 SE Ver 4.10 Build  

Path:   .
c:\WINDOWS
c:\windows
c:\windows\COMMAND
c:\MATLABR11\BIN
C:\downloads\cygwin\bin
c:\DOWNLOADS\JAVA\J2SDK1.4.0_03\BIN
c:\DOWNLOADS\EMACS-20.7\BIN
C:\downloads\cygwin\usr\X11R6\bin
C:\downloads\cygwin\usr\local\bin

SysDir: C:\WINDOWS\SYSTEM
WinDir: C:\WINDOWS

Here's some environment 

[ANNOUNCEMENT] Updated sysvinit package available for download

2003-01-12 Thread Sergey Okhapkin
Updated sysvinit-2.84-3 package available for download.

What's new:
- added /bin/pidof (symlink to /sbin/killall5)

To install/upgrade the package, click on the Install Cygwin now link on
the http://cygwin.com/ web page.  This downloads setup.exe to your
system.  Then, run setup and answer all of the questions.  You'll find
sysvinit listed in the System category.

If you have questions or comments, please send them to the Cygwin
mailing list at: [EMAIL PROTECTED] .  I would appreciate it if you would
use this mailing list rather than emailing me directly.


Sergey Okhapkin
Somerset, NJ



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




Re: Setting up cvs on Windows 2000

2003-01-12 Thread Elfyn McBratney
 Unless something has changed that escaped my attention, what
 has repeatedly been stated here (though no time very recently)
 is that Cygwin CVS does not support the pserver access
 mode. The recommendation has been to use the external
 access mode via SSH.

Aaaah I didn't know that :( The reason I offered help is because I have had
a pserver working on my local machine for about a week now. And although I
haven't had the time to test it extensively cvs login,checkout,commit etc.
seems to be working reasonably well. I don't think I'm doing anything out of
the ordinary so i wonder why it's working for me ;-)

Elfyn
[EMAIL PROTECTED]



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




Re: BSOD on cygwin

2003-01-12 Thread Larry Hall (RFK Partners, Inc)
Perhaps someone else running Win98 will be able to confirm or deny 
the problems you're seeing.  I'm guessing that others will only be 
able to 'deny'.  As mentioned, BSOD is an O/S issue/bug, which means
it's at least difficult to resolve in application software and is
certainly much better resolved in the O/S itself (or quite possibly 
software drivers).  Certainly in the case that the problem is caused
by drivers (and AV software uses these too), the problem software is
not necessarily installed on a 'typical' Win 98 machine, which is why
I said I expect others won't be able to confirm your results.  I'd 
highly recommend following Igor's suggestions.  The fact that you 
can't get cygcheck to run correctly for you again makes me highly
suspicious that something on your system other than Cygwin is actually
causing your problem.  In my opinion, you're more likely to find the
source of your problem by looking outside of Cygwin.



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


At 06:34 PM 1/12/2003, Bhiksha Raj wrote:
Hi,

First I must apologize for my multiple posts earlier.
I wasnt sure if the first one had gone through, since I never
got a copy myself. So I figured Id messed up and posted again.

Anyway,
the problem (as I mentioned earlier) is that on my windows 98
machine, with the latest cygwin, I get a blue screen of death
when I try to run configure --disable-shared on guile-1.4.1.
(Im using 1.4.1 because Im tyring to compile TeXmacs).

Ive since dug around a bit, crashed my machine a hunded times,
and collected logs. I found that the configure script dies
on line 4791, at a line that goes 
if sort conftest.nm|uniq  conftest.ntM;then

I get an empty conftest.nmT and the machine dies.
I tried running the same command from command line. The first time
I ran it, my cygwin window froze (although my machine didnt die),
but thereafter Ive been able to run it from command line.
However, running the configure script kills the machine at the
uniq again.

Im attaching the configure script, the config.log, and the 
conftest.nm files (the conftest.nmT file I get is empty).
I hope this is not bad practice, but I figure they would help
find the problem.
The tail of the config.log file should indicate where exactly
my machine dies (every time!).
Also, as per Igor Pechtchanski's suggestion, I ran a cygcheck -s -v -r and
am attaching the output.

Curiously, cygcheck -s -v -r gave me output the first time I
ran it. Afterwards, running the command simply gives me no output
at all - it simply runs silently and comes back. Im not sure why
this is so - I was pretty sure it was supposed to repeat the
information everytime I ran it. I hope this doesnt indicate a
bug with my setup.

Many thanks for any and all help in this issue.

Regards,
Bhiksha
[EMAIL PROTECTED]


On Sun, Jan 12, 2003 at 10:40:48AM -0500, Igor Pechtchanski wrote:
  On Sun, 12 Jan 2003, Igor Pechtchanski wrote:
  
   On Sat, 11 Jan 2003, Bhiksha Raj wrote:
  
Hi All,
   
I hope this is not the wrong forum for this:
   
Im trying to install TeXmacs on my win98+cygwin laptop.
First I installed the binaries for guile from the cygwin setup
(I have XFree and Tex and all associated libs already)
downloaded TeXmacs sources, ran ./configure and then
gave a make.
I got  the blue screen of death (BSD).
After iterating through several BSDs, I hunted on the web
and found a site that said that static linkages were a problem with
the latest guile and that I must install guile 1.4.1. So I uninstalled
guile,
downloaded the sources for guile 1.4.1, untarred them and
ran
./configure --disable-shared
   
It runs through several checks, but never completes - insted it
gives me at some point it simply gives me the blue screen of death.
This time around Im not even getting past configure.
   
Im not sure what to do now.
Any advice at all would be greatly appreciated.
   
Much thanks
Bhiksha
[EMAIL PROTECTED]
  
   Bhiksha,
  
   This is a forum for all problems with Cygwin, so your question fits in
   nicely.  To answer it, Cygwin never *causes* a BSOD.  It may expose or
   trigger a bug in Windows or some process running with system privileges
   (antivirus programs have been blamed a lot), but Cygwin itself doesn't
   have enough access to the low-level OS to be able to cause a BSOD.
  
   Try turning off your antivirus program(s) and see if it makes the BSOD go
   away.  Another possibility is firewall or VPN software.  The output of
   'cygcheck -s -v -r' as a non-inline uncompressed text *attachment*
   wouldn't hurt, either (as indicated in http://cygwin.com/bugs/).
   Igor
   P.S. I'm sure you'll get more and better responses on Monday.
  
  Whoops!  Fingers striving to be 

Re: BSOD on cygwin

2003-01-12 Thread Elfyn McBratney
 Curiously, cygcheck -s -v -r gave me output the first time I
 ran it. Afterwards, running the command simply gives me no output
 at all - it simply runs silently and comes back. Im not sure why
 this is so - I was pretty sure it was supposed to repeat the
 information everytime I ran it. I hope this doesnt indicate a
 bug with my setup.

It's also weird that your mount table has root (/) down three times. Twice
as . and once as C:/downloads/cygwin.

Elfyn
[EMAIL PROTECTED]




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




RE: Setting up cvs on Windows 2000

2003-01-12 Thread Melonie Brown
Elfwyn,

Thanks for the speedy reply! Based on some of the other posts in the
mailing list, I was indeed expecting to see some sort of prompt when I
telnetted.

If I try the cvs -d :pserver:USER@SERVER:/path/to/cvsroot login' command
as you suggested, I get prompted for the login id and password (which
are subsequently rejected), but that's another problem in and of
itself...  So it looks like my setup was correct after all.

Melonie

-Original Message-
From: Elfyn McBratney [mailto:[EMAIL PROTECTED]] 
Sent: Sunday, January 12, 2003 5:59 PM
To: cygwin; Melonie Brown
Subject: Re: Setting up cvs on Windows 2000


 The problem is in trying to set up my system to behave as a cvs server

 with pserver.  If I do a telnet localhost 2401, I get connected to 
 [computername] Escape character is '^]'.
 Connection closed by foreign host

When you telnet to port 2401 (the pserver) your not supposed to actually
get a login prompt like telnet or ftp gives you. The pserver will just
wait for the auth protocol. What happens when you try `cvs -d
:pserver:USER@SERVER:/path/to/cvsroot login'?

If that doesn't work you may have a mis-configuration... How did you set
up inetd? Here's my cvspserver directive in inetd.conf:

  cvspserver stream tcp nowait root /usr/bin/cvs cvs
--allow-root=/repos/cvs pserver

Also have you added the following to your
C:WINNT\system32\drivers\etc\services?

  cvspserver   2401/tcp

Elfyn
[EMAIL PROTECTED]





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




Compiling Mutt from CVS

2003-01-12 Thread Joshua M. Kwan
Hi,

How did you folks manage to compile the version of Mutt that is in the 
Cygwin package repository? I just checked out 1.5 CVS and tried to build 
it and it had a LOT of libc6-specific stuff. In fact, I had to run 
prepare on a linux computer to even get a useable ./configure. (it would 
burp on one line expecting a ])

Please CC me as I am not subscribed to this list.

Regards
Josh



msg15891/pgp0.pgp
Description: PGP signature


Re: Setting up cvs on Windows 2000

2003-01-12 Thread Randall R Schulz
Elfyn,

I neglected to mention that it has also been reported that some, through 
heroic effort, have managed to get pserver working. Details of their 
arduousness were not reported, however.

Searching for CVS, pserver, external and / or SSH will help you 
zero in on the pertinent messages to the Cygwin mailing list.

It's possible that ongoing improvements in Cygwin have made pserver work 
(with less effort). Since I know nothing of the problems that impaired 
pserver function, I can only offer this as a guess.

Randall Schulz


At 15:53 2003-01-12, Elfyn McBratney wrote:
 Unless something has changed that escaped my attention, what
 has repeatedly been stated here (though no time very recently)
 is that Cygwin CVS does not support the pserver access
 mode. The recommendation has been to use the external
 access mode via SSH.

Aaaah I didn't know that :( The reason I offered help is because I have had
a pserver working on my local machine for about a week now. And although I
haven't had the time to test it extensively cvs login,checkout,commit etc.
seems to be working reasonably well. I don't think I'm doing anything out of
the ordinary so i wonder why it's working for me ;-)

Elfyn
[EMAIL PROTECTED]



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




BUSINESS PROPOSAL

2003-01-12 Thread Owen Mubane
Good Day,
With warm heart I offer my friendship, and my greetings, and I hope
this letter meets you in good time. It will be surprising  to you to
receive this proposal from me since you do not know me personally.
However, I am sincerely seeking your confidence in this transaction,
which I propose with my free mind and as a person of integrity.
My name is  Owen Mubane, the first son of Mapele Mubane, of the
most popular black farmer  from Zimbabwe, murdered in the land
dispute in my country. As led by my instict, I decided to contact you
through email, after searching  for contacts via the internet, as it
is the only means I can contact anybody since I am cutting off ties
with Zimbabwe for security and safety reasons.  However, I apologize
if this is not acceptable to you.
The purpose of this letter is to seek your most needed assistance in
a business venture. Due to the land and political problems in
Zimbabwe, as a result of President Robert Mugabe's introduction of
new Land Act Reform wholly affecting the rich white farmers and the
few rich black farmers, and his desire to hold on to power for life,
my father for saw the danger that came in Zimbabwe. Before he was
murdered, he withdrew all of our business foreign accounts in dollars
and sold up our shares in major companies. We then went to
SOUTH AFRICA  to deposit the sum of US$14.5 million
(Fourteen million, Five Hundred thousand US dollars), in a private
security company. This money was deposited with this Private Security
company for safety and security reasons, and  was to be used for the
purchase of land, new machines and chemicals establishment of new
farms in Europe.
President Mugabe's support for the violent  Zimbabwean war veterans
and some lunatics in the society, led to the murder of my beloved
father and other innocent lives. I was continually threatened to
abandon my inheritance from my father after he was murdered. I
resited for a while, but when the danger became unbearable, and I
survived two murder attempts, I fled Zimbabwe.
I am currently staying in the Netherlands where I am seeking
political asylum. In fact my decision to come here to seek asylum, is
because the security company from South Africa, has a branch here,
and they have moved the deposit from their office in Johannesburg down
here. I need to transfer this money to  an account and invest part of
the money. Since the law of Netherlands prohibits a refugee (asylum
seeker) to open any bank account or to be involved in any financial
transaction, this is why  I am seeking a genuine and reliable
partner, whose account this money can be transferred, hence this
proposal to you.You have to understand that this decision taken by me
entrusts my future and in your hands, as a result of the safe keeping
of this money. If you accept to assist me, all I want you to do for
me, is to assist with arrangements to claim the deposit from the
security company from their office here in The Netherlands, as it has
now been transfered from Johannesburg, South Afri!
ca to their branch here. The company will be legally informed of you
representing me.
For your assistance, I have two options for you. Firstly you can
choose to have 10% of the money for your assistance, and helping me
open an account for the money to be deposited here, or you can go
into partnership with me for the proper profitable investment of the
money in your country. Whichever the option you want, please to
notify me in your reply.
I have also set aside 1%($145,000,00) of this money for all kinds of
expenses that come our way in the process of this transaction, and 4%
($580,000,00) for Charity donation. If you prefer to accept the 10%
for assisting with opening an account, then 85%will be left in the
account here for me.
Please, I want you maintain the absolute secrecy for the purpose
of this transaction.
I look forward to your reply and co-operation, and I thank you in
advance as I anticipate your co-operation.You can reach me on my
direct line which is 31 612 722 388 or via email [EMAIL PROTECTED]
Sincerely,
Owen Mubane.

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


Re: Hindsite, moving forward, concepts...?

2003-01-12 Thread Larry Hall (RFK Partners, Inc)
At 05:07 PM 1/11/2003, linda w \(cyg\) wrote:

snip

 However the good news is that with the emphasis on applications maintaining 
POSIX compatibility -- no one
should be *relying* on // having a special meaning.  


If you mean programmatically, I'd say that's probably true.  Some may
have created scripts that make this assumption but I don't see that
as a major issue.



That being the case, one could choose, in the present, to do a
simple hack (in the minimal case) to change the smb-share prefix
from //host/share to /smb/host/share.  Theoretically, this
should break nothing. unless they have hard-coded paths.


Right, 'theoretically'.



If transitioning of current CYGWIN customers who may have
hardcoded paths is a concern, then a transition plan could be
put into effect (dates TBD):
1) string in envvar CYGWIN, maybe, 'SMB_PRFX=//'.
This could be added to any update if not defined, or 
set as 'SMB_PRFX=/smb/' in new installs or set
to SMB_PRFX= by users who want to do their own mounting.
2) When automounting SMB shares is available, then can 
default SMB PRFX= in new installs.  Warning in console
login shells of SMB_PRFX being deprecated in favor of
automount usage.
3) Base install includes smb-automount setup. Usage of SMB_PRFX 
generates warning about being ignored/obsolete and to use
automount for smb references (with default /smb).
4) ...after a few years...remove check for SMB_PRFX...


Right.  This could be a way to phase out the UNC path convention if
this was desirable.


Steps can be skipped/merged; it may be decided that it is a non-issue and just do it.

For Win32 paths -- again, going with full Win32 compatibility
seems logical since it is the only standard that assigns
meanings to :\ usage in the Win32 world.  Again, if *really*
needed, one could use a similar transition plan to allow
conversion of apps that make assumptions about C:foobar not
having the standard Win32 meaning (as previously shown, this
is not a property of CMD, and is 'honored' (wherever it is 
implemented) in, AFAIK,  all of MS's programs.

Any issues only affecting Win32 path usage would be unlikely
to affect POSIX-compliant programs using preferred-character-set filenames.

Logical?  Not asking, necessarily, that anyone implement it --
I'm only engaging in a concept discussion.  Actual implementation --
well that may never happen, or may -- may be done by someone
expert in the various areas affected, or done by me (in all my loads of spare 
time...*cough-cough*).


Logical, yes, in terms of reaching your stated goal.  Whether that goal is
desirable as a whole measured by the community's usage preferences, patterns, 
and needs, that wouldn't be for me to say. ;-)  Of course, the real hitch
is the resource to implement, which you acknowledge.  As you know, lot's 
of things can sound reasonable, logical, and even compelling in theory 
and yet still be abysmal failures once implemented.  But having something
implemented gives the entire community a concrete item to review, reform, 
critique, and accept/reject.  It's generally a very successful route to 
getting new functionality in Cygwin.  I recommend it if you're motivated 
to implement some functionality.


I'm trying to focus on what I believe would be useful for the
Cygwin toolset to allow for gnu-linux tool porting for the
purpose of using them interactively/transparently in a win32
environment _and_ providing a *nix-POSIX compatibility layer.


I understand.  I'm not sure that I concur with your assessment the current
needs for this work but I'm quite willing to evaluate it based on the 
merits of it's implementation.  Not to 'scare' you of course but changing
behavior of the Cygwin path handling code is not a task to be undertaken
lightly.  This area has allot of logic to parse the various path forms
already handled plus POSIXy emulations.  Any changes there must be rigorously
tested for correctness and performance (i.e. no worse performance than now).
But if that doesn't scare you ( :-) ) then I'd recommend you take the next
step and start poking around in the code.  It really is the best way to 
understand the details of what's there and formulate a real plan of attack.

Good luck,



Larry Hall  [EMAIL PROTECTED]
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/




Syslog-ng-1.5.24 build instructions for cygwin

2003-01-12 Thread John P. Rouillard
Hi all:

Thanks go to whoever fixed the bug in cygwin1.dll that caused syslog
to fail as soon as a udp packet was sent to it. The bug was introduced
sometime around 1.3.12, but is fixed now. So here is my recipe for
building syslog-ng-1.5.24.

Download syslog-ng-1.5.24 and libol-0.3.6. Patch the syslog source
with the patch at the end of this message. The patch adds a -N flag to
stop the syslog server from forking so that windows services mechanism
and cygrunsrv will properly detect that the program/service is
running. The man page is updated with this flag, but the html/sgml
isn't patched.  The patch also stops resolv.h from being included
under __CYGWIN__, and defined the typdef uint32_t as unsigned.

After applying the patch, touch src/main.c.x src/filter.c.x, then
configure and make the two packages. Then run cygrunsrv as:

   cygrunsrv -I syslog -a '-N' -p /path/to/syslog -c /var/log
and
   cygrunsrv -S syslog

I use the syslog server with backlog to send the event log on my
windows 2000 SP3 system to a file. I did most of my testing without
tcp wrappers enabled, but I did finally get it to compile with the
wrappers. To do this, change the lines that read:

  old_LDFLAGS=$LDFLAGS
  LDFLAGS=-lwrap

to read

  old_LIBS=$LIBS
  LIBS=-lwrap

and you will get

  checking for hosts_access in -lwrap... yes

rather than

  checking for hosts_access in -lwrap... no

Hopefully the syslog-ng people will include this patch in newer
versions.

-- rouilj
John Rouillard
===
My employers don't acknowledge my existence much less my opinions.

diff -ur syslog-ng-1.5.24/doc/syslog-ng.8 syslog-ng-1.5.24.l/doc/syslog-ng.8
--- syslog-ng-1.5.24/doc/syslog-ng.81999-07-10 11:58:32.0 -0400
+++ syslog-ng-1.5.24.l/doc/syslog-ng.8  2003-01-12 11:30:30.0 -0500
@@ -7,7 +7,7 @@
 
 .B syslog-ng
 [
-.B \-dvV
+.B \-NdvV
 ] [
 .B \-f
 \fIconfig-filename\fP
@@ -76,6 +76,15 @@
 .B \-p \0filename
 Write the current PID information to the specified file.
 .TP
+.B \-N
+Non-daemon mode. Adding \fB-N\fp to the command line will make syslog
+run in the foreground. This is used when starting syslog from service
+monitor programs in windows platforms using cygwin's cygrunsrv, but
+may also be useful for a startup/monitor wrapper that will restart
+syslog if it dies for some unusual reason. This does not cause any
+additional messages to be printed, so it will not fill up
+log files as \fB-d\fP or \fB-v\fP can.
+.TP
 .B \-v
 Enable verbose mode.  Process will not become a daemon.  Prints out
 fewer messages, compared to \fB-d\fP.
diff -ur syslog-ng-1.5.24/src/filters.c syslog-ng-1.5.24.l/src/filters.c
--- syslog-ng-1.5.24/src/filters.c  2002-02-04 11:07:50.0 -0500
+++ syslog-ng-1.5.24.l/src/filters.c2003-01-12 11:21:57.0 -0500
@@ -259,6 +259,9 @@
  struct log_filter *rule UNUSED,
  struct log_info *log)
 {
+#if defined(__CYGWIN__)
+  typedef unsigned uint32_t;
+#endif
CAST(filter_expr_netmask, self, c);

if (log-saddr) {
diff -ur syslog-ng-1.5.24/src/main.c syslog-ng-1.5.24.l/src/main.c
--- syslog-ng-1.5.24/src/main.c 2002-10-30 14:36:03.0 -0500
+++ syslog-ng-1.5.24.l/src/main.c   2003-01-12 11:31:31.0 -0500
@@ -46,7 +46,9 @@
 #include arpa/nameser.h
 #endif
 
-#include resolv.h
+#if ! defined(__CYGWIN__)
+   #include resolv.h
+#endif
 
 #include main.c.x
 
@@ -425,7 +427,7 @@
gc_idle_threshold = 100;
gc_busy_threshold = 3000;
 
-   while ((opt = getopt_long(argc, argv, sFf:p:dvhyVC:u:g:, syslog_ng_options, 
NULL)) != -1) {
+   while ((opt = getopt_long(argc, argv, sFf:p:dvhyVC:u:g:N, syslog_ng_options, 
+NULL)) != -1) {
switch (opt) {
case 'f':
strncpy(cfgfilename, optarg, sizeof(cfgfilename));
@@ -464,6 +466,9 @@
yydebug = 1;
break;
 #endif
+   case 'N':
+   do_fork = 0;
+   break;
case 'h':
default:
usage();

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




Unicode files

2003-01-12 Thread Clancy Malcolm
Can cygwin programs like grep process a unicode file?

I have a Windows 2000 backup log file which seems to be a unicode file.
When I cat the file under cygwin it displays with spaces between every
second character: e.g.

ÿ_B a c k u p   S t a t u s
 O p e r a t i o n :   B a c k u p
 A c t i v e   b a c k u p   d e s t i n a t i o n :   4 m m   D D S
 M e d i a   n a m e :T S C 4 - 2 0 0 3 - 0 1 - 1 3 - 2 - 3 5 p 

When I cat in under linux it displays as a normal text file.  I have a
script which grep's for particular patterns and emails matching lines, but
it won't work with these log files.

Any suggestions greatly appreciated.

Regards,
Clancy Malcolm



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




Re: 1.18 mysql+perl+dbi+dbd::mysql

2003-01-12 Thread Nikolayev Dmitry

Sorry, but I'm newbie, how can I do this?

 You need to create an importlibrary from libmysqlclient for cygwin and
 link against it to build the Cygwin Perl based module.


- Original Message -
From: Gerrit P. Haase [EMAIL PROTECTED]
To: Nikolayev Dmitry [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Sunday, January 12, 2003 2:52 PM
Subject: Re: 1.18 mysql+perl+dbi+dbd::mysql


 Hallo Nikolayev,

 Am Sonntag, 12. Januar 2003 um 07:28 schriebst du:

  I have installed cygwin 1.18, perl 5.6, DBI 1.30, mysql for windows
3.23.54
  But when I tryied to install DBD::mysql, I got some errors with
compiling:

  dbdimp.c:632: `MYSQL_OPT_COMPRESS' undeclared (first use in this
function)
  dbdimp.c:632: (Each undeclared identifier is reported only once
  dbdimp.c:632: for each function it appears in.)
  dbdimp.c:641: `MYSQL_OPT_CONNECT_TIMEOUT' undeclared (first use in this
  function
  )
  dbdimp.c:652: `MYSQL_READ_DEFAULT_FILE' undeclared (first use in this
  function)
  dbdimp.c:662: `MYSQL_READ_DEFAULT_GROUP' undeclared (first use in this
  function)

  dbdimp.c:729: warning: passing arg 5 of `mysql_real_connect' makes
integer
  from
  pointer without a cast
  dbdimp.c:729: warning: passing arg 6 of `mysql_real_connect' makes
pointer
  from
  integer without a cast
  dbdimp.c:729: warning: passing arg 7 of `mysql_real_connect' makes
integer
  from
  pointer without a cast
  dbdimp.c:729: too many arguments to function `mysql_real_connect'
  dbdimp.c: At top level:
  dbdimp.c:1117: parse error before val
  dbdimp.c: In function `my_ulonglong2str':
  dbdimp.c:1118: `val' undeclared (first use in this function)
  dbdimp.c: In function `mysql_st_fetch':
  dbdimp.c:1523: warning: assignment from incompatible pointer type
  make: *** [dbdimp.o] Error 1

  Did anybody installed DBD::mysql? Or where can I read any information
about
  installing cygwin + mysql?


 You need to create an importlibrary from libmysqlclient for cygwin and
 link against it to build the Cygwin Perl based module.


 Gerrit
 --
 =^..^=


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




Re: Solving the relink exe's libtool problem [take 2]

2003-01-12 Thread Charles Wilson
Alexandre Duret-Lutz wrote:


Any way lt-foo.c could go into .libs/?  Or just be erased after
foo.exe has been built?  Maybe both?


I see no problems with either or both...but I'd rather keep lt-foo.c 
around until 'make clean' (or libtool --mode=clean) time.

Also I if you don't move `foo' to `.libs/' I think you
should ensure that `libtool --mode=clean rm -f foo.exe' 
erases `foo'.  

Good point.  libtool --mode=clean won't currently get both of them. 
But automake's 'make clean' will (see below).

(Or does Cygwin's `rm' erase both at once?)


No, it doesn't.


Right now Automake doesn't use `--mode=clean'.  Maybe Automake
1.8 could start doing this so we don't have to hardcode this
sort of knowledge.


Yeah, I think this has come up before...

However, current automake make clean will at least attempt to delete 
all four of the following, whether they exist or not:
  foo
  foo.exe
  .libs/foo (*)
  .libs/foo.exe (*)
(*) by virtue of rm -rf'ing .libs

So, there's really no worry about cleaning up the shell wrapper or the 
real executable -- or the binary wrapper -- with present automake. 
But cleaning up the lt-foo.c file is an issue.  I'd prefer to move it 
into .libs, but NOT erase it; automake's make clean will get it if 
it's in .libs (see rm -rf, above)

'Course, transitioning to libtool --mode=clean will mess that up, unless 
the problems you mention are addressed...

--Chuck


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



Re: Return codes and pipelines

2003-01-12 Thread Jon LaBadie
On Sun, Jan 12, 2003 at 02:21:45PM -0800, Randall R Schulz wrote:
 Rolf,
 
 One posting is enough, really.
 
 There is no guaranteed or specified parent child relationship between the 
 processes in a pipeline. This means that you cannot predict which process's 
 status will be the one returned as that of the pipeline as a whole.
 


 
 At 14:09 2003-01-12, Rolf Campbell wrote:
 /home/rcampbell (true | true)  echo true || echo false
 true
 /home/rcampbell (true | false)  echo true || echo false
 false
 /home/rcampbell (false | true)  echo true || echo false
 true
 /home/rcampbell (false | false)  echo true || echo false
 false
 
 The third test above yields different results when run on Linux.  I'm
 wondering if this was the desired result or not?


There is (or had been last I looked at the source) a defined relationship
in the Bourne and Korn shells at least.

The parent forks the last command in a pipeline which then becomes the
parent of the other commands in the pipeline.  Thus the original parent
only sees the last command's exit status.

This scheme was done to implement the following behavior back around
System V.2 in the great Bourne shell rewrite in C.

From the current Solaris man page for Bourne Shell:

   ...  .  Each  command  is  run  as a separate process; the
 shell waits for the last  command  to  terminate.  The  exit
 status  of a pipeline is the exit status of the last command
 in the pipeline.

The addition of the pipefail option to recent ksh93 versions suggests
this relation-ship scheme has been altered in those shells.  But I
do not think it appropriate to generically say there is no defined
relationship as if it applies to every shell out there.

-- 
Jon H. LaBadie  [EMAIL PROTECTED]
 JG Computing
 4455 Province Line Road(609) 252-0159
 Princeton, NJ  08540-4322  (609) 683-7220 (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/




BUSINESS PROPOSAL

2003-01-12 Thread Owen Mubane
Good Day,
With warm heart I offer my friendship, and my greetings, and I hope
this letter meets you in good time. It will be surprising  to you to
receive this proposal from me since you do not know me personally.
However, I am sincerely seeking your confidence in this transaction,
which I propose with my free mind and as a person of integrity.
My name is  Owen Mubane, the first son of Mapele Mubane, of the
most popular black farmer  from Zimbabwe, murdered in the land
dispute in my country. As led by my instict, I decided to contact you
through email, after searching  for contacts via the internet, as it
is the only means I can contact anybody since I am cutting off ties
with Zimbabwe for security and safety reasons.  However, I apologize
if this is not acceptable to you.
The purpose of this letter is to seek your most needed assistance in
a business venture. Due to the land and political problems in
Zimbabwe, as a result of President Robert Mugabe's introduction of
new Land Act Reform wholly affecting the rich white farmers and the
few rich black farmers, and his desire to hold on to power for life,
my father for saw the danger that came in Zimbabwe. Before he was
murdered, he withdrew all of our business foreign accounts in dollars
and sold up our shares in major companies. We then went to
SOUTH AFRICA  to deposit the sum of US$14.5 million
(Fourteen million, Five Hundred thousand US dollars), in a private
security company. This money was deposited with this Private Security
company for safety and security reasons, and  was to be used for the
purchase of land, new machines and chemicals establishment of new
farms in Europe.
President Mugabe's support for the violent  Zimbabwean war veterans
and some lunatics in the society, led to the murder of my beloved
father and other innocent lives. I was continually threatened to
abandon my inheritance from my father after he was murdered. I
resited for a while, but when the danger became unbearable, and I
survived two murder attempts, I fled Zimbabwe.
I am currently staying in the Netherlands where I am seeking
political asylum. In fact my decision to come here to seek asylum, is
because the security company from South Africa, has a branch here,
and they have moved the deposit from their office in Johannesburg down
here. I need to transfer this money to  an account and invest part of
the money. Since the law of Netherlands prohibits a refugee (asylum
seeker) to open any bank account or to be involved in any financial
transaction, this is why  I am seeking a genuine and reliable
partner, whose account this money can be transferred, hence this
proposal to you.You have to understand that this decision taken by me
entrusts my future and in your hands, as a result of the safe keeping
of this money. If you accept to assist me, all I want you to do for
me, is to assist with arrangements to claim the deposit from the
security company from their office here in The Netherlands, as it has
now been transfered from Johannesburg, South Afri!
ca to their branch here. The company will be legally informed of you
representing me.
For your assistance, I have two options for you. Firstly you can
choose to have 10% of the money for your assistance, and helping me
open an account for the money to be deposited here, or you can go
into partnership with me for the proper profitable investment of the
money in your country. Whichever the option you want, please to
notify me in your reply.
I have also set aside 1%($145,000,00) of this money for all kinds of
expenses that come our way in the process of this transaction, and 4%
($580,000,00) for Charity donation. If you prefer to accept the 10%
for assisting with opening an account, then 85%will be left in the
account here for me.
Please, I want you maintain the absolute secrecy for the purpose
of this transaction.
I look forward to your reply and co-operation, and I thank you in
advance as I anticipate your co-operation.You can reach me on my
direct line which is 31 612 722 388 or via email [EMAIL PROTECTED]
Sincerely,
Owen Mubane.

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


BUSINESS PROPOSAL

2003-01-12 Thread Owen Mubane
Good Day,
With warm heart I offer my friendship, and my greetings, and I hope
this letter meets you in good time. It will be surprising  to you to
receive this proposal from me since you do not know me personally.
However, I am sincerely seeking your confidence in this transaction,
which I propose with my free mind and as a person of integrity.
My name is  Owen Mubane, the first son of Mapele Mubane, of the
most popular black farmer  from Zimbabwe, murdered in the land
dispute in my country. As led by my instict, I decided to contact you
through email, after searching  for contacts via the internet, as it
is the only means I can contact anybody since I am cutting off ties
with Zimbabwe for security and safety reasons.  However, I apologize
if this is not acceptable to you.
The purpose of this letter is to seek your most needed assistance in
a business venture. Due to the land and political problems in
Zimbabwe, as a result of President Robert Mugabe's introduction of
new Land Act Reform wholly affecting the rich white farmers and the
few rich black farmers, and his desire to hold on to power for life,
my father for saw the danger that came in Zimbabwe. Before he was
murdered, he withdrew all of our business foreign accounts in dollars
and sold up our shares in major companies. We then went to
SOUTH AFRICA  to deposit the sum of US$14.5 million
(Fourteen million, Five Hundred thousand US dollars), in a private
security company. This money was deposited with this Private Security
company for safety and security reasons, and  was to be used for the
purchase of land, new machines and chemicals establishment of new
farms in Europe.
President Mugabe's support for the violent  Zimbabwean war veterans
and some lunatics in the society, led to the murder of my beloved
father and other innocent lives. I was continually threatened to
abandon my inheritance from my father after he was murdered. I
resited for a while, but when the danger became unbearable, and I
survived two murder attempts, I fled Zimbabwe.
I am currently staying in the Netherlands where I am seeking
political asylum. In fact my decision to come here to seek asylum, is
because the security company from South Africa, has a branch here,
and they have moved the deposit from their office in Johannesburg down
here. I need to transfer this money to  an account and invest part of
the money. Since the law of Netherlands prohibits a refugee (asylum
seeker) to open any bank account or to be involved in any financial
transaction, this is why  I am seeking a genuine and reliable
partner, whose account this money can be transferred, hence this
proposal to you.You have to understand that this decision taken by me
entrusts my future and in your hands, as a result of the safe keeping
of this money. If you accept to assist me, all I want you to do for
me, is to assist with arrangements to claim the deposit from the
security company from their office here in The Netherlands, as it has
now been transfered from Johannesburg, South Afri!
ca to their branch here. The company will be legally informed of you
representing me.
For your assistance, I have two options for you. Firstly you can
choose to have 10% of the money for your assistance, and helping me
open an account for the money to be deposited here, or you can go
into partnership with me for the proper profitable investment of the
money in your country. Whichever the option you want, please to
notify me in your reply.
I have also set aside 1%($145,000,00) of this money for all kinds of
expenses that come our way in the process of this transaction, and 4%
($580,000,00) for Charity donation. If you prefer to accept the 10%
for assisting with opening an account, then 85%will be left in the
account here for me.
Please, I want you maintain the absolute secrecy for the purpose
of this transaction.
I look forward to your reply and co-operation, and I thank you in
advance as I anticipate your co-operation.You can reach me on my
direct line which is 31 612 722 388 or via email [EMAIL PROTECTED]
Sincerely,
Owen Mubane.

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


Re: 1.18 mysql+perl+dbi+dbd::mysql

2003-01-12 Thread Larry Hall (RFK Partners, Inc)
Check out the User's Guide for this type of information.  

http://cygwin.com/cygwin-ug-net/dll.html#DLL-LINK

The User's Guide is a worthwhile read in general for any newbie.


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



At 11:29 PM 1/12/2003, Nikolayev Dmitry wrote:

Sorry, but I'm newbie, how can I do this?

  You need to create an importlibrary from libmysqlclient for cygwin and
  link against it to build the Cygwin Perl based module.


- Original Message -
From: Gerrit P. Haase [EMAIL PROTECTED]
To: Nikolayev Dmitry [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Sunday, January 12, 2003 2:52 PM
Subject: Re: 1.18 mysql+perl+dbi+dbd::mysql


  Hallo Nikolayev,
 
  Am Sonntag, 12. Januar 2003 um 07:28 schriebst du:
 
   I have installed cygwin 1.18, perl 5.6, DBI 1.30, mysql for windows
3.23.54
   But when I tryied to install DBD::mysql, I got some errors with
compiling:
 
   dbdimp.c:632: `MYSQL_OPT_COMPRESS' undeclared (first use in this
function)
   dbdimp.c:632: (Each undeclared identifier is reported only once
   dbdimp.c:632: for each function it appears in.)
   dbdimp.c:641: `MYSQL_OPT_CONNECT_TIMEOUT' undeclared (first use in this
   function
   )
   dbdimp.c:652: `MYSQL_READ_DEFAULT_FILE' undeclared (first use in this
   function)
   dbdimp.c:662: `MYSQL_READ_DEFAULT_GROUP' undeclared (first use in this
   function)
 
   dbdimp.c:729: warning: passing arg 5 of `mysql_real_connect' makes
integer
   from
   pointer without a cast
   dbdimp.c:729: warning: passing arg 6 of `mysql_real_connect' makes
pointer
   from
   integer without a cast
   dbdimp.c:729: warning: passing arg 7 of `mysql_real_connect' makes
integer
   from
   pointer without a cast
   dbdimp.c:729: too many arguments to function `mysql_real_connect'
   dbdimp.c: At top level:
   dbdimp.c:1117: parse error before val
   dbdimp.c: In function `my_ulonglong2str':
   dbdimp.c:1118: `val' undeclared (first use in this function)
   dbdimp.c: In function `mysql_st_fetch':
   dbdimp.c:1523: warning: assignment from incompatible pointer type
   make: *** [dbdimp.o] Error 1
 
   Did anybody installed DBD::mysql? Or where can I read any information
about
   installing cygwin + mysql?
 
 
  You need to create an importlibrary from libmysqlclient for cygwin and
  link against it to build the Cygwin Perl based module.
 
 
  Gerrit
  --
  =^..^=
 
 
  --
  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/


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




Re: Unicode files

2003-01-12 Thread Randall R Schulz
Clancy,

Perl has some Unicode modules and Vim (both Cygwin and stand-alone) will 
edit Unicode files.

Most (maybe all?) Gnu text tools are ASCII only. Apropos turns up the Perl 
modules plus something called luit. Check it out. Perhaps it might be 
useful to you.

Randall Schulz


At 21:18 2003-01-12, Clancy Malcolm wrote:
Can cygwin programs like grep process a unicode file?

I have a Windows 2000 backup log file which seems to be a unicode file.
When I cat the file under cygwin it displays with spaces between every
second character: e.g.

ÿ_B a c k u p   S t a t u s
 O p e r a t i o n :   B a c k u p
 A c t i v e   b a c k u p   d e s t i n a t i o n :   4 m m   D D S
 M e d i a   n a m e :T S C 4 - 2 0 0 3 - 0 1 - 1 3 - 2 - 3 5 p 

When I cat in under linux it displays as a normal text file.  I have a
script which grep's for particular patterns and emails matching lines, but
it won't work with these log files.

Any suggestions greatly appreciated.

Regards,
Clancy Malcolm



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




Re: Return codes and pipelines

2003-01-12 Thread Randall R Schulz
Jon,

Well, Cygwin does not include Bourne shell, it has BASH, ash and zsh, but 
it does appear that the status returned by a parenthesized pipeline under 
BASH is that of the last command in that pipeline.

Strictly speaking, that's not at odds with the first part of what I said, 
which is that the parent - child process relationship between processes in 
a pipeline is not specified.

So this leaves one puzzle: Why is it that Rolf is getting different results 
for this command between Linux and Cygwin?

(false | true)  echo true || echo false

Rolf, which shells are you using on Linux and Cygwin?

Randall Schulz


At 20:53 2003-01-12, Jon LaBadie wrote:
On Sun, Jan 12, 2003 at 02:21:45PM -0800, Randall R Schulz wrote:
 Rolf,

 One posting is enough, really.

 There is no guaranteed or specified parent child relationship between the
 processes in a pipeline. This means that you cannot predict which 
process's
 status will be the one returned as that of the pipeline as a whole.


 At 14:09 2003-01-12, Rolf Campbell wrote:
 /home/rcampbell (true | true)  echo true || echo false
 true
 /home/rcampbell (true | false)  echo true || echo false
 false
 /home/rcampbell (false | true)  echo true || echo false
 true
 /home/rcampbell (false | false)  echo true || echo false
 false
 
 The third test above yields different results when run on Linux.  I'm
 wondering if this was the desired result or not?


There is (or had been last I looked at the source) a defined relationship
in the Bourne and Korn shells at least.

The parent forks the last command in a pipeline which then becomes the
parent of the other commands in the pipeline.  Thus the original parent
only sees the last command's exit status.

This scheme was done to implement the following behavior back around
System V.2 in the great Bourne shell rewrite in C.

From the current Solaris man page for Bourne Shell:

   ...  .  Each  command  is  run  as a separate process; the
 shell waits for the last  command  to  terminate.  The  exit
 status  of a pipeline is the exit status of the last command
 in the pipeline.

The addition of the pipefail option to recent ksh93 versions suggests
this relation-ship scheme has been altered in those shells.  But I
do not think it appropriate to generically say there is no defined
relationship as if it applies to every shell out there.

--
Jon H. LaBadie  [EMAIL PROTECTED]


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




Re: 1.18 mysql+perl+dbi+dbd::mysql

2003-01-12 Thread Gerrit P. Haase
Hallo Nikolayev,

Am Montag, 13. Januar 2003 um 05:29 schriebst du:


 Sorry, but I'm newbie, how can I do this?

 You need to create an importlibrary from libmysqlclient for cygwin and
 link against it to build the Cygwin Perl based module.

I create a .def file with impgen which comes with libtool and then
create the .a importlib with dlltool:

1.
/bin/impgen ${DLLNAME}.dll ${DLLNAME}.def

2.
dlltool --as=as --dllname ${DLLNAME}.dll --def ${DLLNAME}.def --output-lib ${DLLNAME}.a

You can fetch a binary of impgen here:
http://koeln.convey.de/cywgin/impgen/impgen.zip

Some more words:
http://koeln.convey.de/cywgin/impgen/cygextract.README


Gerrit
-- 
=^..^=


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




Re: Return codes and pipelines

2003-01-12 Thread Jon LaBadie
On Sun, Jan 12, 2003 at 09:22:55PM -0800, Randall R Schulz wrote:
 Jon,
 
 Well, Cygwin does not include Bourne shell, it has BASH, ash and zsh, but 
 it does appear that the status returned by a parenthesized pipeline under 
 BASH is that of the last command in that pipeline.


As specified on the bash man page.


 Strictly speaking, that's not at odds with the first part of what I said, 
 which is that the parent - child process relationship between processes in 
 a pipeline is not specified.
 
 So this leaves one puzzle: Why is it that Rolf is getting different results 
 for this command between Linux and Cygwin?
 
 (false | true)  echo true || echo false
 
 Rolf, which shells are you using on Linux and Cygwin?


And what results?


 At 20:53 2003-01-12, Jon LaBadie wrote:
 On Sun, Jan 12, 2003 at 02:21:45PM -0800, Randall R Schulz wrote:
  Rolf,
 
  One posting is enough, really.
 
  There is no guaranteed or specified parent child relationship between the
  processes in a pipeline. This means that you cannot predict which 
 process's
  status will be the one returned as that of the pipeline as a whole.
 
 
  At 14:09 2003-01-12, Rolf Campbell wrote:
  /home/rcampbell (true | true)  echo true || echo false
  true
  /home/rcampbell (true | false)  echo true || echo false
  false
  /home/rcampbell (false | true)  echo true || echo false
  true
  /home/rcampbell (false | false)  echo true || echo false
  false
  
  The third test above yields different results when run on Linux.  I'm
  wondering if this was the desired result or not?
 
 
 There is (or had been last I looked at the source) a defined relationship
 in the Bourne and Korn shells at least.
 
 The parent forks the last command in a pipeline which then becomes the
 parent of the other commands in the pipeline.  Thus the original parent
 only sees the last command's exit status.
 
 This scheme was done to implement the following behavior back around
 System V.2 in the great Bourne shell rewrite in C.
 
 From the current Solaris man page for Bourne Shell:
 
...  .  Each  command  is  run  as a separate process; the
  shell waits for the last  command  to  terminate.  The  exit
  status  of a pipeline is the exit status of the last command
  in the pipeline.
 
 The addition of the pipefail option to recent ksh93 versions suggests
 this relation-ship scheme has been altered in those shells.  But I
 do not think it appropriate to generically say there is no defined
 relationship as if it applies to every shell out there.
 
 --
 Jon H. LaBadie  [EMAIL PROTECTED]
 
 
 --
 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/
 
 
 End of included message 

-- 
Jon H. LaBadie  [EMAIL PROTECTED]
 JG Computing
 4455 Province Line Road(609) 252-0159
 Princeton, NJ  08540-4322  (609) 683-7220 (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/




Re: Unicode files

2003-01-12 Thread Jon LaBadie
At 21:18 2003-01-12, Clancy Malcolm wrote:
Can cygwin programs like grep process a unicode file?

I have a Windows 2000 backup log file which seems to be a unicode file.
When I cat the file under cygwin it displays with spaces between every
second character: e.g.

ÿ_B a c k u p   S t a t u s
 O p e r a t i o n :   B a c k u p
 A c t i v e   b a c k u p   d e s t i n a t i o n :   4 m m   D D S
 M e d i a   n a m e :T S C 4 - 2 0 0 3 - 0 1 - 1 3 - 2 - 3 5 p 

When I cat in under linux it displays as a normal text file.  I have a
script which grep's for particular patterns and emails matching lines, but
it won't work with these log files.

Any suggestions greatly appreciated.

For the ntbtlog.txt file I found this worked as a conversion tool for me.

tr -d '\0\r'  InputFile  OutputFile

But that is the only unicode file I've had to deal with.

-- 
Jon H. LaBadie  [EMAIL PROTECTED]
 JG Computing
 4455 Province Line Road(609) 252-0159
 Princeton, NJ  08540-4322  (609) 683-7220 (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/




Re: Solving the relink exe's libtool problem [take 3]

2003-01-12 Thread Charles Wilson
Okay, this version

1) puts lt-foo.c into .libs

2) libtool --mode=clean does the right thing --- cleans up foo, 
foo.exe, .libs/foo.exe, .libs/lt-foo.c, plus whatever else it already 
took care of.

3) lt-foo.c actually passes its own arguments to the shell wrapper -- it 
didn't, before. (Oops)

libtool regression tests: no new failures (on cygwin)
briefly tested on another project; worked fine.

Binary packages for cygwin (libtool-devel-20030103-4, 
libltdl3-20030103-4) available by pointing setup.exe at 
http://www.neuro.gatech.edu/users/cwilson/cygutils/testing/

--Chuck
Index: ltmain.in
===
RCS file: /cvsroot/libtool/libtool/ltmain.in,v
retrieving revision 1.318
diff -u -r1.318 ltmain.in
--- ltmain.in   1 Jan 2003 01:57:47 -   1.318
+++ ltmain.in   13 Jan 2003 04:48:39 -
@@ -4284,6 +4284,207 @@
outputname=`echo $outputname|${SED} 's,.exe$,,'` ;;
  *) exeext= ;;
esac
+   case $host in
+ *cygwin* | *mingw* )
+   cwrappersource=`echo ${objdir}/lt-${output}.c`
+   cwrapper=`echo ${output}.exe`
+   $rm $cwrappersource $cwrapper
+   trap $rm $cwrappersource $cwrapper; exit 1 1 2 15
+
+   cat  $cwrappersource EOF
+
+/* $cwrappersource - temporary wrapper executable for $objdir/$outputname
+   Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP
+
+   The $output program cannot be directly executed until all the libtool
+   libraries that it depends on are installed.
+   
+   This wrapper executable should never be moved out of the build directory.
+   If it is, it will not operate correctly.
+
+   Currently, it simply execs the wrapper *script* /bin/sh $output,
+   but could eventually absorb all of the scripts functionality and
+   exec $objdir/$outputname directly.
+*/
+EOF
+   cat  $cwrappersourceEOF
+#include stdio.h
+#include stdlib.h
+#include unistd.h
+#include malloc.h
+#include stdarg.h
+#include assert.h
+
+#if defined(PATH_MAX)
+# define LT_PATHMAX PATH_MAX
+#elif defined(MAXPATHLEN)
+# define LT_PATHMAX MAXPATHLEN
+#else
+# define LT_PATHMAX 1024
+#endif
+
+#ifndef DIR_SEPARATOR
+#define DIR_SEPARATOR '/'
+#endif
+
+#if defined (_WIN32) || defined (__MSDOS__) || defined (__DJGPP__) || \
+  defined (__OS2__)
+#define HAVE_DOS_BASED_FILE_SYSTEM
+#ifndef DIR_SEPARATOR_2 
+#define DIR_SEPARATOR_2 '\\'
+#endif
+#endif
+
+#ifndef DIR_SEPARATOR_2
+# define IS_DIR_SEPARATOR(ch) ((ch) == DIR_SEPARATOR)
+#else /* DIR_SEPARATOR_2 */
+# define IS_DIR_SEPARATOR(ch) \
+(((ch) == DIR_SEPARATOR) || ((ch) == DIR_SEPARATOR_2))
+#endif /* DIR_SEPARATOR_2 */
+
+#define XMALLOC(type, num)  ((type *) xmalloc ((num) * sizeof(type)))
+#define XFREE(stale) do { \
+  if (stale) { free ((void *) stale); stale = 0; } \
+} while (0)
+
+const char *program_name = NULL;
+
+void * xmalloc (size_t num);
+char * xstrdup (const char *string);
+char * basename (const char *name);
+char * fnqualify(const char *path);
+char * strendzap(char *str, const char *pat);
+void lt_fatal (const char *message, ...);
+
+int
+main (int argc, char *argv[])
+{
+  char **newargz;
+  int i;
+  
+  program_name = (char *) xstrdup ((char *) basename (argv[0]));
+  newargz = XMALLOC(char *, argc+2);
+  newargz[0] = xstrdup(/bin/sh);
+  newargz[1] = fnqualify(argv[0]);
+  /* we know the script has the same name, without the .exe */
+  /* so make sure newargz[1] doesn't end in .exe */
+  strendzap(newargz[1],.exe); 
+  for (i = 1; i  argc; i++)
+newargz[i+1] = xstrdup(argv[i]);
+  newargz[argc+1] = NULL;
+  execv(/bin/sh,newargz);
+}
+
+void *
+xmalloc (size_t num)
+{
+  void * p = (void *) malloc (num);
+  if (!p)
+lt_fatal (Memory exhausted);
+
+  return p;
+}
+
+char * 
+xstrdup (const char *string)
+{
+  return string ? strcpy ((char *) xmalloc (strlen (string) + 1), string) : NULL
+;
+}
+
+char *
+basename (const char *name)
+{
+  const char *base;
+
+#if defined (HAVE_DOS_BASED_FILE_SYSTEM)
+  /* Skip over the disk name in MSDOS pathnames. */
+  if (isalpha (name[0])  name[1] == ':') 
+name += 2;
+#endif
+
+  for (base = name; *name; name++)
+if (IS_DIR_SEPARATOR (*name))
+  base = name + 1;
+  return (char *) base;
+}
+
+char * 
+fnqualify(const char *path)
+{
+  size_t size;
+  char *p;
+  char tmp[LT_PATHMAX + 1];
+
+  assert(path != NULL);
+
+  /* Is it qualified already? */
+#if defined (HAVE_DOS_BASED_FILE_SYSTEM)
+  if (isalpha (path[0])  path[1] == ':')
+return xstrdup (path);
+#endif
+  if (IS_DIR_SEPARATOR (path[0]))
+return xstrdup (path);
+
+  /* prepend the current directory */
+  /* doesn't handle '~' */
+  if (getcwd (tmp, LT_PATHMAX) == NULL)
+lt_fatal (getcwd failed);
+  size = strlen(tmp) + 1 + strlen(path) + 1; /* +2 for '/' and '\0' */
+  p = XMALLOC(char, size);
+  sprintf(p, %s%c%s, tmp, DIR_SEPARATOR, path);
+  return p;
+}
+
+char *
+strendzap(char *str, const char *pat) 
+{
+  size_t len, patlen;
+
+  assert(str != 

Updated sysvinit package available for download

2003-01-12 Thread Sergey Okhapkin
Updated sysvinit-2.84-3 package available for download.

What's new:
- added /bin/pidof (symlink to /sbin/killall5)

To install/upgrade the package, click on the Install Cygwin now link on
the http://cygwin.com/ web page.  This downloads setup.exe to your
system.  Then, run setup and answer all of the questions.  You'll find
sysvinit listed in the System category.

If you have questions or comments, please send them to the Cygwin
mailing list at: [EMAIL PROTECTED] .  I would appreciate it if you would
use this mailing list rather than emailing me directly.


Sergey Okhapkin
Somerset, NJ