Re: Splitting up lib{xslt,xml2} packages

2003-06-28 Thread Peter Ring
I'm on vacation, checking mail through a cell phone, so please forgive the
level of investigation --

If you are going to rebuild libxslt and libxml2, I have a few wishes.

As far as I remember, threading support was enabled, while it does not
actually work; try running 'make check'.

xmlcatalog has a very useful interactive mode. It would be even more useful
if readline was enabled.

My request: please add '--with-history --without-threads' when configuring
libxml2.

kind regards
Peter Ring

- Original Message - 
From: Elfyn McBratney [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, June 27, 2003 9:47 PM
Subject: Re: Splitting up lib{xslt,xml2} packages


 On Fri, 27 Jun 2003, Max Bowsher wrote:

  Elfyn McBratney wrote:
   Hi,
  
   I'm wanting to split up the lib{xslt,xml2} into
  seperate -doc, -devel, -python,
   etc, packages. I figure I should wait until the next release, but just
  wanted to
   hear is there's any thoughts pro or against this. This saves bandwidth
for
  the
   user that only needs lib{xslt,xml2} (the runtime(s)) and means there
is no
   change required to the setup.hint files on sources.redhat.com to this
to
  happen.
  
   My inted layout is
  
 libxml2 the runtime library
 libxml2-doc manuals, docs, etc
 libxml2-devel   headers and static libs
 libxml2-python  python bindings
 libxml2-perlperl modules (XML::)
  
 libxslt ...
 libxslt-doc ...
 libxslt-devel   ...
 libxslt-python  ...
 
  That could be very useful from those of us still stuck on modems.

 Yeah, me being one of them. :-)

  When you do, you could move /usr/share/doc/* to /usr/doc/* to conform
with
  most other cygwin packages.

 I've done that. I'm going to do this tomorrow if no one disagrees, as all
it
 takes is uploading new packages.

 Elfyn
 -- 




Re: Splitting up lib{xslt,xml2} packages

2003-06-28 Thread Elfyn McBratney
On Fri, 27 Jun 2003, Charles Wilson wrote:

 Elfyn McBratney wrote:

 My inted layout is
 
   libxml2 the runtime library
   libxml2-doc manuals, docs, etc
   libxml2-devel   headers and static libs
   libxml2-python  python bindings
   libxml2-perlperl modules (XML::)
 
   libxslt ...
   libxslt-doc ...
   libxslt-devel   ...
   libxslt-python  ...
 

 
  I've done that. I'm going to do this tomorrow if no one disagrees, as all it
  takes is uploading new packages.

 I don't agree.  (in mean, in principle, yes, but I don't think your
 proposed package naming/splitting is the right way to do it).

 #1. **Usually** it's nice if lib are the actual DLL- and linklib-
 containing package, and everything else goes into - packages.   Like
 libncursesX vs. ncurses:

 libncursesX  : DLLs
 libncurses-devel : static libs, headers, import libs
 ncurses  : the rest
 ncurses-demo : extra apps

 The exception is if the upstream package itself is called libsomething
 -- for instance, libiconv or libtool.

 Now. I'm not familiar with xml/xslt -- are they distributed as libxslt
 upstream, or as xslt?

Yes, they're distributed as libxml2 and libxslt.

 #2.  the two runtime library packages should be versioned.  e.g.

 libxml2_N where N corresponds to the -N.dll version number (eg.
 cygbz2-1.dll is distributed in libbz2_1 package.)

 Now, libxslt contains three DLLs with different DLL numbers.  There are
 two (three?) ways to handle this:

 a) bundle all of the DLLs into one DLL package, using the version
 number that is the maximum of all of the DLLs within.  Eg.
cygexslt-0.dll
cygxslt-1.dll
cygxsltbreakpoint-1.dll
 MAX(0,1,1) == 1, so these should be in 'libxslt1' package (that is,
 libxslt1-1.0.30-2.tar.bz2)  You need an '_', though, when the real
 package name ends in a numeral (xml2, bzip2).

 This is what I did with ncurses, etc (sans underscore, of course)

 b) bundle and use the SUM of all of the version numbers.  I don't know
 of any existing package that does this -- and it could lead to setup
 ordering errors if you ever move to (c), below.

 c) separate tarball for each DLL - this is what I did for libintl2 and
 libcharset1 (both from the same gettext source bundle).  Even if you
 split up the DLL packages, all of the -devel stuff can stay in a single
 -devel package.


 #3) **Ordinarily**, -devel packages should NOT be versioned.  So, your
 suggestion of 'libxslt-devel' (as opposed to 'libxslt1-devel') is a good
 one.  There are exceptions to this rule; see libpng, libdb)

That's because of the multiple versions, right? Like with pcre.

 --

 So, I suggest

 libxml2_2   the runtime library
 libxml2-doc manuals, docs, etc
 libxml2-devel   headers and static libs (incl. xml2-config)
 libxml2-python  python bindings
 libxml2-perlperl modules (XML::)

 libxslt1all three runtime libraries
 libxslt-doc ...
 libxslt-devel   ...
 libxslt-python  ...

That's pretty much the layout I'm using. I just need to change the name of the
runtime package (to libxml2_2). I guess the binaries (xmllint et al) should go
in -devel .

 Now, this requires updating requires: lines on some setup.hints in other
 packages -- but TRUST ME, it's better to face the pain now than later.

Oh well, tomorrow's another awk'ing day. Wouldn't an 'alias' flags be helpful in
setup.ini . Hmm..

 --Chuck

Thanks, Chuck.

Elfyn
-- 



Re: cabextract-0.6 - a new package for review

2003-06-28 Thread Jari Aalto+mail.linux
* Fri 2003-06-27 Charles Wilson [EMAIL PROTECTED] list.cygwin-apps
* Message-Id: [EMAIL PROTECTED]
 Jari Aalto+mail.linux wrote:

 Project http://www.kyz.uklinux.net/cabextract.php3 has been ported,
 please review.
 
 
 @ cabextract
 sdesc: Program extracts Microsoft cabinet (.CAB) files
 ldesc: Program extracts Microsoft cabinet (.CAB) files
 skip:
 curr: 0.6-1
 # prev: version
 # test: version
 category: Archive
 # requires: package[ package...]
 # external-source: package
 

 I vote yes -- but does cabextract REALLY have no external dependencies? 
 (I haven't yet reviewed the packaging itself...)


Really, it's all self sufficient. I was suprised myself.

Jari

-- 
http://tiny-tools.sourceforge.net/
Swatch  @time http://www.ryanthiessen.com/swatch/resources.htm
Convert @time http://www.mir.com.my/iTime/itime.htm



[mknetrel Patch] Change default cygwin_root

2003-06-28 Thread Max Bowsher
Index: bin/mknetrel
===
RCS file: /home/max/cvsmirror/cygwin-apps-cvs/mknetrel/bin/mknetrel,v
retrieving revision 1.48
diff -u -p -r1.48 mknetrel
--- bin/mknetrel 15 Jun 2003 03:49:19 - 1.48
+++ bin/mknetrel 28 Jun 2003 17:14:34 -
@@ -56,7 +56,7 @@ read_user_config() {
  *) iscygwin() { return 1; } ;;
 esac
 if iscygwin; then
- : ${cygwin_root=/}
+ : ${cygwin_root=}
  : ${build_cxx='g++'}
  : ${build_cc='gcc'}
  : ${build_ranlib='ranlib'}


Everywhere $cygwin_root is used, it is used with a trailing /, therefore, if
it is set to /, the result is paths like //bin. Setting it to an empty
string avoids double-slashes.



Max.



[mknetrel suggestion] Move --enable-haifa from main script to extra/gcc2

2003-06-28 Thread Max Bowsher
--enable-haifa is only applicable to gcc2, therefore having it in the main
script can be misleading.

Index: bin/mknetrel
===
RCS file: /home/max/cvsmirror/cygwin-apps-cvs/mknetrel/bin/mknetrel,v
retrieving revision 1.48
diff -u -p -r1.48 mknetrel
--- bin/mknetrel 15 Jun 2003 03:49:19 - 1.48
+++ bin/mknetrel 28 Jun 2003 17:30:11 -
@@ -228,7 +228,7 @@ mystrip() {
 }

 doconfig() {
-



CONFIGOPTS=${build_config_opts} --enable-haifa --prefix=$prefix --exec-pref
ix=$exec_prefix --sysconfdir=$sysconfdir --libdir=$libdir --includedir=$incl
udedir --libexecdir=$libexecdir
+



CONFIGOPTS=${build_config_opts} --prefix=$prefix --exec-prefix=$exec_prefix
 --sysconfdir=$sysconfdir --libdir=$libdir --includedir=$includedir --libexe
cdir=$libexecdir
 cat config.cache EOF
 ac_cv_prog_RANLIB=${ac_cv_prog_RANLIB='$build_ranlib'}
 ac_cv_prog_CC=${ac_cv_prog_CC='$build_cc'}
Index: extra/gcc2
===
RCS file: /home/max/cvsmirror/cygwin-apps-cvs/mknetrel/extra/gcc2,v
retrieving revision 1.2
diff -u -p -r1.2 gcc2
--- extra/gcc2 15 Jul 2002 22:07:04 - 1.2
+++ extra/gcc2 28 Jun 2003 17:30:38 -
@@ -3,7 +3,7 @@ preconfig() {
 sedit 's%\(2.95.[23]\).*$%\1'$n' (cygwin special);%'
$src/gcc/version.c 4 : || :
 build_cxx='ccache i686-pc-cygwin-g++-2'
 build_cc='ccache i686-pc-cygwin-gcc-2 -mwin32'
-



CONFIGOPTS=--enable-languages=c,c++,f77 --enable-threads --with-system-zlib
 --enable-nls --without-included-gettext --disable-shared --disable-version-
specific-runtime-libs $CONFIGOPTS
+



CONFIGOPTS=--enable-haifa --enable-languages=c,c++,f77 --enable-threads --w
ith-system-zlib --enable-nls --without-included-gettext --disable-shared --d
isable-version-specific-runtime-libs $CONFIGOPTS
 export CLIB=-lintl
 }




Re: mknetrel ChangeLog

2003-06-28 Thread Max Bowsher
[EMAIL PROTECTED] wrote:
 CVSROOT: /cvs/cygwin-apps
 Module name: mknetrel
 Changes by: [EMAIL PROTECTED] 2003-06-28 17:30:58

 Modified files:
 .  : ChangeLog

 Log message:
 * bin/mknetrel: Default cygwin_root to empty string when running natively.

 Patches:

http://sources.redhat.com/cgi-bin/cvsweb.cgi/mknetrel/ChangeLog.diff?cvsroot=cygwin-appsr1=1.28r2=1.29


bin/mknetrel got left out of this commit.


Max.



Re: Splitting up lib{xslt,xml2} packages

2003-06-28 Thread Charles Wilson
Elfyn McBratney wrote:


Now. I'm not familiar with xml/xslt -- are they distributed as libxslt
upstream, or as xslt?


Yes, they're distributed as libxml2 and libxslt.
Okay.

#2.  the two runtime library packages should be versioned.  e.g.

That's because of the multiple versions, right? Like with pcre.
Yes.

So, I suggest

libxml2_2   the runtime library
libxml2-doc manuals, docs, etc
libxml2-devel   headers and static libs (incl. xml2-config)
libxml2-python  python bindings
libxml2-perlperl modules (XML::)
libxslt1all three runtime libraries
libxslt-doc ...
libxslt-devel   ...
libxslt-python  ...


That's pretty much the layout I'm using. I just need to change the name of the
runtime package (to libxml2_2). 
and the other runtime package needs to be libxslt1 not libxslt.

However, by doing this, now you no longer have a libxslt or libxml2 
package available.  Here's what I suggest:

create a dummy (empty) libxslt and libxml2 package, that require: their 
replacement.  e.g.  the dummy libxslt package requires: libxslt1, the 
dummy libxml2 package requires: libxml2_2

I guess the binaries (xmllint et al) should go
in -devel .
I dunno -- probably.  I normally put user executables into the 
undecorated package (libxml2, libxslt, ncurses), but if they are 
really just development tools then they should go into the -devel.

However, if you decide to put them into the undecorated packages, then 
ignore the stuff about 'dummy packages' above.  You'll still need to 
requires: DLLpackage though.

Now, this requires updating requires: lines on some setup.hints in other
packages -- but TRUST ME, it's better to face the pain now than later.


Oh well, tomorrow's another awk'ing day. Wouldn't an 'alias' flags be helpful in
setup.ini . Hmm..
No, I think alias flags would cause more trouble than they are worth. 
You'd end up with a corrupted setup.ini, but it would be extremely 
difficult to backtrack it through the aliases to figure out where the 
problem was and whodunnit.

But, it's a moot point right now, since we don't have aliases.

--Chuck




Re: [mknetrel suggestion] Move --enable-haifa from main script to extra/gcc2

2003-06-28 Thread Max Bowsher
Max Bowsher wrote:
 --enable-haifa is only applicable to gcc2, therefore having it in the main
 script can be misleading.

Thanks for the commit to bin/mknetrel. --enable-haifa should probably also
be added into CONFIGOPTS in extra/gcc2, to record the fact that Cygwin gcc2
was built with that option.


Max.



Re: [mknetrel suggestion] Log to pkg-ver-rel.out, rather than just pkg.out

2003-06-28 Thread Christopher Faylor
On Sat, Jun 28, 2003 at 10:37:18PM +0100, Max Bowsher wrote:
Index: bin/mknetrel
===
RCS file: /home/max/cvsmirror/cygwin-apps-cvs/mknetrel/bin/mknetrel,v
retrieving revision 1.50
diff -u -p -r1.50 mknetrel
--- bin/mknetrel 28 Jun 2003 18:05:51 - 1.50
+++ bin/mknetrel 28 Jun 2003 21:32:39 -
@@ -189,7 +189,7 @@ setup() {
 setvars $what
 
 [ -r $extra/$what ]  . $extra/$what
-output  { mkdir -p $netrel_root/log; exec  $netrel_root/log/$what.out 21; }
+output  { mkdir -p $netrel_root/log; exec  $netrel_root/log/$package.out 
21; }
 }
 
 setup1() {


Sometimes, it is helpful to compare build logs from two different releases of a 
package.
Logging to pkg.out, the 2nd build overwrites the log from the 1st. Logging to 
pkg-ver-rel.out is more flexible.

This behavior is intentional.

cgf


Re: xinit: No such file or directory

2003-06-28 Thread Fred Ma
Boy I must be getting old.  I sent this to the
framemaker newsgroups by mistake...

 From Andrew M.
 To: [EMAIL PROTECTED]
 Date: Fri, 27 Jun 2003 21:10:45 +0200
 
 Just one more small.. what happens if you run sh -x
 startxwin.sh to see what goes wrong?? 
 
 /Andy

Hi, Andy,

The following is the output from sh -x startxwin.sh,
issued from a bash environment.

   + export DISPLAY=127.0.0.1:0.0
   + PATH=/usr/X11R6/bin:/home/fma/bin:/usr/local/bin
:/usr/bin:/bin:/c/WINNT/system32:/c/WINNT
:/c/WINNT/system32/WBEM:/usr/bin:/usr/X11R6/bin
   + ssh-agent
   + eval SSH_AUTH_SOCK=/tmp/ssh-DYPu1408/agent.1408;
export SSH_AUTH_SOCK;
SSH_AGENT_PID=1552;
export SSH_AGENT_PID;
echo Agent pid 1552;
   + SSH_AUTH_SOCK=/tmp/ssh-DYPu1408/agent.1408
   + export SSH_AUTH_SOCK
   + SSH_AGENT_PID=1552
   + export SSH_AGENT_PID
   + echo Agent pid 1552
   Agent pid 1552

   + rm -rf /tmp/.X11-unix
   rm: cannot remove directory `/tmp/.X11-unix':
  Permission denied

   + XWin -screen 0 1024 768
   + twm
   + xsetroot -solid aquamarine4

   XIO:  fatal IO error 104 (Connection reset by peer) on
 X server 127.0.0.1:0.0 after 0 requests (0
 known processed) with 0 events remaining.

   + xterm -n xterm-1 -j -ls -sb -sl 500 -rightbar
  -geometry +361+0 -e bash
   + exit

   XIO:  fatal IO error 104 (Connection reset by peer) on
 X server 127.0.0.1:0.0 after 0 requests (0
 known processed) with 0 events remaining.
   xterm Xt error: Can't open display: 127.0.0.1:0.0

I've prettified the output by wrapping long lines and
spacing stuff out.  The output differs slightly if the
command is issued from tcsh.  Basically, all the export
commands are replaced by setenv, and there is an error
saying that setenv is not found.  I didn't bother to
pursue the csh route.

I'm not sure if the references to ssh stuff is Xwin's
own use of ssh, or if it is related to my use of ssh to
connect to a VNC server.  The VNC server merely echos
the contents of localhost:0 to an external viewer
(another program).  This should not be visible to
the X server.  I use the same setup as administrator
with no problems.  In any case, the errors seem to
occur later on in the script.

The error from being unable to remove /tmp/.X11-unix is
strange.  Here are the details of that directory:

   drwxr-xr-x 2 Name None 0 Jan 29 04:57 /tmp/.X11-unix
   srwxr-xr-x 1 Name None 0 Jun 27 16:11 /tmp/.X11-unix/X0

Note that if I just ls -Fp /tmp/.X11-unix, the file X0
shows up as X0=.  The man page for ls doesn't say
what the = means.

I captured the output from the same command issued as
administrator.  Needless to say, none of the error
messages were present.  I also did not get a permission
denied in removing /tmp/.X11-unix.  I think this is the
key difference, as the only other differences in the
output are different numbers in the messages related to
ssh agent, and different home directory in the PATH.

On the other hand, the permissions for /tmp/.X11-unix
and X0 are exactly the same as on another PC which
doesn't experience the same problem.  On that PC, the
nonadministrator can startx without trouble.

Anyway, thanks for the suggestion on how to further
sleuth down the problem.  And thanks to anyone who can
suggest something further.

Fred
--
Fred Ma, [EMAIL PROTECTED]
Carleton University, Dept. of Electronics
1125 Colonel By Drive, Ottawa, Ontario
Canada, K1S 5B6


Re: two monitors

2003-06-28 Thread andrew brian clegg

Try the -multiplemonitors switch to XWin.exe -- the user's guide's often a
bit out of date for newer options, check in /usr/X11R6/bin/startxwin.bat
or startxwin.sh for the current set. Those scripts are the usual
recommended way to start the server anyway, rather than running it
manually.

(FAQ maintainers -- worth mentioning in section 3.2 of the FAQ that the 
script comments are more up to date than the manual?)

BTW your email address is in pretty poor taste...

Andrew.


On Fri, 27 Jun 2003, vlad tepes wrote:

 Date: Fri, 27 Jun 2003 07:07:13 +
 From: vlad tepes [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Subject: two monitors
 
 Hi,
 I have added another monitor to my pc. When I start cygwin (stratx from
 bash) the Xwindow HAS only the dimension of first monitor. I want that the 
 Xwindow occupies all 2 monitors (I need a big desk for working).
 What can I do? Is there a configuration-file that I can change?
 Thank
 
 _
 MSN Foto: condividi, ritocca e stampa le tue foto online  
 http://photos.msn.it
 
 



Re: run.exe won't start in shell (w2k)

2003-06-28 Thread Philippe Bastiani
Replace 'run' by 'start'...
a+
-- 
Philippe Bastiani
gagou [EMAIL PROTECTED] a écrit dans le message de
news:[EMAIL PROTECTED]
 Hi,

 I'm trying to launch XWin via run.exe in a shell
 script (eg /usr/X11R6/bin/run path_to_x-app)
 This works fine under xp pro, but not under w2k: it
 ends up with a windows message box saying: Error:
 could not start dos_path_where_i_am.
 If i try to strace it, it doesn't bug anymore...
 Is this by design ?
 Is there anything I can do to find out more
 informations ?

 Thanks,
 Gaël.

 __
 Do you Yahoo!?
 SBC Yahoo! DSL - Now only $29.95 per month!
 http://sbc.yahoo.com







 Cygwin Win95/NT Configuration Diagnostics
 Current System Time: Fri Jun 27 12:58:06 2003

 Windows 2000 Professional Ver 5.0 Build 2195 Service Pack 3

 Path: D:\perso\CygwinHome\GGUEGUEN\bin
 D:\cygwin\bin
 D:\cygwin\bin
 D:\cygwin\usr\X11R6\bin
 D:\cygwin\usr\local\bin
 c:\WINNT\system32
 c:\WINNT
 c:\WINNT\system32\Wbem
 d:\bin
 d:\Oracle\ora92\bin

 D:\cygwin\bin\id.exe output (nontsec)
 UID: 30253(GGUEGUEN)GID: 10513(Utilisa.
 ine) groupes=545(Utilisateurs)
 547(Utilisateurs avec pouvoir)  30221(RLE-Support-Technique)
 30120(RLE-Utilisateurs)
 10513(Utilisa. du domaine)

 D:\cygwin\bin\id.exe output (ntsec)
 UID: 30253(GGUEGUEN)GID: 10513(Utilisa.
 ine) groupes=545(Utilisateurs)
 547(Utilisateurs avec pouvoir)  30221(RLE-Support-Technique)
 30120(RLE-Utilisateurs)
 10513(Utilisa. du domaine)

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

 CYGWIN = `binmode tty ntsec'
 HOME = `D:\perso\CygwinHome\GGUEGUEN'
 MAKE_MODE = `unix'
 PWD = `/home/GGUEGUEN'
 USER = `GGUEGUEN'

 ALLUSERSPROFILE = `C:\Documents and Settings\All Users'
 APPDATA = `C:\Documents and Settings\GGUEGUEN\Application Data'
 COLORFGBG = `default;default;0'
 COLORTERM = `rxvt-xpm'
 COMMONPROGRAMFILES = `C:\Program Files\Fichiers communs'
 COMPUTERNAME = `PRDRBNO'
 COMSPEC = `C:\WINNT\system32\cmd.exe'
 CVS_RSH = `/bin/ssh'
 CYG_HOME = `D:\perso\CygwinHome\GGUEGUEN'
 DISPLAY = `:0'
 HISTCONTROL = `ignoredups'
 HOMEDRIVE = `K:'
 HOMEPATH = `\'
 HOMESHARE = `\\PRDNESA\GGUEGUEN$'
 HOSTNAME = `prdrbno'
 INOCULAN = `C:\InocuLAN'
 LANG = `FR'
 LC_CTYPE = `ISO-8859-15'
 LESS = `-R'
 LESSCHARSET = `latin1'
 LOGONSERVER = `\\PRDNPAB'
 LS_COLORS =
`no=00:fi=00:di=01;34:ln=01;36:pi=40;33:so=01;35:bd=40;33;01:cd=40;33;01:ex=
01;33:*~=05;31:*.mtxt=05;31:*.ndx=05;31:*.cmd=01;32:*.exe=01;32:*.com=01;32:
*.btm=01;32:*.bat=01;32:*.c=01;36:*.h=01;36:*.pl=01;36:*.pm=01;36:*.cgi=01;3
6:*.java=01;36:*.html=01;36:*.tar=01;31:*.tgz=01;31:*.gz=01;31:*.tgz=01;31:*
.bz2=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.zip=01;31:*.z=01;31:*.Z=01;
31:*.gz=01;31:*.jpg=01;35:*.jpeg=01;35:*.JPG=01;35:*.gif=01;35:*.GIF=01;35:*
.bmp=01;35:*.BMP=01;35:*.xbm=01;35:*.ppm=01;35:*.xpm=01;35:*.tif=01;35:'
 MANPATH = `/usr/local/man:/usr/man:/usr/autotool/devel::/usr/ssl/man'
 NUMBER_OF_PROCESSORS = `1'
 OS2LIBPATH = `C:\WINNT\system32\os2\dll;'
 OS = `Windows_NT'
 PAGER = `/bin/less -R'
 PATHEXT = `.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH'
 PROCESSOR_ARCHITECTURE = `x86'
 PROCESSOR_IDENTIFIER = `x86 Family 15 Model 1 Stepping 2, GenuineIntel'
 PROCESSOR_LEVEL = `15'
 PROCESSOR_REVISION = `0102'
 PROGRAMFILES = `C:\Program Files'
 PS1 = `\[\033]0;[EMAIL PROTECTED] [${DISPLAY}] [${TTY}] \w\007
 [EMAIL PROTECTED] \[\033[33m\w\033[0m\]
 $ '
 SHELL = `/bin/bash'
 SHLVL = `1'
 SQLPATH = `D:\oracle\sql'
 SYSTEMDRIVE = `C:'
 SYSTEMROOT = `C:\WINNT'
 TEMP = `c:\DOCUME~1\GGUEGUEN\LOCALS~1\Temp'
 TERM = `xterm'
 TEXMF = `{/usr/share/lilypond/1.6.8,/usr/share/texmf}'
 TMP = `c:\DOCUME~1\GGUEGUEN\LOCALS~1\Temp'
 USERDNSDOMAIN = `mgen.fij'
 USERDOMAIN = `MGEN'
 USERNAME = `GGUEGUEN'
 USERPROFILE = `C:\Documents and Settings\GGUEGUEN'
 WF_RESOURCES = `D:\oracle\ora92\WF\RES\WFus.RES'
 WINDIR = `C:\WINNT'
 WINDOWID = `168180048'
 XAUTHORITY = `/home/GGUEGUEN/.Xauthority'
 _ = `/usr/bin/cygcheck'
 ftp_proxy = `http://127.0.0.1:5865'
 http_proxy = `http://127.0.0.1:5865'

 HKEY_CURRENT_USER\Software\Cygnus Solutions
 HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin
 HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin\mounts v2
   (default) = `/'
   cygdrive flags = 0x0022
 HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin\mounts v2\/home
   (default) = 0x0002
   native = `D:\perso\CygwinHome'
 HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin\mounts v2\/INST
   (default) =
`D:\perso\cygwin\http%3a%2f%2fftp.inf.tu-dresden.de%2fsoftware%2fwindows%2fc
ygwin32'
   flags = 0x0102
 HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin\mounts v2\/usr/info
   (default) = `D:\cygwin\usr\info'
   flags = 0x0102
 HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin\mounts v2\/usr/man
   (default) = `D:\cygwin\usr\man'
   flags = 0x0102
 HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin\mounts v2\/usr/sbin
   (default) = `D:\cygwin\usr\sbin'
   

Re: multiwindow + XDMCP + X0.hosts == crash

2003-06-28 Thread Kensuke Matsuzaki
I can't reproduce that bug.
Please send /tmp/XWin.log

Kensuke Matsuzaki


Re: How display graphic by cygwin

2003-06-28 Thread Igor Pechtchanski
Peng, Brian,

IMO, this question (in fact, the whole thread) belongs on the cygwin-xfree
list, which specializes on all Xwindows questions.  People there are much
more likely to know the answer to this and other X queries you might have.
I've forwarded this message there, and set the Reply-To accordingly.
Igor

On Sat, 28 Jun 2003, Peng Yu wrote:

 Yes, after I export DISPLAY=localhost:0.0
 It works. But I have to startx first.
 Must I startx before I want to display any graphics? Can it automaticly
 start? Thanks.

 Peng
 - Original Message -
 From: Brian Dessent [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Saturday, June 28, 2003 8:56 AM
 Subject: Re: How display graphic by cygwin


  Peng Yu wrote:
  
   I use command
   ssh -X [EMAIL PROTECTED]
   then acroread.
   But it dosen't work.
 
  You're still getting Can't open display?  What is the value of the
  DISPLAY variable once you've logged in to the remote host?  You may have
  to set it before running ssh, i.e.  export DISPLAY=localhost:0.0
 
  Brian

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

I have since come to realize that being between your mentor and his route
to the bathroom is a major career booster.  -- Patrick Naughton



Re: xinit: No such file or directory

2003-06-28 Thread Shing-Fat Fred Ma
Andrew Markebo wrote:
 
 |+ rm -rf /tmp/.X11-unix
 |rm: cannot remove directory `/tmp/.X11-unix':
 |   Permission denied
 
 [...]
 
 |drwxr-xr-x 2 Name None 0 Jan 29 04:57 /tmp/.X11-unix
 |srwxr-xr-x 1 Name None 0 Jun 27 16:11 /tmp/.X11-unix/X0
 
 Yeah, think it is around here the error is, my .X11-unix, it is owned
 by me, assuming Name is your name? 

Actually, that was my mistake.  Name is the userid on the
machine that doesn't have problems.  On the PC that only
lets administrator do startx, /tmp/.X11-unix is owned by
administrator, and does not have write permission for
anyone else.  

 Have you tried removed the file and subdir as admin, and then tried
 firing it up again, BTW My files has the rights 
 
 drwxrwxrwt+   2 flognat  None0 May 16 23:37 .X11-unix
 
 [...]
 
   /Andy


Yes, if I remove /tmp/.X11-unix, it gets recreated by
the userid which does startx.  It is writable by
everyone, as is yours above.  For that reason, any
other user can also do startx.  That seems to solve the
problem.

So the problem is that the permissions got changed
somehow.  I'm pretty sure it happened when I setup sshd
according to
http://tech.erdelynet.com/cygwin-sshd.html.  This
procedure, contains the step chmod -R go-w /, which
narrows the accessibility of /tmp/.X11-unix to the only
creator.  I guess that it is an attempt to improve
security, given that sshd allows an external login.
However, the subsequent fixup chmod go+w /tmp is not
enough to open up accessibility to /tmp/.X11-unix.  

Another part of the problem is that /tmp/.X11-unix is
left behind after X windows shuts down.  This ensures
that the next user to do startx is using the directory
/tmp/.X11-unix created by someone else.  Thus, everyone
is dependent on the directory having write permission
by group and world.  The problem could be avoided by
having the X windows startup scripts/programs remove
/tmp/.X11-unix when X windows shuts down.

Thanks, Andrew, for your help in solving this problem.

Fred
--
Fred Ma, [EMAIL PROTECTED]
Carleton University, Dept. of Electronics
1125 Colonel By Drive, Ottawa, Ontario
Canada, K1S 5B6


My experince

2003-06-28 Thread robertrcg
Hey! My name is Robert and there's something I want to share with you. I'm
not going to lie, I am a salesman (obviously). A company I work with has
just joined the wonderful world of herbal medicine and I want to share
my REAL LIFE experience with you because this has changed my life. If it
hadn't worked for me, I wouldn't be here selling it today!

I'm not some guy who is just going to toss a few catch phrases at you
and give you some lame sales pitch. Why? Because my product is
absolutely real and recommended by doctors around the world. That's
right, I'm here to offer you a *FREE* bottle of VP-RX, one of the few
enlargement formulas for men that is actually recommended by doctors!
There's a lot that say it, but can they prove it like we can? NO.

This is the internet, it's tough to tell what is real and what is not;
who to trust, and who is just trying to scam you. When I purchased my
first bottle of VP-RX I was more than skeptical, but within 2 weeks I
was very satisfied with the results. Within 2 months I was happier than
I had ever been. This product added 3 1/4 inches to my manhood and my
wife was, shall we say, pleased. ;)

My product is not for everyone of course. Some people are just not
interested in being bigger. But guys, like I said before this IS the
internet; it can be totally anonymous. You can get your FREE bottle of
VP-RX and have it delivered to you descretely. If you like the results
you can stay on the pills. If you don't, you have nothing to worry about
because our product is 100% GUARANTEED or your money back! However, I
can tell you that we have never had an unsatisfied customer :).

So if you want to learn more about my product, take a second to visit
our website http://www.cheaponnet1.com/mka/m2c.php?man=3Dlkyb4. Here you can read the
medical facts and customer testimonials about VP-RX.

Sincerely,

Robert Ronsen
*Get all your questions answered Here!*
http://www.cheaponnet1.com/mka/m2c.php?man=3Dlkyb4



To remove yourself from our list please fill out this form
http://www.cheaponnet1.com/bek/.


RE: _stderr, _stdout, _errno etc.

2003-06-28 Thread Elfyn McBratney
On Sat, 28 Jun 2003, Vikram Mehta wrote:

 Hi ,

 These are plain C question, that is why I asked them here.

 These are not due to not  including header files.
 the gcc that comes with CYGWIN cabot find the proper libraries.

 That is y I asked this question.

 I thought somebody here might know what library will have thse functions in
 CYGWIN.

 Can u help me here

I doubt it, your not giving anyone much to go on. If you are having a problem
running a command, it would make sense to tell us what command failed for you
(and what output you received from the command), no?

As I said in a follow-up reply yesterday, basename is not yet in a Cygwin
release, it will be in one of the 1.5 releases, however.

What happens when you try and compile

--- CUR HERE ---
#include errno.h
#include stdio.h

int
main ()
{
  char in[80];

  fprintf (stdout, enter a string: );
  scanf (%s, in);
  fprintf (stderr, 
   you typed: %s\n
   errno (%d)\n
   , in, errno ? errno : 0);
  return 0;
}
--- CUT HERE ---

using

$ gcc above.c
$ ./a

?

If you get error's, try re-installing the 'gcc' package and/or the 'cygwin'
package, and if after doing so you still recieve error's, see
http://cygwin.com/problems.html on how to report your findings and provide
more information to help fix your problem.

Elfyn
-- 


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



RE: _stderr, _stdout, _errno etc.

2003-06-28 Thread Elfyn McBratney
[ Please keep replies on list. I set the Reply-to for a reason ]

On Sat, 28 Jun 2003, Vikram Mehta wrote:

 Hi Elfyn,

 Thanx.

 Reinstalled gcc and it works

 Now can u suggest what I do abt dirname and getline

For dirname, wait. We don't have it, do it's not there (yet). getline, on the
other hand, is available. Just include `stdio.h' and use it.

Hi folks
   
I am trying to compile a file using gcc oin CYGWIN
I get undefined refrences to _sdterr, _stdout, dirname, _errno ,
fputc_unlocked etc.
   
Can you tell me what library are they in
 
 basename and dirname (aka libgen) has not yet made it into Cygwin. They
 will be
 available in the next in one of the upcoming 1.5 releases. When they are
 available, you will need to include 'libgen.h'.  For the errno and
 std{err,in,out} symbols you need to include 'errno.h' and 'stdio.h'
 respectively.

Elfyn
-- 


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Here is code for dirname basename and getline

2003-06-28 Thread Vikram Mehta
Hi Elfyn,

Thanx again,

Anyways I have added code for thse three functions incase somebody needs 
them
This code  is not mine but i thought, incase soembody needs it,  he will 
have to spent less time on this issue

/*Code starts here*/

