wget-1.8-1 uploaded

2002-02-06 Thread Hack Kampbjørn

Hi all,

I've uploaded a new package of wget if anybody would take a look at it
and eventually uploaded it to cygwin.com.


http://hackdata.com/cygwin/wget-1.8-1.tar.bz2
http://hackdata.com/cygwin/wget-1.8-1-src.tar.bz2

http://hackdata.com/cygwin/setup.hint (has not changed):
sdesc: Utility to retrieve files from the WWW via HTTP and FTP
ldesc: GNU Wget is a file retrieval utility which can use either the
HTTP, HTTPS, or FTP protocols. Wget features include the ability to work
in the background while you're logged out, recursive retrieval of
directories, file name wildcard matching, remote file timestamp storage
and comparison, use of Rest with FTP servers and Range with HTTP servers
to retrieve files over slow or unstable connections, support for Proxy
servers, and configurability.
category: Web
requires: openssl libintl1 ash cygwin

-- 
Med venlig hilsen / Kind regards

Hack Kampbjørn



Antwort: Re: XWin w2k xdmcp-query - no valid address

2002-02-06 Thread Ralf . Boetnagel


Hi,

I have not watched the previous posts, but have you tried to start the
XServer XFree without XDMCP? And then to connect via telnet + export
Display to
your host? (or even easier with ssh -X) Is this possible?

Thanks - yes, this works quite well. If there's no way to do it via XDMCP,
then this is how I'll do it ...

CiaoRalf






RE: XWin terminates immediately under W2K

2002-02-06 Thread Harold Hunt

Julian,

 Now when I run Xinstall, it complains that it can't create symlinks. Aagh.
 Maybe I shouldn't have made all the mount points binary.

Your mount points should be binary... but I don't know what is causing your
error.  Guess you'll have to investigate this one on your own, unless
someone else knows the solution.

Harold




RE: All text being echoed in Xterms

2002-02-06 Thread Harold Hunt

Steve,

No ideas here.  I'm guessing it is a problem with xterm.  You can also, I
think, run the latest version of Cygwin's 'rxvt' as an X Client.  Note: rxvt
is including with the Cygwin distribution, not with the Cygwin/XFree86
tarballs.

I'd give rxvt a shot and see what happens.  Report back when finished.

Harold

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED]]On Behalf Of Steven T. Zydek
 Sent: Wednesday, February 06, 2002 11:16 AM
 To: [EMAIL PROTECTED]
 Subject: Re: All text being echoed in Xterms


 I posted this a little while back with no response. Anyone have any ideas?

 Thanks,
 +Steve

 On Wed, Jan 30, 2002 at 11:52:20AM -0600, Steven T. Zydek wrote:
  Hi There,
 
  I'm a newbie to Cygwin/XFree. I just installed Cygwin
 1.3.7/Xfree v4.2 on my
  sunpci card (basically, an Intel-based motherboard w/AMD
 processor running in
  a Sun box) running WinNT 4.0. All the software has installed
 perfectly. I can
  start up bash shells within Cygwin just fine, X starts up
 without any error
  messages (using the default startx scripts) and xterms/xclock
 appear fine.
 
  My trouble is that anytime I try to type (enter commands) in an xterm,
  all text gets echoed twice. So, if I type: 'ls -al[ENTER]' , I get the
  following spewed back:
 
  llss  --aall [CR]
  [CR]
  me@machine bash
 
 
  me@machine bash
 
  ---
  I tried to determine whether it's Xwin or the xterm. (NOTE: the
 Cygwin shells
  do NOT have this problem). From what I can tell it is Xwin
 causing the problem.
  I was able to display a remote xterm window from a Sun box and
 had the same
  trouble where everything was echoed. I checked newsgroups,
 faqs, web, etc. and
  no luck. Any ideas?
 
  Thanks for any help you could provide!
 
  Thanks,
  +Steve

 --
 Steven Zydek
 EWS System Manager / CCSO
 University of Illinois
 217-244-7468 - [EMAIL PROTECTED]




RE: Unable to type letters in login to AIX box using XFree86 4.2.0 on W2K

2002-02-06 Thread Harold Hunt

I've never seen this problem.  Best of luck.

Harold

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED]]On Behalf Of Moore, Billiam
 Sent: Wednesday, February 06, 2002 4:29 PM
 To: '[EMAIL PROTECTED]'
 Subject: Unable to type letters in login to AIX box using XFree86 4.2.0
 on W2K


   I have XFree86 installed on Windows 2000 SP 2 using all the defaults (no
 mods to any config files for X) and can run local X programs (e.g. LyX)

 when I run

 XWin -screen 0 1024 768 -query 172.16.11.155 -from 172.16.46.120

 to get a CDE session on an AIX box, I get the login screen but cannot type
 in letters in the login name text box.

 - I can type in spaces and backspaces and the tab and enter
 buttons work so
 the keyboard is at least partially recognized.
 - The mouse is fully functional.
 - I can get to the AIX box through Hummingbirds Exceed so I am fairly sure
 that is confgured correctly

   Everything I have found in the FAQs and web searches deals with
 not being
 able to connect at all or having the wrong key map. I am using no key map
 which I understand means I am using the default US one which
 should be fine.
 Has anyone run into this before or can anyone point me in a direction to
 further trouble shoot?




RE: Unable to type letters in login to AIX box using XFree86 4.2.0 on W2K

2002-02-06 Thread Pavel . Rybnicek


Known problem. You have to use '-kb' parameter, keyboard extension doesn't
work with AIX. The keyboard is not out of order completely, but the
system behaves like AltGr key is permanently pressed. By the way this is
the reason I have to change my keyboard layout manually after every logon
to the system, what's really silly.

To Harold: I think this should be included in FAQ (and fixed, if you have
an AIX machine to test it :-)))

Pavel



   

Harold Hunt  

[EMAIL PROTECTED] To: Moore, Billiam 
[EMAIL PROTECTED], [EMAIL PROTECTED]
Sent by:   cc: 

cygwin-xfree-owner@Subject: RE: Unable to type letters 
in login to AIX box using XFree86 4.2.0 on W2K  
cygwin.com 

   

   

06.02.2002 22:51   

   

   





I've never seen this problem.  Best of luck.

Harold

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED]]On Behalf Of Moore, Billiam
 Sent: Wednesday, February 06, 2002 4:29 PM
 To: '[EMAIL PROTECTED]'
 Subject: Unable to type letters in login to AIX box using XFree86 4.2.0
 on W2K


   I have XFree86 installed on Windows 2000 SP 2 using all the defaults
(no
 mods to any config files for X) and can run local X programs (e.g. LyX)

 when I run

 XWin -screen 0 1024 768 -query 172.16.11.155 -from 172.16.46.120

 to get a CDE session on an AIX box, I get the login screen but cannot
type
 in letters in the login name text box.

 - I can type in spaces and backspaces and the tab and enter
 buttons work so
 the keyboard is at least partially recognized.
 - The mouse is fully functional.
 - I can get to the AIX box through Hummingbirds Exceed so I am fairly
sure
 that is confgured correctly

   Everything I have found in the FAQs and web searches deals with
 not being
 able to connect at all or having the wrong key map. I am using no key map
 which I understand means I am using the default US one which
 should be fine.
 Has anyone run into this before or can anyone point me in a direction to
 further trouble shoot?







connect patch

2002-02-06 Thread Jason Tishler

The attached patch fixes a SEGV when getsockname () is called.  This
problem can be tickled by the PostgreSQL 7.2 version of psql:

http://archives.postgresql.org/pgsql-cygwin/2002-02/msg00012.php

Note that I essentially plagiarized the following commit:

http://cygwin.com/ml/cygwin-cvs/2002-q1/msg00028.html

Was this the right thing to do?

Thanks,
Jason


Index: net.cc
===
RCS file: /cvs/src/src/winsup/cygwin/net.cc,v
retrieving revision 1.99
diff -u -p -r1.99 net.cc
--- net.cc  2002/01/29 13:39:41 1.99
+++ net.cc  2002/02/06 17:52:16
@@ -557,6 +557,8 @@ cygwin_socket (int af, int type, int pro
name = (type == SOCK_STREAM ? /dev/streamsocket : /dev/dgsocket);
 
   fdsock (fd, name, soc)-set_addr_family (af);
+  if (af == AF_LOCAL)
+   fdsock (fd, name, soc)-set_sun_path (name);
   res = fd;
 }
 


2002-02-06  Jason Tishler  [EMAIL PROTECTED]

* net.cc (cygwin_socket): Set sun_path for newly connected socket.



This Email Could Change Your Life Forever

2002-02-06 Thread Jamal Badres

Before you delete this, for your sake, READ THE DOCUMENT, DO THE MATH.THEN SIT 
BACK AND HAVE A SERIOUS THINK ABOUT 
IT

AS SEEN ON NATIONAL TV:

Making over Half Million Dollars every 4 to 5 Months from your Home for an investment 
of only
$25 U.S. Dollars expense one time
THANK'S TO THE COMPUTER AGE AND THE INTERNET!
==

BE A MILLIONAIRE LIKE OTHERS WITHIN A YEAR!!!
Before you say ''Bull'', please read the following.
This is the letter you have been hearing about on the news lately. Due to the 
popularity
of this letter on the Internet, a national weekly news program recently devoted an 
entire
show to the investigation of this program described below, to see if it really can make
people money. The show also investigated whether or not the program was legal. Their 
findings
proved once and for all that there are ''absolutely NO Laws prohibiting the 
participation in
the program and if people can follow the simple instructions, they are bound to make 
some
mega bucks with only $25 out of pocket cost''. DUE TO THE RECENT INCREASE OF 
POPULARITY
 RESPECT THIS PROGRAM HAS ATTAINED, IT IS CURRENTLY WORKING BETTER THAN 
EVER.

This is what one had to say: ''Thanks to this profitable opportunity. I was approached 
many times 
before
but each time I passed on it. I am so glad I finally joined just to see what one could 
expect
in return for the minimal effort and money required. To my astonishment, I received
total $610,470.00 in 21 weeks, with money still coming in. Pam Hedland, Fort Lee, New 
Jersey.
===
Here is another testimonial: This program has been around for a long time but I never 
believed
in it. But one day when I received this again in the mail I decided to gamble my $25 
on it. I
followed the simple instructions and 3 weeks later the money started to come in.

First month I only made $240.00 but the next 2 months after that I made a total of 
$290,000.00.
So far, in the past 8 months by re-entering the program, I have made over $710,000.00 
and I am
playing it again. The key to success in this program is to follow the simple steps and 
NOT change
anything.'' More testimonials later but first,

= PRINT THIS NOW FOR YOUR FUTURE REFERENCE ==
$

If you would like to make at least $500,000 every 4 to 5 months easily And 
comfortably, please
read the following...THEN READ IT AGAIN and AGAIN!!!

$

FOLLOW THE SIMPLE INSTRUCTION BELOW AND YOUR FINANCIAL DREAMS WILL COME 
TRUE,
GUARANTEED!

INSTRUCTIONS:

=Order all 5 reports shown on the list below =

For each report, send $5 CASH, THE NAME  NUMBER OF THE REPORT YOU ARE 
ORDERING and
YOUR E-MAIL ADDRESS to the person whose name appears ON THAT LIST next to the report.
MAKE SURE YOUR RETURN ADDRESS IS ON YOUR ENVELOPE TOP LEFT CORNER in 
case of any mail
problems.

=== When you place your order, make sure you order each of the 5 reports.

You will need all 5 reports so that you can save them on your computer and resell them.
YOUR TOTAL COST $5 X 5=$25.00.

