PostgreSQL 7.3.2 restart issue

2003-06-06 Thread Ken Dibble
Please bear with me as I'm pretty new to this.

Configuration

cygwin1.dll
File version 1003.22.0.0
Product Version 1.3.22-dontuse-21
cygipc version 1.14-1

PostgreSql 7.3.2 prebuilt (in cygwin distribution)

OS- WinXP Home
CPU- Athlon XP 2000+
Memory 640MB physical 910MB virtual
All current SP1 Hotfixes

The first time the database is started all is well ( ipc-daemon & then 
pg_ctl start -D /usr/local/pgsql/data -l server.log -o -i)

After shutdown (pg_ctl -D /usr/local/pgsql/data stop -ms)

Attempting to restart the database fails with:
IpcMemoryCreate: shmget(key=5432001, size=1499136, 03600) failed: 
Function not implemented

All of the emails on the mailing list that I have perused appear to 
indicate that
this means the ipc-daemon is not running.

This is not the case, it does not matter if I leave the daemon running 
after shutting down
the database or stop it with kill -HUP and restart it.  The result is 
the same error message.

Rebooting allows you to start up the database, then the same behaviour 
is repeated.

Thanks for your time.

Ken Dibble

Cygwin Win95/NT Configuration Diagnostics
Current System Time: Fri Jun 06 21:55:36 2003

Windows XP Home Edition Ver 5.1 Build 2600 Service Pack 1

Path:   C:\cygwin\usr\local\bin
C:\cygwin\bin
C:\cygwin\bin
c:\WINDOWS\system32
c:\WINDOWS
c:\WINDOWS\System32\Wbem
c:\Program Files\Common Files\Adaptec Shared\System
c:\Program Files\JavaSoft
c:\Program Files\JavaSoft\jdk1.3.1_07\bin

C:\cygwin\bin\id.exe output (nontsec)
UID: 400(Ken GID: le)
(mkpasswd) groups=401(mkpasswd)

C:\cygwin\bin\id.exe output (ntsec)
UID: 400(Ken GID: le)
(mkpasswd) groups=401(mkpasswd)

SysDir: C:\WINDOWS\System32
WinDir: C:\WINDOWS

HOME = `c:\Documents and Settings\Ken Dibble'
PWD = `/cygdrive/c/Documents and Settings/Ken Dibble/My Documents'

ALLUSERSPROFILE = `C:\Documents and Settings\All Users'
APPDATA = `C:\Documents and Settings\Ken Dibble\Application Data'
COMMONPROGRAMFILES = `C:\Program Files\Common Files'
COMPUTERNAME = `BECCOMPUTER'
COMSPEC = `C:\WINDOWS\system32\cmd.exe'
HOMEDRIVE = `C:'
HOMEPATH = `\Documents and Settings\Ken Dibble'
LOGONSERVER = `\\BECCOMPUTER'
NUMBER_OF_PROCESSORS = `1'
OLDPWD = `/cygdrive/c/Documents and Settings/Ken Dibble'
OS = `Windows_NT'
PATHEXT = `.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH'
PROCESSOR_ARCHITECTURE = `x86'
PROCESSOR_IDENTIFIER = `x86 Family 6 Model 8 Stepping 0, AuthenticAMD'
PROCESSOR_LEVEL = `6'
PROCESSOR_REVISION = `0800'
PROGRAMFILES = `C:\Program Files'
PROMPT = `$P$G'
SESSIONNAME = `Console'
SHLVL = `1'
SYSTEMDRIVE = `C:'
SYSTEMROOT = `C:\WINDOWS'
TEMP = `c:\DOCUME~1\KENDIB~1\LOCALS~1\Temp'
TERM = `cygwin'
TMP = `c:\DOCUME~1\KENDIB~1\LOCALS~1\Temp'
USERDOMAIN = `BECCOMPUTER'
USERNAME = `Ken Dibble'
USERPROFILE = `C:\Documents and Settings\Ken Dibble'
WINDIR = `C:\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_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2
  (default) = `/cygdrive'
  cygdrive flags = 0x0022
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/
  (default) = `C:\cygwin'
  flags = 0x000a
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/usr/bin
  (default) = `C:\cygwin/bin'
  flags = 0x000a
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/usr/lib
  (default) = `C:\cygwin/lib'
  flags = 0x000a
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/usr/X11R6/lib/X11/fonts
  (default) = `C:\cygwin\usr\X11R6\lib\X11\fonts'
  flags = 0x000a
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\Program Options

a:  fd   N/AN/A
c:  hd  NTFS   38162Mb  21% CP CS UN PA FC 
d:  cd  CDUDFRW   539Mb  51% CPUN   Backup#2

C:\cygwin  / system  binmode
C:\cygwin/bin  /usr/bin  system  binmode
C:\cygwin/lib  /usr/lib  system  binmode
C:\cygwin\usr\X11R6\lib\X11\fonts  /usr/X11R6/lib/X11/fonts  system  binmode
.  /cygdrive system  binmode,cygdrive

Found: C:\cygwin\bin\awk.exe
Found: C:\cygwin\bin\bash.exe
Found: C:\cygwin\bin\cat.exe
Found: C:\cygwin\bin\cp.exe
Found: C:\cygwin\bin\cpp.exe
Found: C:\cygwin\bin\find.exe
Found: C:\cygwin\bin\gcc.exe
Not Found: gdb
Found: C:\cygwin\bin\grep.exe
Found: C:\cygwin\bin\ld.exe
Found

Re: PostgreSQL 7.3.2 restart issue

2003-06-08 Thread Ken Dibble
It appears I've isolated the problem.
I downloaded and installed 1.13 of the ipc-daemon.
I am aware that this daemon has another issue, but if fixes my problem.
Possibly when the XP Fast-Switch problem was fixed, another was introduced.
Should I report this elsewhere as well?
Thanks,
Ken
--
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: PostgreSQL 7.3.2 restart issue

2003-06-08 Thread Ken Dibble


Larry Hall wrote:

Ken Dibble wrote:

It appears I've isolated the problem.
I downloaded and installed 1.13 of the ipc-daemon.
I am aware that this daemon has another issue, but if fixes my problem.
Possibly when the XP Fast-Switch problem was fixed, another was 
introduced.
Should I report this elsewhere as well?


No, here is the proper place.  Post the details and the information
recommended at <http://cygwin.com/problems.html>. 


I thought that I had in the original post.  What did I miss?

Thanks,
Ken




--
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: PostgreSQL 7.3.2 restart issue

2003-06-09 Thread Ken Dibble


Larry Hall wrote:

Ken Dibble wrote:



Larry Hall wrote:

Ken Dibble wrote:

It appears I've isolated the problem.
I downloaded and installed 1.13 of the ipc-daemon.
I am aware that this daemon has another issue, but if fixes my 
problem.
Possibly when the XP Fast-Switch problem was fixed, another was 
introduced.
Should I report this elsewhere as well?




No, here is the proper place.  Post the details and the information
recommended at <http://cygwin.com/problems.html>. 




I thought that I had in the original post.  What did I miss?


OK, I've reread the thread again.  You have posted the details in
your original message.  Any chance you could verify whether Fast-Switch
problem is the cause of the issue you see?  Perhaps just the results
of strace may provide some insight too.


Jason Tischler wrote:

PostgreSQL 7.3.2-1 may have been built against an older cygipc, please
try the latest version, PostgreSQL 7.3.3-1.  Does it work any better for
you?
Jason


I won't even pretend to know how to use strace.
The problem appears to be related to a mismatch between cygipc versions 
and Postgresql versions.

Here is what I believe to be accurate:
Postgresql 7.3.2-1 works with cygipc 1.13 with the caveat of the 
Fast-Switch problem
Postgresql 7.3.2.1 works with cygipc 1.14 with the caveat that it can 
only be started once per WindowsOS boot.
Postgresql 7.3.3-1 appears to work correctly with cygipc 1.14.

I don't know if this is true for other OS types/versions.
I only know it is true for my machine (with the results of cygcheck in 
the original post).

Thanks to both Larry Hall and Jason Tischler for getting me straightened 
out.

Ken Dibble

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


find -exec oddity

2003-07-07 Thread Ken Dibble
 5.8.0-3
perl_manpages   5.8.0-3
pkgconfig   0.15.0-1
popt1.6.4-4
postgresql  7.3.3-1
procps  010801-2
python  2.2.3-2
rcs 5.7-3
readline4.3-2
rebase  2.2-2
rxvt2.7.10-3
sed 4.0.7-1
sh-utils2.0.15-3
sunrpc  4.0-1
sysvinit2.84-3
tar 1.13.25-1
tcltk   20030214-1
tcp_wrappers7.6-1
termcap 20020930-1
terminfo5.3-2
tetex-devel 2.0.2-1
texinfo 4.2-4
textutils   2.0.21-1
tiff3.6.0-1
ucl 1.01-1
unzip   5.50-2
w32api  2.3-1
which   1.5-1
WindowMaker 0.80.0-2
xerces-c2.3.0-2
XFree86-base4.2.0-1
XFree86-bin 4.2.0-3
XFree86-doc 4.2.0-1
XFree86-etc 4.2.0-1
XFree86-f1004.2.0-2
XFree86-fcyr4.2.0-2
XFree86-fenc4.2.0-2
XFree86-fnts4.2.0-2
XFree86-fscl4.2.0-2
XFree86-fsrv4.2.0-1
XFree86-html4.2.0-1
XFree86-jdoc4.2.0-1
XFree86-lib 4.2.0-5
XFree86-man 4.2.0-1
XFree86-nest4.2.0-1
XFree86-prog4.2.0-1
XFree86-prt 4.2.0-1
XFree86-ps  4.2.0-1
XFree86-startup-scripts 4.2.0-5
XFree86-vfb 4.2.0-1
XFree86-xserv   4.2.0-42
XFree86-xwinclip4.2.0-8
xpm-nox 4.2.0-1
zip 2.3-2
zlib1.1.4-1
Cygwin Win95/NT Configuration Diagnostics
Current System Time: Mon Jul 07 12:33:34 2003
Windows XP Home Edition Ver 5.1 Build 2600 Service Pack 1

Path:.
   C:\cygwin\usr\sbin
   C:\cygwin\usr\local\sbin
   C:\cygwin\usr\local\bin
   C:\cygwin\usr\local\bin
   C:\cygwin\bin
   C:\cygwin\bin
   c:\WINDOWS\system32
   c:\WINDOWS
   c:\WINDOWS\System32\Wbem
   c:\Program Files\Common Files\Adaptec Shared\System
   C:\cygwin\usr\X11R6\bin
C:\cygwin\bin\id.exe output (nontsec)
UID: 1006(KenGID: le)
(None) groups=513(None)
C:\cygwin\bin\id.exe output (ntsec)
UID: 1006(KenGID: le)
(None) groups=513(None)  544(Administrators)
545(Users)
SysDir: C:\WINDOWS\System32
WinDir: C:\WINDOWS
HOME = `C:\cygwin\home\Ken Dibble'
MAKE_MODE = `unix'
PWD = `/'
USER = `Ken Dibble'
ALLUSERSPROFILE = `C:\Documents and Settings\All Users'
APPDATA = `C:\Documents and Settings\Ken Dibble\Application Data'
CLIENTNAME = `Console'
COMMONPROGRAMFILES = `C:\Program Files\Common Files'
COMPUTERNAME = `BECCOMPUTER'
COMSPEC = `C:\WINDOWS\system32\cmd.exe'
CVS_RSH = `/bin/ssh'
CYGWIN_ROOT = `\cygwin'
EDITOR = `gvim'
HOMEDRIVE = `C:'
HOMEPATH = `\Documents and Settings\Ken Dibble'
HOSTNAME = `BECCOMPUTER'
JAVA_HOME = `/cygdrive/c/program files/j2sdk_nb/j2sdk1.4.2'
KDEDIR = `C:\cygwin\opt\kde3'
KDEHOME = `"C:\Documents and Settings\Ken Dibble\Application Data"'
LOGONSERVER = `\\BECCOMPUTER'
LTDL_LIBRARY_PATH = `C:\cygwin\opt\kde3\lib;C:\cygwin\opt\kde3\lib\kde3'
MANPATH = `:/usr/ssl/man'
NUMBER_OF_PROCESSORS = `1'
OLDPWD = `/cygdrive/c/Documents and Settings/Ken Dibble/My Documents'
OS = `Windows_NT'
PATHEXT = `.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH'
PROCESSOR_ARCHITECTURE = `x86'
PROCESSOR_IDENTIFIER = `x86 Family 6 Model 8 Stepping 0, AuthenticAMD'
PROCESSOR_LEVEL = `6'
PROCESSOR_REVISION = `0800'
PROGRAMFILES = `C:\Program Files'
PROMPT = `$P$G'
PS1 = `\[\033]0;\w\007
[EMAIL PROTECTED] \[\033[33m\w\033[0m\]
$ '
SESSIONNAME = `Console'
SHLVL = `1'
SYSTEMDRIVE = `C:'
SYSTEMROOT = `C:\WINDOWS'
TEMP = `c:\DOCUME~1\KENDIB~1\LOCALS~1\Temp'
TERM = `cygwin'
TMP = `c:\DOCUME~1\KENDIB~1\LOCALS~1\Temp'
USERDOMAIN = `BECCOMPUTER'
USERNAME = `Ken Dibble'
USERPROFILE = `C:\Documents and Settings\Ken Dibble'
WINDIR = `C:\WINDOWS'
_ = `/usr/bin/cygcheck'
Use `-r' to scan registry