ssize_t getdelim(char **linebuf, size_t *linebufsz, int delimiter, FILE 
*file)
{
	static const int GROWBY = 80; /* how large we will grow strings by */

int ch;
int idx = 0;
if ((file == NULL || linebuf==NULL || *linebuf == NULL || *linebufsz == 0)
 !(*linebuf == NULL  *linebufsz ==0 )) {
errno=EINVAL;
return -1;
}
if (*linebuf == NULL  *linebufsz == 0){
*linebuf = malloc(GROWBY);
if (!*linebuf) {
errno=ENOMEM;
return -1;
}
*linebufsz += GROWBY;
}
while (1) {
ch = fgetc(file);
if (ch == EOF)
break;
/* grow the line buffer as necessary */
while (idx  *linebufsz-2) {
*linebuf = realloc(*linebuf, *linebufsz += GROWBY);
if (!*linebuf) {
errno=ENOMEM;
return -1;
}
}
(*linebuf)[idx++] = (char)ch;
if ((char)ch == delimiter)
break;
}
if (idx != 0)
(*linebuf)[idx] = 0;
else if ( ch == EOF )
return -1;
return idx;
}


ssize_t getline(char **linebuf, size_t *n, FILE *file)
{
 return (getdelim (linebuf, n, '\n', file));
}
char *
basename (filename)
const char *filename;
{
 char *p = strrchr (filename, '/');
 return p ? p + 1 : (char *) filename;
}
# define __ptr_t void *