Within a few days you will receive, vie e-mail, each of the 5 reports from these 5 
different 
individuals.
Save them on your computer so they will be accessible for you to send to the 1,000's 
of people
who will order them from you. Also make a floppy of these reports and keep it on your 
desk in
case something happen to your computer.

IMPORTANT - DO NOT alter the names of the people who are listed next to each report, or
their sequence on the list, in any way other than what is instructed below in step
'' 1 through 6 '' or you will lose out on majority of your profits. Once you understand
the way this works, you will also see how it does not work if you change it. Remember, 
this
method has been tested, and if you alter, it will NOT work!!! People have tried to put 
their
friends/relatives names on all five thinking they could get all the money. But it does 
not
work this way. Believe us, we all have tried to be greedy and then nothing happened. 
So Do Not
try to change anything other than what is instructed. Because if you do, it will not 
work for
you. Remember, honesty reaps the reward!!!

1 After you have ordered all 5 reports, take this advertisement and REMOVE the
name  address of the person in REPORT # 5. This person has made it through the cycle 
and
is no doubt counting their fortune.
2 Move the name  address in REPORT # 4 down TO REPORT # 5.
3 Move the name  address in REPORT # 3 down TO REPORT # 4.
4 Move the name  address in REPORT # 2 down TO REPORT # 3.
5 Move the name  address in REPORT # 1 down TO REPORT # 2
6 Insert YOUR name  address in the REPORT # 1 Position.
PLEASE MAKE SURE you copy every name  address ACCURATELY!
==


 Take this entire letter, with the 

looking for mailcap entries to start office attachments directly

2002-02-06 Thread Olaf Foellinger

Hi,

I'm looking for a mailcap entry to start office documents directly from
the attachments. I've looked through the archives but didn't find
anything.

Gruss Olaf

--
Olaf Föllinger
Leiter Fachbereich IT
S.E.S.A. Software und Systeme AG

Alt-Moabit 91a
D-10559 Berlin
Germany
Tel:   +49 30 390722 -291
Fax:   +49 30 390722 -222
Mobil: +49 173 6227080
http://www.sesa.de
mailto: [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: $HOME Directory Relocation

2002-02-06 Thread Schaible, Jörg

Hi Laurence,

I tried to correlate Window's home and Cygwin's home by the following lines
in /etc/profile. I end up mounting /home to the Profile directory of
Windows (wherever it may be in the different versions) and set home
according to $USERPROFILE that is set by the system. This gives a quite
natural Unix feeling for ls /home, although ls ~User just works for my
own account.

== snip = snap =
COMMON_DESKTOP=`regtool get
'\HKLM\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell
Folders\Common Desktop'`
ALLHOME=`cygpath -u $COMMON_DESKTOP/../..`
ALLHOME=`cygpath -wsa $ALLHOME | tr [a-z] [A-Z]`
if [ ! -d /home ]; then
mkdir /home
fi
if [ $ALLHOME != `cygpath -wsa /home` ]; then
echo Mounting `cygpath -wsa $ALLHOME` to /home
mount -s -b -f `cygpath -wsa $ALLHOME` /home  /dev/null 21
fi
unset ALLHOME COMMON_DESKTOP

USER=`id -un`

# Set up USER's home directory
if [ -z $HOME ]; then
HOME=`cygpath -ua $USERPROFILE`
fi
HOME=`cygpath -wsa $USERPROFILE`
HOME=`cygpath -ua $HOME`
export HOME USER
== snip = snap =

Another benefit: Your settings are part of the Window's profile, i.e. can be
shared for your account automatically in a server environment for different
machines.

Regards,
Jörg

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




DirectX8/DirectInput + cygwin

2002-02-06 Thread Dylan Cuthbert

Hello there,

I've searched the archives high and low and can't seem to find a solution to
my problem.

When compiling a DirectInput8 function such as DirectInput8Create() I get an
error linking:

Unable to resolve DirectInput8Create@20

I am linking directly with the .lib files supplied by Microsoft, and all the
Directx8 GUID references seem to link fine so does anybody have any idea
what the problem might be?

What version of DirectX are the directX libs in /usr/libs/ created for?

As an extra note, gcc v3.00-3.02 won't compile unknwn.h without an internal
compiler error, but v3.03 seems fine.

Regards

-
Q-Games, Dylan Cuthbert.
http://www.q-games.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/


Re:symlinks

2002-02-06 Thread Jorge Goncalvez

Hi, I have made a symlink with the cygwin command ln -s and i wanted to remove 
it by Perl code:
I have this:
$PROG2 = C:\\cygwin\\bootp\\linux\\install ;
if (-l $PROG2)
{

system rm $PROG2;

 }
 else{
 print popo;
 }
 
The problem is that the symlink install it isn't removed althought it is present 
with ls -l in the good directory?
Why?
I tested my rm command by hand and it works it seems -l not working.
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: DirectX8/DirectInput + cygwin

2002-02-06 Thread Wade Brainerd

Sounds like a DEF file problem.  Functions in DLLs use a different
naming convention from C++ mangled names and C identifiers, usually:

FunctionName@ArgSize

...where ArgSize is the total size of all the parameters arguments,
say for example a function MyFunction taking a single pointer as a
parameter would be MyFunction@4.

.DEF files are what Visual C++ uses to associate functions in header
files with functions in DLLs, I'm not sure what the Cygwin equivalents
are.  In fact, I know almost nothing about Cygwin but a lot about Windows
DLLs, but I thought this might put you on the right track ;)

-Wade

Wednesday, February 06, 2002, 2:22:09 AM, you wrote:


DC Hello there,

DC I've searched the archives high and low and can't seem to find a solution to
DC my problem.

DC When compiling a DirectInput8 function such as DirectInput8Create() I get an
DC error linking:

DC Unable to resolve DirectInput8Create@20

DC I am linking directly with the .lib files supplied by Microsoft, and all the
DC Directx8 GUID references seem to link fine so does anybody have any idea
DC what the problem might be?

DC What version of DirectX are the directX libs in /usr/libs/ created for?

DC As an extra note, gcc v3.00-3.02 won't compile unknwn.h without an internal
DC compiler error, but v3.03 seems fine.

DC Regards

DC -
DC Q-Games, Dylan Cuthbert.
DC http://www.q-games.com


DC --
DC Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
DC Bug reporting: http://cygwin.com/bugs.html
DC Documentation: http://cygwin.com/docs.html
DC 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: changing default text type without reinstall?

2002-02-06 Thread Steinar Bang

 Michael A Chase [EMAIL PROTECTED]:

[...]
 I think you found most of what you needed, but did the articles you
 found explain enough?  If not, what parts were insufficient or
 unclear?

An example of changing the line ending convention for a part of the
directory tree would have saved me from pondering the command line
arguments and why they went wrong.

Also, I'm still not sure how the line ending conversion works.

I tried notepad.exe both on /home/sba/.bashrc and on some files in a
freshly checked out CVS workspace, and files both places showed up
correctly.

I then tried notepad.exe on a file in the /etc directory, and this
file still had only LF line separators, as seen from notepad.

This means that it probably wasn't neccessary for me to check out the
CVS workspace again, because all files in the directories under the
new mount point were changed somehow? (since notepad.exe doesn't read
any form of cygwin config)

An explanation of the principles makes it easier to understand what to
do, and what to expect.

[snip!]
 The thing that puzzles me about that error message is that it didn't
 complain about c:cygwinhome instead since the bash command line
 reader uses '\' as an escape character.  The easy way to avoid that
 problem is to use '/' instead of '\' even in Windows paths passed to
 cygwin programs.

I tried
mount -t c:/cygwin/home /home
and that worked fine.

 There are two types of mount points, user and system.  By default
 mount creates user (-u) mount points.  These only apply to the
 current user and override the corresponding system mount points.
 Normally I only create system (-s) mount points.

Ah, I should have used 
mount -s -t c:/cygwin/home /home
I guess (I didn't read this far before running the command...:-) ).

Thanx for your help!


- Steinar

--
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: DirectX8/DirectInput + cygwin

2002-02-06 Thread Dylan Cuthbert

Thanks for the quick response.

Right now I'm just passing in the .lib files directly into GCC for linking
and I can see why there would be problems if VS uses a different name
mangling algorithm after your explanation.

However, I'm kind of stuck at how to go about converting the .lib files into
the native .a lib files gcc uses.

I can generate .def files by following the description on the cygwin
homepage, but I still get the same linking errors.

-
Q-Games, Dylan Cuthbert.
http://www.q-games.com

- Original Message -
From: Wade Brainerd [EMAIL PROTECTED]
To: Dylan Cuthbert [EMAIL PROTECTED]
Cc: Cygwin@Cygwin. Com [EMAIL PROTECTED]
Sent: Wednesday, February 06, 2002 7:38 PM
Subject: Re: DirectX8/DirectInput + cygwin


 Sounds like a DEF file problem.  Functions in DLLs use a different
 naming convention from C++ mangled names and C identifiers, usually:

 FunctionName@ArgSize

 ...where ArgSize is the total size of all the parameters arguments,
 say for example a function MyFunction taking a single pointer as a
 parameter would be MyFunction@4.

 .DEF files are what Visual C++ uses to associate functions in header
 files with functions in DLLs, I'm not sure what the Cygwin equivalents
 are.  In fact, I know almost nothing about Cygwin but a lot about Windows
 DLLs, but I thought this might put you on the right track ;)

 -Wade

 Wednesday, February 06, 2002, 2:22:09 AM, you wrote:


 DC Hello there,

 DC I've searched the archives high and low and can't seem to find a
solution to
 DC my problem.

 DC When compiling a DirectInput8 function such as DirectInput8Create() I
get an
 DC error linking:

 DC Unable to resolve DirectInput8Create@20

 DC I am linking directly with the .lib files supplied by Microsoft, and
all the
 DC Directx8 GUID references seem to link fine so does anybody have any
idea
 DC what the problem might be?

 DC What version of DirectX are the directX libs in /usr/libs/ created
for?

 DC As an extra note, gcc v3.00-3.02 won't compile unknwn.h without an
internal
 DC compiler error, but v3.03 seems fine.

 DC Regards

 DC -
 DC Q-Games, Dylan Cuthbert.
 DC http://www.q-games.com


 DC --
 DC Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
 DC Bug reporting: http://cygwin.com/bugs.html
 DC Documentation: http://cygwin.com/docs.html
 DC 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: /dev/registry

2002-02-06 Thread Barubary

Why can't this /dev/registry stuff be just an ioctl()?  Open the
/dev/registry node for the appropriate access, then use some ioctl()'s to
read and write it.  Put the /dev/null entry points for the read and write
handlers for /dev/registry and you won't have that accidental corruption
from cat.

By the way, if you're using Cygwin, why can't you just call RegQueryValueExW
and friends yourself?  You're a Win32 process anyway, and no UNIX has such a
thing - don't care about portability.

-- Barubary


--
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: rxvt and text output problems

2002-02-06 Thread Barubary

ftp and friends from NT use direct console I/O functions to manipulate the
screen buffer under NT.  Cygwin has no way to intercept another process's
direct console I/O win32 calls, unless the other process is also a Cygwin
process.

I don't think this'll change anytime soon, because to fix it would require a
lovely RPC filter monitoring csrss.exe activity...

-- Barubary