a:  fd   N/AN/A
c:  hd  NTFS   38162Mb  19% CP CS UN PA FC 
d:  hd  NTFS2439Mb  11% CP CS UN PA FC Seagate
e:  cd  CDUDFRW   539Mb  52% CPUN   D&S#3

C:\cygwin  / userbinmode
C:\cygwin/bin  /usr/bin  userbinmode
C:\cygwin/lib  /usr/lib  userbinmode
.  /cygdrive user
binmode,cygdrive
C:\cygwin\usr\X11R6\lib\X11\fonts  /usr/X11R6/lib/X11/fonts  system  binmode
.  /cygdrive system  
binmode,cygdrive

Found: C:\cygwin\bin\awk.exe
Foun

Re: find -exec oddity

2003-07-08 Thread Ken Dibble


Randall R Schulz wrote:

Ken,

At 16:38 2003-07-07, Ken Dibble wrote:

Ok, I'm an idiot.  I've looked in the FAQ, searched the mail lists
and checked sundry Unix sources (no, not the source code).


Well, I doubt greatly that you're an idiot. Confusion is the prelude 
to enlightenment, after all...

(Compare that with Eudora whose "mood watch" feature seems to think 
the first sentence of the previous paragraph is some kind of insult!)

However, we'd all appreciate it if you'd figure out how to use your 
mail client to make sure text attachments are not placed in-line with 
the message content. Not to do so defeats the purpose of attaching the 
"cygcheck" output, which is to make list searching meaningful by 
preventing the false hits that occur because of all the package and 
file names that are included in the cygcheck output.


I can't make sense of this.

$ find ./ -mtime -1  -print | wc -l
   55
$ find ./ -mtime -1 -ls | wc -l
   55
$ find ./ -mmin -1440 -ls | wc -l
   55
$ find ./ -mtime -1  -exec ls -l  '{}' \; | wc -l
 2046


Look carefully at the man page for find where the "-ls" option is 
described. It says that "-ls" is equivalent to running "ls" with the 
options "-dils". The salient option here is "-d" which suppresses the 
listing of a directory's contents when a directory is an explicit 
argument to ls. You're not including "-d" in your invocation of ls, so 
every directory produced by find contributes its entire contents to 
the output of ls that is subsequently counted by "wc -l".


$ find ./ -mtime -1  -exec ls -l  {} \; | wc -l
 2046
$ find ./ -mmin -1440  -exec ls -l  {} \; | wc -l
 2046
and just for grins

$ find ./ -print | wc -l
31701
$ find ./ -mtime -10 -print | wc -l
  285
$ find ./ -mtime -100 -print | wc -l
15590
The oddity (bug?) appears to be tied to -exec somehow.


No. The "-exec" option is doing just what you ask and just what it 
should.


Attached is cygcheck -c -v -s.


As above.


I can't attach the file lists (unpiped find output) as the message 
size then exceeds 100K and the redhat mailserver bounces it.


No matter. It's not needed.


Any help would be appreciated.


I hope my assumption about the problem is correct (file count 
discrepancies), since you didn't really say what it was that perplexed 
you.

My mistake on the attachment, it was originally sent as an attachment, 
along with the file lists, unfortunately the whole message bounced for size.

Your assumption about directories is a good guess, however seemingly 
only partially correct.

Here is the output today:

$ find ./ -mtime -1  -print
./
./files to backup.txt
./idiot.txt
and

$ find ./ -mtime -1  -print  -exec ls -l '{}' \;
./
total 6195
drwx--+   3 Ken Dibb None0 Jun 25 07:19 Ad Aware
-rwx--+   1 Ken Dibb None  981 Apr 22 09:34 Belarc Advisor 
Current
rofile.txt
drwx--+   3 Ken Dibb None0 Jun 25 07:19 CVS
drwx--+   2 Ken Dibb None0 Jun 25 07:54 Corel User Files
drwx--+   2 Ken Dibb None0 Jun 25 07:32 DMTEdit
drwx--+   3 Ken Dibb None0 Jun 25 07:32 Free Agent
drwx--+   2 Ken Dibb None0 Jun 25 07:33 Mac Desktop
drwx--+   2 Ken Dibb None0 Jun 30 11:48 My Archives
dr-x--+   2 Ken Dibb None0 Jun 25 07:33 My Music
dr-x--+   2 Ken Dibb None0 Jun 25 07:33 My Pictures
drwx--+   2 Ken Dibb None0 Jan 28 19:28 My eBooks
drwx--+   3 Ken Dibb None0 Jun 25 07:21 TransMac
-rwx--+   1 Ken Dibb None   234752 Apr 19 08:00 all-nbuser-faqs.html
-rwx--+   1 Ken Dibb None22672 Apr 24 20:01 alpha roster.wpd
-rwx--+   1 Ken Dibb None  4295398 May 30 07:21 bad_modem.wav
-rwx--+   1 Ken Dibb None 5396 Jun 27 11:57 
create_studentdata_db.
t
-rwx--+   1 Ken Dibb None 5365 Jun 14 14:19 
create_studentdata_db.
t~
-rwx--+   1 Ken Dibb None   322424 May  6 13:59 cygwin-xfree-ug.pdf
-rwx--+   1 Ken Dibb None   81 Mar 30 13:56 desktop.ini
drwx--+   3 Ken Dibb None0 Jun 27 02:36 disclib
-rwx--+   1 Ken Dibb None 6336 Apr  9 10:13 dish_list.rtf
drwx--+   2 Ken Dibb None0 Jun 25 07:32 dmtlink
-rwx--+   1 Ken Dibb None  356 Jun 27 12:26 drop_data.txt
-rwx--+   1 Ken Dibb None   369749 Jul  1 10:20 eclipse-overview.pdf
-rw-r--r--1 Ken Dibb None   55 Jul  7 14:02 files to backup.txt
drwx--+   2 Ken Dibb None0 Jun 25 07:33 ftp commander
-rwx--+   1 Ken Dibb None  301 Jul  6 20:29 ftp_scripts.txt
-rwx--+   1 Ken Dibb None  828 Jul  7 12:35 idiot.txt
-rwx--+   1 Ken Dibb None33768 May 30 07:43 javalicious.pdf
-rwx--+   1 Ken Dibb None   438533 May 31 10:17 
jfreereport-0

Re: find -exec oddity

2003-07-08 Thread Ken Dibble


Brian Dessent wrote:

Ken Dibble wrote:

 

As you can see, there are indeed some directories, but a whole bunch of
files
which shouldn't be there as well.
The big question now is why are some files considered directories?
   

I don't see the confusion here.  You're feeding to "ls -l" the
parameters "./" , "./files to backup.txt" , and "./idiot.txt" which are
the results of find.  "./" is a directory, so ls prints its contents not
its name, that's why you see listings for all the files in the current
directory, followed by listings for "files to backup.txt" and
"idiot.txt".  When you add "-d" to ls, you get just three lines of
output, corresponding to the three things that find found.  How is this
confusing?
 

Brian,

Like I said, I'm an idiot.
It did not occur to me that "./" was being passed to "ls" and that ls 
was just doing
what it was told and listing the entire directory.

Thanks for helping me out.

Regards,
Ken
--
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: gcc - static pointer initialization problem

2003-08-10 Thread Ken Dibble


Alan Cooley wrote:

Hello,

I am having a problem with a C program.  It appears that static variables
are not being initialized when in an object file.   The program compiles and
links fine but funcPtrStruct.ptr is null so program crashes.
This program works using gcc on Linux and (as I understand the C language)
should work anywhere.
Thanks in advance for any explanation/corrections you can provide.

Alan.

 

FWIW:

The cygwin list is probably not the best resource for resolving this.
The program should crash.  There are multiple problems here.
My opinion is that variables should not be declared in header files.
This leads to ambiguity when the header files declare variables which 
conflict with source files.

My opinion is that all warnings should be turned on all the time.

Had CFLAGS been declared to be  -g -O -Wall

the following would have resulted:

$ make
gcc -g -O -Wall   -c -o static_function_ptr_def.o static_function_ptr_def.c
static_function_ptr_def.c: In function `func':
static_function_ptr_def.c:4: warning: implicit declaration of function `printf'
static_function_ptr_def.c: At top level:
static_function_ptr_def.c:8: conflicting declarations of `funcPtrStruct'
static_function_ptr_def.h:10: `funcPtrStruct' previously declared here
static_function_ptr_def.h:10: warning: `funcPtrStruct' defined but not used
make: *** [static_function_ptr_def.o] Error 1
Which would have given a clue that something wasn't right.

That this program ever worked anywhere in any context is probably an accident
(and maybe a linker bug?).
When static_function_ptr.c compiled it rightly picked up funcPtrStruct from
the header file whis is not initialized.
When static_function_ptr_def.c compiled it picked up funcPtrStruct(which is not initialized) from the header file which conflicts with funcPtrStruct(which is initialized) that it declares.

In any event the funcPtrStruct in static_function_ptr_def.c is never used (and shouldn't be).

Bottom line, bad programming, correct result.

Regards,
Ken


--
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: problems with cygwin

2004-05-06 Thread Ken Dibble

Tarun Sharma wrote:
Hi
I have just installed cygwin on my Win XP system. But when I try to start
windowmaker then it justs says cant start x-server at 127.0.0.1:0.0 . I
tried few more things but couldnt succeed.
Ihe porblem I am thinking is related to some configuration. I also tried to
run XWin. which is running.And xterm can be connected to this.
Can anybody help me in this problem.
Are you using the startXWin.bat file?  Trying to run multiple window 
managers concurrently?
If memory serves the people in this list usually refer you to the 
cygwin-xfree mailing list. (per http://cygwin.com/lists.html)

Some other question I want to ask is :
1. Can we have different users for cygwin. Because it just added one icon in
start menu by which I can just run cygwin's bash shell.
Yes
2. Some of the commands like more is not working on my system. I tried to
search it in /usr/bin but its not there.
per Larry Hall:
I expect you really want 'less' but either way, visit 
 to determine the package you should install
to get the utility you want.  This works for all utilities. ;-)


--

Please update me about these problems
regards
-tarun
 

Proper problem reporting here:
http://cygwin.com/problems.html
 


--
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: exim issue

2004-05-24 Thread Ken Dibble

Joshua Daniel Franklin wrote:
On Sat, 22 May 2004 14:07:27 -0500, Ken Dibble wrote:
 

In the exim 4.32 source (spool_in.c)
the following line causes an error condition if the user who
instantiated the exim process has a space in their name.
if (sscanf(CS big_buffer, "%s %ld %ld", originator, &uid, &gid) != 3)
 goto SPOOL_FORMAT_ERROR;
I'm sure a workaround is obvious, I just can't see it.
   

One quick workaround is to edit /etc/passwd and change your
space-containing username to something without a space.
 

Yes, that works, thanks.
Ken
--
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/


exim issue

2004-05-24 Thread Ken Dibble
I know this isn't a cygwin only problem, but my research has failed to 
produce an
instance of this ever happening.

Common sense says it is just more likely to happen in a NT/XP 
environment with cygwin.

For reference, this is exim 4.32, downloaded last week.
In the exim 4.32 source (spool_in.c)
the following line causes an error condition if the user who 
instantiated the exim
process has a space in their name.

if (sscanf(CS big_buffer, "%s %ld %ld", originator, &uid, &gid) != 3)
 goto SPOOL_FORMAT_ERROR;
I'm sure a workaround is obvious, I just can't see it.
Thanks,
Ken
--
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: postgres help

2003-08-22 Thread Ken Dibble


Jason House wrote:

I've gone through all the steps to set up postgreSQL on windows XP.  I
have updated permissions (to /tmp /usr/bin /usr/bin/*), verified the 
system path variable, and verified that ipc and postmaster services 
have been started.  I don't understand why I'm getting the following 
error:

$ psql -U postgres template1
psql: could not connect to server: No such file or directory
Is the server running locally and accepting
connections on Unix domain socket "/tmp/.s.PGSQL.5432"?
The error does not change if I log in as myself or as postgres.
Any hints as to what to try would be greatly appreciated.
At the risk of looking for the obvious, did you run createdb and check 
that the created database files have the correct permissions?

Regards,
Ken
--
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/


Newbie GUI development

2004-10-05 Thread Ken Dibble
I'm trying to build a Linux gui app and failing miserably.
Any help would be appreciated.
$ pkg-config --libs gtk+-2.0
gnome-config: not found
Package gobject-2.0 was not found in the pkg-config search path.
Perhaps you should add the directory containing `gobject-2.0.pc'
to the PKG_CONFIG_PATH environment variable
Package 'gobject-2.0', required by 'GdkPixbuf', not found
I couldn't find gnome-config in the setup package search facility.
I did find cygobject-2.0-0.dll
inglib2-runtime/glib2-runtime
Thanks,
Ken