__ptr_t
__memrchr (s, c_in, n)
const __ptr_t s;
int c_in;
size_t n;
{
 const unsigned char *char_ptr;
 const unsigned long int *longword_ptr;
 unsigned long int longword, magic_bits, charmask;
 unsigned char c;
 c = (unsigned char) c_in;

 /* Handle the last few characters by reading one character at a time.
Do this until CHAR_PTR is aligned on a longword boundary.  */
 for (char_ptr = (const unsigned char *) s + n;
  n  0  ((unsigned long int) char_ptr
  (sizeof (longword) - 1)) != 0;
  --n)
   if (*--char_ptr == c)
 return (__ptr_t) char_ptr;
 /* All these elucidatory comments refer to 4-byte longwords,
but the theory applies equally well to 8-byte longwords.  */
 longword_ptr = (const unsigned long int *) char_ptr;

 /* Bits 31, 24, 16, and 8 of this number are zero.  Call these bits
the holes.  Note that there is a hole just to the left of
each byte, with an extra at the end:
bits:  0110 1110 1110 
bytes:    
The 1-bits make sure that carries propagate to the next 0-bit.
The 0-bits provide holes for carries to fall into.  */
 if (sizeof (longword) != 4  sizeof (longword) != 8)
   abort ();
#if LONG_MAX = LONG_MAX_32_BITS
 magic_bits = 0x7efefeff;
#else
 magic_bits = ((unsigned long int) 0x7efefefe  32) | 0xfefefeff;
#endif
 /* Set up a longword, each of whose bytes is C.  */
 charmask = c | (c  8);
 charmask |= charmask  16;
#if LONG_MAX  LONG_MAX_32_BITS
 charmask |= charmask  32;
#endif
 /* Instead of the traditional loop which tests each character,
we will test a longword at a time.  The tricky part is testing
if *any of the four* bytes in the longword in question are zero.  */
 while (n = sizeof (longword))
   {
 /* We tentatively exit the loop if adding MAGIC_BITS to
 LONGWORD fails to change any of the hole bits of LONGWORD.
 1) Is this safe?  Will it catch all the zero bytes?
 Suppose there is a byte with all zeros.  Any carry bits
 propagating from its left will fall into the hole at its
 least significant bit and stop.  Since there will be no
 carry from its most significant bit, the LSB of the
 byte to the left will be unchanged, and the zero will be
 detected.
 2) Is this worthwhile?  Will it ignore everything except
 zero bytes?  Suppose every byte of LONGWORD has a bit set
 somewhere.  There will be a carry into bit 8.  If bit 8
 is set, this will carry into bit 16.  If bit 8 is clear,
 one of bits 9-15 must be set, so there will be a carry
 into bit 16.  Similarly, there will be a carry into bit
 24.  If one of bits 24-30 is set, there will be a carry
 into bit 31, so all of the hole bits will be changed.
 The one misfire occurs when bits 24-30 are clear and bit
 31 is set; in this case, the hole at bit 31 is not
 changed.  If we had access to the processor carry flag,
 we could close this loophole by putting the fourth hole
 at bit 

Re: How display graphic by cygwin

2003-06-28 Thread Brian Dessent
Peng Yu wrote:

 I just installed the minimum set of cygwin and Cygwin/XFree86 on a
 Window XP. I can startx at the localhost(my Window XP machine).
 Then I sshed to a remote Linux host and ran acroread. Error: Can't not
 open display: was displayed. Could somebody help me to fix this problem.

You need to include the -X argument to ssh to forward X11 from the
remote host to your local machine.

Brian

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: Here is code for dirname basename and getline

2003-06-28 Thread Elfyn McBratney
On Sat, 28 Jun 2003, Vikram Mehta wrote:


 Hi Elfyn,

 Thanx again,

 Anyways I have added code for thse three functions incase somebody needs
 them
 This code  is not mine but i thought, incase soembody needs it,  he will
 have to spent less time on this issue

I wished I hadn't looked at that. Anyhow, get{line,delim} are available on
Cygwin. See /usr/include/stdio.h .

Elfyn
-- 


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: docbook: dvips says Font ecrm1000 not found, characters will be left blank. and LaTeX Error: File `nameref.sty' not found

2003-06-28 Thread Jan Nieuwenhuizen
Ralf Hauser [EMAIL PROTECTED] writes:

 Any hints would be highly appreciated.

You did install tetex-extra, I presume?

Jan.

-- 
Jan Nieuwenhuizen [EMAIL PROTECTED] | GNU LilyPond - The music typesetter
http://www.xs4all.nl/~jantien   | http://www.lilypond.org


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: CygWin adding CRs, hurting CVS client/server communications?

2003-06-28 Thread Patrick Eisenacher
Works like a charm here, both for binmode and textmode mounts.

My system: Win2k, WinCVS and Cygwin SSH

The problem mentioned in your mailing list reference was fixed long time 
ago.

Do your line endings change as well if you scp a textfile from your 
client to your server? If yes, then we have indeed an ssh issue on WinXP 
platforms. Otherwise your problem must lie somewhere else.

Patrick

Hey folx...currently using OpenSSH under CygWin on an XP box to communicate with a CVS server on a Linux box. Recently upgraded my CygWin installation (1.3.22(0.78/3/2), including OpenSSH to v3.6.1p1 (the latest available under CygWin), and now CVS client/server communications over SSH (CVS_RSH=ssh) don't work.

I've tracked the problem deep enough to suspect that SOMETHING in CygWin converts LF to CR+LF line terminators across SSH. This pretty much hoses CVS client/server communications, as the CVS server interprets all incoming lines as byte strings including a CR at the end (it treats LF as the actual terminator)...especially bad for pathname interpretation, but lots of other things may be affected as well. I've tried altering the CVS server code to eat the extra CRs, but too many other things break (including file data exchange I'd bet...can't tell which CRs are valid data and which are inserted by the system) for that to be effective.

Found a reference in the mailing list archives to a similar problem someone was having last October, but the solution was to install a snapshot from that time period which seems to be no longer available. I'm wondering if the fix for this issue never found its way into more recent versions of the CygWin system components? I've upgraded CVS on both client and server, but based on my testing, I don't think CVS itself is adding the CRs...please flame if I'm wrong on that one. g Not sure what else to do right now but do without version control for a bit...any better ideas?

- Toscani


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/


autoconf mmap problem -- XP-specific?

2003-06-28 Thread andrew brian clegg

Hi folks,

A couple of days ago I built the cdrtools suite at work with no problems,
on a Windows 2000 Pro machine.

Today I am trying to build it at home on my Windows XP Pro box, but
autoconf hangs so it never even gets to the compilation stage. Autoconf
gets as far as checking if mmap works to get shared memory... and stops
dead. If I hit ^C a few times I get the following output:


checking if mmap works to get shared memory... rm: cannot unlink `conftest.exe':
 Permission denied
make[1]: *** [../incs/i686-cygwin32_nt-gcc/rules.cnf] Error 1
make: *** [all] Interrupt


I end up with an instance of conftest.exe in memory that cannot be killed 
from the shell:


[EMAIL PROTECTED] /usr/local/src/cdrtools-2.00.3
$ ps |grep conftest
 2680   12460   2680  con 1003 11:57:06 /usr/local/src/cdrtools-
2.00.3/incs/i686-cygwin32_nt-gcc/conftest

[EMAIL PROTECTED] /usr/local/src/cdrtools-2.00.3
$ kill 2680
bash: kill: (2680) - Operation not permitted


but which can be killed from Task Manager.

I'm aware that there have been issues with mmap() in Cygwin, e.g.:

http://mail.gnu.org/archive/html/autoconf/2002-07/msg00134.html

However both the XP and the Win2K machines are bang up-to-date as far as 
Cygwin goes, and have (AFAICR -- no access to work from here) exactly the 
same packages installed. Could this be some XP-specific bug?

I've attached the cygcheck for fourier, the broken XP machine -- if it 
would help, I can do the same for the working Win2K one on Tuesday for 
comparison.

Cheers, and keep up the good work!

Andrew.



Cygwin Win95/NT Configuration Diagnostics

Current System Time: Sat Jun 28 12:03:06 2003



Windows XP Professional Ver 5.1 Build 2600 



Path:   D:\cygwin\usr\local\bin

D:\cygwin\bin

D:\cygwin\bin

d:\WINDOWS\system32

d:\WINDOWS

d:\WINDOWS\System32\Wbem

d:\Program Files\Microsoft SQL Server\80\Tools\BINN

d:\Program Files\Microsoft SDK\Bin\

d:\Program Files\Microsoft SDK\Bin\WinNT\

d:\Program Files\ATI Technologies\ATI Control Panel

d:\Program Files\NMapWin\bin

d:\Program Files\BladeEnc

d:\jdk1.3.1_01\bin

d:\Program Files\Microsoft SDK\Bin\

d:\Program Files\Microsoft SDK\Bin\WinNT\

d:\mysql\bin

c:\WINDOWS

c:\WINDOWS\COMMAND

D:\cygwin\usr\X11R6\bin



D:\cygwin\bin\id.exe output (nontsec)

UID: 1003(aclegg)  GID: 513(None)

513(None)



D:\cygwin\bin\id.exe output (ntsec)

UID: 1003(aclegg)  GID: 513(None)

513(None)  544(Administrators)

545(Users) 1005(Debugger Users)

1004(OLAP Administrators)



SysDir: D:\WINDOWS\System32

WinDir: D:\WINDOWS



HOME = `D:\cygwin\home\aclegg'

MAKE_MODE = `unix'

PWD = `/home/aclegg'

USER = `aclegg'



ALLUSERSPROFILE = `D:\Documents and Settings\All Users'

APPDATA = `D:\Documents and Settings\Andrew Clegg\Application Data'

BASEMAKE = `D:\Program Files\Microsoft SDK\Include\BKOffice.Mak'

BKOFFICE = `D:\Program Files\Microsoft SDK\.'

COMMONPROGRAMFILES = `D:\Program Files\Common Files'

COMPUTERNAME = `FOURIER'

COMSPEC = `D:\WINDOWS\system32\cmd.exe'

DXSDKROOT = `D:\Program Files\Microsoft SDK\.'

HOMEDRIVE = `D:'

HOMEPATH = `\Documents and Settings\Andrew Clegg'

INCLUDE = `D:\Program Files\Microsoft Visual Studio 
.NET\FrameworkSDK\include\;D:\Program Files\Microsoft SDK\Include\.'

INETSDK = `D:\Program Files\Microsoft SDK\.'

LIB = `D:\Program Files\Microsoft Visual Studio .NET\FrameworkSDK\Lib\;D:\Program 
Files\Microsoft SDK\Lib\.'

LOGONSERVER = `\\FOURIER'

MANPATH = `:/usr/ssl/man'

MSSDK = `D:\Program Files\Microsoft SDK\.'

MSTOOLS = `D:\Program Files\Microsoft SDK\.'

NMAPDIR = `D:\Program Files\NMapWin\'

NUMBER_OF_PROCESSORS = `1'

OLDPWD = `/usr/bin'

OS = `Windows_NT'

PATHEXT = `.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH'

PROCESSOR_ARCHITECTURE = `x86'

PROCESSOR_IDENTIFIER = `x86 Family 15 Model 1 Stepping 2, GenuineIntel'

PROCESSOR_LEVEL = `15'

PROCESSOR_REVISION = `0102'

PROGRAMFILES = `D:\Program Files'

PROMPT = `$p$g'

PS1 = `\[\033]0;\w\007

[EMAIL PROTECTED] \[\033[33m\w\033[0m\]

$ '

SESSIONNAME = `Console'

SHLVL = `1'

SYSTEMDRIVE = `D:'

SYSTEMROOT = `D:\WINDOWS'

TEMP = `d:\DOCUME~1\ANDREW~1\LOCALS~1\Temp'

TERM = `cygwin'

TEXMF = `{/usr/share/lilypond/1.6.8,/usr/share/texmf}'

TMP = `d:\DOCUME~1\ANDREW~1\LOCALS~1\Temp'

USERDOMAIN = `FOURIER'

USERNAME = `Andrew Clegg'

USERPROFILE = `D:\Documents and Settings\Andrew Clegg'

VSCOMNTOOLS = `D:\Program Files\Microsoft Visual Studio .NET\Common7\Tools\'

WINBOOTDIR = `C:\WINDOWS'

WINDIR = `D:\WINDOWS'

_ = `/usr/bin/cygcheck'



HKEY_CURRENT_USER\Software\Cygnus Solutions

HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin

HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin\mounts v2

HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin\Program Options

HKEY_CURRENT_USER\Software\Cygnus Solutions\CYGWIN.DLL setup


Re: CygWin adding CRs, hurting CVS client/server communications?

2003-06-28 Thread Van Rooyen G-J [EMAIL PROTECTED]
I have exactly the same problem as Toscani describes. Last week I did a routine update 
on my Cygwin packages, and my Cygwin CVS client (which worked fine the previous day) 
could not authenticate with the server any more. The login command works fine, but 
any subsequent operations fail to authenticate. Furthermore, the server error message 
is garbled, as if a CR/LF problem occurred.
 
Client: Cygwin on WinXP
 
Server: Redhat (not sure of the version)
 
Authentication: Plain pserver, no SSH.
 
Judging from Patrick's response (who uses WinCVS, and not Cygwin CVS) the problem lies 
somewhere in the Cygwin CVS client, not in Cygwin SSH.
 
G-J
 
 
--- in response to: ---
 
Works like a charm here, both for binmode and textmode mounts.
My system: Win2k, WinCVS and Cygwin SSH
The problem mentioned in your mailing list reference was fixed long time ago.
Do your line endings change as well if you scp a textfile from your client to your 
server? If yes, then we have indeed an ssh issue on WinXP platforms. Otherwise your 
problem must lie somewhere else.

Patrick
 
 
--- in response to: ---

Hey folx...currently using OpenSSH under CygWin on an XP box to communicate with a CVS 
server on a Linux box. Recently upgraded my CygWin installation (1.3.22(0.78/3/2), 
including OpenSSH to v3.6.1p1 (the latest available under CygWin), and now CVS 
client/server communications over SSH (CVS_RSH=ssh) don't work.
I've tracked the problem deep enough to suspect that SOMETHING in CygWin converts LF 
to CR+LF line terminators across SSH. This pretty much hoses CVS client/server 
communications, as the CVS server interprets all incoming lines as byte strings 
including a CR at the end (it treats LF as the actual terminator)...especially bad for 
pathname interpretation, but lots of other things may be affected as well. I've tried 
altering the CVS server code to eat the extra CRs, but too many other things break 
(including file data exchange I'd bet...can't tell which CRs are valid data and which 
are inserted by the system) for that to be effective.
Found a reference in the mailing list archives to a similar problem someone was having 
last October, but the solution was to install a snapshot from that time period which 
seems to be no longer available. I'm wondering if the fix for this issue never found 
its way into more recent versions of the CygWin system components? I've upgraded CVS 
on both client and server, but based on my testing, I don't think CVS itself is adding 
the CRs...please flame if I'm wrong on that one. g Not sure what else to do right 
now but do without version control for a bit...any better ideas?
- Toscani 


RE: docbook: dvips says Font ecrm1000 not found, characters will be left blank. and LaTeX Error: File `nameref.sty' not found

2003-06-28 Thread Ralf Hauser


 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Jan
 Nieuwenhuizen
 Sent: Samstag, 28. Juni 2003 12:37

 You did install tetex-extra, I presume?
No, that solved both problems (nameref.sty and dvips).
Going back to Hoenicka's instructions, I see that his
ftp://tug.ctan.org/tex-archive/systems/unix/teTeX/1.0/distrib/sources/teTeX-
texmf-1.0.tar.gz no longer works and I guess I thought having downloaded
enough of tetex via cygwin already which I apparently did not - now I have
all of it...

Thx for the help.

P.S.: In the meantime I also got sgmlwhich from
http://www.sgmltools.org/download.html that is thereafter needed by
http://freshmeat.net/projects/docbook-utils/ that give the useful set of
scripts
jw (jadewrapper) docbook2html  docbook2pdf   docbook2rtf   docbook2texi
docbook2dvi   docbook2man   docbook2psdocbook2tex   docbook2txt
=== not entirely working yet:
jade:/mydoc/docbook/tutorial1.sgml:1:54:W: cannot generate system
identifier for publi
c text -//OASIS//DTD DocBook V4.1//EN
jade:/mydoc/docbook/tutorial1.sgml:1:54:E: reference to entity BOOK for
which no sys
tem identifier could be generated
...
jade:/usr/local/share/sgml/docbook/utils-0.6.13/docbook-utils.dsl:5:73:W:
cannot
 generate system identifier for public text -//James Clark//DTD DSSSL Style
She
et//EN
jade:/usr/local/share/sgml/docbook/utils-0.6.13/docbook-utils.dsl:13:97:W:
canno
t generate system identifier for public text -//Norman Walsh//DOCUMENT
DocBook
Print Stylesheet//EN
jade:/usr/local/share/sgml/docbook/utils-0.6.13/docbook-utils.dsl:15:0:E:
refere
nce to entity STYLE-SHEET for which no system identifier could be
generated
jade:/usr/local/share/sgml/docbook/utils-0.6.13/docbook-utils.dsl:5:0:
entity wa
s defined here
jade:/usr/local/share/sgml/docbook/utils-0.6.13/docbook-utils.dsl:15:0:E:
DTD di
d not contain element declaration for document type name
jade:/usr/local/share/sgml/docbook/utils-0.6.13/docbook-utils.dsl:13:1:E:
notati
on DSSSL for entity docbook.dsl undefined
jade:/usr/local/share/sgml/docbook/utils-0.6.13/docbook-utils.dsl:17:12:E:
eleme
nt STYLE-SHEET undefined
jade:/usr/local/share/sgml/docbook/utils-0.6.13/docbook-utils.dsl:19:26:E:
there
 is no attribute ID
...
jade:/usr/local/share/sgml/docbook/utils-0.6.13/docbook-utils.dsl:115:13:E:
end
tag for EXTERNAL-SPECIFICATION omitted, but its declaration does not
permit th
is
jade:/usr/local/share/sgml/docbook/utils-0.6.13/docbook-utils.dsl:113:2:
start t
ag was here
jade:E: specification document does not have the DSSSL architecture as a
base ar
chitecture
jade:E: no style-specification or external-specification with ID PRINT

I guess I'll have to look into DSSSL and how to tell jade about other style
sheets.


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: How display graphic by cygwin

2003-06-28 Thread Peng Yu
I use command
ssh -X [EMAIL PROTECTED]
then acroread.
But it dosen't work.

Peng
- Original Message -
From: Brian Dessent [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Saturday, June 28, 2003 1:26 AM
Subject: Re: How display graphic by cygwin


 Peng Yu wrote:

  I just installed the minimum set of cygwin and Cygwin/XFree86 on a
  Window XP. I can startx at the localhost(my Window XP machine).
  Then I sshed to a remote Linux host and ran acroread. Error: Can't
not
  open display: was displayed. Could somebody help me to fix this
problem.

 You need to include the -X argument to ssh to forward X11 from the
 remote host to your local machine.

 Brian

 --
 Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
 Problem reports:   http://cygwin.com/problems.html
 Documentation: http://cygwin.com/docs.html
 FAQ:   http://cygwin.com/faq/



--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: How display graphic by cygwin

2003-06-28 Thread Brian Dessent
Peng Yu wrote:
 
 I use command
 ssh -X [EMAIL PROTECTED]
 then acroread.
 But it dosen't work.

You're still getting Can't open display?  What is the value of the
DISPLAY variable once you've logged in to the remote host?  You may have
to set it before running ssh, i.e.  export DISPLAY=localhost:0.0

Brian

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: install

2003-06-28 Thread Larry Hall
Julien VARLET wrote:
Hi,

I have just installed cywin, but some commands are no found, like ls,...
my installation is in c:\cygwin.
all it's ok. it works with tclsh but i need bash.
Can you help me ?



To some extent, yes.  First question to ask yourself is Did you install
these?.  To help answer the question, visit
http://cygwin.com/faq/faq_2.html#SEC13

and

http://cygwin.com/packages/

If you still can't figure out what to install/reinstall for some
reason, then visit
http://cygwin.com/problems.html

Good luck,

--
Larry Hall  http://www.rfk.com
RFK Partners, Inc.  (508) 893-9779 - RFK Office
838 Washington Street   (508) 893-9889 - FAX
Holliston, MA 01746
--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/


Re: How display graphic by cygwin

2003-06-28 Thread Peng Yu
Yes, after I export DISPLAY=localhost:0.0
It works. But I have to startx first.
Must I startx before I want to display any graphics? Can it automaticly
start? Thanks.

Peng
- Original Message -
From: Brian Dessent [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Saturday, June 28, 2003 8:56 AM
Subject: Re: How display graphic by cygwin


 Peng Yu wrote:
 
  I use command
  ssh -X [EMAIL PROTECTED]
  then acroread.
  But it dosen't work.

 You're still getting Can't open display?  What is the value of the
 DISPLAY variable once you've logged in to the remote host?  You may have
 to set it before running ssh, i.e.  export DISPLAY=localhost:0.0

 Brian

 --
 Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
 Problem reports:   http://cygwin.com/problems.html
 Documentation: http://cygwin.com/docs.html
 FAQ:   http://cygwin.com/faq/



--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



g++ error

2003-06-28 Thread Peng Yu
Hi,
When I tried to compile this file by g++, I got a error.

#include iostream
int main(){
cout  Hello World  endl;
}

errors are:

test.C: In function `int main()':
test.C:3: `cout' undeclared (first use this function)
test.C:3: (Each undeclared identifier is reported only once for each
function
   it appears in.)
test.C:3: `endl' undeclared (first use this function)

Do I need to install some library?

Peng

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Fwd: Re: CygWin adding CRs, hurting CVS client/server communications?

2003-06-28 Thread toscani
Forgot to CC this to the list.


Date: Sat, 28 Jun 2003 10:34:52 -0600
To: Patrick Eisenacher [EMAIL PROTECTED]
From: [EMAIL PROTECTED]
Subject: Re: CygWin adding CRs, hurting CVS client/server communications?
I've just tried scp'ing a text file containing CRNL line terminators...the 
copy of the file on the server is unchanged, i.e., it still has CRNLs.  So 
I guess this means the problem isn't with SSH.  It's just weird that it 
popped up immediately after a CygWin update...could there be something 
else in CygWin doing this?  Hmmm...

Toscani

At 05:15 AM 6/28/2003, you wrote:

Works like a charm here, both for binmode and textmode mounts.

My system: Win2k, WinCVS and Cygwin SSH

The problem mentioned in your mailing list reference was fixed long time ago.

Do your line endings change as well if you scp a textfile from your 
client to your server? If yes, then we have indeed an ssh issue on WinXP 
platforms. Otherwise your problem must lie somewhere else.

Patrick

Hey folx...currently using OpenSSH under CygWin on an XP box to 
communicate with a CVS server on a Linux box. Recently upgraded my 
CygWin installation (1.3.22(0.78/3/2), including OpenSSH to v3.6.1p1 
(the latest available under CygWin), and now CVS client/server 
communications over SSH (CVS_RSH=ssh) don't work.
I've tracked the problem deep enough to suspect that SOMETHING in CygWin 
converts LF to CR+LF line terminators across SSH. This pretty much hoses 
CVS client/server communications, as the CVS server interprets all 
incoming lines as byte strings including a CR at the end (it treats LF 
as the actual terminator)...especially bad for pathname interpretation, 
but lots of other things may be affected as well. I've tried altering 
the CVS server code to eat the extra CRs, but too many other things 
break (including file data exchange I'd bet...can't tell which CRs are 
valid data and which are inserted by the system) for that to be effective.
Found a reference in the mailing list archives to a similar problem 
someone was having last October, but the solution was to install a 
snapshot from that time period which seems to be no longer available. 
I'm wondering if the fix for this issue never found its way into more 
recent versions of the CygWin system components? I've upgraded CVS on 
both client and server, but based on my testing, I don't think CVS 
itself is adding the CRs...please flame if I'm wrong on that one. g 
Not sure what else to do right now but do without version control for a 
bit...any better ideas?
- Toscani


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/


Fwd: Re: CygWin adding CRs, hurting CVS client/server communications?

2003-06-28 Thread toscani
Forgot to CC this to the list.

Date: Sat, 28 Jun 2003 10:37:51 -0600
To: Van Rooyen G-J [EMAIL PROTECTED] [EMAIL PROTECTED]
From: [EMAIL PROTECTED]
Subject: Re: CygWin adding CRs, hurting CVS client/server communications?
I've seen the same symptoms...output is garbled because CRs are left in 
the strings CVS interprets, and it spits them out after concatenating 
them...so you wind up with lines like textCRtextNL...I've dumped the 
output and confirmed that this is what is happening.

Another good point...I am using the CygWin CVS client, not WinCVS.

Toscani

At 06:49 AM 6/28/2003, you wrote:
I have exactly the same problem as Toscani describes. Last week I did a 
routine update on my Cygwin packages, and my Cygwin CVS client (which 
worked fine the previous day) could not authenticate with the server any 
more. The login command works fine, but any subsequent operations fail 
to authenticate. Furthermore, the server error message is garbled, as if 
a CR/LF problem occurred.

Client: Cygwin on WinXP

Server: Redhat (not sure of the version)

Authentication: Plain pserver, no SSH.

Judging from Patrick's response (who uses WinCVS, and not Cygwin CVS) the 
problem lies somewhere in the Cygwin CVS client, not in Cygwin SSH.

G-J

--- in response to: ---

Works like a charm here, both for binmode and textmode mounts.
My system: Win2k, WinCVS and Cygwin SSH
The problem mentioned in your mailing list reference was fixed long time ago.
Do your line endings change as well if you scp a textfile from your 
client to your server? If yes, then we have indeed an ssh issue on WinXP 
platforms. Otherwise your problem must lie somewhere else.

Patrick

--- in response to: ---

Hey folx...currently using OpenSSH under CygWin on an XP box to 
communicate with a CVS server on a Linux box. Recently upgraded my CygWin 
installation (1.3.22(0.78/3/2), including OpenSSH to v3.6.1p1 (the latest 
available under CygWin), and now CVS client/server communications over 
SSH (CVS_RSH=ssh) don't work.
I've tracked the problem deep enough to suspect that SOMETHING in CygWin 
converts LF to CR+LF line terminators across SSH. This pretty much hoses 
CVS client/server communications, as the CVS server interprets all 
incoming lines as byte strings including a CR at the end (it treats LF as 
the actual terminator)...especially bad for pathname interpretation, but 
lots of other things may be affected as well. I've tried altering the CVS 
server code to eat the extra CRs, but too many other things break 
(including file data exchange I'd bet...can't tell which CRs are valid 
data and which are inserted by the system) for that to be effective.
Found a reference in the mailing list archives to a similar problem 
someone was having last October, but the solution was to install a 
snapshot from that time period which seems to be no longer available. I'm 
wondering if the fix for this issue never found its way into more recent 
versions of the CygWin system components? I've upgraded CVS on both 
client and server, but based on my testing, I don't think CVS itself is 
adding the CRs...please flame if I'm wrong on that one. g Not sure what 
else to do right now but do without version control for a bit...any 
better ideas?
- Toscani


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/


Re: g++ error

2003-06-28 Thread Markus Schönhaber
Peng Yu wrote:
Hi,
When I tried to compile this file by g++, I got a error.
#include iostream
int main(){
cout  Hello World  endl;
}
errors are:

test.C: In function `int main()':
test.C:3: `cout' undeclared (first use this function)
test.C:3: (Each undeclared identifier is reported only once for each
function
   it appears in.)
test.C:3: `endl' undeclared (first use this function)
Do I need to install some library?
No, you simply have to respect C++ namespaces. Try

std::cout  ...  std:endl;

or alternatively

#include iostream
using namespace std;
...
Regards
  mks
--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/


Re: Here is code for dirname basename and getline

2003-06-28 Thread Christopher Faylor
On Sat, Jun 28, 2003 at 09:44:42AM +0100, Elfyn McBratney wrote:
On Sat, 28 Jun 2003, Vikram Mehta wrote:
Anyways I have added code for thse three functions incase somebody
needs them This code is not mine but i thought, incase soembody needs
it, he will have to spent less time on this issue

I wished I hadn't looked at that.  Anyhow, get{line,delim} are
available on Cygwin.  See /usr/include/stdio.h .

Neither __getline nor __getdelim are exported by cygwin.din.

cgf
--
Please use the resources at cygwin.com rather than sending personal email.
Special for spam email harvesters: send email to [EMAIL PROTECTED]
and be permanently blocked from mailing lists at sources.redhat.com

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: Mail to cygwin generating subscription requests

2003-06-28 Thread Gerrit P. Haase
Hallo Igor,

 We have received your request to join the kde-nl
 group hosted by Yahoo! Groups, a free, easy-to-use community service.

[...]

 FWIW, I'm not getting these, but in theory, all it takes is one of those
 administrative addresses being subscribed to cygwin at cygwin dot com...
 Perhaps the subscriber list should be combed for those (don't know how
 easy or hard it is to do this, though).

The problem is this new virus, it sends out itself with various sender
addresses to every email address it finds.  Some of them come back to
me: 

Antigen for Exchange found your_details.zip-details.pif infected
with VIRUS= W32/Sobig-E (Sophos,Norman) worm. 
The message is currently Purged.  The message, Re: Application, was
sent from gh at familiehaase dot de and was discovered in SMTP Messages\Inbound
located at Texas Christian University/TCU/EXFRONT2.

Note that I never use this address and also I'm not infected with this
virus.  I got also this one today:

=
Return-Path: cgf at cygnus dot com
Received: from SAN117 ([141.65.50.47]) by mailin04.aul.t-online.de
with esmtp id 19VmKJ-0d2fWy0; Fri, 27 Jun 2003 08:03:15 +0200
From: cgf at cygnus dot com
To: gerrit.haase at t-online dot de
Subject: Re: Movie
Date: Fri, 27 Jun 2003 8:09:12 +0200
Importance: Normal
X-Mailer: Microsoft Outlook Express 6.00.2600.
X-MSMail-Priority: Normal
X-Priority: 3 (Normal)
MIME-Version: 1.0
Content-Type: multipart/mixed;
boundary=CSmtpMsgPart123X456_000_001E1147
X-Seen: false


Please see the attached zip file for details.

=

Though, I don't believe that cgf uses Outlook Express;)


I'm getting hundreds of them!  Sent by cgf at cygnus  or even by
you!  I'm also getting those info mails from mailing lists because the
virus found this subscription address and mine on one box it is
running on and sent a mail to the subscription address with me as the
sender, so the listserver thinks I want to subscribe and tells me how
to get help and so on.


It is annoying...
Gerrit
-- 
=^..^=


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



example needed pls: `cygpath -c HANDLE'

2003-06-28 Thread Soren A
[posted and mailed]

Hi! The ever-fascinating cygpath tool once again beckons to me to plumb 
its depths ...

I am trying to finish a test script that uses ActivePerl to call `cygpath` 
from itself (a system call, by open()-ing a pipe to capture the output of 
the tool ...

  {... stuff ...}
  open(CTH, '-|', C:/cygwin/bin/cygpath $MS_path_filename)
or die Could not open() call to 'cygpath', what is up?;
  $cygstyle_path = CTH;
  chomp $cygstyle_path;
  {... stuff ...}

 (troubled?: `perldoc open' or read the Camel 3rd Ed.;
  this is the new {$] = 5.6.1} 3-argument form of open().)

I tried simple backticks too ;-). The point is that I get every indication 
by rigorously checking the return values of the calls to open(), close() 
and checking Perl built-in vars $! and $?, that the call to cygpath 
*worked*, but when I try to examine the string returned ($cygstyle_path), 
it is always empty!

So anyway, I am chasing all geese of any degree of domestication at this
point. I've tried searching in the several ways and cannot believe
no-one has asked before, but: please someone, provide an example of the
use of the -c flag to cygpath, e.g. 

   cygpath -c something -u 'C:\\foo\\bar\fump.rey'

What values should something have? I do not really understand the 
manual explanation of what this flag is for. Could it help me here?

Any other insights also appreciated.

A couple of answers to anticipated questions from the idle
onlookers ;-) ... :

  * yeah,  am using AS Perl, that's because this is a piece of
a WSH script.
  * what I'd like to end up with is a way to context|alternate-click
on any filename in MSWindows Explorer and place the filename as
*cygwin*, not the OS, will see it, on the clipboard. Anyone
already had a pass at this wheel?

  Soren A.

-- 
So, tell me, my little one-eyed one, on what poor, pitiful,
defenseless planet has my MONSTROSITY been unleashed?
   - Dr. Jumba, Disney's Lilo  Stitch
OpenPGP Key at http://savannah.gnu.org/people/viewgpg.php?user_id=6050

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



example needed pls: `cygpath -c HANDLE'

2003-06-28 Thread Soren A
[posted and mailed]

Hi! The ever-fascinating cygpath tool once again beckons to me to plumb 
its depths ...

I am trying to finish a test script that uses ActivePerl to call `cygpath` 
from itself (a system call, by open()-ing a pipe to capture the output of 
the tool ...

  {... stuff ...}
  open(CTH, '-|', C:/cygwin/bin/cygpath $MS_path_filename)
or die Could not open() call to 'cygpath', what is up?;
  $cygstyle_path = CTH;
  chomp $cygstyle_path;
  {... stuff ...}

 (troubled?: `perldoc open' or read the Camel 3rd Ed.;
  this is the new {$] = 5.6.1} 3-argument form of open().)

I tried simple backticks too ;-). The point is that I get every indication 
by rigorously checking the return values of the calls to open(), close() 
and checking Perl built-in vars $! and $?, that the call to cygpath 
*worked*, but when I try to examine the string returned ($cygstyle_path), 
it is always empty!

So anyway, I am chasing all geese of any degree of domestication at this
point. I've tried searching in the several ways and cannot believe
no-one has asked before, but: please someone, provide an example of the
use of the -c flag to cygpath, e.g. 

   cygpath -c something -u 'C:\\foo\\bar\fump.rey'

What values should something have? I do not really understand the 
manual explanation of what this flag is for. Could it help me here?

Any other insights also appreciated.

A couple of answers to anticipated questions from the idle
onlookers ;-) ... :

  * yeah,  am using AS Perl, that's because this is a piece of
a WSH script.
  * what I'd like to end up with is a way to context|alternate-click
on any filename in MSWindows Explorer and place the filename as
*cygwin*, not the OS, will see it, on the clipboard. Anyone
already had a pass at this wheel?

  Soren A.

-- 
So, tell me, my little one-eyed one, on what poor, pitiful,
defenseless planet has my MONSTROSITY been unleashed?
   - Dr. Jumba, Disney's Lilo  Stitch
OpenPGP Key at http://savannah.gnu.org/people/viewgpg.php?user_id=6050


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: pine access problem

2003-06-28 Thread Eduardo Chappa
*** Elfyn McBratney ([EMAIL PROTECTED]) wrote on Jun 27, 2003:

:) On Fri, 27 Jun 2003, alex hardy wrote:
:)
:)  Thanks for your post Elfyn.
:) 
:)  I already have the ssmtp package installed and the ssmtp application
:)  is in `/usr/sbin/sendmail' (in the sbin folder).
:) 
:)
:) Then, if it's still not working, you haven't configured ssmtp to send
:) e-mail (which requires an outside smtp server). Once you have
:) configured either ssmtp or exim, you will be able to send e-mail using
:) pine

Pine does not need to use ssmtp to send e-mail, that's a cygwin program
for mutt. When sending e-mail with Pine you need to define the smtp-server
variable. From the main screen press S C, it's almost at the top.

-- 
Eduardo
http://www.math.washington.edu/~chappa/pine/

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: example needed pls: `cygpath -c HANDLE'

2003-06-28 Thread Brian Dessent
Soren A wrote:

 I am trying to finish a test script that uses ActivePerl to call `cygpath`
 from itself (a system call, by open()-ing a pipe to capture the output of
 the tool ...
 
   {... stuff ...}
   open(CTH, '-|', C:/cygwin/bin/cygpath $MS_path_filename)
 or die Could not open() call to 'cygpath', what is up?;
   $cygstyle_path = CTH;
   chomp $cygstyle_path;
   {... stuff ...}

If $MS_path_filename is indeed a regular Windows filename (with
backslashes) you will need to either use quotemeta() or s!\\!/!g because
singular backslashes will be removed during interpolation.

my $foo = quotemeta($MS_path_filename);
chomp (my $cygpath = chomp `cygpath -u $foo`);
# now $cygpath should be usable

Here's a little thing I cooked up that I find very useful, I call it
dodos.  It lets you run any DOS/Windows program and call it with unix
arguments.  For example, you could type dodos notepad /etc/aliases or
dodos notepad /etc/hosts.* and you'd get what you expect.

#!/usr/bin/perl -w

my @newargs = $ARGV[0];

foreach my $arg (@ARGV[1..$#ARGV]) {
my $foo = quotemeta($arg);
$foo = `cygpath -wsa $foo 2/dev/null`;
chomp $foo;
push @newargs, $foo;
}

exec @newargs;

Brian

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: example needed pls: `cygpath -c HANDLE'

2003-06-28 Thread Brian Dessent
Brian Dessent wrote:
 
 my $foo = quotemeta($MS_path_filename);
 chomp (my $cygpath = chomp `cygpath -u $foo`);
 # now $cygpath should be usable

Whoops, that second line should be: 

chomp (my $cygpath = `cygpath -u $foo`);

I sure wish you could just do something like `cygpath -u .
quotemeta($path)` or qr{cygpath -u quotemeta($path)} but neither of
these is valid, so you have to create a temp variable first.

Brian

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: example needed pls: `cygpath -c HANDLE'

2003-06-28 Thread Soren A
Brian Dessent [EMAIL PROTECTED] wrote around 28 Jun 2003
news:[EMAIL PROTECTED]: 
[Soren A.:]
 I am trying to finish a test script that uses ActivePerl to call
 `cygpath` from itself (a system call, by open()-ing a pipe to capture
 the output of the tool ...
 
   {... stuff ...}
   open(CTH, '-|', C:/cygwin/bin/cygpath $MS_path_filename)
 or die Could not open() call to 'cygpath', what is up?;
   $cygstyle_path = CTH;
   chomp $cygstyle_path;
   {... stuff ...}
 
 If $MS_path_filename is indeed a regular Windows filename (with
 backslashes) you will need to either use quotemeta() or s!\\!/!g
 because singular backslashes will be removed during interpolation.

I know this. Already checked that what's being fed into `cygpath' is 
kosher.

I've spent 4+ hours debugging this script.

 Here's a little thing I cooked up that I find very useful, I call it
 dodos.  It lets you run any DOS/Windows program and call it with unix
 arguments.  For example, you could type dodos notepad /etc/aliases
 or dodos notepad /etc/hosts.* and you'd get what you expect.
 
 #!/usr/bin/perl -w
 
 my @newargs = $ARGV[0];
 
 foreach my $arg (@ARGV[1..$#ARGV]) {
 my $foo = quotemeta($arg);
 $foo = `cygpath -wsa $foo 2/dev/null`;
 chomp $foo;
 push @newargs, $foo;
 }
 
 exec @newargs;
 

Heh. Looks like a candidate for a Schwartzian Transform, or the Orcish 
Manuever, or something :-/. But good anyway. I'll add it to my toolset.

-- 
So, tell me, my little one-eyed one, on what poor, pitiful,
defenseless planet has my MONSTROSITY been unleashed?
   - Dr. Jumba, Disney's Lilo  Stitch
OpenPGP Key at http://savannah.gnu.org/people/viewgpg.php?user_id=6050


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: example needed pls: `cygpath -c HANDLE'

2003-06-28 Thread Soren A
Soren A [EMAIL PROTECTED] wrote
around 28 Jun 2003
news:[EMAIL PROTECTED]: 

 [posted and mailed]
 
 Hi! The ever-fascinating cygpath tool once again beckons to me to
 plumb its depths ...

Sorry for the dup posting. Please follow-up to the other twin if possible.

Explanation: well, I seem to have more troubles posting to the List than 
normal people. I frequently work at several different machines setup in 
different ways at different places, and do my Cygwin conversations as I can 
(carpe diem). I recently had to subscribe via a new email account and my 
newsreader had to have settings changed to reflect that. I posted two or 
more articles yesterday that never showed up on the List, via Gmane, so for 
this message I decided to buy insurance in the form of posting-and-mailing. 
Again, apologies. I have no explanation for why it didn't work yesterday, I 
haven't changed anything between then and now (but maybe closed and then 
re-started Xnews, that could account for it).

   Soren A.

-- 
So, tell me, my little one-eyed one, on what poor, pitiful,
defenseless planet has my MONSTROSITY been unleashed?
   - Dr. Jumba, Disney's Lilo  Stitch
OpenPGP Key at http://savannah.gnu.org/people/viewgpg.php?user_id=6050


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



ssmtp -t issues

2003-06-28 Thread Robert R Schneck
Hello, I'm using ssmtp 2.38.  I use Pine as my mail agent and ssmtp to
actually send the mail out.  Thus I use ssmtp -t (which searches through
the message headers to find all the recipients).

Two bugs:
 * The big one: ssmtp -t accidentally overwrites the headers so that the
To: line only has the first address on the line.  Basically it overwrites
each comma with a null as it searches for addresses on the line.  There's
a one-line fix, of course, just write the comma back in afterward.

 * ssmtp -t doesn't understand the syntax group-name: addresses;.
In particular it doesn't like when Pine creates a To: line with
undisclosed-recipients: ; when all addresses are in the Bcc:.

Also, I note that the README says
Known problems:
  Pine uses a lot of sophiticated options to talk to sendmail, and uses
batched SMTP input which is not supported. The solution is to use your
mailhub as smtpserver in pine.conf.

But in fact, setting the sendmail-path in Pine's config file to
/usr/sbin/ssmtp -t works fine.  (More usefully, it can be set to a
script which queues mail for ssmtp -t to look at later.)

Best,
Robert

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: Fwd: Re: CygWin adding CRs, hurting CVS client/server communications?

2003-06-28 Thread Charles Wilson
Sorry, guys, but I can't reproduce this.

Client:

openssh  3.6.1p1-2
cvs  1.11.5-1
cygwin   1.3.22-1
:pserver: and :ext:(CVS_RSH=ssh) mode, with server sources.redhat.com

Server is running:
Concurrent Versions System (CVS) 1.11.1p1 (client/server)
(with local hacks)
OpenSSH_3.4p1, SSH protocols 1.5/2.0, OpenSSL 0x0090602f
-
Because I can't reproduce this, somebody who is experiencing the problem 
is going to have to track it down and provide a detailed (e.g. this 
code right here: ... is wrong...) bug analysis.

I can't fix what I can't see.

--Chuck
cvs maintainer
[EMAIL PROTECTED] wrote:
Forgot to CC this to the list.

Date: Sat, 28 Jun 2003 10:37:51 -0600
To: Van Rooyen G-J [EMAIL PROTECTED] [EMAIL PROTECTED]
From: [EMAIL PROTECTED]
Subject: Re: CygWin adding CRs, hurting CVS client/server communications?
I've seen the same symptoms...output is garbled because CRs are left 
in the strings CVS interprets, and it spits them out after 
concatenating them...so you wind up with lines like 
textCRtextNL...I've dumped the output and confirmed that this is 
what is happening.

Another good point...I am using the CygWin CVS client, not WinCVS.

Toscani

At 06:49 AM 6/28/2003, you wrote:

I have exactly the same problem as Toscani describes. Last week I did 
a routine update on my Cygwin packages, and my Cygwin CVS client 
(which worked fine the previous day) could not authenticate with the 
server any more. The login command works fine, but any subsequent 
operations fail to authenticate. Furthermore, the server error 
message is garbled, as if a CR/LF problem occurred.

Client: Cygwin on WinXP

Server: Redhat (not sure of the version)

Authentication: Plain pserver, no SSH.

Judging from Patrick's response (who uses WinCVS, and not Cygwin CVS) 
the problem lies somewhere in the Cygwin CVS client, not in Cygwin SSH.

G-J

--- in response to: ---

Works like a charm here, both for binmode and textmode mounts.
My system: Win2k, WinCVS and Cygwin SSH
The problem mentioned in your mailing list reference was fixed long 
time ago.
Do your line endings change as well if you scp a textfile from your 
client to your server? If yes, then we have indeed an ssh issue on 
WinXP platforms. Otherwise your problem must lie somewhere else.

Patrick

--- in response to: ---

Hey folx...currently using OpenSSH under CygWin on an XP box to 
communicate with a CVS server on a Linux box. Recently upgraded my 
CygWin installation (1.3.22(0.78/3/2), including OpenSSH to v3.6.1p1 
(the latest available under CygWin), and now CVS client/server 
communications over SSH (CVS_RSH=ssh) don't work.
I've tracked the problem deep enough to suspect that SOMETHING in 
CygWin converts LF to CR+LF line terminators across SSH. This pretty 
much hoses CVS client/server communications, as the CVS server 
interprets all incoming lines as byte strings including a CR at the 
end (it treats LF as the actual terminator)...especially bad for 
pathname interpretation, but lots of other things may be affected as 
well. I've tried altering the CVS server code to eat the extra CRs, 
but too many other things break (including file data exchange I'd 
bet...can't tell which CRs are valid data and which are inserted by 
the system) for that to be effective.
Found a reference in the mailing list archives to a similar problem 
someone was having last October, but the solution was to install a 
snapshot from that time period which seems to be no longer available. 
I'm wondering if the fix for this issue never found its way into more 
recent versions of the CygWin system components? I've upgraded CVS on 
both client and server, but based on my testing, I don't think CVS 
itself is adding the CRs...please flame if I'm wrong on that one. g 
Not sure what else to do right now but do without version control for 
a bit...any better ideas?
- Toscani





--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/


Re: Output suppressed with ssh or telnet

2003-06-28 Thread Peter Wohlers


Subject: Output suppressed with ssh or telnet
From: Marco Marcantelli [EMAIL PROTECTED]
Date: Fri, 27 Jun 2003 17:35:53 +0200
To: [EMAIL PROTECTED]
when I'm in telnet or ssh and run Dos programs like Word Star, Norton
Commander or a Cobol run-time for dos, I do not receive any Output, but
the programs are running !! If i try in local the programs works well. 

I have read the Email in Mail List, I would like to know if a solution exists.

[snip-snip cygcheck output]

Hmmm...I've just run into this myself...but it doesn't seem to be
universal with all apps:
[EMAIL PROTECTED] ~
$ which net
/cygdrive/c/winnt/system32/net
[EMAIL PROTECTED] ~
$ net help
[EMAIL PROTECTED] ~
$ ipconfig
Windows 2000 IP Configuration
Ethernet adapter Local Area Connection:
Connection-specific DNS Suffix  . :
IP Address. . . . . . . . . . . . : 192.168.1.5
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . : 192.168.1.1


So, you see from the above output, ipconfig spews forth as it should,
but the net command's output seems suppressed.
These are pretty up-to-date installs:
[EMAIL PROTECTED] ~
$ uname -a
CYGWIN_NT-5.0 dc1 1.3.22(0.78/3/2) 2003-03-18 09:20 i686 unknown unknown
Cygwin
[EMAIL PROTECTED] ~
$ ssh -V
OpenSSH_3.6.1p1, SSH protocols 1.5/2.0, OpenSSL 0x0090702f
Is there something in particular we should be looking at to help us
diagnose the root cause of this?
Thanks,

--
*
* Peter Wohlers *
[EMAIL PROTECTED]
*


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/


Re: How display graphic by cygwin

2003-06-28 Thread Igor Pechtchanski
Peng, Brian,

IMO, this question (in fact, the whole thread) belongs on the cygwin-xfree
list, which specializes on all Xwindows questions.  People there are much
more likely to know the answer to this and other X queries you might have.
I've forwarded this message there, and set the Reply-To accordingly.
Igor

On Sat, 28 Jun 2003, Peng Yu wrote:

 Yes, after I export DISPLAY=localhost:0.0
 It works. But I have to startx first.
 Must I startx before I want to display any graphics? Can it automaticly
 start? Thanks.

 Peng
 - Original Message -
 From: Brian Dessent [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Saturday, June 28, 2003 8:56 AM
 Subject: Re: How display graphic by cygwin


  Peng Yu wrote:
  
   I use command
   ssh -X [EMAIL PROTECTED]
   then acroread.
   But it dosen't work.
 
  You're still getting Can't open display?  What is the value of the
  DISPLAY variable once you've logged in to the remote host?  You may have
  to set it before running ssh, i.e.  export DISPLAY=localhost:0.0
 
  Brian

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

I have since come to realize that being between your mentor and his route
to the bathroom is a major career booster.  -- Patrick Naughton


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: example needed pls: `cygpath -c HANDLE'

2003-06-28 Thread Brian Dessent
Soren A wrote:

   * yeah,  am using AS Perl, that's because this is a piece of
 a WSH script.
   * what I'd like to end up with is a way to context|alternate-click
 on any filename in MSWindows Explorer and place the filename as
 *cygwin*, not the OS, will see it, on the clipboard. Anyone
 already had a pass at this wheel?

I was playing around with this because it seems like a handy idea.  
I use Cywin perl, but the differences shouldn't be very great.  Anyway, 
I came up with the following oneliner that does what you mention above 
(passed %1 as a Windows filename, it copies the Cygwin version to the
clipboard)

c:\cygwin\bin\perl.exe -MWin32::Clipboard -e my $f=quotemeta('%1'); chomp (my 
$c=qx!cygpath -u $f!); Win32::Clipboard($c);

If you install the following registry entries, you get a context menu 
for files and directories that runs this when selected.  You should be
able to save this as a .REG file and click on it to import the entries,
you'd have to change the path to perl though.

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Directory\shell\CygPath]
@=Copy Cygwin Path

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Directory\shell\CygPath\Command]
@=c:\\cygwin\\bin\\perl.exe -MWin32::Clipboard -e \my $f=quotemeta('%1'); chomp (my 
$c=qx!cygpath -u $f!); Win32::Clipboard($c);\

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\*\shell\CygPath]
@=Copy Cygwin path

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\*\shell\CygPath\command]
@=c:\\cygwin\\bin\\perl.exe -MWin32::Clipboard -e \my $f=quotemeta('%1'); chomp (my 
$c=qx!cygpath -u $f!); Win32::Clipboard($c);\

Brian

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Cygwin uses wrong make tool on my system.

2003-06-28 Thread Harald Houppermans
Hi,

For some reason cygwin uses the wrong make tool on my (windows xp) system.

I also have c builder stuff installed.

Cygwin calls the make tool of c builder and not the cygwin make.

How do I tell cygwin to use the cygwin make tool ?

Bye,
  Skybuck.


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: Cygwin uses wrong make tool on my system.

2003-06-28 Thread Harald Houppermans
The problem is a bit bigger.

Delphi 5 is also installed on my system and also has a tool called make.exe.

Delphi 6 is also installed on my system and also has a tool called make.exe.

Eh, oops.

Oh well I ll have to rename then for now...

Unless somebody knows how to call cygwin's make ? :D



--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: Cygwin uses wrong make tool on my system.

2003-06-28 Thread Elfyn McBratney
On Sun, 29 Jun 2003, Harald Houppermans wrote:

 The problem is a bit bigger.

 Delphi 5 is also installed on my system and also has a tool called make.exe.

 Delphi 6 is also installed on my system and also has a tool called make.exe.

 Eh, oops.

 Oh well I ll have to rename then for now...

 Unless somebody knows how to call cygwin's make ? :D

Put the path to Cygwin's bin (e.g., C:\Cygwin\bin) in your system PATH
environment variable. If your starting Cygwin via cygwin.bat, set the path
there. On NT/2K/XP goto System in the control panel, and it's under
Environment Variables or Advanced.

Elfyn
-- 


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



binutils, windows to linux compile troubles.

2003-06-28 Thread Harald Houppermans
Hi,

I think I am now using the right make of cygwin I get these errors:

Now I get this error:

Using the right make of cygwin I think.

$ make
Configuring in intl
loading cache .././config.cache
checking for a BSD compatible install... /usr/bin/install -c
checking how to run the C preprocessor... gcc -E
checking whether make sets ${MAKE}... eval: 1: Syntax error: Unterminated
quoted
 string
c:\pp\bin\win32\make.exe: *** [configure-intl] Error 1

???



--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: Cygwin uses wrong make tool on my system.

2003-06-28 Thread Brian Dessent
Harald Houppermans wrote:
 
 The problem is a bit bigger.
 
 Delphi 5 is also installed on my system and also has a tool called make.exe.
 
 Delphi 6 is also installed on my system and also has a tool called make.exe.
 
 Eh, oops.
 
 Oh well I ll have to rename then for now...
 
 Unless somebody knows how to call cygwin's make ? :D

It's all in the order of your $PATH.  Typing which make will tell you
which one comes first.  I would think it should pick up GNU make first
since by default /etc/profile prepends /bin to the path, and /bin/make
is the cygwin/GNU make.

Brian

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: binutils, windows to linux compile troubles.

2003-06-28 Thread Harald Houppermans
The configure process went like this:

$ ../configure --target=i686-linux
loading cache ./config.cache
checking host system type... i686-pc-cygwin
checking target system type... i686-pc-linux-gnu
checking build system type... i686-pc-cygwin
checking for i686-pc-cygwin-ar... no
checking for ar... (cached) ar
checking for i686-pc-cygwin-as... no
checking for as... (cached) as
checking for i686-pc-cygwin-dlltool... no
checking for dlltool... (cached) dlltool
checking for i686-pc-cygwin-ld... (cached)
/usr/lib/gcc-lib/i686-pc-cygwin/3.2/.
./../../../i686-pc-cygwin/bin/ld.exe
checking for i686-pc-cygwin-nm... no
checking for nm... (cached) nm
checking for i686-pc-cygwin-ranlib... no
checking for ranlib... (cached) ranlib
checking for i686-pc-cygwin-windres... no
checking for windres... (cached) windres
checking for i686-pc-cygwin-objcopy... no
checking for objcopy... (cached) objcopy
checking for i686-pc-cygwin-objdump... no
checking for objdump... (cached) objdump
checking for i686-linux-ar... no
checking for i686-linux-as... no
checking for i686-linux-dlltool... no
checking for i686-linux-ld... no
checking for i686-linux-nm... no
checking for i686-linux-ranlib... no
checking for i686-linux-windres... no
checking whether to enable maintainer-specific portions of Makefiles... no
updating cache ./config.cache
creating ./config.status
creating Makefile

( I also set cygwin to use unix text file types... that can't hurt can it ?
:) )


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: Cygwin uses wrong make tool on my system.

2003-06-28 Thread Harald Houppermans
- Original Message -
From: Brian Dessent [EMAIL PROTECTED]
To: Cygwin mailing list [EMAIL PROTECTED]
Sent: Sunday, June 29, 2003 12:55 AM
Subject: Re: Cygwin uses wrong make tool on my system.


 Harald Houppermans wrote:
 
  The problem is a bit bigger.
 
  Delphi 5 is also installed on my system and also has a tool called
make.exe.
 
  Delphi 6 is also installed on my system and also has a tool called
make.exe.
 
  Eh, oops.
 
  Oh well I ll have to rename then for now...
 
  Unless somebody knows how to call cygwin's make ? :D

 It's all in the order of your $PATH.  Typing which make will tell you
 which one comes first.  I would think it should pick up GNU make first
 since by default /etc/profile prepends /bin to the path, and /bin/make
 is the cygwin/GNU make.

Ok, I tried modifieing the path first... that did not work...

Anyway... I don't like modding with the path...

But anyway... thx for the tip how to find out which make is being used

Cygwin report this one:

$ which make
/cygdrive/c/pp/bin/win32/make

Damn... now I understand... that s free pascal's make !!!

FUNNY !!! So many makes on my system AHH



--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: Cygwin uses wrong make tool on my system.

2003-06-28 Thread Harald Houppermans

- Original Message -
From: Elfyn McBratney [EMAIL PROTECTED]
To: Harald Houppermans [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Sunday, June 29, 2003 12:54 AM
Subject: Re: Cygwin uses wrong make tool on my system.


 On Sun, 29 Jun 2003, Harald Houppermans wrote:

  The problem is a bit bigger.
 
  Delphi 5 is also installed on my system and also has a tool called
make.exe.
 
  Delphi 6 is also installed on my system and also has a tool called
make.exe.
 
  Eh, oops.
 
  Oh well I ll have to rename then for now...
 
  Unless somebody knows how to call cygwin's make ? :D

 Put the path to Cygwin's bin (e.g., C:\Cygwin\bin) in your system PATH
 environment variable. If your starting Cygwin via cygwin.bat, set the path
 there. On NT/2K/XP goto System in the control panel, and it's under
 Environment Variables or Advanced.

I know how to do that all...

Suppose I set the path in cygwin.bat...

After I exit cygwin... will my path be restored the original setting or be
screwed up ? :)

Anyway... I go try it out...  I just have to many make.exe's on my system,
lol :)

I am not going to constantly rename all those :)

Lol.



--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: Cygwin uses wrong make tool on my system.

2003-06-28 Thread Harald Houppermans
I tried looking in the cygwin/bin folder

I don't see any make.exe

What is it's exact name ?

I think maybe make is inside some other executables ?


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: Cygwin uses wrong make tool on my system.

2003-06-28 Thread Harald Houppermans
Sorry to burst your bubble ?!?!?!?

That does not work:

C:\Documents and Settings\Skybuck\Desktoprem @echo off

C:\Documents and Settings\Skybuck\Desktopset
PATH=C:\WINDOWS\system32;C:\WINDOW
S;C:\WINDOWS\System32\Wbem;c:\cygwin\bin;

C:\Documents and Settings\Skybuck\DesktopC:

C:\Documents and Settings\Skybuck\Desktopchdir C:\cygwin\bin

C:\cygwin\binbash --login -i

[EMAIL PROTECTED] ~
$ which make
make: Command not found.

??? what the hell ??? it can't find make ??? it s not in cygwin\bin ?


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: Cygwin uses wrong make tool on my system.

2003-06-28 Thread Harald Houppermans
Lol 

How funny... I installed all cygwin developer packages except the gnu make
?!?!?!

Did I accidently skip it ? or was it disabled by cygwin... ? lol.

Anyway going to re-install it...

Thank god I dont have to re-install cygwin completely... that should be
mentioned somewhere
in the installation.. that when you are done... you can easily update or
change the cygwin installation

- me - did not know that at first causing anger :D bad for the hart lol :)
- me - me soon found at anger was for nothing anger turned into luv lol :)


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: Cygwin uses wrong make tool on my system.

2003-06-28 Thread Harald Houppermans
I checked it.

Setting path in cygwin.bat is ok... it won't harm original path settings...
making a backup of path settings can't hurt.

binutils-2.14 is compiling nicely now :)

I am curious how far it will go :)


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



firewall going bezerk.

2003-06-28 Thread Harald Houppermans
Yo,

Cygwin is constantly performing DNS lookup's

My zone alarm firewall is going nuts.

I think cygwin even turned my firewall off... the true vector engine.

Anyway I decided to turn the firewall off completely...

Cygwin is not the only app going nuts with dns... also windows xp is going
nuts with DNS.

I think it is because the way cygwin and windows works... like a quake
game... everythin goes via network code...

So cygwin is like a server giving service or something... windows xp is also
like a server ? funny.

But I don't think it s funny... I hate it... I want my internet connection
to only access the net when it is really needed.

I rather have windows xp and cygwin not be like a server etc... and just use
dll's and other forms of inter process communication etc...

Those are my wishes :P :D

:)


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: Procedure entry not found in cygwin1.dll

2003-06-28 Thread Christopher Faylor
On Sun, Jun 29, 2003 at 03:00:03AM +0200, Harald Houppermans wrote:
Hi,

I compiled binutils 2.14 with the latest cygwin.

ld-new.exe seems to be working ok.

as-new.exe reports this error message when I start it:

'The procedure entry point asprintf could not be located in the dynamic link
library cygwin1.dll

At one point during the build of binutils my firewall was shutdown.

So I am not sure if it is because my build went a little bit wrong or that
it is a problem with cygwin1.dll

It's probably a problem with cygwin1.dll

You have multiple copies of cygwin1.dll on your system.  The older version
of cygwin1.dll doesn't include asprintf.

Check out http://cygwin.com/problems.html .

cgf
--
Please use the resources at cygwin.com rather than sending personal email.
Special for spam email harvesters: send email to [EMAIL PROTECTED]
and be permanently blocked from mailing lists at sources.redhat.com

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: Procedure entry not found in cygwin1.dll

2003-06-28 Thread Harald Houppermans
- Original Message -
From: Christopher Faylor [EMAIL PROTECTED]
To: [EMAIL PROTECTED]; BinUtils mailing list
[EMAIL PROTECTED]
Sent: Sunday, June 29, 2003 3:14 AM
Subject: Re: Procedure entry not found in cygwin1.dll


 On Sun, Jun 29, 2003 at 03:00:03AM +0200, Harald Houppermans wrote:
 Hi,
 
 I compiled binutils 2.14 with the latest cygwin.
 
 ld-new.exe seems to be working ok.
 
 as-new.exe reports this error message when I start it:
 
 'The procedure entry point asprintf could not be located in the dynamic
link
 library cygwin1.dll
 
 At one point during the build of binutils my firewall was shutdown.
 
 So I am not sure if it is because my build went a little bit wrong or
that
 it is a problem with cygwin1.dll
 
 It's probably a problem with cygwin1.dll

 You have multiple copies of cygwin1.dll on your system.  The older version
 of cygwin1.dll doesn't include asprintf.

Indeed, my system contains multiple cygwin1.dll's

It seems free pascal also has cygwin1.dll and it's also in my path variable.

When I look back at my journey :) I can only come to one conclusion and that
is that having all these different compilers/tools etc in my path has caused
nothing but trouble.

So I am going to do something about it ! :)

Now more big path's... but I am going to make batch's to set each
environment.

I normally don't use make and command line tools anyway... not even for
delphi.. which is my main tool :)

So having different batch files to set the path's shouldn't hurt :) no next
time things will hopefully go more something

Having 5 or 6 different make.exe's all in the same path is insane ! :D

Thx dude.


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: Procedure entry not found in cygwin1.dll

2003-06-28 Thread Harald Houppermans
Shit

When I set the path via a batch file on windows xp.

As soon as the batch file ends the path returns to normal...

Hmmm


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: Procedure entry not found in cygwin1.dll

2003-06-28 Thread Harald Houppermans
Well I copied the cygwin1.dll to the as-new.exe folder to see if it would
work.
And it works, everything looking fine to me :)

C:\binutils-2.14\build\gasas-new.exe -V
GNU assembler version 2.14 (i686-linux) using BFD version 2.14 20030612


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



free pascal cross compiler from windows to linux working.

2003-06-28 Thread Harald Houppermans
The free pascal 1.0.6 cross compiler host windows target linux is now
working.

I used cygwin, binutils-2.14 and free pascal.

( mingw unfortunately did not working: missing bison, flex, etc :) )

I tested a simple hello world program with knoppix ( linux running from
cd-rom ).

Then I also tested it with a red hat linux server.

The only problem seems to be that the hello world is denied access.

It says: permission denied...

That is probably easily solved with chmod.

I am just wondering if the free pascal compiler can set these permission
automatically for the linux executables.

( Is that the right term, linux executables ? :) )

So other weird red hat linux server behaviour... I have to use:  ./hello
( just hello does work on knoppix )

That's probably a red hat linux server setting... ./ means current folder...

Just wondering what that is all about.

I ll bet I'll also write a tutorial so others can do it.

Also with a little side note why I want it... many asked why not install
linux.

My short answer would be: 1. no space. 2. I read linux can destroy NTFS
partitions :)

Since I have windows xp ntfs and windows 98 fat32 paritions I don't want
that now do I :)

Later.


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: Procedure entry not found in cygwin1.dll

2003-06-28 Thread Brian Dessent
Harald Houppermans wrote:
 
 Shit
 
 When I set the path via a batch file on windows xp.
 
 As soon as the batch file ends the path returns to normal...

If you want changes to be persistent, look into either the Setx tool
or Pathman tool, both from the Windows resource kit.

http://www.microsoft.com/windows2000/techinfo/reskit/tools/existing/pathman-o.asp

http://www.microsoft.com/windows2000/techinfo/reskit/tools/existing/setx-o.asp

But, I wouldn't bother going to all that trouble.  Cygwin sets its path
in /etc/profile -- as long as /bin (aka /usr/bin) is ahead of $PATH
(which is Windows' path), Cygwin should be happy since it will always
find its version of things.  You can check this with echo $PATH from a
cygwin prompt, but /bin (and possibly /usr/sbin, /usr/local/bin, etc.)
should all be at the head of the list.

Why are you compiling bintools anyway?  There's a package you know...

Brian

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: example needed pls: `cygpath -c HANDLE'

2003-06-28 Thread Igor Pechtchanski
On Sat, 28 Jun 2003, Brian Dessent wrote:

 Soren A wrote:

* yeah,  am using AS Perl, that's because this is a piece of
  a WSH script.
* what I'd like to end up with is a way to context|alternate-click
  on any filename in MSWindows Explorer and place the filename as
  *cygwin*, not the OS, will see it, on the clipboard. Anyone
  already had a pass at this wheel?

 I was playing around with this because it seems like a handy idea.
 I use Cywin perl, but the differences shouldn't be very great.  Anyway,
 I came up with the following oneliner that does what you mention above
 (passed %1 as a Windows filename, it copies the Cygwin version to the
 clipboard)

 c:\cygwin\bin\perl.exe -MWin32::Clipboard -e my $f=quotemeta('%1'); chomp (my 
 $c=qx!cygpath -u $f!); Win32::Clipboard($c);

 If you install the following registry entries, you get a context menu
 for files and directories that runs this when selected.  You should be
 able to save this as a .REG file and click on it to import the entries,
 you'd have to change the path to perl though.

 [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Directory\shell\CygPath]
 @=Copy Cygwin Path

 [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Directory\shell\CygPath\Command]
 @=c:\\cygwin\\bin\\perl.exe -MWin32::Clipboard -e \my $f=quotemeta('%1'); chomp 
 (my $c=qx!cygpath -u $f!); Win32::Clipboard($c);\

 [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\*\shell\CygPath]
 @=Copy Cygwin path

 [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\*\shell\CygPath\command]
 @=c:\\cygwin\\bin\\perl.exe -MWin32::Clipboard -e \my $f=quotemeta('%1'); chomp 
 (my $c=qx!cygpath -u $f!); Win32::Clipboard($c);\

 Brian

Umm, guys, aren't we getting carried away here?  I mean, perl is a great
tool, but wouldn't something simpler, like

c:\cygwin\bin\bash -c echo -n `/bin/cygpath -u '%1'`  /dev/clipboard

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

I have since come to realize that being between your mentor and his route
to the bathroom is a major career booster.  -- Patrick Naughton


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: firewall going bezerk.

2003-06-28 Thread Igor Pechtchanski
On Sun, 29 Jun 2003, Harald Houppermans wrote:

 Yo,

 Cygwin is constantly performing DNS lookup's

 My zone alarm firewall is going nuts.

 I think cygwin even turned my firewall off... the true vector engine.

 Anyway I decided to turn the firewall off completely...

 Cygwin is not the only app going nuts with dns... also windows xp is going
 nuts with DNS.

 I think it is because the way cygwin and windows works... like a quake
 game... everythin goes via network code...

 So cygwin is like a server giving service or something... windows xp is also
 like a server ? funny.

 But I don't think it s funny... I hate it... I want my internet connection
 to only access the net when it is really needed.

 I rather have windows xp and cygwin not be like a server etc... and just use
 dll's and other forms of inter process communication etc...

 Those are my wishes :P :D

 :)

It's hard to say for sure, but my guess is that it's Cygwin's gethostname
function which calls winsock's implementation of same.  The winsock
gethostname implementation will apparently access DNS for the name of the
current machine - go figure.  FYI, gethostname is called at least when you
log in, to set the prompt and all...
Igor
P.S. Yo?
-- 
http://cs.nyu.edu/~pechtcha/
  |\  _,,,---,,_[EMAIL PROTECTED]
ZZZzz /,`.-'`'-.  ;-;;,_[EMAIL PROTECTED]
 |,4-  ) )-,_. ,\ (  `'-'   Igor Pechtchanski, Ph.D.
'---''(_/--'  `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

I have since come to realize that being between your mentor and his route
to the bathroom is a major career booster.  -- Patrick Naughton


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: free pascal cross compiler from windows to linux working.

2003-06-28 Thread Igor Pechtchanski
Harald,

Replies inline below.

On Sun, 29 Jun 2003, Harald Houppermans wrote:

 The free pascal 1.0.6 cross compiler host windows target linux is now
 working.

 I used cygwin, binutils-2.14 and free pascal.

 ( mingw unfortunately did not working: missing bison, flex, etc :) )

 I tested a simple hello world program with knoppix ( linux running from
 cd-rom ).

 Then I also tested it with a red hat linux server.

 The only problem seems to be that the hello world is denied access.

 It says: permission denied...

 That is probably easily solved with chmod.

 I am just wondering if the free pascal compiler can set these permission
 automatically for the linux executables.

The permissions probably *are* set by the compiler, but copying the files
to Linux destroys permissions unless you give the -p option to cp/scp.
Transferring executables via ftp will probably destroy permissions also.

 ( Is that the right term, linux executables ? :) )

 So other weird red hat linux server behaviour... I have to use:  ./hello
 ( just hello does work on knoppix )

 That's probably a red hat linux server setting... ./ means current folder...

 Just wondering what that is all about.

. is not in the PATH by default on most Unixes, as that introduces a
security hole.

 I ll bet I'll also write a tutorial so others can do it.

 Also with a little side note why I want it... many asked why not install
 linux.

 My short answer would be: 1. no space. 2. I read linux can destroy NTFS
 partitions :)

 Since I have windows xp ntfs and windows 98 fat32 paritions I don't want
 that now do I :)
 Later.

IMHO, it's unlikely that Linux can destroy NTFS partitions that it only
has read-only access to.  I've been wrong before, though...
Igor
-- 
http://cs.nyu.edu/~pechtcha/
  |\  _,,,---,,_[EMAIL PROTECTED]
ZZZzz /,`.-'`'-.  ;-;;,_[EMAIL PROTECTED]
 |,4-  ) )-,_. ,\ (  `'-'   Igor Pechtchanski, Ph.D.
'---''(_/--'  `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

I have since come to realize that being between your mentor and his route
to the bathroom is a major career booster.  -- Patrick Naughton


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: Procedure entry not found in cygwin1.dll

2003-06-28 Thread Larry Hall
Harald Houppermans wrote:

Well I copied the cygwin1.dll to the as-new.exe folder to see if it would
work.
And it works, everything looking fine to me :)
C:\binutils-2.14\build\gasas-new.exe -V
GNU assembler version 2.14 (i686-linux) using BFD version 2.14 20030612


It would be best to remove this copy right now.  If you don't, it will
bite you in the future and we probably all get to share a smiggin of
your pain when it happens.  Let's all *not* feel your pain! ;-)
--
Larry Hall  http://www.rfk.com
RFK Partners, Inc.  (508) 893-9779 - RFK Office
838 Washington Street   (508) 893-9889 - FAX
Holliston, MA 01746
--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/


Re: firewall going bezerk.

2003-06-28 Thread Harald Houppermans

- Original Message -
From: Igor Pechtchanski [EMAIL PROTECTED]
To: Harald Houppermans [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Sunday, June 29, 2003 4:52 AM
Subject: Re: firewall going bezerk.


 On Sun, 29 Jun 2003, Harald Houppermans wrote:

  Yo,
 
  Cygwin is constantly performing DNS lookup's
 
  My zone alarm firewall is going nuts.
 
  I think cygwin even turned my firewall off... the true vector engine.
 
  Anyway I decided to turn the firewall off completely...
 
  Cygwin is not the only app going nuts with dns... also windows xp is
going
  nuts with DNS.
 
  I think it is because the way cygwin and windows works... like a quake
  game... everythin goes via network code...
 
  So cygwin is like a server giving service or something... windows xp is
also
  like a server ? funny.
 
  But I don't think it s funny... I hate it... I want my internet
connection
  to only access the net when it is really needed.
 
  I rather have windows xp and cygwin not be like a server etc... and just
use
  dll's and other forms of inter process communication etc...
 
  Those are my wishes :P :D
 
  :)

 It's hard to say for sure, but my guess is that it's Cygwin's gethostname
 function which calls winsock's implementation of same.  The winsock
 gethostname implementation will apparently access DNS for the name of the
 current machine - go figure.  FYI, gethostname is called at least when you
 log in, to set the prompt and all...

I think that is the case.


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: free pascal cross compiler from windows to linux working.

2003-06-28 Thread Harald Houppermans
  I am just wondering if the free pascal compiler can set these permission
  automatically for the linux executables.

 The permissions probably *are* set by the compiler, but copying the files
 to Linux destroys permissions unless you give the -p option to cp/scp.
 Transferring executables via ftp will probably destroy permissions also.

Hmm sounds reasonable :)

On the other hand... how would the compiler store these permission in the
file 

Windows probably hasn't permissions like unix does.

So unless permission are part of the linux executable format... it probably
doesn't exist ?

Seems logical :)

And therefore have to be set... h.

BU on the other hand... I did here some talk about having a compiler set
permissions...

But that was probably just an idea :)


  ( Is that the right term, linux executables ? :) )
 
  So other weird red hat linux server behaviour... I have to use:  ./hello
  ( just hello does work on knoppix )
 
  That's probably a red hat linux server setting... ./ means current
folder...
 
  Just wondering what that is all about.

 . is not in the PATH by default on most Unixes, as that introduces a
 security hole.

Why is putting the current path in the path variable a security hole ?


  I ll bet I'll also write a tutorial so others can do it.
 
  Also with a little side note why I want it... many asked why not install
  linux.
 
  My short answer would be: 1. no space. 2. I read linux can destroy NTFS
  partitions :)
 
  Since I have windows xp ntfs and windows 98 fat32 paritions I don't want
  that now do I :)
  Later.

 IMHO, it's unlikely that Linux can destroy NTFS partitions that it only
 has read-only access to.  I've been wrong before, though...

Well it sounds to scary for me :D



--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: example needed pls: `cygpath -c HANDLE'

2003-06-28 Thread Brian Dessent
Igor Pechtchanski wrote:

 Umm, guys, aren't we getting carried away here?  I mean, perl is a great
 tool, but wouldn't something simpler, like
 
 c:\cygwin\bin\bash -c echo -n `/bin/cygpath -u '%1'`  /dev/clipboard

Jeez, I had no idea /dev/clipboard existed.  Is there a list of
supported dev entries somewhere?

Brian

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: example needed pls: `cygpath -c HANDLE'

2003-06-28 Thread Igor Pechtchanski
On Sat, 28 Jun 2003, Brian Dessent wrote:

 Igor Pechtchanski wrote:

  Umm, guys, aren't we getting carried away here?  I mean, perl is a great
  tool, but wouldn't something simpler, like
 
  c:\cygwin\bin\bash -c echo -n `/bin/cygpath -u '%1'`  /dev/clipboard

 Jeez, I had no idea /dev/clipboard existed.  Is there a list of
 supported dev entries somewhere?

 Brian

Sure!  In winsup/cygwin/path.cc, right before get_devn() (see
http://cygwin.com/cgi-bin/cvsweb.cgi/src/winsup/cygwin/path.cc?rev=1.257cvsroot=src).
IOW, Use the source, Luke... er... Brian! :-D
Igor
-- 
http://cs.nyu.edu/~pechtcha/
  |\  _,,,---,,_[EMAIL PROTECTED]
ZZZzz /,`.-'`'-.  ;-;;,_[EMAIL PROTECTED]
 |,4-  ) )-,_. ,\ (  `'-'   Igor Pechtchanski, Ph.D.
'---''(_/--'  `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

I have since come to realize that being between your mentor and his route
to the bathroom is a major career booster.  -- Patrick Naughton


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



request: add hive unload functionality

2003-06-28 Thread micah

after browsing the source, I gathered that whenever a new process is spawned(spawn.cc) 
the user's hive is loaded and linked to HKEY_CURRENT_USER.  but, the user's hive is 
never unloaded i.e. whenever the last process running as that user terminates.

so I humbly suggest adding an unload function to the registry like:

  void unload_registry_hive (PSID psid){ ... }

then wait until the last process running as that user exits and then unload the hive.


the reason for the request is I have a couple of programs that monitor user 
logon/logoffs.  they work by monitoring the HKEY_USERS hive and with cygwin-sshd, the 
hives never unload even after I kill sshd...


thanks,
micah


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/