- Original Message -
From: Axel Kowald [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, February 06, 2002 1:54 AM
Subject: rxvt and text output problems


 Hello everybody,

 I recently installed cygwin 1.3.6 (including rxvt 2.7.2) on my w2k
 machine. I run tcsh in the rxvt and everything works fine, except that
 rxvt doesn't show all the output of some of command line programs which
 come with w2k.
 Examples are ftp and telnet. If I use winnt/system32/ftp it doesn't
 display username and password and also the welcome text doesn't
 appear. If I use tcsh (or bash) in a normal dos command window ftp and
 telnet work fine.
 I searched through the recent postings but couldn't find anything
 appropriate.

 Any idea what might be the problem ?

 Many thanks,

Axel



 --
 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: DirectX8/DirectInput + cygwin

2002-02-06 Thread Dylan Cuthbert

So have the direct3d/directsound .lib files that come with cygwin already
been processed for use with C++?  Or are they only useable from C too as you
say?

Regards

-
Q-Games, Dylan Cuthbert.
http://www.q-games.com

- Original Message -
From: Barubary [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, February 06, 2002 8:11 PM
Subject: Re: DirectX8/DirectInput + cygwin


 Getting DirectX to work from cygwin GCC essentially can't be done from
C++,
 but can be done from C.  It can't be done from C++ because of the way COM
 virtual tables work.  GCC can't clone Visual C++'s method because
Microsoft
 holds a U.S. patent on their exact method.  Just try using MFC from GCC
and
 you'll know exactly what I mean.

 In C, the virtual table system is done by actually creating the vtable
 structure in the header file, so this isn't a problem.  If you modify the
 DirectX header files, you could fix this for C++, but you'd have to
 do -lpVtable all the time, like in C.

 GCC, or rather binutils, can't handle the Microsoft import library format.
 binutils of course has its own, so you could make your own from the DLL.

 If import libraries don't work, you could always GetProcAddress on
 DirectInputCreate8 after loading dinput8.dll.  Then the problem becomes
how
 to get to the weird global functions (D3DX matrix stuff, for instance).

 -- Barubary

 - Original Message -
 From: Dylan Cuthbert [EMAIL PROTECTED]
 To: Cygwin@Cygwin. Com [EMAIL PROTECTED]
 Sent: Wednesday, February 06, 2002 2:22 AM
 Subject: DirectX8/DirectInput + cygwin

  When compiling a DirectInput8 function such as DirectInput8Create() I
get
 an
  error linking:
  Unable to resolve DirectInput8Create@20



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




/proc (was: Re: /dev/registry)

2002-02-06 Thread Chris January

 Why can't this /dev/registry stuff be just an ioctl()?  Open the
 /dev/registry node for the appropriate access, then use some ioctl()'s to
 read and write it.  Put the /dev/null entry points for the read and write
 handlers for /dev/registry and you won't have that accidental corruption
 from cat.

 By the way, if you're using Cygwin, why can't you just call
RegQueryValueExW
 and friends yourself?  You're a Win32 process anyway, and no UNIX has such
a
 thing - don't care about portability.
1. it's difficult to accidentally cat to a key considering the length of the
names  -
/proc/registry/HKEY_CURRENT_USER/Software/Microsoft/Windows/CurrentVersion/S
hell\ Extensions/Approved/\{BDEADF00-C265-11d0-BCED-00A0C90AB50F\} is a bit
hard to type in by accident...
2. it makes scripting easier
3. ** adding /proc/registry means adding /proc and once a /proc virtual fs
is established, other /proc entries can be added a lot more easily
4. it gives you an alternative to regedit and friends
I almost have a read-only version of this working. I don't see why their
should be objections to this since you can't screw your registry up in any
way. I'll think
about how to add write capabilities later.
I'll probably add some entries to /proc - ones commonly found on UNIX
platforms maybe. Anyone have any favourites they wish to see?

Regards
Chris


--
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: symlinks

2002-02-06 Thread Jorge Goncalvez

Thanks all it works now. 


--
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: /proc (was: Re: /dev/registry)

2002-02-06 Thread Ralf Habacker

 
  Why can't this /dev/registry stuff be just an ioctl()?  Open the
  /dev/registry node for the appropriate access, then use some ioctl()'s to
  read and write it.  Put the /dev/null entry points for the read and write
  handlers for /dev/registry and you won't have that accidental corruption
  from cat.
 
  By the way, if you're using Cygwin, why can't you just call
 RegQueryValueExW
  and friends yourself?  You're a Win32 process anyway, and no UNIX has such
 a
  thing - don't care about portability.
 1. it's difficult to accidentally cat to a key considering the length of the
 names  -
 /proc/registry/HKEY_CURRENT_USER/Software/Microsoft/Windows/CurrentVersion/S
 hell\ Extensions/Approved/\{BDEADF00-C265-11d0-BCED-00A0C90AB50F\} is a bit
 hard to type in by accident...
 2. it makes scripting easier
 3. ** adding /proc/registry means adding /proc and once a /proc virtual fs
 is established, other /proc entries can be added a lot more easily

This seems good to me :-)

 4. it gives you an alternative to regedit and friends
 I almost have a read-only version of this working. I don't see why their
 should be objections to this since you can't screw your registry up in any
 way. I'll think about how to add write capabilities later.
 I'll probably add some entries to /proc - ones commonly found on UNIX
 platforms maybe. Anyone have any favourites they wish to see?
 
 Regards
 Chris
 
 
 --
 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/




numerical values in makefile ?

2002-02-06 Thread Stefan Bernögger

Hi there,

I want to use the $(words, text) function, but have troubles to
process the numerical return value.

How can I use this value and compare it with a fixed number (,,etc.) ?

Thanks a lot for help,

Stefan


--
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: SSHD startup problem and suggested fix

2002-02-06 Thread Jettero Heller

*ponder*

I've been looking for a telnetd or an sshd that I could
use... did I miss something?  Where did you get them?

On Tue, Feb 05, 2002 at 04:20:19PM -0800, Benn Schreiber wrote:
 I had problems with sshd not starting up reliably as a service, after I
 installing cygwin on a new system.  I found that it was sometimes trying
 to start before the network was started, and didn't fare too well.
 
 So, I did a cygrunsrv --remove sshd
 
 and then did 
 
 cygrunsrv -I sshd -d CYGWIN sshd -p /usr/sbin/sshd -y Browser -a
 -D -e CYGWIN=binmode ntsec tty
 
 This makes the sshd service dependent on the browser, which is dependent
 on the network being up.  Works great now!
 
 Benn Schreiber

-- 
If riding in an airplane is flying, then riding in a boat is swimming.
17 jumps from a c182.  Roughly 142 seconds of free fall.

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




unix domain socket with shared memory ?

2002-02-06 Thread Ralf Habacker

Hi all,

cfg has told me about the current process of cygwin daemon implementation with ipc 
support.

I initial have heard last year, that this work would be started, but because of so 
much other work I have lost the
contact to the ongoing process.

Now I was looking into the ongoing work and it seems to me in a mostly read state, 
isn't it. I like to say: Great
work to all who have worked on it. :-)

The reason why I'm writing this is that I have recognized some performance issues with 
unix domain sockets, which
are used very much by kde and currently I'm looking for a way to speed this up. I have 
seen that unix domain
sockets are eumlated through tcp connections and this seems to me the reason, why unix 
domain sockets are only half
as fast as pure tcp sockets. The benchmark results are located at 
http://cygwin.com/ml/cygwin/2002-01/msg01719.html

*Local* Communication bandwidths in MB/s - bigger is better
-
HostOS  Pipe AFTCP  File   Mmap  Bcopy  Bcopy  Mem   Mem
 UNIX  reread reread (libc) (hand) read write
- -    -- -- -- --  -
BRAMSCHE  CYGWIN_NT-5.0 130. 17.5 40.0  337.0  477.7  145.2  133.8 476. 200.9
BRAMSCHE   Linux 2.2.18 343. 235. 64.4  177.7  238.5   71.5   61.4 238.  75.3
 

Some guys may say, unix domain sockets are not implemented through tcp connection, but 
I'm relative sure, that this
is true:

KDE's dcopserver uses ICE which uses unix domain sockets. After starting this 
serverapp a diff of netstat -a shows
   TCPBRAMSCHE:4462  BRAMSCHE:0 ABHTREN
   TCPBRAMSCHE:4464  BRAMSCHE:4462  WARTEND
   TCPBRAMSCHE:4474  BRAMSCHE:0 ABHTREN

The dcopserver uses a unix domain socket path below.
$ cat ~/.DCOPserver_BRAMSCHE_BRAMSCHE-0

.local/BRAMSCHE:/tmp/.ICE-unix/2612

2612

The respective ICE socket file shows the following

habacker@BRAMSCHE ~/src/cvs.cygwin.com/src/winsup/cygwin
$ cat /tmp/.ICE-unix/2612
.!socket 4462 F44D504D-189AA33E-F06C24E4-2E5D38A0
    This is the above mentioned port in use.

Can anyone confirm this ?

Because the cygwin-daemon branch provides the long missed ipc support, the way for for 
speeding up unix domain
sockets with a shared memory implementation may be free. (I not be not first one, who 
tells about this, because I
have seen some guys before talking about this possibility)

I've played a while with the cygwin-deamon source how to implement this and have got a 
quick and dirty
implementation of this so think I have catched the important todos (see below), but I 
may be wrong in some cases.
So I'm asking for comments to this topics.

TODO:
1. create a new file fhandler_local.cc and implement the needed socket functions like
bind/listen/connect/read/write/fixup after fork and so on.
2. add the tcp/ip relates stuff from net.cc main socket functions like 
bind/listen/connect/read/write into
fhandler_socket.cc
3. reorganice net.cc so that the functions of fhandler_socket.cc or fhandler_local.cc 
depending on the socket type
are used.

1a. For each socket instance, which calls bind() and listen() there has to be created 
a shared memory area
identifed by the path name, which contains two regions, one for each direction and 
some counters and pointers for
buffer filling and empting handling.
1b. For each socket instance, which uses connect() it has to connect to the related 
shared memory area identified
by the path name.

One open topic for me is how to handle forking. I imagine, that because the file 
handles are duplicated, the shared
memory has to be duplicatd too, but because the socket file name is the same, does it 
use the same shared memory
area as the parent or not ???

My intention whis this thread is to make sure, that this strategy is a possible way 
and I'm willing to spent some t
ime to get this running, although I think I'm not be able to handle this whole task 
alone.

Regards

Ralf



--
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: install 'cron' packages in cygwin

2002-02-06 Thread Prakriteswar Santikary

Hi,

here is the output  from 'cygcheck -s'. it looks like cron and vim are
installed. I see a src directory in which I have sourcce codes for cron and
vim. I don't know whether I have to compile them to get them to work. Can I
install the binary directly ?

Cygwin Win95/NT Configuration Diagnostics
Current System Time: Wed Feb 06 09:34:05 2002

Windows 2000 Professional Ver 5.0 Build 2195 Service

Path:   C:\cygwin\usr\local\bin
C:\cygwin\bin
C:\cygwin\bin
c:\Oracle\Ora81\bin
c:\Program Files\Oracle\jre\1.1.7\bin
c:\WINNT\system32
c:\WINNT
c:\WINNT\System32\Wbem
c:\MSSQL7\BINN
54807.2300
c:\Program Files\Embarcadero\DBA541
c:\Program Files\Embarcadero\June2001Shared

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

HOME = `C:\cygwin\home\Administrator'
MAKE_MODE = `unix'
PWD = `/home/Administrator'
USER = `Administrator'