Cygwin Configuration Diagnostics
Current System Time: Tue Oct 05 04:19:35 2004

Windows XP Home Edition Ver 5.1 Build 2600 Service Pack 2

Path:   .\
C:\cygwin\usr\sbin
C:\cygwin\usr\local\sbin
C:\cygwin\usr\local\bin
C:\cygwin\usr\local\bin
C:\cygwin\bin
C:\cygwin\bin
.\
C:\cygwin\bin
C:\cygwin\usr\X11R6\bin
c:\WINDOWS\system32
c:\WINDOWS
c:\WINDOWS\System32\Wbem
c:\Program Files\Common Files\Adaptec Shared\System
C:\cygwin\bin

Output from C:\cygwin\bin\id.exe (nontsec)
UID: 1006(kdibble) GID: 545(Users)
545(Users)

Output from C:\cygwin\bin\id.exe (ntsec)
UID: 1006(kdibble) GID: 545(Users)
513(None)544(Administrators)  
545(Users)

SysDir: C:\WINDOWS\system32
WinDir: C:\WINDOWS

CYGWIN = `tty ntsec'
HOME = `C:\cygwin\home\Ken Dibble'
MAKE_MODE = `unix'
PWD = `/home/kdibble'
USER = `kdibble'

ALLUSERSPROFILE = `C:\Documents and Settings\All Users'
APPDATA = `C:\Documents and Settings\Ken Dibble\Application Data'
CLIENTNAME = `Console'
COMMONPROGRAMFILES = `C:\Program Files\Common Files'
COMPUTERNAME = `BECCOMPUTER'
COMSPEC = `C:\WINDOWS\system32\cmd.exe'
CVS_RSH = `/bin/ssh'
CYGWIN_ROOT = `\cygwin'
DISPLAY = `127.0.0.1:0.0'
EDITOR = `vim'
FP_NO_HOST_CHECK = `NO'
HOMEDRIVE = `C:'
HOMEPATH = `\Documents and Settings\Ken Dibble'
HOSTNAME = `BECCOMPUTER'
JAVA_HOME = `/cygdrive/c/program files/j2sdk_nb/j2sdk1.4.2'
KDEHOME = `"C:\Documents and Settings\Ken Dibble\Application Data"'
LOGNAME = `kdibble'
LOGONSERVER = `\\BECCOMPUTER'
MANPATH = `:/usr/ssl/man:/usr/X11R6/man'
NUMBER_OF_PROCESSORS = `1'
OLDPWD = `/cygdrive/c/development/rp-0.2.8/src'
OS = `Windows_NT'
PATHEXT = `.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH'
PKG_CONFIG_PATH = `/usr/X11R6/lib/pkgconfig'
PROCESSOR_ARCHITECTURE = `x86'
PROCESSOR_IDENTIFIER = `x86 Family 6 Model 8 Stepping 0, AuthenticAMD'
PROCESSOR_LEVEL = `6'
PROCESSOR_REVISION = `0800'
PROGRAMFILES = `C:\Program Files'
PROMPT = `$P$G'
PS1 = `\[\033]0;\w\007
[EMAIL PROTECTED] \[\033[33m\w\033[0m\]
$ '
SESSIONNAME = `Console'
SHLVL = `1'
SYSTEMDRIVE = `C:'
SYSTEMROOT = `C:\WINDOWS'
TEMP = `c:\DOCUME~1\KENDIB~1\LOCALS~1\Temp'
TERM = `xterm'
TERMCAP = `xterm-r6|xterm|xterm X11R6 
version:am:km:mi:ms:xn:co#80:it#8:li#24:AL=\E[%dL:DC=\E[%dP:DL=\E[%dM:DO=\E[%dB:LE=\E[%dD:RI=\E[%dC:UP=\E[%dA:ae=^O:al=\E[L:as=^N:bl=^G:cd=\E[J:ce=\E[K:cl=\E[H\E[2J:cm=\E[%i%d;%dH:cr=^M:cs=\E[%i%d;%dr:ct=\E[3g:dc=\E[P:dl=\E[M:do=^J:ei=\E[4l:ho=\E[H:im=\E[4h:is=\E7\E[r\E[m\E[?7h\E[?1;3;4;6l\E[4l\E8\E>:k1=\EOP:k2=\EOQ:k3=\EOR:k4=\EOS:k5=\E[15~:k6=\E[17~:k7=\E[18~:k8=\E[19~:k9=\E[20~:kD=\E[3~:kI=\E[2~:kN=\E[6~:kP=\E[5~:kd=\EOB:ke=\E[?1l\E>:kh=\E[1~:kl=\EOD:kr=\EOC:ks=\E[?1h\E=:ku=\EOA:le=^H:md=\E[1m:me=\E[m:mr=\E[7m:nd=\E[C:rc=\E8:sc=\E7:se=\E[m:sf=^J:so=\E[7m:sr=\EM:ta=^I:te=\E[2J\E[?47l\E8:ti=\E7\E[?47h:ue=\E[m:up=\E[A:us=\E[4m:kb=\010:'
TMP = `c:\DOCUME~1\KENDIB~1\LOCALS~1\Temp'
USERDOMAIN = `BECCOMPUTER'
USERNAME = `Ken Dibble'
USERPROFILE = `C:\Documents and Settings\Ken Dibble'
WINDIR = `C:\WINDOWS'
WINDOWID = `2097166'
XAPPLRESDIR = `/usr/X11R6/lib/X11/app-defaults'
XCMSDB = `/usr/X11R6/lib/X11/Xcms.txt'
XKEYSYMDB = `/usr/X11R6/lib/X11/XKeysymDB'
XNLSPATH = `/usr/X11R6/lib/X11/locale'
_ = `/usr/bin/cygcheck'
POSIXLY_CORRECT = `1'

HKEY_CURRENT_USER\Software\Cygnus Solutions
HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin
HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin\mounts v2
  (default) = `/cygdrive'
  cygdrive flags = 0x0022
HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin\Program Options
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2
  (default) = `/cygdrive'
  cygdrive flags = 0x002a
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/
  (default) = `C:\cygwin'
  flags = 0x000a
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/usr/bin
  (default) = `C:\cygwin/bin'
  flags = 0x000a
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/usr/lib
  

Re: Newbie GUI development

2004-10-05 Thread Ken Dibble

Dave Korn wrote:
-Original Message-
From: cygwin-owner On Behalf Of Ken Dibble
Sent: 05 October 2004 10:21
   

 

I'm trying to build a Linux gui app and failing miserably.
Any help would be appreciated.
$ pkg-config --libs gtk+-2.0
gnome-config: not found
Package gobject-2.0 was not found in the pkg-config search path.
Perhaps you should add the directory containing `gobject-2.0.pc'
to the PKG_CONFIG_PATH environment variable
Package 'gobject-2.0', required by 'GdkPixbuf', not found
   

 This is all gnome stuff.  You'll need to install gnome dev stuff.
 

That was my original thought but:
http://cygwin.com/cgi-bin2/package-grep.cgi?grep=gnome
doesn't appear to have any gnome specific stuff.
It has gtk stuff, which I have.
(cygcheck was attached to previous message)
Could you make it obvious for me?
 

I couldn't find gnome-config in the setup package search facility.
I did find cygobject-2.0-0.dll
inglib2-runtime/glib2-runtime
   

 That's not related: that's "cyg-object.dll", not "cy-gobject.dll"
   cheers, 
 DaveK
 


--
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: Newbie GUI development

2004-10-05 Thread Ken Dibble

Gerrit P. Haase wrote:
Hallo Ken,
Am Dienstag, 5. Oktober 2004 um 11:21 schriebst du:
 

I'm trying to build a Linux gui app and failing miserably.
Any help would be appreciated.
   

 

$ pkg-config --libs gtk+-2.0
gnome-config: not found
Package gobject-2.0 was not found in the pkg-config search path.
Perhaps you should add the directory containing `gobject-2.0.pc'
to the PKG_CONFIG_PATH environment variable
Package 'gobject-2.0', required by 'GdkPixbuf', not found
   

 

I couldn't find gnome-config in the setup package search facility.
I did find cygobject-2.0-0.dll
inglib2-runtime/glib2-runtime
   

The name of the DLL is actually 'cyggobject-2.0-0.dll', the prefix is
'cyg' followed by the package name.  And it is included:
http://cygwin.com/cgi-bin2/package-grep.cgi?grep=cyggobject-2.0-0.dll
Expected output:
$ pkg-config --libs gtk+-2.0
-Wl,--export-dynamic -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgdk_pixbuf-2.0 -lm -lpangoxft-1.0 -lpangox-1.0 -lpango-1.0 -lgobject-2.0 -lgmodule-2.0 -lglib-2.0 -lintl -liconv  

Please run: cygcheck -c gtk2-x11
Expected output:
$ cygcheck -c gtk2-x11
Cygwin Package Information
Package  VersionStatus
gtk2-x11 2.4.4-1OK
If you get the same, then maybe your pkg-config path setting is
broken?
 

[EMAIL PROTECTED] ~
$ cygcheck -c gtk2-x11
Cygwin Package Information
Package  VersionStatus
gtk2-x11 2.4.4-1OK
OK, so how do I fix aforementioned pkg-config path ?
Thanks,
Ken
--
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: Newbie GUI development

2004-10-05 Thread Ken Dibble

Ken Dibble wrote:

Gerrit P. Haase wrote:
Hallo Ken,
Am Dienstag, 5. Oktober 2004 um 11:21 schriebst du:
 

I'm trying to build a Linux gui app and failing miserably.
Any help would be appreciated.
  

 

$ pkg-config --libs gtk+-2.0
gnome-config: not found
Package gobject-2.0 was not found in the pkg-config search path.
Perhaps you should add the directory containing `gobject-2.0.pc'
to the PKG_CONFIG_PATH environment variable
Package 'gobject-2.0', required by 'GdkPixbuf', not found
  

 

I couldn't find gnome-config in the setup package search facility.
I did find cygobject-2.0-0.dll
inglib2-runtime/glib2-runtime
  

The name of the DLL is actually 'cyggobject-2.0-0.dll', the prefix is
'cyg' followed by the package name.  And it is included:
http://cygwin.com/cgi-bin2/package-grep.cgi?grep=cyggobject-2.0-0.dll
Expected output:
$ pkg-config --libs gtk+-2.0
-Wl,--export-dynamic -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 
-lgdk_pixbuf-2.0 -lm -lpangoxft-1.0 -lpangox-1.0 -lpango-1.0 
-lgobject-2.0 -lgmodule-2.0 -lglib-2.0 -lintl -liconv 

Please run: cygcheck -c gtk2-x11
Expected output:
$ cygcheck -c gtk2-x11
Cygwin Package Information
Package  VersionStatus
gtk2-x11 2.4.4-1OK
If you get the same, then maybe your pkg-config path setting is
broken?
 

[EMAIL PROTECTED] ~
$ cygcheck -c gtk2-x11
Cygwin Package Information
Package  VersionStatus
gtk2-x11 2.4.4-1OK
OK, so how do I fix aforementioned pkg-config path ?
oops.
$ echo $PKG_CONFIG_PATH
/usr/X11R6/lib/pkgconfig

--
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 do I change my user name?

2004-11-12 Thread Ken Dibble
You should be able to manually edit /etc/passwd.
Just change your username there.
Regards,
Ken
Samuel Hund wrote:
Unfortunately I need to change my user name on cygwin from the one used by
XP.  I tried adding a mkgroup and useradd, but neither worked.  Can you
help?
sam
--
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: commands not found

2004-12-06 Thread Ken Dibble
I don't know a lot about this, but the following line is in the attached 
cygcheck.out

Warning: There are multiple cygwin1.dlls on your path
If I recall correctly, this is a bad thing.

Dave Korn wrote:
-Original Message-
From: cygwin-owner On Behalf Of Dave Korn
Sent: 06 December 2004 19:21
   

-Original Message-
From: cygwin-owner On Behalf Of cygwin
Sent: 06 December 2004 19:14
To: cygwin
Subject: Re: commands not found
I've attached the cygcheck, and also the output of env.  The 
wrong directories
definitely seem to be in my path.  I am used to changing that 
with setenv, but I
can't use that here.
Thanks for your responses.
 

 Try double clicking the "cygwin" icon on either your 
desktop or your start menu.
   

 Oops, no.  I thought the cygwin.bat file sets your initial path and you 
were
bypassing it, but after taking a closer look I guess it doesn't.  So let's see
what your shell startup scripts are doing instead.
 Fire up a cmd.exe shell, change dir into C:\cygwin\bin, and enter "bash
--login -i -x", and show us what the output looks like.

   cheers, 
 DaveK
 


--
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: newbie-Setup issue-VI Editor

2005-06-20 Thread Ken Dibble



Seemanto Barua wrote:


Hi ,

I have installed cygwin for my windows XP from http://cygwin.com/. The
installation went fine without any errors. But now when i open a
session by running cygwin.bat I get the minimalistic shell. I dont
have VI editor.Bash says command not found for 'vi' or 'vim' . Do i
have to install new packages for VI ? One more thing, do i need to
install PERL module separetely ?
 




You'll need to install vim and perl. 
You'll find vim in the editors category and perl in the interpreters 
category using the cygwin setup program.


Ken


--
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: failing to compile expectk

2004-06-29 Thread Ken Dibble

Richard Lister wrote:
Hi folks
I'm trying to build a working expectk using the expect-20030128
source from cygwin. Tcl/Tk and expect build fine. I noted the
following comment in the file expect-20030128-1/expect/Makefile.in:
 # XXX Temporarily commented out until expectk is working again.
 #X11_PROGS = @X_PROGS@
Nevertheless, I edited the Makefile and managed to compile
expectk.exe, but it segfaults when run.
Googling produces quite a few comments about how it is
generally problematic to compile Tcl/Tk on cygwin.
Has anyone had any success producing an expectk binary?
Thanks
Ric
 

I'm sure you've probably already checked and considered DejaGnu.
Could there be a hint in its' source about getting expectk to run?
I know nothing of expectk or DejaGnu other than what is on the expect 
home page(http://expect.nist.gov/)
and the gnu page(http://www.gnu.org/).

Regards,
Ken
--
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: The HOME variable

2004-07-07 Thread Ken Dibble
I just edited the appropriate fields in /etc/passwd. (first field and 
next to last field)

Ken
George wrote:
Could someone enlighten me as to how to go about changing the defaults?
Ideally, I'd like to be able to change the location of  $HOME 
altogether, but more importantly my $USERNAME contains an unfortunate 
space and is causing me some grief.

Thanks.

--
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: malloc debug?

2004-07-13 Thread Ken Dibble
I am unable to locate the package searching the cygwin packages (not 
that my being unable to
find something means anything).

I can tell you that dmalloc (on sourceforge) builds cleanly (requiring 
gcc and g++) and passes
its self tests on my XP box.

I am sure that someone better informed that I will come along and give 
you a definitive answer.

regards,
ken
Sam Steingold wrote:
Is any malloc/free debug library available for cygwin?
(something like dmalloc, memdebug, mprof &c &c)
Thanks.
 


--
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: Make not found

2004-07-21 Thread Ken Dibble
It would be helpful if you would read
http://cygwin.com/problems.html
and follow the directions therein.
michael conrad wrote:
Im trying to find/run make, I did a complete install of everthing, but make
is not there.
What am I doing wrong, how do I get it?
mike conrad
408-395-6500 work
408-910-3438 cell 

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


Mkdir: command not found?

2004-07-23 Thread Ken Dibble
Start by reading and following the instructions here:
http://cygwin.com/problems.html
Joe Bungo wrote:
Hello
Im trying to play with GNU tools, and Im having trouble getting started.
I havent really played in a unix environment in years.  Have you had a
chance to use them?  Im just following along the pdf at
http://www.microcross.com/gnu-arm7t-microcross.pdf, which says I should
download Cygwin, which I've never used.  You can download it from
http://sources.redhat.com/cygwin/.  Just trying to follow the first
steps in that .pdf in Figure 1- Setting up the build environment, typing
'mkdir build-binutils' at the prompt in Cygwin gives 'bash: mkdir:
command not found'
Any ideas why I cant use this simple command?
 


--
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: man error

2004-08-01 Thread Ken Dibble
This might be a good place to start:
http://cygwin.com/problems.html
yvb wrote:
Hello,
I can't use man command.
When I try to running for example:
man ls
I get this error:
locale: not found
/usr/bin/nroff: invalid option -c
I am running XP Home and the latest version of Cygwin.
Thanks
Yury

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


perl 5.82 libwww 5.800 fails tests

2004-08-06 Thread Ken Dibble
I googled and couldn't find anything (or didn't use the correct words).
I looked on cpan and perl.org and didn't see anything similiar.
This doesn't happen on my debian woody machine (perl 5.6.1), so I don't know
if it a perl thing or a cygwin-perl thing.
This is my first go round with perl so be gentle :)
cygcheck attached
[EMAIL PROTECTED] ~/libwww-perl-5.800
Failed Test  Stat Wstat Total Fail  Failed  List of Failed
---
html/form-param.t   2   51224   48 200.00%  1-24
html/form.t 2   51297  194 200.00%  1-97
local/autoload-get.t11 100.00%  1
local/autoload.t11 100.00%  1
local/get.t 2   512 24 200.00%  1-2
local/http-get.t   206  30.00%  1-2 5-7 20
local/http.t   186  33.33%  1-2 5-7 18
robot/ua-get.t  82  25.00%  3 5
robot/ua.t  72  28.57%  3 5
Failed 9/30 test scripts, 70.00% okay. 141/730 subtests failed, 80.68% okay.
make: *** [test] Error 14
Thanks,
Ken

Cygwin Configuration Diagnostics
Current System Time: Fri Aug 06 06:50:46 2004

Windows XP Home Edition Ver 5.1 Build 2600 Service Pack 1

Path:   .\
C:\cygwin\usr\sbin
C:\cygwin\usr\local\sbin
C:\cygwin\usr\local\bin
.\
C:\cygwin\bin
C:\cygwin\usr\X11R6\bin
c:\WINDOWS\system32
c:\WINDOWS
c:\WINDOWS\System32\Wbem
c:\Program Files\Common Files\Adaptec Shared\System
C:\cygwin\bin

Output from C:\cygwin\bin\id.exe (nontsec)
UID: 1006(kdibble) GID: 545(Users)
545(Users)

Output from C:\cygwin\bin\id.exe (ntsec)
UID: 1006(kdibble) GID: 545(Users)
513(None)544(Administrators)  
545(Users)

SysDir: C:\WINDOWS\System32
WinDir: C:\WINDOWS

CYGWIN = `tty ntsec'
HOME = `C:\cygwin\home\Ken Dibble'
PWD = `/home/Ken Dibble'

!EXITCODE = `'
ALLUSERSPROFILE = `C:\Documents and Settings\All Users'
APPDATA = `C:\Documents and Settings\Ken Dibble\Application Data'
CLIENTNAME = `Console'
COMMONPROGRAMFILES = `C:\Program Files\Common Files'
COMPUTERNAME = `BECCOMPUTER'
COMSPEC = `C:\WINDOWS\system32\cmd.exe'
CYGWIN_ROOT = `\cygwin'
DISPLAY = `127.0.0.1:0.0'
EDITOR = `vim'
HOMEDRIVE = `C:'
HOMEPATH = `\Documents and Settings\Ken Dibble'
JAVA_HOME = `/cygdrive/c/program files/j2sdk_nb/j2sdk1.4.2'
KDEHOME = `"C:\Documents and Settings\Ken Dibble\Application Data"'
LOGNAME = `kdibble'
LOGONSERVER = `\\BECCOMPUTER'
NUMBER_OF_PROCESSORS = `1'
OLDPWD = `/home/Ken Dibble/libwww-perl-5.800'
OS = `Windows_NT'
PATHEXT = `.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH'
PROCESSOR_ARCHITECTURE = `x86'
PROCESSOR_IDENTIFIER = `x86 Family 6 Model 8 Stepping 0, AuthenticAMD'
PROCESSOR_LEVEL = `6'
PROCESSOR_REVISION = `0800'
PROGRAMFILES = `C:\Program Files'
PROMPT = `$P$G'
PS1 = `\[\033]0;\w\007
[EMAIL PROTECTED] \[\033[33m\w\033[0m\]
$ '
SESSIONNAME = `Console'
SHLVL = `1'
SYSTEMDRIVE = `C:'
SYSTEMROOT = `C:\WINDOWS'
TEMP = `c:\DOCUME~1\KENDIB~1\LOCALS~1\Temp'
TERM = `xterm'
TERMCAP = `xterm-r6|xterm|xterm X11R6 
version:am:km:mi:ms:xn:co#80:it#8:li#24:AL=\E[%dL:DC=\E[%dP:DL=\E[%dM:DO=\E[%dB:LE=\E[%dD:RI=\E[%dC:UP=\E[%dA:ae=^O:al=\E[L:as=^N:bl=^G:cd=\E[J:ce=\E[K:cl=\E[H\E[2J:cm=\E[%i%d;%dH:cr=^M:cs=\E[%i%d;%dr:ct=\E[3g:dc=\E[P:dl=\E[M:do=^J:ei=\E[4l:ho=\E[H:im=\E[4h:is=\E7\E[r\E[m\E[?7h\E[?1;3;4;6l\E[4l\E8\E>:k1=\EOP:k2=\EOQ:k3=\EOR:k4=\EOS:k5=\E[15~:k6=\E[17~:k7=\E[18~:k8=\E[19~:k9=\E[20~:kD=\E[3~:kI=\E[2~:kN=\E[6~:kP=\E[5~:kd=\EOB:ke=\E[?1l\E>:kh=\E[1~:kl=\EOD:kr=\EOC:ks=\E[?1h\E=:ku=\EOA:le=^H:md=\E[1m:me=\E[m:mr=\E[7m:nd=\E[C:rc=\E8:sc=\E7:se=\E[m:sf=^J:so=\E[7m:sr=\EM:ta=^I:te=\E[2J\E[?47l\E8:ti=\E7\E[?47h:ue=\E[m:up=\E[A:us=\E[4m:kb=\010:'
TMP = `c:\DOCUME~1\KENDIB~1\LOCALS~1\Temp'
TZ = `CST6CDT5,M4.1.0/2,M10.5.0/2'
USERDOMAIN = `BECCOMPUTER'
USERNAME = `Ken Dibble'
USERPROFILE = `C:\Documents and Settings\Ken Dibble'
WINDIR = `C:\WINDOWS'
WINDOWID = `8388622'
XAPPLRESDIR = `/usr/X11R6/lib/X11/app-defaults'
XCMSDB = `/usr/X11R6/lib/X11/Xcms.txt'
XKEYSYMDB = `/usr/X11R6/lib/X11/XKeysymDB'
XNLSPATH = `/usr/X11R6/lib/X11/locale'
_ = `/usr/bin/cygcheck'
POSIXLY_CORRECT = `1'

HKEY_CURRENT_USER\Software\Cygnus Solutions
HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin
HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin\mounts v2
  (default) = `/cygdrive'
  cygdrive flags = 0x0022
HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin\Program Options
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2
  (default)

Re: perl 5.82 libwww 5.800 fails tests

2004-08-06 Thread Ken Dibble
Responding to both of Gerrit's posts below
Gerrit P. Haase wrote:
Ken wrote:
 

I googled and couldn't find anything (or didn't use the correct words).
   

 

I looked on cpan and perl.org and didn't see anything similiar.
   

 

This doesn't happen on my debian woody machine (perl 5.6.1), so I don't know
if it a perl thing or a cygwin-perl thing.
   

 

This is my first go round with perl so be gentle :)
   

 

cygcheck attached
   

There I see:
HOME = `C:\cygwin\home\Ken Dibble'
PWD = `/home/Ken Dibble'
Maybe it is a problem with the space in your HOME path?
Gerrit
G. 

/home/kdibble has always been a link to /home/Ken Dibble for this reason
I neglected to cd ../kdibble
this fixes the test problem.
to try and make sure this doesn't happen again, I changed /etc/passwd
but.
$ grep kdibble /etc/passwd
kdibble:unused_by_nt/2000/xp:1006:545:U-BECCOMPUTER\Ken 
Dibble,S-1-5-21-3608352237-884828134-1278401143-1006:/home/kdibble:/bin/bash

$ cygcheck -s -v -r | grep home
HOME = `C:\cygwin\home\Ken Dibble'
PWD = `/home/kdibble'
OLDPWD = `/home/kdibble'
$ echo $HOME
/home/kdibble
So obviously there is something weird going on, any idea why cygcheck
says home is one thing, but bash says it is another?
Have you used the CPAN shell (just call `cpan` in a bash shell)?
Well, I tried.  I only installed perl this AM and already the cpan shell 
is telling me that it recommends that
I update a bunch of packages (some of which I only installed this 
morning, using www.cpan.org to find the
modules and download them.

Being a perl newbie (this AM was my first explicit try at using it), I 
bailed on cpan quickly.

Thanks for all your help.
Ken
--
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: perl 5.82 libwww 5.800 fails tests

2004-08-06 Thread Ken Dibble

Larry Hall wrote:
At 11:05 AM 8/6/2004, you wrote:
 

$ cygcheck -s -v -r | grep home
HOME = `C:\cygwin\home\Ken Dibble'
PWD = `/home/kdibble'
OLDPWD = `/home/kdibble'
$ echo $HOME
/home/kdibble
So obviously there is something weird going on, any idea why cygcheck
says home is one thing, but bash says it is another?
   


Simple.  'cygcheck' reports the settings in your Windows environment while
'bash' reports the Cygwin version.  This is normal.
 

that's a relief.  thanks.

--
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 can I set $REMOTEHOST ( so I can set $DISPLAY with sshd w\X11 forwarding)

2004-08-07 Thread Ken Dibble
I'm not 100 % sure what you are saying.
Are you trying to say that the cygwin sshd does not respect the -X and 
-Y flags
passed to the local ssh process?
And that for the above named reason you are forced to manually set the 
DISPLAY variable?

regards,
ken
peter waltman wrote:
hi -
trying to figure out how to set $REMOTEHOST when I ssh into a machine running
cygwin's imp. of sshd.  X11 forwarding works great when I set the $DISPLAY
properly, but I'd like to have it done in the .bashrc file (by checking if the
$REMOTEHOST var is set).
I've tried looking through the startup scripts on both my cygwin install and a
rh9 box, but can't find where it gets set.  can anyone point me in the right
direction?
 


--
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: GTK/pango etc.

2004-08-07 Thread Ken Dibble
One starting point is
http://gladewin32.sourceforge.net/
They say that they have GTK+ 2.44 runtime for windows both with and 
separate from libglade.

regards,
ken
Jani tiainen wrote:
Is there version that is not compiled against X11 libraries (so it 
uses native Windows) available or do I have to compile GTK and such 
from source?

Is there pointers where I find info about compiling non-X11 versions 
of GTK?


--
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 can I set $REMOTEHOST ( so I can set $DISPLAY with sshd w\X11 forwarding)

2004-08-07 Thread Ken Dibble

peter waltman wrote:
Ken Dibble  alltel.net> writes:
 

I'm not 100 % sure what you are saying.
Are you trying to say that the cygwin sshd does not respect the -X and 
-Y flags
passed to the local ssh process?
And that for the above named reason you are forced to manually set the 
DISPLAY variable?

regards,
ken
peter waltman wrote:
   

hi -
trying to figure out how to set $REMOTEHOST when I ssh into a machine running
cygwin's imp. of sshd.  X11 forwarding works great when I set the $DISPLAY
properly, but I'd like to have it done in the .bashrc file (by checking if the
$REMOTEHOST var is set).
I've tried looking through the startup scripts on both my cygwin install and a
rh9 box, but can't find where it gets set.  can anyone point me in the right
direction?

 

   


yeah.  pretty much.  I've set the "ForwardX11 yes" in the sshd_config file on
the server I log into and I've also set it in the ssh_config with the client I'm
using to log into it.
and you sent the sshd a SIGHUP to re-read the config file after making 
the changes, right?

  piano{pwaltman}51: ssh -X grad107m
  [EMAIL PROTECTED]'s password:
  Last login: Fri Aug  6 19:16:42 2004 from lin04.eecs.tufts.edu
  [EMAIL PROTECTED] ~
  $ echo $DISPLAY
  127.0.0.1:0
even when I use the -X flag, it still set's my $DISPLAY to the above value and
when I start an X11 app, like xterm, it ends up getting launched in the server's
x-server and appears on the desktop of the server (grad107m).  If I set the
$DISPLAY to localhost:10.0, everything works fine and it appears on the client.
not sure why, ergo the reason I want to use the $REMOTEHOST var as a means to
check if I've ssh'd in remotely and then use something like
if $?REMOTEHOST
  export DISPLAY=$REMOTEHOST:0.0
thanks for any ideas,
Peter
p.s. forgive the shell script syntax errors.  I don't remember the exact script,
but I've seen folks who've done it this way.  

 


--
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: fltk compilation error

2004-08-16 Thread Ken Dibble
I am unable to determince what the error is, not knowing anything about 
gcc, fltk or fltk-config

the following command produces a gui executable (at least for this 
trivial example)
which prints "Hello World" to the console when Open is selected from the 
File menu.

gcc test.cxx -lfltk -lstdc++ 

Please advise.
Reid Thompson wrote:
I'm hoping someone can help me correct the issue causing the error 
listed below.  I've attached minimal files to reproduce the error.

Thanks,
reid
$ fltk-config --compile test.cxx
gcc -mwindows -DWIN32 -o test test.cxx -mwindows /usr/lib/libfltk.a 
-lole32 -luuid -lcomctl32 -lwsock32 -lsupc++
In file included from /usr/include/w32api/windef.h:246,
 from /usr/include/w32api/windows.h:48,
 from /usr/include/FL/Fl_Preferences.H:30,
 from /usr/include/FL/Fl_File_Chooser.h:14,
 from test.cxx:5:
/usr/include/w32api/winnt.h:2557: error: parse error before `+' token
In file included from /usr/include/w32api/objbase.h:60,
 from /usr/include/w32api/ole2.h:9,
 from /usr/include/w32api/windows.h:111,
 from /usr/include/FL/Fl_Preferences.H:30,
 from /usr/include/FL/Fl_File_Chooser.h:14,
 from test.cxx:5:
/usr/include/w32api/objidl.h:924: error: parse error before `+' token


// generated by Fast Light User Interface Designer (fluid) version 1.0104
#ifndef test_h
#define test_h
#include 
#include 
#include 
extern void Open_CB(Fl_Menu_*, void*);
extern Fl_Menu_Item menu_[];
#define File (menu_+0)
#define Open (menu_+1)
void Open_CB(Fl_Widget *, void * userdata);
#endif
 


// generated by Fast Light User Interface Designer (fluid) version 1.0104
#include "test.h"
#include 
#include 
Fl_Menu_Item menu_[] = {
{"File", 0,  0, 0, 64, 0, 0, 14, 56},
{"Open", 0,  (Fl_Callback*)Open_CB, (void*)(0), 0, 0, 0, 14, 56},
{0},
{0}
};
int main(int argc, char **argv) {
 Fl_Double_Window* w;
 { Fl_Double_Window* o = new Fl_Double_Window(222, 100);
   w = o;
   { Fl_Menu_Bar* o = new Fl_Menu_Bar(0, 0, 240, 25);
 o->menu(menu_);
   }
   o->end();
 }
 w->show(argc, argv);
 return Fl::run();
}
void Open_CB(Fl_Widget *, void * userdata) {
 if ((int*)userdata == 0)
{
 printf("Hello, World!\n");
}
}
 


# data file for the Fltk User Interface Designer (fluid)
version 1.0104 
header_name {.h} 
code_name {.cxx}
decl {\#include } {} 

decl {\#include } {selected
} 

Function {} {open
} {
 Fl_Window {} {open
   xywh {26 59 222 100} type Double visible
 } {
   Fl_Menu_Bar {} {open
 xywh {0 0 240 25}
   } {
 submenu File {
   label File open
   xywh {0 0 100 20}
 } {
   menuitem Open {
 label Open
 user_data 0
 callback Open_CB
 xywh {0 0 100 20}
   }
 }
   }
 }
} 

Function {Open_CB(Fl_Widget *, void * userdata)} {open return_type {static void}
} {
 code {if ((int*)userdata == 0)
{
 printf("Hello, World!\\n");
}} {}
} 

 


--
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: Setting up SSH keys for password less connections for sftp

2004-08-18 Thread Ken Dibble
from
man ssh
-
The file $HOME/.ssh/authorized_keys lists the public keys that are per-
mitted for logging in.
ssh implements the RSA authentication protocol automatically.  The user
creates his/her RSA key pair by running ssh-keygen(1).  This stores the
private key in $HOME/.ssh/identity and stores the public key in
$HOME/.ssh/identity.pub in the user's home directory.  The user should
then copy the identity.pub to $HOME/.ssh/authorized_keys in his/her 
home
directory on the remote machine (the authorized_keys file corresponds to
the conventional $HOME/.rhosts file, and has one key per line, 
though the
lines can be very long).  After this, the user can log in without 
giving
the password. 
-

My personal opinion is that the last line causes a bit of confusion for 
some users,
as giving a non-null passphrase when  the specified key is generated 
causes the user
to have to enter the passphrase (which can be  interpreted as a request for
the password).

this link may also provide some useful information
http://cricket.ecs.umass.edu/~czou/linux/backupSSH.html
Chris Shehan wrote:
Hello,
I am attempting to replace an automated ftp process with sftp. This ftp
process , which runs on a Windows 2000 server, grabs EDI files from our HPUX
11.0 server every 10 minutes and places then on the EDI Server. I would like
to modify this process to use sftp and use the SSH keys for password less
connections ..i.e. public key authentication.
So far I have installed and tested SSH on the HPUX 11.0 server. I have also
installed cygwin on the Windows 2000 server and preformed a successful test
using sftp. The next step is to setup the public key authentication so that
I can use sftp in the automated ftp process.
I have Google'd the net and searched the archives of this list but have not
been able to find any good documentation that shows me exactly what needs to
be done in order to get the authentication working in my environment (mix of
Windows and UNIX). So far I have been able to generate the private and
public keys for both servers as show below:
HPUX 11.0 - ssh-keygen -t dsa -f hp_sftp_user
This command create the following files hp_sftp_user & hp_sftp_user.pub
Windows / CYGWIN - ssh -keygen -t dsa -P ""
This was an interactive session and I was asked for the file names.
win2k_sftp and win2k_sftp.pub were generated.
** Please let me know if there are better ways to generate the above keys
..including any additional options I may need.
If the above mentioned keys are workable ... I now need a solution that will
allow me to put these files to use on both the HPUX and Windows servers so I
will be able to use password less connections .. which is especially need
for the scheduled ftp process running on Windows.
Thanks in advance for you help,
Chris Shehan
 


--
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: Setting up SSH keys for password less connections for sftp

2004-08-18 Thread Ken Dibble
log in to the HPUX box as applmgr and run ssh-keygen
as follows
ssh-keygen -t rsa -N ""
the quotes are important as this gives you a null passphrase
It will generate "id_rsa" and "id_rsa.pub" files in $HOME/applmgr/.ssh/
copy $HOME/applmgr/.ssh/id_rsa.pub to $HOME/applmgr/.ssh/ authorized_keys2
move $HOME/applmgr/.ssh/id_rsa to the W2K box
as
c:\Documents and Settings\colibri\.ssh\applmgr_id_rsa
on the W2K Box
set the permissions on the applmgr_id_rsa file to u=rw, g=none,o=none
by
chmod 0600 .ssh/applmgr_id_rsa
ssh -i applmgr_id_rsa [EMAIL PROTECTED]
If I recall,  the first time it prompts you for a password and generates 
the known hosts file.

Thereafter it should be passwordless.
The id_rsa file does not have to be named applmgr_id_rsa,
I only did that for clarity, just make sure the filename matches the 
filename given by the -i option to ssh

It's been a while since I've done this, but this is correct to the best 
of my memory.

Chris Shehan wrote:
Good Afternoon,
Thanks for your response. I have tried to work through both you answer and
the solution you provided in the web link. So far I am still unable to get
the passwordless connection to work.
Here is my setup:
Windows 2000 server. Windows user name is colibri. I have generated the RSA
keys which were created in the c:\Documents and Settings\colibri\.ssh
directory (id_rsa & id_rsa.pub).
The user that I wish to connect to on the HP UX server is applmgr. So I take
the id_rsa.pub file and copy it to the HPUX server. It was placed in the
/u02/app/applmgr/.ssh directly and named authorized_keys.
Supposedly once this is done I should be able to connect to the HPUX server
from the Windows server as applmgr via ssh or sftp (example : sftp
[EMAIL PROTECTED] ) without being asked for a password... correct? I am still
prompted for a password.
Or is this process assuming that I have identical users on both servers with
identical passwords?
I am sure this is a very simple setup and that I am missing something
simple.
Please help me clarify the situation and/or point out my problem.
Thanks again for you help,
Chris Shehan
 

 


--
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 function for getting the current directory?

2004-08-18 Thread Ken Dibble
I am assuming that English is not your first language.
Cygwin-function doesn't really have a meaning.
Cygwin is a POSIX emulation layer for Windows.
I am inferring from the phrase "Win32's GetCurrentDirectory()"
that you are programming in some compiled language, most likely C or C++.
If the above assumptions are true then you probably need to download 
some development documentation.
You probably want the man page for getcwd().

A good place to start reading would be the cygwin website.  Especially 
parts about problems, asking questions,
the cygwin API, and programming questions.

Good Luck
Mikael Åsberg wrote:
What's a Cygwin-function for getting the current directory? I don't 
want to use Win32's GetCurrentDirectory(), becuase I am developing a 
program that I want to be able to port to Linux with smallest possible 
effort.
What part of Cygwin's documentation have I failed to notice since I 
couldn't answer this question myself?

Thanks for any help!

--
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: Info: resolving vtable ... (auto-import)

2004-08-19 Thread Ken Dibble
There was some discussion about this relatively recently.
I can't seem to locate the message right now.
If I recall correctly, these messages happen whenever a virtual table 
has to be created
and someone knowledgeable(not me!) said not to worry about it.

It had something to do with a change in binutils, I think.

da wrote:
Tried resolving this by searching mailing list archives, but no luck.  Here's 
my question:

After linking on Win32, I get a number of these types of messages:
Info: resolving vtable for SomeFunctionName linking to 
__imp___ZTV13SomeFunctionName (auto-import)

What does this actually mean?  Do we need to be concerned about it?  If so, can 
anyone suggest a possible solution (or documentation on this)?

-- da

 


--
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: cp doesnot copy in certain cases of slash (\)

2004-08-23 Thread Ken Dibble
Given that you are using cygwin binaries which assume a POSIX 
environment in a DOS environment,
I am surprised that it ever works.

Koduru, Seshasai wrote:
Hi,
Following is the test case:
START-
C:\>c:\cygwin\bin\mkdir.exe -p c:\src c:\dst
C:\>c:\cygwin\bin\touch.exe c:\src\newfile
C:\>c:\cygwin\bin\cp.exe c:\src\newfile c:\dst
/usr/bin/cp: cannot create regular file `c:\\dst/c:\\src\\newfile': No
such file or directory
C:\>c:\cygwin\bin\cp.exe c:\src\newfile c:\dst\newfile
C:\>c:\cygwin\bin\cp.exe c:\src/newfile c:\dst
END-
In the first case of cp command it does not copy the file whereas in the
next two cases it copies properly. I am "JAM" which produces statements
like in case 1. So, is there any way in which cp will work for case 1
also?
 


--
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: Python os.path.join inconsistency?

2004-08-30 Thread Ken Dibble
I don't know anything about Python but I do know that
'c:/foo' and  'c:/foo/bar' are not windows paths.
c:\foo and c:\foo\bar are.
This probably doesn't help though.
Regards,
Ken
Andres Corrada-Emmanuel wrote:
Hello,
I just ran across an inconsistency on the os.path module for Cygwin
Python, specifically os.path.join:
 

import os.path
os.path.join( 'c:/foo', 'c:/foo/bar' )
   

'c:foo/c:/foo/bar'
 

os.path.join( '/cygdrive/c/foo', '/cygdrive/c/foo/bar' )
   

'/cygdrive/c/foo/bar'
The first incantation of os.path.join with Windows style paths violates
the documentation statement that os.path.join neglects previous paths once
it encounters an absolute path.
Does it not seem inconsistent that if Cygwin Python understands how to
execute:
file( 'c:/foo/bar' ) as well as file( '/cygdrive/c/foo/bar' )
it should also treat Windows style paths correctly with os.path.join? In
other words, it seems that Python on Cygwin cannot default to using
posixpath.py for os.path. It's got to be posixpath.py with some additional
magic to get it to do os.path.join correctly.
How does one go about submitting a patch for Cygwin Python?
Andres Corrada-Emmanuel
Senior Research Fellow
Information Extraction and Synthesis Laboratory
University of Massachusetts, Amherst
 


--
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: Python os.path.join inconsistency?

2004-08-30 Thread Ken Dibble
Live and Learn.
I guess my limited experience (including not being a windows programmer)
colored my perception.
I had never been able to get any Windows variant I was exposed to,
to accept a forward slash.  So much for my recall device of
Unix Forward, Windows Backward.
Regards,
Ken
Christopher Faylor wrote:
On Mon, Aug 30, 2004 at 02:48:49PM -0500, Ken Dibble wrote:
 

I don't know anything about Python but I do know that
'c:/foo' and  'c:/foo/bar' are not windows paths.
   

c:/foo and c:/foo/bar are perfectly acceptable windows paths.  Some
windows utilities don't accept this style of window path on the command
line but they are recognized by all of the windows functions which use
paths.
I don't know python but I am not surprised that a cygwin version of
python would be "confused" by the use of colons in path names since
avoidance of that kind of path is one of the main reasons for cygwin's
existence.  The cygwin DLL does try to handle dos paths correctly but
that doesn't mean that a UNIX program which manipulates UNIX path names
will be happy to see them.
cgf
 

c:\foo and c:\foo\bar are.
This probably doesn't help though.
Andres Corrada-Emmanuel wrote:
   

I just ran across an inconsistency on the os.path module for Cygwin
Python, specifically os.path.join:
 

import os.path
os.path.join( 'c:/foo', 'c:/foo/bar' )
 

   

'c:foo/c:/foo/bar'
 

os.path.join( '/cygdrive/c/foo', '/cygdrive/c/foo/bar' )
 

   

'/cygdrive/c/foo/bar'
The first incantation of os.path.join with Windows style paths violates
the documentation statement that os.path.join neglects previous paths once
it encounters an absolute path.
Does it not seem inconsistent that if Cygwin Python understands how to
execute:
file( 'c:/foo/bar' ) as well as file( '/cygdrive/c/foo/bar' )
it should also treat Windows style paths correctly with os.path.join? In
other words, it seems that Python on Cygwin cannot default to using
posixpath.py for os.path. It's got to be posixpath.py with some additional
magic to get it to do os.path.join correctly.
How does one go about submitting a patch for Cygwin Python?
Andres Corrada-Emmanuel
Senior Research Fellow
Information Extraction and Synthesis Laboratory
University of Massachusetts, Amherst

 

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


--
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: Perl searching in wrong path for modules?

2004-08-31 Thread Ken Dibble
I'm probably going to get you in trouble here (seeing as I know nothing 
about perl or apache).

Why couldn't you set the environment variable PERL5LIB 
in your apache config file using the SetEnv directive?

The PERL5LIB environment variable would then (theoretically)
be prepended to @INC.
Regards,
Ken


Frank Wein wrote:
Hi,
i wanted to use cygwin perl for executing perl scripts from (win32, 
the one from apache.org, not the cygwin one) Apache, so i included the 
line #!D:/cygwin/bin/perl.exe -w in my CGIs. But now i have the 
problem that perl looks in the wrong folder for the Perl Modules, for 
example if i want to load Archive::Zip, it trys to load it from 
D:\usr\lib\perl5\site_perl\5.8.5\XML\Simple.pm instead of 
D:\cygwin(\usr)\lib\perl5\site_perl\5.8.5\XML\Simple.pm. So i wonder 
if this is a bug in cygwin perl or rather a bug in Apache (or a error 
from my side even?). I attached the cygcheck output, if it matters. My 
OS is Windows 2000, Apache was 2.0.50, Cygwin is 1.5.10-cr-0x5e6.

Thanks
Frank

Cygwin Configuration Diagnostics
Current System Time: Tue Aug 31 16:26:25 2004
Windows 2000 Professional Ver 5.0 Build 2195 Service Pack 4
Path:   C:\WINNT2\system32
C:\WINNT2
C:\WINNT2\System32\Wbem
D:\Programme\Microsoft Visual Studio\VC98\Bin
D:\Programme\Microsoft Visual Studio\Common\MSDev98\Bin
D:\Programme\Microsoft Visual Studio\VC98\Lib
D:\Programme\Microsoft Visual Studio\VC98\Include

C:\Programme\ATI Technologies\ATI Control Panel
D:\Programme\Rational\common
D:\Programme\Subversion\bin
C:\Programme\Gemeinsame Dateien\GTK\2.0\bin
D:\cygwin\bin
C:\moztools\bin
D:\Programme\Borland\Delphi7\Bin
D:\Programme\Borland\Delphi7\Projects\Bpl\
C:\Programme\UltraEdit
Output from D:\cygwin\bin\id.exe (nontsec)
UID: 1000(mcsmurf) GID: 513(Kein)
513(Kein)
Output from D:\cygwin\bin\id.exe (ntsec)
UID: 1000(mcsmurf) GID: 513(Kein)
0(root)   513(Kein)
544(Administratoren)  545(Benutzer)
SysDir: C:\WINNT2\system32
WinDir: C:\WINNT2
Path = `C:\WINNT2\system32;C:\WINNT2;C:\WINNT2\System32\Wbem;D:\Programme\Microsoft 
Visual Studio\VC98\Bin;D:\Programme\Microsoft Visual 
Studio\Common\MSDev98\Bin;D:\Programme\Microsoft Visual 
Studio\VC98\Lib;D:\Programme\Microsoft Visual Studio\VC98\Include;;C:\Programme\ATI 
Technologies\ATI Control 
Panel;D:\Programme\Rational\common;D:\Programme\Subversion\bin;C:\Programme\Gemeinsame 
Dateien\GTK\2.0\bin;D:\cygwin\bin;C:\moztools\bin;D:\Programme\Borland\Delphi7\Bin;D:\Programme\Borland\Delphi7\Projects\Bpl\;C:\Programme\UltraEdit'
ALLUSERSPROFILE = `C:\Dokumente und Einstellungen\All Users.WINNT2'
APPDATA = `C:\Dokumente und Einstellungen\mcsmurf.MCSMURF\Anwendungsdaten'
APR_ICONV_PATH = `D:\Programme\TortoiseSVN\iconv'
CommonProgramFiles = `C:\Programme\Gemeinsame Dateien'
COMPUTERNAME = `MCSMURF'
ComSpec = `C:\WINNT2\system32\cmd.exe'
CVSROOT = `:pserver:[EMAIL PROTECTED]:/cvsroot'
HOMEDRIVE = `C:'
HOMEPATH = `\Dokumente und Einstellungen\mcsmurf.MCSMURF'
LOGONSERVER = `\\MCSMURF'
MOZ_TOOLS = `C:\moztools'
NUMBER_OF_PROCESSORS = `1'
OS = `Windows_NT'
Os2LibPath = `C:\WINNT2\system32\os2\dll;'
PATHEXT = `.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH'
PROCESSOR_ARCHITECTURE = `x86'
PROCESSOR_IDENTIFIER = `x86 Family 15 Model 2 Stepping 4, GenuineIntel'
PROCESSOR_LEVEL = `15'
PROCESSOR_REVISION = `0204'
ProgramFiles = `C:\Programme'
PROMPT = `$P$G'
SystemDrive = `C:'
SystemRoot = `C:\WINNT2'
TEMP = `C:\DOKUME~1\MCSMUR~1.MCS\LOKALE~1\Temp'
TMP = `C:\DOKUME~1\MCSMUR~1.MCS\LOKALE~1\Temp'
USERDOMAIN = `MCSMURF'
USERNAME = `mcsmurf'
USERPROFILE = `C:\Dokumente und Einstellungen\mcsmurf.MCSMURF'
windir = `C:\WINNT2'
POSIXLY_CORRECT = `1'
HKEY_CURRENT_USER\Software\Cygnus Solutions
HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin
HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin\mounts v2
 (default) = `/cygdrive'
 cygdrive flags = 0x0022
HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin\mounts v2\/
 (default) = `D:\cygwin'
 flags = 0x0002
HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin\mounts v2\/usr/bin
 (default) = `D:\cygwin/bin'
 flags = 0x0002
HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin\mounts v2\/usr/lib
 (default) = `D:\cygwin/lib'
 flags = 0x0002
HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin\Program Options
HKEY_CURRENT_USER\Software\Cygnus Solutions\CYGWIN.DLL setup
HKEY_CURRENT_USER\Software\Cygnus Solutions\CYGWIN.DLL setup\b15.0
HKEY_CURRENT_USER\Software\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts
HKEY_CURRENT_USER\Software\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\00
 (default) = `C:'
 unix = `/'
 fbinary = 0x
 fsilent = 0x
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2
 (default) = `/cyg

Re: compiling flpsed under Cygwin

2005-07-19 Thread Ken Dibble



Stephen P. Harris wrote:


Hello,

I am looking for an alternative to Adobe Writer Pro
and Adobe Acrobat Reader for annotating pdf or
ps files. I tried to compile flpsed and it failed maybe
due to the fltk dependency being unsatisfied with X11.
I am currently using xfree86 for the X server for the
Windows cygwin LyX version.
Has anyone made progress with compiling flpsed?
http://www.ecademix.com/JohannesHofmann/ flpsed
see the annotation at bottom of the page on tiger.ps

Regards,
Stephen


I don't know exactly what you are saying and I can only guess since 
there is no cygcheck output attached

as per the reporting guidelines.
My WAG is that you either don't have fltk installed (flpsed claims to 
require > 1.1
and the cygwin version is 1.1.4) or that your makefile isn't pointing to 
it by its' correct name

and path.

Regards,
Ken


--
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 does one set aliases for Cygwin for XP Prof Windows?

2005-07-22 Thread Ken Dibble



Patrick Sullivan wrote:


Hi,



I looked around and couldn't find out (from user guide or FAQs) how to
set my own alias settings for Cygwin.

I have Cywin installed on my PC (running Windows XP Professional).
There has to be a file somewhere, where I can add the alias settings,
but I am not sure where it is.  Does anyone know where the file is for
putting personal alias settings?



If you are talking about aliases within the bash shell, setting them in 
~/.bashrc is a place used by many.


Regards,
Ken


--
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 does one set aliases for Cygwin for XP Prof Windows? - Still doesn't work!

2005-07-22 Thread Ken Dibble

top -posted : reformatted




-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf
Of Ken Dibble
Sent: Friday, July 22, 2005 3:02 PM
To: cygwin
Subject: Re: How does one set aliases for Cygwin for XP Prof Windows?



Patrick Sullivan wrote:

 


Hi,



I looked around and couldn't find out (from user guide or FAQs) how to
set my own alias settings for Cygwin.

I have Cywin installed on my PC (running Windows XP Professional).
There has to be a file somewhere, where I can add the alias settings,
but I am not sure where it is.  Does anyone know where the file is for
putting personal alias settings?



   

If you are talking about aliases within the bash shell, setting them in 
~/.bashrc is a place used by many.


Regards,
Ken

Patrick Sullivan wrote:


 Ken,

It still doesn't work after putting the aliases in ~/.bashrc  )-:
I also tried putting them in ~/profile.ksh but it didn't work either.
I did this one time, and there was a file in a certain location where I
added them to, but I don't remember where it was...

I tried putting them in as follows:

alias ll='ls -l'
alias h='history'
alias main='cd /cygdrive/c/depot/source/main'
alias ob2='cd /cygdrive/c/depot/Projects/ob2'
alias depot='cd /cygdrive/c/depot'


Thanks,

Pat//
 



You .bash_profile should look like:
---
# ~/.bash_profile: executed by bash for login shells.

if [ -e /etc/bash.bashrc ] ; then
 source /etc/bash.bashrc
fi

if [ -e ~/.bashrc ] ; then
 source ~/.bashrc
fi

If  memory serves, this is the default .bash_profile.

This would make sure that .bashrc gets executed whether your shell is a 
login or not.


If this is indeed your .bash_profile, I would next check permissions on 
both files to make sure they

are executable.

I am assuming that your login shell is bash.

If it still doesn't work, what happens when you source these files from 
a command prompt?





--
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: gv: Unable to open the display.

2005-07-25 Thread Ken Dibble





lin q wrote:


Hi,
 I just installed gv using the cygwin installer, I select "Download 
from the internet" option and the install process runs for quite a while.


 After that I run "/usr/X11R6/bin/gv.exe" and I saw this error,

gv: Unable to open the display.

 What does that mean?

 Should I install something else for gv to run? Shoudn't cygwin 
installer already consider that?


Thanks.


Moved to Cygwin-Xfree .

Is X running or are you trying to run gv from a cmd-type shell?

You'll probably get more help if you follow the problem reporting 
guidelines at

http://cygwin.com/problems.html

Tthe XWin log file would be helpful as well.

Regards,
Ken




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



rm filename length problem

2005-07-26 Thread Ken Dibble

I'm trying to script a cleanup of some directories prior to backup.

I'm having a heck of a time with some long filenames.

[EMAIL PROTECTED] /cygdrive/c/Documents And Settings/Ken Dibble/Local 
Settings/Temporary Internet Files/Content.IE5

$ ls
450JUVMP  ETYH0R2P  QDB49KJ2  W1MRMJYV  ZJH
8DQF2381  MLNC1W3E  SRSVUZKZ  ZJ1VVLGK  ind

[EMAIL PROTECTED] /cygdrive/c/Documents And Settings/Ken Dibble/Local 
Settings/Temporary Internet Files/Content.IE5

$ rm -Rf *
rm: cannot remove 
`450JUVMP/Type=click&FlightID=1991987&AdID=1986689&TargetID=2006165&Segments=2001081,2001256,2001550,2001551,2001761,2001784,2001916,2002090,2002592,2003057,20030[1]': 
File name too long

rm: cannot remove directory `450JUVMP': Directory not empty

[EMAIL PROTECTED] /cygdrive/c/Documents And Settings/Ken Dibble/Local 
Settings/Temporary Internet Files/Content.IE5

$ cd ETYH0R2P

[EMAIL PROTECTED] /cygdrive/c/Documents And Settings/Ken Dibble/Local 
Settings/Temporary Internet Files/Content.IE5/ETYH0R2P

$ ls | wc -l
 2

[EMAIL PROTECTED] /cygdrive/c/Documents And Settings/Ken Dibble/Local 
Settings/Temporary Internet Files/Content.IE5/ETYH0R2P

$ ls
Type=click&FlightID=1991463&AdID=1986669&TargetID=2006230&Segments=120,2528,2000962,2001081,2001256,2001295,2001412,2001550,2001551,2001761,2001784,2001[1].htm
Type=click&FlightID=1991464&AdID=1986670&TargetID=2006230&Segments=120,2528,2000962,2001081,2001256,2001295,2001412,2001550,2001551,2001761,2001784,2001[1]

a plain remove fails:

[EMAIL PROTECTED] /cygdrive/c/Documents And Settings/Ken Dibble/Local 
Settings/Temporary Internet Files/Content.IE5/ETYH0R2P

$ rm *
rm: cannot remove 
`Type=click&FlightID=1991463&AdID=1986669&TargetID=2006230&Segments=120,2528,2000962,2001081,2001256,2001295,2001412,2001550,2001551,2001761,2001784,2001[1].htm': 
File name too long
rm: cannot remove 
`Type=click&FlightID=1991464&AdID=1986670&TargetID=2006230&Segments=120,2528,2000962,2001081,2001256,2001295,2001412,2001550,2001551,2001761,2001784,2001[1]': 
File name too long



as does my attempt at fooling it with xargs:

[EMAIL PROTECTED] /cygdrive/c/Documents And Settings/Ken Dibble/Local 
Settings/Temporary Internet Files/Content.IE5/ETYH0R2P

$ ls | xargs /bin/rm
/bin/rm: cannot remove 
`Type=click&FlightID=1991463&AdID=1986669&TargetID=2006230&Segments=120,2528,2000962,2001081,2001256,2001295,2001412,2001550,2001551,2001761,2001784,2001[1].htm': 
File name too long
/bin/rm: cannot remove 
`Type=click&FlightID=1991464&AdID=1986670&TargetID=2006230&Segments=120,2528,2000962,2001081,2001256,2001295,2001412,2001550,2001551,2001761,2001784,2001[1]': 
File name too long


Any help is appreciated ( Yes this means pointing out my stupidity! ).

FWIW, rsync complains about some filenames being too long as well.

cygcheck attached.

Thanks,
Ken

Cygwin Configuration Diagnostics
Current System Time: Tue Jul 26 11:06:34 2005

Windows XP Home Edition Ver 5.1 Build 2600 Service Pack 2

Path:   .\
C:\cygwin\usr\sbin
C:\cygwin\usr\local\sbin
C:\cygwin\usr\local\bin
.\
C:\cygwin\bin
C:\cygwin\usr\X11R6\bin
c:\WINDOWS\system32
c:\WINDOWS
c:\WINDOWS\System32\Wbem
c:\Program Files\Common Files\Adaptec Shared\System
C:\cygwin\bin

Output from C:\cygwin\bin\id.exe (nontsec)
UID: 1006(kdibble) GID: 545(Users)
545(Users)

Output from C:\cygwin\bin\id.exe (ntsec)
UID: 1006(kdibble) GID: 545(Users)
513(None)    544(Administrators)  
545(Users)

SysDir: C:\WINDOWS\system32
WinDir: C:\WINDOWS

CYGWIN = `server tty ntsec'
HOME = `C:\cygwin\home\Ken Dibble'
PWD = `/home/kdibble'

!EXITCODE = `'
ALLUSERSPROFILE = `C:\Documents and Settings\All Users'
APPDATA = `C:\Documents and Settings\Ken Dibble\Application Data'
CLIENTNAME = `Console'
COMMONPROGRAMFILES = `C:\Program Files\Common Files'
COMPUTERNAME = `BECCOMPUTER'
COMSPEC = `C:\WINDOWS\system32\cmd.exe'
CYGWIN_ROOT = `\cygwin'
DISPLAY = `127.0.0.1:0.0'
EDITOR = `vim'
FP_NO_HOST_CHECK = `NO'
HOMEDRIVE = `C:'
HOMEPATH = `\Documents and Settings\Ken Dibble'
JAVA_HOME = `/cygdrive/c/program files/j2sdk_nb/j2sdk1.4.2'
KDEHOME = `"C:\Documents and Settings\Ken Dibble\Application Data"'
LOGNAME = `kdibble'
LOGONSERVER = `\\BECCOMPUTER'
NUMBER_OF_PROCESSORS = `1'
OLDPWD = `/home/kdibble'
OS = `Windows_NT'
PATHEXT = `.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH'
PROCESSOR_ARCHITECTURE = `x86'
PROCESSOR_IDENTIFIER = `x86 Family 6 Model 8 Stepping 0, AuthenticAMD'
PROCESSOR_LEVEL = `6'
PROCESSOR_REVISION = `0800'
PROGRAMFILES = `C:\Program Files'
PROMPT = `$P$G'
PS1 = `\[\033]0;\w\007
[EMAIL PROTECTED] \[\033[33m\w\033[0m\]
$ '
SESSIONNAME = `Console'

Re: rm filename length problem

2005-07-26 Thread Ken Dibble



Dave Korn wrote:


Original Message
 


From: Ken Dibble
Sent: 26 July 2005 17:16
   



 


I'm trying to script a cleanup of some directories prior to backup.

I'm having a heck of a time with some long filenames.
   



 'doze and *nix both have path length limitations.  Sometimes path
translation can push things over the limit.

 


$ rm -Rf *
rm: cannot remove

   


`450JUVMP/Type=click&FlightID=1991987&AdID=1986689&TargetID=2006165&Segments
=2001081,2001256,2001550,2001551,2001761,2001784,2001916,2002090,2002592,200
3057,20030[1]':
 


File name too long
rm: cannot remove directory `450JUVMP': Directory not empty
   



 Shorten some of those names by making the prefix shorter by moving the
entire subdir into your cygwin root!

 "  mv 450JUVMP / && rm -Rf /460JUVMP  " should work

   cheers,
 DaveK



Dave:
this works.

Eric:
I figured it was a 'Doze problem.
I was just looking for a good workaround and Dave provided it.

Amazing what information is out there to be shared if you ask just half 
way civilized for it.


Thanks to you both.

Ken


--
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: suggestions for cygwin developers

2005-07-28 Thread Ken Dibble



Chris January wrote:


Alex Goldman wrote:


When Cygwin gets set up, it would be more user-friendly if it placed
two icons on the desktop:
one should start maximized Rxvt; another should start X with a couple
of xterms or whatever.
First-time users might think that the MS-DOS terminal is as good as it
gets, and this is not good for Cygwin. Others still have to figure out
how to start Rxvt automatically and how to configure it to look
pretty.

Also, it would be neat to be able to keep Cygwin up-to-date 
automatically.



How about a prompt when a new Cygwin DLL version is available:

A new version of Cygwin is available. Run setup to install the latest 
version.


This could be included as part of the /etc/profile or something.

Chris


Checking to see if a new version available assumes an internet connection.
My opinion is that this would play havoc with dial-up users.

If this is something you want, here is a  hack to accomplish it.
I'm sure there are better, cleaner ways to do this and it will break
as soon as something in the package list changes, but it's 5 am
and I am not ready to think yet.

#!/bin/bash

#Igor's whichpkg
function whichpkg() {
 wget -qO- "http://cygwin.com/cgi-bin2/package-grep.cgi?grep=$1"; | \
   sed -ne '/Cygwin Package List/,${s###g;p}'
}

LATEST=`whichpkg cygwin | grep "emulation" | tail -1 |  awk -F "-" 
'{print $2}'`

CUR=`uname -a | awk '{print $3}' | awk -F"(" '{print $1}'`
if [ $CUR != $LATEST ]; then
 echo "new cygwin dll version "$LATEST" available"
else
 echo "Your cygwin dll is current"
fi



--
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: suggestions for cygwin developers

2005-07-28 Thread Ken Dibble



Igor Pechtchanski wrote:


On Thu, 28 Jul 2005, Ken Dibble wrote:

 


Chris January wrote:

   


Alex Goldman wrote:

 


When Cygwin gets set up, it would be more user-friendly if it placed
two icons on the desktop:
one should start maximized Rxvt; another should start X with a
couple of xterms or whatever.
First-time users might think that the MS-DOS terminal is as good as
it gets, and this is not good for Cygwin. Others still have to
figure out how to start Rxvt automatically and how to configure it
to look pretty.

Also, it would be neat to be able to keep Cygwin up-to-date
automatically.
   


How about a prompt when a new Cygwin DLL version is available:

A new version of Cygwin is available. Run setup to install the latest
version.

This could be included as part of the /etc/profile or something.

Chris
 


Checking to see if a new version available assumes an internet
connection. My opinion is that this would play havoc with dial-up users.
   



Agreed.  I would guess it could be a small service (a nice implementation
would even put an icon in the system tray).

 


If this is something you want, here is a  hack to accomplish it.
I'm sure there are better, cleaner ways to do this and it will break
as soon as something in the package list changes, but it's 5 am
and I am not ready to think yet.
   



While the effort of actually writing code at 5am is commendable
(especially since you said "yet" -- the only time you'd see *me* writing
code at 5am is if I'd been doing it all night :-) ), the code below does
do some wasteful things.

 


#!/bin/bash

#Igor's whichpkg
function whichpkg() {
wget -qO- "http://cygwin.com/cgi-bin2/package-grep.cgi?grep=$1"; | \
  sed -ne '/Cygwin Package List/,${s###g;p}'
}
   



You could also simply 'wget -qO- "http://cygwin.com/packages/cygwin";' and
find the last line that starts with "cygwin".  That would be *wa-ay*
faster.

 


LATEST=`whichpkg cygwin | grep "emulation" | tail -1 |  awk -F "-" '{print $2}'`
   



Even if you do use the "whichpkg" above, it's probably better to search
for 'cygwin1\.dll'... :-)

Besides, this would lose the Cygwin-specific release number.

 


CUR=`uname -a | awk '{print $3}' | awk -F"(" '{print $1}'`
   



CUR=`uname -r | awk -F"(" '{print $1}'`

or

CUR=`cygcheck -cd cygwin | sed -ne 's/^cygwin\s\+// p'`

Both will not do the right thing if you have a snapshot installed.  You'll
have to think about what exactly the "right thing" is in this case.

 


if [ $CUR != $LATEST ]; then
echo "new cygwin dll version "$LATEST" available"
else
echo "Your cygwin dll is current"
fi
   



Again, you need to also deal with snapshots.

But if this were written in C, run as a service, and extended to all
installed packages, it could be the beginning of something useful. :-)
Igor



Yes, I  know it was wasteful.  I guess I failed to make my point.

OPINION:  I don't believe in having the latest and greatest of 
everything.  I believe
   in STABLE ( as anyone who has looked at my cygcheck 
will attest).
   So, like I said,  I really don't think something 
like this belongs in cygwin proper.


POINT:  I can see the downside to this and have great reservations.
  But if YOU must have this, it shouldn't be too hard for 
YOU to do it.


YMMV.

Igor,  Thanks for continuing to enlighten me about the myriad of ways of 
doing things.


Regards,
Ken



--
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: Programatically finding value of "cygdrive" prefix

2005-08-10 Thread Ken Dibble


Christopher Faylor wrote:


On Wed, Aug 10, 2005 at 02:36:16PM -0400, Christopher Faylor wrote:
 


On Wed, Aug 10, 2005 at 11:23:00AM -0700, Linda W wrote:
   


Is there a way to find out in a bash script the cygdrive prefix?
I thought something simple like
 mount -p|tail -1|cut -f1
but that incorrectly assumed the fields were tab delimited.
Since there can be spaces in the cygdrive prefix, I can't
use space a delimiter, example:
# mount -p
Prefix  Type Flags
/cyg drive posix path  system   binmode

 


There may be a simpler way to do it, but this seems to work:

mount -p | sed -n '2s/\([^ ]\)  *[^ ][^ ]*  *[^ ][^ ]*$/\1/p'
   



This is shorter:

mount -p | sed -nr '2s/([^ ]) +\S+ +\S+$/\1/p'

cgf


 


Or you can do it the long, slow wasteful way, which us dullards are required
to use, so we can figure out why it broke yet again.

#!/bin/bash
let c=0;
# get the number of fields
for i in `mount -p | tail -1`; do let c=$c+1; done

# if number of fields is greater than 3 because mount point has a space, 
add them

CUT_FIELDS="--fields=1"
let i=3;
while [ $i -lt $c ]
do
CUT_FIELDS=$CUT_FIELDS,$i
let i=$i+1
done

# get the fields
mount -p | tail -1 | /usr/bin/cut --delimiter=" " $CUT_FIELDS



--
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: Programatically finding value of "cygdrive" prefix

2005-08-10 Thread Ken Dibble



Christopher Faylor wrote:


On Wed, Aug 10, 2005 at 02:00:18PM -0500, Ken Dibble wrote:
 


Christopher Faylor wrote:

   


On Wed, Aug 10, 2005 at 02:36:16PM -0400, Christopher Faylor wrote:


 


On Wed, Aug 10, 2005 at 11:23:00AM -0700, Linda W wrote:
 

   


Is there a way to find out in a bash script the cygdrive prefix?
I thought something simple like
mount -p|tail -1|cut -f1
but that incorrectly assumed the fields were tab delimited.
Since there can be spaces in the cygdrive prefix, I can't
use space a delimiter, example:
# mount -p
Prefix  Type Flags
/cyg drive posix path  system   binmode

   

 


There may be a simpler way to do it, but this seems to work:

mount -p | sed -n '2s/\([^ ]\)  *[^ ][^ ]*  *[^ ][^ ]*$/\1/p'
 

   


This is shorter:

mount -p | sed -nr '2s/([^ ]) +\S+ +\S+$/\1/p'

 


Or you can do it the long, slow wasteful way, which us dullards are required
to use, so we can figure out why it broke yet again.

#!/bin/bash
let c=0;
# get the number of fields
for i in `mount -p | tail -1`; do let c=$c+1; done

# if number of fields is greater than 3 because mount point has a space, 
add them

CUT_FIELDS="--fields=1"
let i=3;
while [ $i -lt $c ]
do
CUT_FIELDS=$CUT_FIELDS,$i
let i=$i+1
done

# get the fields
mount -p | tail -1 | /usr/bin/cut --delimiter=" " $CUT_FIELDS
   



Personally, if something breaks, I'd rather look at one line than
eighteen.  I can't imagine why anyone would find the above an acceptable
solution when it's possible to do it all with one line.  And, the above
doesn't handle imbedded spaces.

Btw, a further simplification:

mount -p | sed -nr '2s/(\S) +\S+ +\S+$/\1/p'

cgf
 

You are right, the shell script that I wrote does not address the issue 
it was intended for.

I apologize for any inconvienence this caused anyone.
As well, I apologize for not spending enought time using sed for your 
sed scripts to mean anything to me.

Ken


--
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: Programatically finding value of "cygdrive" prefix

2005-08-10 Thread Ken Dibble



Christopher Faylor wrote:


On Wed, Aug 10, 2005 at 03:14:36PM -0700, L Anderson wrote:
 


Oops! I meant also to add that

mount -p | sed -nr '2s/(.*) +\S+ +\S+/\1/p'

is even a shorter version.
   



And it still includes trailing spaces in the eventual result.

cgf
 

In my attempt to understand, can you tell me where (and why) this would 
fail?


mount -m |  grep "mount -u" | tail -1 | awk '{print $5}'

Thanks,
Ken


--
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: Programatically finding value of "cygdrive" prefix

2005-08-10 Thread Ken Dibble



Christopher Faylor wrote:


On Wed, Aug 10, 2005 at 09:01:43PM -0500, Ken Dibble wrote:
 


Christopher Faylor wrote:
   


On Wed, Aug 10, 2005 at 03:14:36PM -0700, L Anderson wrote:
 


Oops! I meant also to add that

mount -p | sed -nr '2s/(.*) +\S+ +\S+/\1/p'

is even a shorter version.
   


And it still includes trailing spaces in the eventual result.
 

In my attempt to understand, can you tell me where (and why) this would 
fail?


mount -m |  grep "mount -u" | tail -1 | awk '{print $5}'
   



It doesn't deal with imbedded spaces in the cygdrive prefix --
i.e., the point of this exercise.

cgf
 


If I read the man page correctly:

   -m, --mount-commands
 write mount commands to replace user and system mount 
points and

 cygdrive prefixes

Since all this script does is take this output of mount -m and parse it
Is "mount -m"  is broken then?

Am I not understanding the man page or am I so dense that I'm missing 
something?


Ken


--
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: Programatically finding value of "cygdrive" prefix

2005-08-10 Thread Ken Dibble



Christopher Faylor wrote:


On Wed, Aug 10, 2005 at 09:14:54PM -0500, Ken Dibble wrote:
 


Christopher Faylor wrote:
   


On Wed, Aug 10, 2005 at 09:01:43PM -0500, Ken Dibble wrote:
 

In my attempt to understand, can you tell me where (and why) this would 
fail?


mount -m |  grep "mount -u" | tail -1 | awk '{print $5}'
   


It doesn't deal with imbedded spaces in the cygdrive prefix --
i.e., the point of this exercise.
 


If I read the man page correctly:

 -m, --mount-commands
   write mount commands to replace user and system mount 
points and

   cygdrive prefixes

Since all this script does is take this output of mount -m and parse it
Is "mount -m"  is broken then?

Am I not understanding the man page or am I so dense that I'm missing 
something?
   



Hint:  What does "awk '{print $5}'" do?

 

Thanks.  One of these years I will eventually understand when quotes 
cause an item with embedded spaces
to be a single item and when they get lost in processing, causing the 
embedded space item to be multiple items.


I apppreciate your  time.
Ken


--
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: Programatically finding value of "cygdrive" prefix

2005-08-11 Thread Ken Dibble



Brian Dessent wrote:


Ken Dibble wrote:

 


Am I not understanding the man page or am I so dense that I'm missing
something?
   



Yes you are missing something, and no 'mount -m' works perfectly fine. 
If the cygdrive prefix has a space in it, using awk to print the fifth

word will be incorrect.  Consider:

echo 'mount -s -b --change-cygdrive-prefix "/thing with spaces"' \
  | awk '{ print $5 }'

Brian


Still searching for a non-sed solution Ken hammered out:

So this would be correct?

mount -m |  grep "mount -u" | tail -1  | awk -F'"' '{ print $2 }'

as
echo 'mount -s -b --change-cygdrive-prefix "/thing with spaces"'  | awk 
-F'"' '{ print $2 }'

results in
/thing with spaces

Ken



--
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: Programatically finding value of "cygdrive" prefix

2005-08-11 Thread Ken Dibble



Brian Dessent wrote:


Ken Dibble wrote:

 


mount -m |  grep "mount -u" | tail -1  | awk -F'"' '{ print $2 }'

as
echo 'mount -s -b --change-cygdrive-prefix "/thing with spaces"'  | awk
-F'"' '{ print $2 }'
results in
/thing with spaces
   



The awk part seems fine, but I don't know about the "mount -u".  That
will only match if you have a user-mode cygdrive set.  As you can see
from my example, that doesn't include me (or anyone else that installs
cygwin choosing "All users" in setup.exe.)

If you're going to use awk then you can simplify and not bother with
grep and tail, they're extraneous.

mount -m | awk -F '"' '/--change-cygdrive-prefix/ { print $2 }'

Brian
 

Well, maybe my installation is hosed then.  I have installed for all 
users, but mount -m returns


mount -f -s -b "C:/cygwin/usr/X11R6/lib/X11/fonts" 
"/usr/X11R6/lib/X11/fonts"

mount -f -s -b "C:/cygwin/bin" "/usr/bin"
mount -f -s -b "C:/cygwin/lib" "/usr/lib"
mount -f -s -b "C:/cygwin" "/"
mount -u -b --change-cygdrive-prefix "/cygdrive"
mount -s -b --change-cygdrive-prefix "/"

so...

mount -m | awk -F '"' '/--change-cygdrive-prefix/ { print $2 }'

results in

/cygdrive
/


so, I can see that the grep is not needed, but since there is more than 
one output line, tail, head or the like

would be needed,  no?

Ken


--
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: Programatically finding value of "cygdrive" prefix

2005-08-11 Thread Ken Dibble



Brian Dessent wrote:


Ken Dibble wrote:

 


Well, maybe my installation is hosed then.  I have installed for all
users, but mount -m returns

mount -f -s -b "C:/cygwin/usr/X11R6/lib/X11/fonts"
"/usr/X11R6/lib/X11/fonts"
mount -f -s -b "C:/cygwin/bin" "/usr/bin"
mount -f -s -b "C:/cygwin/lib" "/usr/lib"
mount -f -s -b "C:/cygwin" "/"
mount -u -b --change-cygdrive-prefix "/cygdrive"
mount -s -b --change-cygdrive-prefix "/"
   



It's not hosed, you just happen to have both flavors of cygdrive
prefix.  The user mounts always take precedence over the system-wide
ones.  If I were you I'd remove the user cygdrive (since all your other
mounts are system) with "umount -uc" and then change your system
cygdrive to the desired value, presumably "mount -c /cygdrive".

 



Thank you, worked like a charm.

Ken


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