Use `-r' to scan registry

c:  hd  NTFS   17280Mb  45% CP CS UN PA FC

.  /cygdrive  userbinmode,noumount
C:/cygwin  /  system  binmode
C:/cygwin/bin  /usr/bin   system  binmode
C:/cygwin/lib  /usr/lib   system  binmode

Found: C:\cygwin\bin\bash.exe
Found: C:\cygwin\bin\cat.exe
Not Found: cpp (good!)
Found: C:\cygwin\bin\find.exe
Not Found: gcc
Not Found: gdb
Not Found: ld
Found: C:\cygwin\bin\ls.exe
Not Found: make
Found: C:\cygwin\bin\sh.exe

   45k 2001/04/25 C:\cygwin\bin\cygform5.dll
   35k 2002/01/09 C:\cygwin\bin\cygform6.dll
   18k 2000/10/23 C:\cygwin\bin\cyggdbm.dll
   17k 2001/06/28 C:\cygwin\bin\cyghistory4.dll
   20k 2002/01/13 C:\cygwin\bin\cyghistory5.dll
   26k 2001/04/25 C:\cygwin\bin\cygmenu5.dll
   20k 2002/01/09 C:\cygwin\bin\cygmenu6.dll
  156k 2001/04/25 C:\cygwin\bin\cygncurses++5.dll
  175k 2002/01/09 C:\cygwin\bin\cygncurses++6.dll
  226k 2001/04/25 C:\cygwin\bin\cygncurses5.dll
  202k 2002/01/09 C:\cygwin\bin\cygncurses6.dll
   15k 2001/04/25 C:\cygwin\bin\cygpanel5.dll
   12k 2002/01/09 C:\cygwin\bin\cygpanel6.dll
  108k 2001/06/28 C:\cygwin\bin\cygreadline4.dll
  121k 2002/01/13 C:\cygwin\bin\cygreadline5.dll
   50k 2002/01/20 C:\cygwin\bin\cygz.dll
  751k 2002/01/21 C:\cygwin\bin\cygwin1.dll
Cygwin DLL version info:
DLL version: 1.3.9
DLL epoch: 19
DLL bad signal mask: 19005
DLL old termios: 5
DLL malloc env: 28
API major: 0
API minor: 51
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: Mon Jan 21 12:48:41 EST 2002
Shared id: cygwin1S3


Cygwin Package Information
Package Version
ash 20020131-1
bash2.05a-2
compface1.4-5
cron3.0.1-5
cron-src3.0.1-5
cygrunsrv   0.94-2
cygrunsrv-src   0.94-2
cygwin  1.3.9-1
diff0.0
fileutils   4.1-1
findutils   4.1
gawk3.0.4-1
gdbm1.8.0-3
grep2.4.2-1
groff   1.17.2-1
gzip1.3.2-1
less358-3
libncurses5 5.2-1
libncurses6 5.2-8
libreadline44.1-2
libreadline54.2a-1
login   1.4-3
man 1.5g-2
ncurses 5.2-8
newlib-man  20001118-1
openssl-devel   0.9.6c-2
readline4.2a-1
sed 3.02-1
sh-utils2.0-2
shutdown1.2-2
shutdown-src1.2-2
tar 1.13.19-1
termcap 20010825-1
terminfo5.2-1
texmf-doc   2804-2
textutils   2.0.16-1
vim 6.0.93-1
vim-src 6.0.93-1
which   1.5-1
zlib1.1.3-7

Use -h to see help about each section
\[\033]0;\w\007
\033[32m\]\u@\h \[\033[33m\w\033[0m\]
$

thanks
Aanti

-Original Message-
From: Michael A Chase [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 05, 2002 3:32 PM
To: Prakriteswar Santikary
Cc: cygwin
Subject: Re: install 'cron' packages in cygwin


Please continue with the list.  I have CCed this response there.

I am not familiar with cron, you should read the documentation that comes
with it to see how to set it up.  There should also be a lot in the mail
list archive.

I don't know why vim doesn't start for you.  Please send the output of
'cygcheck -s' to the list so someone can see better what is happening.
--
Mac :})
** I normally forward private questions to the appropriate mail list. **
Ask Smarter: http://www.tuxedo.org/~esr/faqs/smart-questions.htm
Give a hobbit a fish and he eats fish for a day.
Give a hobbit a ring and he eats fish for an age.
- Original Message -
From: Prakriteswar Santikary [EMAIL 

Re: SSHD startup problem and suggested fix

2002-02-06 Thread Michael Lang

Hi Benn,

thanks for answering my mail.

it works the way you said without manualy restart after login .

Thanks a lot

Greetz mIke

Benn Schreiber wrote:

 I had problems with sshd not starting up reliably as a service, after I
 installing cygwin on a new system.  I found that it was sometimes trying
 to start before the network was started, and didn't fare too well.

 So, I did a cygrunsrv --remove sshd

 and then did

 cygrunsrv -I sshd -d CYGWIN sshd -p /usr/sbin/sshd -y Browser -a
 -D -e CYGWIN=binmode ntsec tty

 This makes the sshd service dependent on the browser, which is dependent
 on the network being up.  Works great now!

 Benn Schreiber

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

--
   Michael Lang
   KPNQwest/AT Junior System Enginneer  Phone: +43 1 899 33 118
   Diefenbachgasse 35, 1150 Vienna  Fax:   +43 1 899 33 10118
   Austria - Europe




--
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: SSHD startup problem and suggested fix

2002-02-06 Thread Michael Lang

Hello Jettero

didn't you install openssh from the setup.exe ...

if not open setup.exe again leave the entrys keep as they are,
look for the Entry Openssh-3p2... and set the state to Openssh-3p.2... (..
should be the Version)
after the installation process the binary should be in /usr/sbin/sshd.exe

make a /bin/ssh-host-config
first the Procedure will ask you to install SSH as a Service ... you can ask
with yes and if you expirence
troubles with automatic startup follow the step below in ths Mail.
edit the /etc/sshd_config if needed ...
do a mkpasswd -l  /etc/passwd if the file /etc/passwd doesnt existst or a
mkpasswd -d  /etc/passwd ifyou
want the Domain Users tobe able to login.
repeat last step with mkgroup if needed ..

using the windows command: net start CYGWIN sshd
should start the SSHD Server

Greetz mIke


Jettero Heller wrote:

 *ponder*

 I've been looking for a telnetd or an sshd that I could
 use... did I miss something?  Where did you get them?

 On Tue, Feb 05, 2002 at 04:20:19PM -0800, Benn Schreiber wrote:
  I had problems with sshd not starting up reliably as a service, after I
  installing cygwin on a new system.  I found that it was sometimes trying
  to start before the network was started, and didn't fare too well.
 
  So, I did a cygrunsrv --remove sshd
 
  and then did
 
  cygrunsrv -I sshd -d CYGWIN sshd -p /usr/sbin/sshd -y Browser -a
  -D -e CYGWIN=binmode ntsec tty
 
  This makes the sshd service dependent on the browser, which is dependent
  on the network being up.  Works great now!
 
  Benn Schreiber

 --
 If riding in an airplane is flying, then riding in a boat is swimming.
 17 jumps from a c182.  Roughly 142 seconds of free fall.

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

--
   Michael Lang
   KPNQwest/AT Junior System Enginneer  Phone: +43 1 899 33 118
   Diefenbachgasse 35, 1150 Vienna  Fax:   +43 1 899 33 10118
   Austria - Europe




--
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: Tips?

2002-02-06 Thread Roger

On Tue, 2002-02-05 at 16:10, Christopher Faylor wrote:

 
 Huh?  There are FAQs on the Cygwin site.  If you have reviewed the site,
 you've found the FAQs.

faq's. yup read them. many packages under development sometimes have
special interest sites seperate from the main website. ie: 

http://www.geocities.co.jp/SiliconValley/1596/en/cygwin.html
This person details his notes on compiling  installing allot of the
main gnome libraries under cygwin.

 
 If you have specific questions that aren't in the FAQs then ask them.
 
 If you can, cc stuff to my [EMAIL PROTECTED] account as my
 starband.com account it in the process of being cancelled. thanx.
 
 http://www.tuxedo.org/~esr/faqs/smart-questions.html
 
 cgf

mmm...thanx for shooting up my compliment.


-- 
- Roger
-
Verify my pgp/gnupg signature on my HomePage:
http://www.alltel.net/~rogerx/about/index.html



--
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: Tips?

2002-02-06 Thread Larry Hall (RFK Partners, Inc)

At 10:53 AM 2/6/2002, Roger wrote:
On Tue, 2002-02-05 at 16:10, Christopher Faylor wrote:

  
  Huh?  There are FAQs on the Cygwin site.  If you have reviewed the site,
  you've found the FAQs.

faq's. yup read them. many packages under development sometimes have
special interest sites seperate from the main website. ie: 

http://www.geocities.co.jp/SiliconValley/1596/en/cygwin.html
This person details his notes on compiling  installing allot of the
main gnome libraries under cygwin.

Notes such as these are available by reading any readme (under 
/usr/doc/Cygwin) that comes with a Cygwin package or by perusing the patch 
that comes with the source for that package.  

Hope that helps,



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/




DLL a question

2002-02-06 Thread Nguyen Minh Le

Hi All,
Could you tell me a example in writing dll in Cygwin and use it in VC
(windows).
Thank you,
Nguyen


--
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: $HOME Directory Relocation

2002-02-06 Thread Joshua Franklin

 COMMON_DESKTOP=`regtool get

'\HKLM\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell
 Folders\Common Desktop'`
 ALLHOME=`cygpath -u $COMMON_DESKTOP/../..`

Don't know if you care, but the latest version of 
cygpath has -D and -A options that will output the
All Users' Desktop
directory. Not sure about the ../.. though.

__
Do You Yahoo!?
Send FREE Valentine eCards with Yahoo! Greetings!
http://greetings.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/




Re: Re:symlinks

2002-02-06 Thread Michael A Chase

- Original Message -
From: Jorge Goncalvez [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, February 06, 2002 02:30
Subject: Re:symlinks


 Hi, I have made a symlink with the cygwin command ln -s and i wanted to
remove
 it by Perl code:
 I have this:
 $PROG2 = C:\\cygwin\\bootp\\linux\\install ;
 if (-l $PROG2)
 {

   system rm $PROG2;

  }
  else{
  print popo;
  }

 The problem is that the symlink install it isn't removed althought it is
present
 with ls -l in the good directory?
 Why?
 I tested my rm command by hand and it works it seems -l not working.
 Thanks.

Have you tried Perl's unlink()?
--
Mac :})
** I normally forward private questions to the appropriate mail list. **
Ask Smarter: http://www.tuxedo.org/~esr/faqs/smart-questions.htm
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/




Re: postgresql init scripts

2002-02-06 Thread Jason Tishler


Timothy,

On Wed, Feb 06, 2002 at 11:17:07AM -0500, [EMAIL PROTECTED] wrote:
  Can anyone point me to information of automatically starting 
 stopping postgresql under NT / cygwin?

Read the README file:

/usr/doc/Cygwin/postgresql-7.1.3.README

Jason

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




perl -i switch bug on cygwin

2002-02-06 Thread Benoit Rochefort

Hi!

It seems there is a bug on the -i switch for perl.
I do not know if it's a perl issue or cygwin issue so I post it here for
first; let me know please if it would be better to send a bug report to
perl mainteners instead.

Here is a small example:

###
gcm [0][GEN13]~mkdir tmp
gcm [0][GEN13]~cd tmp
/home/benoitr/tmp
gcm [0][GEN13]~/tmpecho hello  hello
gcm [0][GEN13]~/tmpls -al
total 5
drwxr-xr-x2 benoitr  None0 Feb  6 11:35 ./
drwxr-xr-x5 benoitr  None 4096 Feb  6 11:34 ../
-rw-r--r--1 benoitr  None6 Feb  6 11:35 hello
gcm [0][GEN13]~/tmpperl -p -i -e 1 hello
Can't do inplace edit on hello: Permission denied.
gcm [0][GEN13]~/tmpls -al
total 4
drwxr-xr-x2 benoitr  None0 Feb  6 11:35 ./
drwxr-xr-x5 benoitr  None 4096 Feb  6 11:34 ../
gcm [0][GEN13]~/tmpecho hello  hello
gcm [0][GEN13]~/tmpperl -p -i~ -e 1 hello
gcm [0][GEN13]~/tmpls -al
total 6
drwxr-xr-x2 benoitr  None0 Feb  6 11:35 ./
drwxr-xr-x5 benoitr  None 4096 Feb  6 11:34 ../
-rw-r--r--1 benoitr  None6 Feb  6 11:35 hello
-rw-r--r--1 benoitr  None6 Feb  6 11:35 hello~
###

As you can see, the -i switch works well with an argument but not at all
with no arguments, which is really inconvenient for me since I have a bunch
of scripts written on UNIX system that rely on this capability (for
substituting texts inplace on a collection of files in conjunction with
find and xargs for example).

I remember that I had this problem one year ago (on cygwin with a modified
version of perl since perl was not on the cygwin standard package at this
time) and fixes it by using the arg form of the -i switch, followed by a rm
of the moved file.

The man perlrun page well describe the desired behavior of the -i
switch with an argument (in fact, the code that should be executed) but
not at all the no arg form of the -i switch. I suppose it should only
unlink the moved file (but is this the way it is done; i.e. moving the
original file with a name not already used in the same directory?).

Oh! Please don't send a workaround, just tell me if it's really a bug or my
misunderstanding of something and what should I do exactly to forward my
observations so that perl/cygwin can be corrected accordingly to the doc.

As a sugar, if the -i switch doc in the man page could exactly describe
the behavior when no arg is given, that would be for sure an enhancement.

Ben

--
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: /dev/registry

2002-02-06 Thread Randall R Schulz

Barubary,

The motivation for a file-system reflection of the Windows registry is to 
open it up to programs not written in a Windows native language (C, C++, 
VB, etc.). Doing this would give all manner of scripts (shell, Perl, 
Python, TCL, etc.) access to the registry in one fell swoop.

That is one of the beautiful things about the Unix approach of fitting so 
much of a system's facilities into the unified framework of the file 
system. As the discussion has shown, however, if the underlying facility is 
not a good match for Unix's file model, this approach falls down. The 
Windows registry appears to be at the boundary of this issue, given the 
typed nature of its entries. The suffix approach or, perhaps, a terminal 
directory holding entries like .dword or .sz would presumably suffice.

The suggestion about ioctl() begs the question of where to get the file 
descriptor to which to apply the ioctl() call, and does not open the 
registry to scripting languages that have no direct access to the Cygwin or 
Windows APIs. It does not really simplify the task of adding the ability to 
Cygwin, but obscures the basic access behind the obscure and overloaded 
catch-all interface that is ioctl(). It is true that this would make 
inadvertent registry corruption less likely, but it only by virtue of 
making so much less accessible.

Randall Schulz
Mountain View, CA USA


At 03:23 2002-02-06, Barubary wrote:
Why can't this /dev/registry stuff be just an ioctl()?  Open the 
/dev/registry node for the appropriate access, then use some ioctl()'s to 
read and write it.  Put the /dev/null entry points for the read and write 
handlers for /dev/registry and you won't have that accidental corruption 
from cat.

By the way, if you're using Cygwin, why can't you just call 
RegQueryValueExW and friends yourself?  You're a Win32 process anyway, and 
no UNIX has such a thing - don't care about portability.

-- Barubary


--
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: Scriptable start.exe

2002-02-06 Thread Christopher Faylor

On Wed, Feb 06, 2002 at 04:47:02PM +1100, Robert Collins wrote:
From: Gary R. Van Sickle [EMAIL PROTECTED]
Setup.exe has never been scriptable in any respect, and no discussion
to that effect has occurred here to the best of my knowledge.  People
have been discussing adding such a feature, but I haven't seen any
code.

There's a patch in the cygwin-patchs archive.

Reference?  The only thing I see is an additional post/pre install patch.

cgf

--
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: DirectX8/DirectInput + cygwin

2002-02-06 Thread Christopher Faylor

On Wed, Feb 06, 2002 at 12:11:58PM +0100, Pavel Tsekov wrote:
Dylan Cuthbert wrote:
I am linking directly with the .lib files supplied by Microsoft, and
all the Directx8 GUID references seem to link fine so does anybody have
any idea what the problem might be?

Why ?  Link against those in /usr/lib.  gcc doesn't understand the MS
export libraries.

Actually, gcc/ld should understand non-c++ import libraries.

cgf
--
Please do not send me personal email with cygwin questions.
Use the resources at http://cygwin.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/




Re: Re:symlinks

2002-02-06 Thread Christopher Faylor

On Wed, Feb 06, 2002 at 08:09:14AM -0800, Michael A Chase wrote:
- Original Message -
From: Jorge Goncalvez [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, February 06, 2002 02:30
Subject: Re:symlinks

Hi, I have made a symlink with the cygwin command ln -s and i wanted to
remove it by Perl code:
 I have this:
 $PROG2 = C:\\cygwin\\bootp\\linux\\install ;
 if (-l $PROG2)
 {

   system rm $PROG2;

  }
  else{
  print popo;
  }

The problem is that the symlink install it isn't removed althought it
is present with ls -l in the good directory?  Why?  I tested my rm
command by hand and it works it seems -l not working.  Thanks.

Have you tried Perl's unlink()?

I wondered the same thing.  I'd also suggest using cygwin paths with '/'
and no c: rather than the above.

cgf

--
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: install 'cron' packages in cygwin

2002-02-06 Thread Christopher Faylor

On Wed, Feb 06, 2002 at 02:29:01PM -, Prakriteswar Santikary wrote:
Hi,

here is the output  from 'cygcheck -s'. it looks like cron and vim are
installed. I see a src directory in which I have sourcce codes for cron and
vim. I don't know whether I have to compile them to get them to work. Can I
install the binary directly ?

If the name shows up in the cygcheck output without the '-src', it is already
on your system.  In your /bin, /sbin, or /usr/sbin directory.

cgf

--
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: install 'cron' packages in cygwin

2002-02-06 Thread Prakriteswar Santikary

Hi cgf,

I checked the output from 'cygcheck -s'. There is an entry called 'vim' and
there is no -src against it, but I don't see any vim.exe either under /bin
or /sbin or /usr/sbin. When I type 'vim' at the dollar prompt, it says
'command not found'. How do I check whether 'vim' is installed or not ?

thanks
Santi

-Original Message-
From: Christopher Faylor [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 06, 2002 9:40 AM
To: [EMAIL PROTECTED]
Subject: Re: install 'cron' packages in cygwin


On Wed, Feb 06, 2002 at 02:29:01PM -, Prakriteswar Santikary wrote:
Hi,

here is the output  from 'cygcheck -s'. it looks like cron and vim are
installed. I see a src directory in which I have sourcce codes for cron and
vim. I don't know whether I have to compile them to get them to work. Can I
install the binary directly ?

If the name shows up in the cygcheck output without the '-src', it is
already
on your system.  In your /bin, /sbin, or /usr/sbin directory.

cgf

--
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: DirectX8/DirectInput + cygwin

2002-02-06 Thread Pavel Tsekov



Christopher Faylor wrote:

 On Wed, Feb 06, 2002 at 12:11:58PM +0100, Pavel Tsekov wrote:
 
Dylan Cuthbert wrote:

I am linking directly with the .lib files supplied by Microsoft, and
all the Directx8 GUID references seem to link fine so does anybody have
any idea what the problem might be?

Why ?  Link against those in /usr/lib.  gcc doesn't understand the MS
export libraries.

 
 Actually, gcc/ld should understand non-c++ import libraries.


Is this a new feature or I was missing something all the time ?
What's the point of tools which build .a files from dlls ?


--
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: DirectX8/DirectInput + cygwin

2002-02-06 Thread Christopher Faylor

On Wed, Feb 06, 2002 at 07:10:49PM +0100, Pavel Tsekov wrote:
Christopher Faylor wrote:
On Wed, Feb 06, 2002 at 12:11:58PM +0100, Pavel Tsekov wrote:
Dylan Cuthbert wrote:
I am linking directly with the .lib files supplied by Microsoft, and
all the Directx8 GUID references seem to link fine so does anybody have
any idea what the problem might be?

Why ?  Link against those in /usr/lib.  gcc doesn't understand the MS
export libraries.

Actually, gcc/ld should understand non-c++ import libraries.

Is this a new feature or I was missing something all the time ?  What's
the point of tools which build .a files from dlls ?

If you have an existing .lib import library it should work fine with ld.
This has been the case for years.

This is not to say that there haven't been bugs over the years, but AFAIK,
there aren't any in the current version of cygwin.

If it helps you can rename foo.lib to libfoo.a so that you can add -lfoo
to the command line.

You can also link against the dll itself, in many cases:

gcc -o foo.exe foo.c blah.dll

cgf

--
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: numerical values in makefile ?

2002-02-06 Thread Charles Wilson

This is offtopic on a cygwin list.  Please find a more appropriate forum 
for non-cygwin-oriented questions about GNU make.  ([EMAIL PROTECTED] ?)

--Chuck

Stefan Bernögger wrote:

 Hi there,
 
 I want to use the $(words, text) function, but have troubles to
 process the numerical return value.
 
 How can I use this value and compare it with a fixed number (,,etc.) ?




--
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: install 'cron' packages in cygwin

2002-02-06 Thread Prakriteswar Santikary

cgf,

when I type 'cygcheck -s' I see both 'vim' and 'vim-src'. Does that mean I
have installed the -src ? I uninstalled the vim by clicking 'keep' to
'uninstall', Reinstalled it but still when I type 'vim' it says command not
found. Where am I going wrong ? thanks for your help.

Santi

-Original Message-
From: Christopher Faylor [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 06, 2002 10:26 AM
To: [EMAIL PROTECTED]
Subject: Re: install 'cron' packages in cygwin


On Wed, Feb 06, 2002 at 06:00:35PM -, Prakriteswar Santikary wrote:
I checked the output from 'cygcheck -s'.  There is an entry called
'vim' and there is no -src against it, but I don't see any vim.exe
either under /bin or /sbin or /usr/sbin.  When I type 'vim' at the
dollar prompt, it says 'command not found'.  How do I check whether
'vim' is installed or not ?

The purpose of cygcheck is to determine what has been installed on your
system.

It's hard to conceive of a situation where you ran setup.exe, it seemed
to successfully install the package, and nothing showed up in /bin.

If I had to guess, I'd say that you had just installed the -src packages
somehow and not the binary, possibly by clicking on the source column
and not on the Skip column when you ran setup.exe.

I don't know if there is a problem with cygcheck.exe where it is reporting
a binary package being installed when it isn't, but that's my educated
guess.

cgf

--
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: install 'cron' packages in cygwin

2002-02-06 Thread Christopher Faylor

On Wed, Feb 06, 2002 at 06:38:08PM -, Prakriteswar Santikary wrote:
when I type 'cygcheck -s' I see both 'vim' and 'vim-src'. Does that mean I
have installed the -src ? I uninstalled the vim by clicking 'keep' to
'uninstall', Reinstalled it but still when I type 'vim' it says command not
found. Where am I going wrong ? thanks for your help.

Sorry.  I don't have a clue.  If you don't have a vim in /bin/vim.exe or
/usr/bin/vim.exe after running setup.exe and definitely installing it,
then you are in a very very small minority.

I assume that it probably actually is on your system somewhere.  If this
was my problem, I would have searched the system for vim.exe a while
ago.  Have you done that?  Have you used the Windows Find to look for
vim.exe?  I really don't know what's happening.

cgf

--
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: install 'cron' packages in cygwin

2002-02-06 Thread Christopher Faylor

On Wed, Feb 06, 2002 at 06:55:05PM -, Prakriteswar Santikary wrote:
yes, I indeed searched for vim.exe and I could not find it. One thing. When
I expand the 'category', I see 'skip'. When I click on it, it changes to
source. Should I click on it while installing ? or shouldn't I ?

If you click on it until it says source, you are just installing the
source only.  Keep clicking until you get the highest version number.
That will install the binary.

cgf

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




Odd problem with rxvt.

2002-02-06 Thread TimothyReaves

 Hello.

 I am running XFCe  rxvt.  If I telnet / ssh to another machine, start
a process in the back ground, then type exit, the console hangs. This also
happens with just the cygwin script / shell as well ( no X ).  The shell
shows 'logout' but control never returns.  I have to close the window and
restart.



--
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: postgresql init scripts

2002-02-06 Thread Jason Tishler

Timothy,

On Wed, Feb 06, 2002 at 02:15:39PM -0500, [EMAIL PROTECTED] wrote:
 
 Whereas I am running 7.1.3, and the referenced directory exists, that
 file does not.  There is a faq_mswin, and a readme, but neither has this
 information in it.

Are you running the PostgreSQL that is part of the standard Cygwin
distribution?  If so, then we have the following:

$ tar -tjf contrib/postgresql/postgresql-7.1.3-2.tar.bz2 | fgrep README
usr/doc/Cygwin/postgresql-7.1.3.README
...

Anyway, try the following:

http://www.tishler.net/jason/software/postgresql/postgresql-7.1.3.README.txt

Jason

--
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: DirectX8/DirectInput + cygwin

2002-02-06 Thread Barubary

What about the more important problem that Microsoft's patented virtual
table system, which COM uses, isn't supported by GCC?

-- Barubary

- Original Message -
From: Christopher Faylor [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, February 06, 2002 10:18 AM
Subject: Re: DirectX8/DirectInput + cygwin


 On Wed, Feb 06, 2002 at 07:10:49PM +0100, Pavel Tsekov wrote:
 Christopher Faylor wrote:
 On Wed, Feb 06, 2002 at 12:11:58PM +0100, Pavel Tsekov wrote:
 Dylan Cuthbert wrote:
 I am linking directly with the .lib files supplied by Microsoft, and
 all the Directx8 GUID references seem to link fine so does anybody
have
 any idea what the problem might be?
 
 Why ?  Link against those in /usr/lib.  gcc doesn't understand the MS
 export libraries.
 
 Actually, gcc/ld should understand non-c++ import libraries.
 
 Is this a new feature or I was missing something all the time ?  What's
 the point of tools which build .a files from dlls ?

 If you have an existing .lib import library it should work fine with ld.
 This has been the case for years.

 This is not to say that there haven't been bugs over the years, but AFAIK,
 there aren't any in the current version of cygwin.

 If it helps you can rename foo.lib to libfoo.a so that you can add -lfoo
 to the command line.

 You can also link against the dll itself, in many cases:

 gcc -o foo.exe foo.c blah.dll

 cgf

 --
 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: Scriptable start.exe

2002-02-06 Thread Christopher Faylor

On Thu, Feb 07, 2002 at 07:15:46AM +1100, Robert Collins wrote:
Sorry, it might be in cygwin-apps.  It was the draft command line
parameters patch.

Ah, those.

I guess I wasn't thinking of those as a method for scripting setup.exe.

So, the current CVS already has some capability...

cgf

--
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: DirectX8/DirectInput + cygwin

2002-02-06 Thread Christopher Faylor

On Wed, Feb 06, 2002 at 12:20:23PM -0800, Barubary wrote:
What about the more important problem that Microsoft's patented virtual
table system, which COM uses, isn't supported by GCC?

Aren't virtual tables a feature of C++?

cgf

- Original Message -
From: Christopher Faylor [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, February 06, 2002 10:18 AM
Subject: Re: DirectX8/DirectInput + cygwin


On Wed, Feb 06, 2002 at 07:10:49PM +0100, Pavel Tsekov wrote:
Christopher Faylor wrote:
On Wed, Feb 06, 2002 at 12:11:58PM +0100, Pavel Tsekov wrote:
Dylan Cuthbert wrote:
I am linking directly with the .lib files supplied by Microsoft, and
all the Directx8 GUID references seem to link fine so does anybody have
any idea what the problem might be?

Why ?  Link against those in /usr/lib.  gcc doesn't understand the MS
export libraries.

Actually, gcc/ld should understand non-c++ import libraries.

Is this a new feature or I was missing something all the time ?  What's
the point of tools which build .a files from dlls ?

If you have an existing .lib import library it should work fine with
ld.  This has been the case for years.

This is not to say that there haven't been bugs over the years, but
AFAIK, there aren't any in the current version of cygwin.

If it helps you can rename foo.lib to libfoo.a so that you can add
-lfoo to the command line.

You can also link against the dll itself, in many cases:

gcc -o foo.exe foo.c blah.dll

--
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[2]: DirectX8/DirectInput + cygwin

2002-02-06 Thread Wade Brainerd

By the way, you can access the DirectX C interfaces (or any COM interface
for that matter) from C++ by #defining CINTERFACE before including the
header containing the interface.

Also, you don't have to use lpVtable, you can always use the macros they
provide (your preference).

-Wade

Wednesday, February 06, 2002, 3:11:14 AM, you wrote:

B Getting DirectX to work from cygwin GCC essentially can't be done from C++,
B but can be done from C.  It can't be done from C++ because of the way COM
B virtual tables work.  GCC can't clone Visual C++'s method because Microsoft
B holds a U.S. patent on their exact method.  Just try using MFC from GCC and
B you'll know exactly what I mean.

B In C, the virtual table system is done by actually creating the vtable
B structure in the header file, so this isn't a problem.  If you modify the
B DirectX header files, you could fix this for C++, but you'd have to
do -lpVtable all the time, like in C.

B GCC, or rather binutils, can't handle the Microsoft import library format.
B binutils of course has its own, so you could make your own from the DLL.

B If import libraries don't work, you could always GetProcAddress on
B DirectInputCreate8 after loading dinput8.dll.  Then the problem becomes how
B to get to the weird global functions (D3DX matrix stuff, for instance).

B -- Barubary

B - Original Message -
B From: Dylan Cuthbert [EMAIL PROTECTED]
B To: Cygwin@Cygwin. Com [EMAIL PROTECTED]
B Sent: Wednesday, February 06, 2002 2:22 AM
B Subject: DirectX8/DirectInput + cygwin

 When compiling a DirectInput8 function such as DirectInput8Create() I get
B an
 error linking:
 Unable to resolve DirectInput8Create@20



B --
B Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
B Bug reporting: http://cygwin.com/bugs.html
B Documentation: http://cygwin.com/docs.html
B 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/




Include problems....

2002-02-06 Thread Ben


I am having major problems with include files in cygwin.  Firstly, I cant
include files which are linked (.lnk files (symlinks?).  This works fine
on bash under redhat.  This isnt my main problem though...!

The main problem is that I can tget the -I flag to work correctly under
cygwin.  Take a look at this:

Cygwin:-

bash-2.05a$ gcc asd.cpp -I/tmp -v

#include ... search starts here:
#include ... search starts here:
 c:\program
files\devcpp\bin\..\lib\gcc-lib\i386-mingw32msvc\2.95.2\..\..\..\..\include
End of search list.



Linux:-
bash-2.05a$ gcc asd.cpp -I/tmp -v

#include ... search starts here:
#include ... search starts here:
 /tmp
 /usr/local/gcc-3.0/include/g++-v3
 /usr/local/gcc-3.0/include/g++-v3/i686-pc-linux-gnu
 /usr/local/gcc-3.0/include/g++-v3/backward
 /usr/local/include
 /usr/local/gcc-3.0/lib/gcc-lib/i686-pc-linux-gnu/3.0/include
 /usr/include
End of search list.


The linux one is adding /tmp to the list of directories to be searched.
Why isnt cygwin?  The redhat gcc is version 3, whereas the one on my
machine is 2.9 something, but I dont think its that...!

Hopefully someone can help with this?!

Thanks in advance,
Ben


-- 
Ben
[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: Cygwin memory problems

2002-02-06 Thread Larry Hall (RFK Partners, Inc)

At 04:32 PM 2/6/2002, David Guaspari wrote:

A web search turned up a brief (2-message) thread about memory problems using cygwin. 
 Was there any resolution?  


Hard to say since it's not clear what your memory problem is or which
reference you found on the list.  I'm going to guess you're referencing
this thread:

http://sources.redhat.com/ml/cygwin/2001-02/msg01627.html

If that's the case, the reply I gave to Chris Althouse is the only one I 
can give to you.  Certainly more details are necessary to make a more
specific diagnosis.  Perhaps Chris can enlighten you and the rest of us
with the results of his debugging session.



I'm trying to run a 350Kbyte executable on a machine with 512Meg of RAM and get the 
message Program too big to fit in memory.  I just installed the latest cygwin 
today. 



Perhaps the output of cygcheck -s -r -v might help, along with some 
details of what the problems are that you're seeing.

Sorry, that's all I can offer at this point.


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: DirectX8/DirectInput + cygwin

2002-02-06 Thread Barubary

 Aren't virtual tables a feature of C++?

 cgf

I'm talking about the specific implementation of the virtual table - the
layout of the function pointers relative to the this pointer.  The
location and format of the vtable relative to the this pointer in Visual
C++ is patented by Microsoft.  I wish I knew the patent number...

-- Barubary


--
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: DirectX8/DirectInput + cygwin

2002-02-06 Thread Christopher Faylor

On Wed, Feb 06, 2002 at 02:24:57PM -0800, Barubary wrote:
 Aren't virtual tables a feature of C++?

I'm talking about the specific implementation of the virtual table - the
layout of the function pointers relative to the this pointer.  The
location and format of the vtable relative to the this pointer in Visual
C++ is patented by Microsoft.  I wish I knew the patent number...

I'm talking about the fact that I said that non-c++ import libraries
should work correctly.  You countered with a question about Microsoft's
patented virtual table system.

If the virtual table system is used in non-c++ libraries then this is an
issue.  Otherwise, again, non-c++ import libraries should work ok with
'ld'.

The reason that I said non-c++ is specifically because gcc/gas/ld
don't understand Microsoft's C++ object file layout.

cgf

--
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: install 'cron' packages in cygwin

2002-02-06 Thread Prakriteswar Santikary

cgf,

thank you very much. I got it to work. thank you again.

Santi

-Original Message-
From: Christopher Faylor [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 06, 2002 11:02 AM
To: [EMAIL PROTECTED]
Subject: Re: install 'cron' packages in cygwin


On Wed, Feb 06, 2002 at 06:55:05PM -, Prakriteswar Santikary wrote:
yes, I indeed searched for vim.exe and I could not find it. One thing. When
I expand the 'category', I see 'skip'. When I click on it, it changes to
source. Should I click on it while installing ? or shouldn't I ?

If you click on it until it says source, you are just installing the
source only.  Keep clicking until you get the highest version number.
That will install the binary.

cgf

--
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: MS C++ Patent (WAS: DirectX8/DirectInput + cygwin)

2002-02-06 Thread Jon Foster

Hi,

 I'm talking about the specific implementation of the virtual table - the
 layout of the function pointers relative to the this pointer.  The
 location and format of the vtable relative to the this pointer in Visual
 C++ is patented by Microsoft.  I wish I knew the patent number...

I think it's US Patent 5,297,284, Method and system for implementing
virtual functions and virtual base classes and setting a this pointer for an
object-oriented programming language.

Here's a direct URL (split over 4 lines 'cos it was too long):

http://patft.uspto.gov/netacgi/nph-Parser?
Sect1=PTO1Sect2=HITOFFd=PALLp=1
u=/netahtml/srchnum.htmr=1f=Gl=50s1='5297284'.WKU.
OS=PN/5297284RS=PN/5297284

Standard disclaimer applies to this post - I am not a lawyer. :-P

Regards,

Jon
--
The knack of flying is learning how to throw yourself at
the ground and miss. - Hitchhiker's Guide to the Galaxy

E-mail: [EMAIL PROTECTED]
web: http://www.jon-foster.co.uk/

- Original Message -
Barubary [EMAIL PROTECTED] wrote:
  Aren't virtual tables a feature of C++?
 
  cgf

 I'm talking about the specific implementation of the virtual table - the
 layout of the function pointers relative to the this pointer.  The
 location and format of the vtable relative to the this pointer in Visual
 C++ is patented by Microsoft.  I wish I knew the patent number...

 -- Barubary



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




I got a FREE Web Hosting FREE Email For you

2002-02-06 Thread Linda Y.


Do you need  a Web hosting Will I got a FREE  Web Hosting for you 
You Get   Web hosting (Exp. Uunb.com/yourName)   I will give you 
Free  10 mb  of  Email. You don't need to buy any thing and I will help
You to promote your site to.

http://uunb.com/free_hosting/free_hosting.html

--
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: /proc (was: Re: /dev/registry)

2002-02-06 Thread Warren Young

Chris January wrote:
 
 I'll probably add some entries to /proc - ones commonly found on UNIX
 platforms maybe. Anyone have any favourites they wish to see?

I don't know about favorite, but the only one that's even close to
standardized across Unices is /proc/pid.  And even that is nonstandard
everywhere: it's a bunch of text files on Linux, and a bunch of binary
files by different names under recent SysVR4.  (Or SVR5, as Caldera nee
SCO insists on calling it.)

--
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: /proc (was: Re: /dev/registry)

2002-02-06 Thread Chris January

  1. it's difficult to accidentally cat to a key considering the length of
the
  names  -
 
/proc/registry/HKEY_CURRENT_USER/Software/Microsoft/Windows/CurrentVersion/S
  hell\ Extensions/Approved/\{BDEADF00-C265-11d0-BCED-00A0C90AB50F\} is a
bit
  hard to type in by accident...
At the moment, I have called the default key value, (default), the same as
regedit. Does anyone have any objections to this (and if so a better
suggestion)? The brackets can't be typed into bash without being quoted;
this might become a bit of a pain.

Regards
Chris



--
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: /proc (was: Re: /dev/registry)

2002-02-06 Thread Stephan Mueller

Another suggestion (I won't presume to say better):

.reg files refer to this value as @.  E.g.

REGEDIT4

[HKEY_CURRENT_USER\AppEvents\Schemes]
@=.current

stephan();


-Original Message-
From: Chris January [mailto:[EMAIL PROTECTED]] 
Sent: Wednesday, February 06, 2002 4:56 PM
To: [EMAIL PROTECTED]
Subject: Re: /proc (was: Re: /dev/registry)


  1. it's difficult to accidentally cat to a key considering the 
  length of
the
  names  -
 
/proc/registry/HKEY_CURRENT_USER/Software/Microsoft/Windows/CurrentVersi
on/S
  hell\ Extensions/Approved/\{BDEADF00-C265-11d0-BCED-00A0C90AB50F\} 
  is a
bit
  hard to type in by accident...
At the moment, I have called the default key value, (default), the
same as regedit. Does anyone have any objections to this (and if so a
better suggestion)? The brackets can't be typed into bash without being
quoted; this might become a bit of a pain.

Regards
Chris



--
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: DirectX8/DirectInput + cygwin

2002-02-06 Thread Dylan Cuthbert

If this is the case, does this mean the problem I'm getting with
DirectInput8Create@20 not being found is due to differences in C++ name
mangling as another poster mentioned only C libraries being able to link.

Linking directly with the DirectX SDK .lib files cleared up all the
unresolved errors apart from just this single one, but I'm only calling a
few directx function calls as a test so presumably I'll come across the same
problem when I start using more function calls.

Thanks for the help, I feel I'm getting a few starting points to try out.

-
Q-Games, Dylan Cuthbert.
http://www.q-games.com

- Original Message -
From: Christopher Faylor [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, February 07, 2002 3:18 AM
Subject: Re: DirectX8/DirectInput + cygwin


 On Wed, Feb 06, 2002 at 07:10:49PM +0100, Pavel Tsekov wrote:
 Christopher Faylor wrote:
 On Wed, Feb 06, 2002 at 12:11:58PM +0100, Pavel Tsekov wrote:
 Dylan Cuthbert wrote:
 I am linking directly with the .lib files supplied by Microsoft, and
 all the Directx8 GUID references seem to link fine so does anybody
have
 any idea what the problem might be?
 
 Why ?  Link against those in /usr/lib.  gcc doesn't understand the MS
 export libraries.
 
 Actually, gcc/ld should understand non-c++ import libraries.
 
 Is this a new feature or I was missing something all the time ?  What's
 the point of tools which build .a files from dlls ?

 If you have an existing .lib import library it should work fine with ld.
 This has been the case for years.

 This is not to say that there haven't been bugs over the years, but AFAIK,
 there aren't any in the current version of cygwin.

 If it helps you can rename foo.lib to libfoo.a so that you can add -lfoo
 to the command line.

 You can also link against the dll itself, in many cases:

 gcc -o foo.exe foo.c blah.dll

 cgf

 --
 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: DirectX8/DirectInput + cygwin

2002-02-06 Thread Dylan Cuthbert


Thanks folks - I found a mirror for the dx8 libs on Peter Puck's web site -

http://rain.prohosting.com/urebel/download.html

Also, Peter Puck's web site is down at the moment - hopefully it will come
back up:
it is:
http://sites.netscape.net/ptrpck/directx.htm

I'll try installing these today and see if I can make some progress, thanks
to everyone for their quick response!  I'll send a DirectX section to the
FAQ maintainer once I get all this working as a kind of payback.

Regards

-
Q-Games, Dylan Cuthbert.
http://www.q-games.com

- Original Message -
From: andy younger [EMAIL PROTECTED]
To: Barubary [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Thursday, February 07, 2002 9:30 AM
Subject: Re: DirectX8/DirectInput + cygwin


 Peter Puck has already made bindings for Direct X 8. The site appears to
 be down at the moment, but if you google for

 dx8 Peter Puck

 you can probably find them, I believe these are MingW bindings, but they
 work fine with cygwin.

 Contrary to popular belief you can use the COM/C++ bindings. Gcc's
 default way of doing thunking is different than visual C's, but if you
 use the compiler option -fvtable-thunks it uses the vtable method. Due
 to this being a ABI change, you will need to build all your source files
 with this. This obviously does not fix the name mangling
 incompatibilities with Visual C, but on a COM interface such as DX, this
 does not matter.

 The biggest problem you will have are with DirectShow, and the D3DX
 libraries.

 DirectShow (or whatever it is called these days) has a C++ interface to
 it, and as such will only work with visual C's mangling scheme. So no
 joy there..

 With D3DX, the problem is that the libraries are statically linked, and
 use Visual C++'s name mangling scheme for most of the internal symbols.
 This leaves them somewhat useless for any compiler rather than Visual C.
 There are 2 solutions to this.

 - don't use them, they are convenient, but not essential to DX
programming.

 - Make a wrapper DLL for them with visual C. I believe someone has
 already done this to enable them to use the librarys in Borland C. A
 google search should yield some answers.

 Cheers,

 Andy



 --
 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: /proc (was: Re: /dev/registry)

2002-02-06 Thread Michael A Chase

Just another log on the fire, the Perl registry modules use  for the
(default) value.

Even so, I'd lean toward @ since it's hard to name a file .

You may need to have an ioctl() to change the key separator.  '\' would
probably be ok, but difficult.  The problem with '/' might make it hard to
handle the cygwin mount tables.
--
Mac :})
** I normally forward private questions to the appropriate mail list. **
Ask Smarter: http://www.tuxedo.org/~esr/faqs/smart-questions.htm
Give a hobbit a fish and he eats fish for a day.
Give a hobbit a ring and he eats fish for an age.
- Original Message -
From: Stephan Mueller [EMAIL PROTECTED]
To: Chris January [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Wednesday, February 06, 2002 17:00
Subject: RE: /proc (was: Re: /dev/registry)


Another suggestion (I won't presume to say better):

.reg files refer to this value as @.  E.g.

REGEDIT4

[HKEY_CURRENT_USER\AppEvents\Schemes]
@=.current

stephan();


-Original Message-
From: Chris January [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 06, 2002 4:56 PM
To: [EMAIL PROTECTED]
Subject: Re: /proc (was: Re: /dev/registry)


  1. it's difficult to accidentally cat to a key considering the
  length of
the
  names  -
 
/proc/registry/HKEY_CURRENT_USER/Software/Microsoft/Windows/CurrentVersi
on/S
  hell\ Extensions/Approved/\{BDEADF00-C265-11d0-BCED-00A0C90AB50F\}
  is a
bit
  hard to type in by accident...
At the moment, I have called the default key value, (default), the
same as regedit. Does anyone have any objections to this (and if so a
better suggestion)? The brackets can't be typed into bash without being
quoted; this might become a bit of a pain.




--
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: cvs: Terminated with fatal signal 6

2002-02-06 Thread Charles Wilson

Just a hunch: do the openoffice sources contain files (within the same 
directory) whose names differ only in case?  If so, then cygwin cvs will 
have problems...

--Chuck

Volker Quetschke wrote:

 Hi!
 
 I just tried to download the Openoffice sources with cvs running on 
 cygwin (1.3.9, everything updatet, all binary mounts) / Windows 2K.
 
 $export CVSROOT=:pserver:[EMAIL PROTECTED]:/cvs
 
 $cvs login
 ... Password: anoncvs
 
 $cvs checkout -r OpenOffice341C OpenOffice
 cvs: lock.c:177: lock_name: Assertion `(__extension__ 
 (__builtin_constant_p ( strlen (CVSroot_directory))  
 ((__builtin_constant_p (repository)  strlen (repository)  ((size_t) ( 
 strlen (CVSroot_directory || (__builtin_constant_p
 [stuff deleted]
 CVSroot_directory; }) : strncmp (repository, CVSroot_directory, 
 strlen (CVSroot_directory == 0' failed.
 Terminated with fatal signal 6
 
 I write this to the cygwin list, because when I try the commands given
 above on a sun solaris machine everything is OK and cvs starts to download.
 
 But I realized that when I mistype the branch on the solaris machine, 
 e.g. OpenOffice341c (a small c instead of a capital C) I get a similar 
 fault.
 
 Is this cygwin related? Can anybody help? My apologies if this is off 
 topic.
 
 Volker
 
 
 -- 
 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: cvs: Terminated with fatal signal 6

2002-02-06 Thread Billinghurst, David (CRTS)

cygwin cvs (on win2k) copes with this ok.  It happens with gcc and maxima sources.  It 
just overwrites on file and complains.

-Original Message-
From: Charles Wilson [mailto:[EMAIL PROTECTED]]
Sent: Thursday, 7 February 2002 12:56 
To: Volker Quetschke
Cc: [EMAIL PROTECTED]
Subject: Re: cvs: Terminated with fatal signal 6


Just a hunch: do the openoffice sources contain files (within the same 
directory) whose names differ only in case?  If so, then cygwin cvs will 
have problems...

--Chuck

Volker Quetschke wrote:

 Hi!
 
 I just tried to download the Openoffice sources with cvs running on 
 cygwin (1.3.9, everything updatet, all binary mounts) / Windows 2K.
 
 $export CVSROOT=:pserver:[EMAIL PROTECTED]:/cvs
 
 $cvs login
 ... Password: anoncvs
 
 $cvs checkout -r OpenOffice341C OpenOffice
 cvs: lock.c:177: lock_name: Assertion `(__extension__ 
 (__builtin_constant_p ( strlen (CVSroot_directory))  
 ((__builtin_constant_p (repository)  strlen (repository)  ((size_t) ( 
 strlen (CVSroot_directory || (__builtin_constant_p
 [stuff deleted]
 CVSroot_directory; }) : strncmp (repository, CVSroot_directory, 
 strlen (CVSroot_directory == 0' failed.
 Terminated with fatal signal 6
 
 I write this to the cygwin list, because when I try the commands given
 above on a sun solaris machine everything is OK and cvs starts to download.
 
 But I realized that when I mistype the branch on the solaris machine, 
 e.g. OpenOffice341c (a small c instead of a capital C) I get a similar 
 fault.
 
 Is this cygwin related? Can anybody help? My apologies if this is off 
 topic.
 
 Volker
 
 
 -- 
 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/




dlopen(0, RTLD_LAZY) doesn't work?

2002-02-06 Thread Kent Watsen


Hi,

I've read the mailing list archives and searched google trying
to figure out how to get the following program to work.  All
you have to do is save it to a file (foo.c), compile (gcc foo.c),
and run - I always get dlsym() failed.

Note, I have tried many variations of extern and _declspec
as well as looking for _foo in addition to foo (nm a.exe |
grep foo returned 0040104c T _foo...

Here is the code - help would be greatly appreciated - thanks!

#include stdio.h
#include dlfcn.h
#include windows.h

extern __declspec(dllexport) void foo(void)
{
printf(hello\n);
}

int main(int argc, char *argv[])
{
void* dl= NULL;
void* func = NULL;

dl = dlopen(0 , RTLD_LAZY);
if (dl == NULL) {
printf(dlopen() failed\n);
exit(0);
}

func = dlsym(dl, foo);
if (func == NULL) {
printf(dlsym() failed\n);
exit(0);
}

printf(do something meaningful\n);

dlclose(dl);
return 0;
}




--
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: dlopen(0, RTLD_LAZY) doesn't work?

2002-02-06 Thread Kent Watsen


OK, so I've written the windows equivalent of my original program
and still get the same error - is there some linking option I'm missine?

Here is the new code, again just compile (gcc foo.c) and run (foo.exe):

#include stdio.h
#include windows.h

extern __declspec(dllexport) void foo(void)
{
printf(hello\n);
}

int main(int argc, char *argv[])
{
void* dl   = NULL;
void* func = NULL;

dl = (void *) GetModuleHandle (NULL);
if (dl == NULL) {
printf(GetModuleHandle() failed\n);
exit(0);
}

func = (void*)GetProcAddress((HMODULE)dl, foo);
if (func == NULL) {
printf(GetProcAddress() failed (code %u)\n, GetLastError());
exit(0);
}

printf(do something meaningful\n);

return 0;
}









Kent Watsen wrote:


 Hi,

 I've read the mailing list archives and searched google trying
 to figure out how to get the following program to work.  All
 you have to do is save it to a file (foo.c), compile (gcc foo.c),
 and run - I always get dlsym() failed.

 Note, I have tried many variations of extern and _declspec
 as well as looking for _foo in addition to foo (nm a.exe |
 grep foo returned 0040104c T _foo...

 Here is the code - help would be greatly appreciated - thanks!

 #include stdio.h
 #include dlfcn.h
 #include windows.h

 extern __declspec(dllexport) void foo(void)
 {
printf(hello\n);
 }

 int main(int argc, char *argv[])
 {
void* dl= NULL;
void* func = NULL;

dl = dlopen(0 , RTLD_LAZY);
if (dl == NULL) {
printf(dlopen() failed\n);
exit(0);
}

func = dlsym(dl, foo);
if (func == NULL) {
printf(dlsym() failed\n);
exit(0);
}

printf(do something meaningful\n);

dlclose(dl);
return 0;
 }




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




bug report: cygwin lib can't recover after out of memory

2002-02-06 Thread Frank Seide

Hi,

I observed cygwin getting into a bad state after a
memory-allocation failure, from which I only can
recover by terminating all cygwin processes to unload
the cygwin1.dll.

I run a perl script that gradually allocates memory
until the memory limit of 256 MB (default) is reached.
Perl, as expected, terminates with Out of Memory!

However, _after_ the script terminates,
subsequently executed cygwin programs have a problem:

 - a simple ls gives
   Segmentation fault (core dumped)

% ls -l
... (works correctly)
% ./test.pl -- script to reach mem limit
Out of memory!
% ls -l
Segmentation fault (core dumped)
%

 - trying to open another rxvt window (while the shell in which
  the script terminated is still open) shows the msg
handle_exceptions: Exception: STATUS_ACCESS_VIOLATION

To recover, I need to exit the shell in which the script
terminated first, such that all cygwin processes are gone
(and cygwin1.dll gets unloaded, I guess).

Thanks,

Frank

Version info:

 - This is perl, version 5.005_03 built for cygwin32
 - WinNT Ver 5.0 build 2195 Service Pack 2
 - Cygwin DLL version info:
dll major: 1003
dll minor: 2
dll epoch: 19
dll bad signal mask: 19005
dll old termios: 5
dll malloc env: 28
api major: 0
api minor: 39
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: Sun May 20 23:28:17 EDT 2001
shared id: cygwin1S3


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




bash: fork: Resource temporarily unavailable

2002-02-06 Thread Andrew DeFaria

One of our processes attempts to do an rsh to a Windows 2000 Server and 
run a make. This works fine for most of the time. But every once in a 
while it starts failing with:

$ rsh server echo hi
  0 [main] bash 3376 sync_with_child: child 4080(0x1D0) died before 
initialization with status code 0x80
  10325 [main] bash 3376 sync_with_child: *** child state waiting for 
longjmp
bash: fork: Resource temporarily unavailable

Any ideas on how to debug this? What resource is not available?



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




lock down cygwin1.dl in memory to avoid paging in a network installation?

2002-02-06 Thread Frank Seide

Hi,

does anyone have an idea how to force cygwin1.dll
to be loaded entirely and then locked down in physical
memory so that NT won't page it out?

In our compute server farm, to reduce maintainance overhead,
I installed Cygwin UNIX-like in the network,
i.e. the cygwin root (/) and everything below like
/bin, /etc etc is on an NT network drive.
With this I can install Cygwin on any computer by using a
single Cygwin-mount command, and all installations are
guaranteed to be identical, works well.

However, once the NT file server crashes or falls
into meditation or the network hangs for ~1 minute,
cygwin does not function anymore reliably.
Programs (running or newly started) sooner or later
crash with seg fault or STATUS_ACCESS_VIOLATION.
It seems the file handle to cygwin1.dll becomes invalid
due to a timeout, and subsequent requests for
paging in dll code fail.

The only way to recover is to terminate _all_ cygwin
processes which unloads cygwin1.dll. Our jobs often
run many days, and there are multiple cygwin jobs
on each multi-CPU server.

Anyone any idea?

Thanks!

Frank


--
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: DirectX8/DirectInput + cygwin

2002-02-06 Thread Robert Collins

On Thu, 2002-02-07 at 07:32, Christopher Faylor wrote:
 On Wed, Feb 06, 2002 at 12:20:23PM -0800, Barubary wrote:
 What about the more important problem that Microsoft's patented virtual
 table system, which COM uses, isn't supported by GCC?
 
 Aren't virtual tables a feature of C++?

Yes and no. [D]COM[++], which is not C++, also uses virtual tables for
in-process objects and in-process object stubs. (stubs are used where
the obejct doesn't directly implement an in-process capability, or it's
being invoked remotely). 

However, AFAIK (not an expert) that shouldn't be an issue for us, as all
COM linking is done at run-time, not statically...

Rob


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




Error reports and queries

2002-02-06 Thread Michael Bax

Hi

1.
I installed OpenSSH (and therefore OpenSSL) under Cygwin.  My shell is tcsh.
When my shell starts up, it gives an error because the last line of
/etc/profile.d/openssl.csh has an error in the last line.  This should be
endif not fi.

2.
If tcsh is invoked from the command line (for example), the MANPATH variable
gains a duplicate openssl entry.  This is duplicated again each time tcsh is
nested.

3.
The default configuration for tcsh is quite different to most systems'
default tcsh configuration: noglob is set, command-line typo-correction is
enabled, etc.  Any chance that this could be changed to a setup that is more
typical on Unix systems?

4.
I am a power user, not an administrator.  But inside my Cygwin shell I can
read, edit and write arbitrary files in /, /etc, /home/Administrator etc.
This is true both with and without ntsec.  Is this proper behaviour, to
follow the NTFS permissions and disregard the Posix permissions?

5.
It appears that ntsec allows *listing* permissions, but the real permissions
are unchanged with or without ntsec.  Is this right?

6.
What does ntea actually do?  The guide isn't very clear whether this is a
good thing, or exactly what it does: if it simply allows tracking chmod
permissions, how do these interact with the ntsec permissions?

Thank you
Michael


--
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: perl -i switch bug on cygwin

2002-02-06 Thread Ralf Habacker

A patch is available in 

http://sources.redhat.com/ml/cygwin-apps/2001-11/msg00736.html


  This has been discussed before.
 http://cygwin.com/ml/cygwin/2001-01/msg5.html   et al
 
  -Original Message-
  From: Benoit Rochefort [mailto:[EMAIL PROTECTED]]
  Subject: perl -i switch bug on cygwin
  It seems there is a bug on the -i switch for perl.
  ...
  As you can see, the -i switch works well with an argument 
  but not at all with no arguments, which is really inconvenient for me
 since 
  ...
  
 
 --
 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: cvs: Terminated with fatal signal 6

2002-02-06 Thread Volker Quetschke

Hi!

Charles Wilson wrote:

 Just a hunch: do the openoffice sources contain files (within the same 
 directory) whose names differ only in case?  If so, then cygwin cvs will 
 have problems...


Err, I dont't think so (I have not checked) but the sources are made to 
be used with MS VC++ (the windows version) and also for Linux, Solaris 
and Mac OS X.

They have weird prerequisits for the compilation, they use:
* 4NT Version 2.5 or higher.
* JDK 1.3.1.
* Perl 5 for Win32.
* Cygnus Toolkit. The latest Cygnus Toolkit is available from
   http://www.cygwin.com. However: OpenOffice.org was successfully
   built using the (old) b20 version of cygwin, but we encountered
   problems with the newest version run under the 4NT shell.
   Cygwin-b20 resides under various mirror sites, for instance at ..
* GNU Bison 1.28: cygwin-b20 only contains Bison 1.25.

See: http://www.openoffice.org/dev_docs/source/build_windows.html

I thought I should try a build using only cygwin and native cygwin 
programms (and MS VC++).

Volker


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