bizarre pdksh errors
Hi I have just downloaded the source for pdksh and comiled it. However, I'm getting some pretty wierd messages. For instance, I just issued "ls -l" in succession: $ ls -l total 371 drwxrwxrwx3 Administ Administ 135168 Mar 16 06:36 bin -rwxrwxrwx1 Administ Administ 55 Oct 3 19:44 cygwin.bat -rwxrwxrwx1 Administ Administ 766 Mar 16 06:36 cygwin.ico drwxrwxrwx7 Administ Administ 4096 Mar 16 06:36 etc drwxrwxrwx4 Administ Administ0 Dec 2 19:02 home drwxrwxrwx 14 Administ Administ53248 Mar 16 06:36 lib drwxrwxrwx2 Administ Administ0 Oct 3 21:53 sbin -rwxrwxrwx1 Administ Administ69323 Mar 16 06:36 setup.log -rwxrwxrwx1 Administ Administ67103 Mar 16 06:36 setup.log.full -rwxrwxrwx1 Administ Administ 2458 Oct 3 21:51 sqlnet.log drwxrwxrwx 26 Administ Administ36864 Mar 16 07:09 tmp drwxrwxrwx 20 Administ Administ 4096 Mar 10 13:27 usr drwxrwxrwx7 Admi: not foundst0 Mar 16 06:36 var $ls -l //d/utils/rm.exe: invalid option -- l Try `//d/utils/rm.exe --help' for more information. $ ls -l total 371 drwxrwxrwx3 Administ Administ 135168 Mar 16 06:36 bin -rwxrwxrwx1 Administ Administ 55 Oct 3 19:44 cygwin.bat -rwxrwxrwx1 Administ Administ 766 Mar 16 06:36 cygwin.ico drwxrwxrwx7 Administ Administ 4096 Mar 16 06:36 etc M no more files> $ ls -l /usr/local/bin/ksh: ls: not found $ ls -l total 371 drwxrwxrwx3 Administ Administ 135168 Mar 16 06:36 bin -rwxrwxrwx1 Administ Administ 55 Oct 3 19:44 cygwin.bat -rwxrwxrwx1 Administ Administ 766 Mar 16 06:36 cygwin.ico drwxrwxrwx7 Administ Administ 4096 Mar 16 06:36 etc drwxrwxrwx4 Administ Administ0 Dec 2 19:02 home drwxrwxrwx 14 Administ Administ53248 Mar 16 06:36 lib drwxrwxrwx2 Administ Administ0 Oct 3 21:53 sbin -rwxrwxrwx1 Administ Administ69323 Mar 16 06:36 setup.log -rwxrwxrwx1 Administ Administ67103 Mar 16 06:36 setup.log.full -rwxrwxrwx1 Administ Administ 2458 Oct 3 21:51 sqlnet.log drwxrwxrwx 26 Administ Administ36864 Mar 16 07:09 tmp drwxrwxrwx 20 Administ Administ 4096 Mar 10 13:27 usr drwxrwxrwx7 Administ Administ0 Mar 16 06:36 var My main concern is: why did it try call call "rm.exe"? Note that this is a DOS utility that I used to use before I discovered Cygwin. I obtained the pdksh source from ftp.cs.mun.ca/pub/pdksh/pdksh-5.2.14.tar.gz, which I believe is reputable. I'm the only person who uses my PC, and I'm Zonealarmed and Antivirused to my eyeballs, so I don't think that the problem has occured as a result of a hacker or virus. And bash functions as expected. Has anyone else had similar problems? Dan -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Anyone got mod_perl working?
Hi has anyone out there got mod_perl working under cygwin? I'd love to see your notes. At the moment, I get stuck during the "make test" phase. The error_log is [notice] Destruction->DESTROY called for $global_object Subroutine fileparse_set_fstype redefined at /usr/lib/perl5/5.6.1/cygwin-multi/File/Basename.pm line 153. Subroutine fileparse redefined at /usr/lib/perl5/5.6.1/cygwin-multi/File/Basename.pm line 167. Subroutine basename redefined at /usr/lib/perl5/5.6.1/cygwin-multi/File/Basename.pm line 224. Subroutine dirname redefined at /usr/lib/perl5/5.6.1/cygwin-multi/File/Basename.pm line 237. [Wed Jan 2 20:38:42 2002] [warn] [notice] child_init for process 1624, report any problems to [no address given] [Wed Jan 2 20:41:41 2002] [error] [client 127.0.0.1] File does not exist: ./t/docs/test.html [Wed Jan 2 20:41:43 2002] [error] [client 127.0.0.1] File does not exist: ./t/docs/test.html [Wed Jan 2 20:41:46 2002] [error] [client 127.0.0.1] File does not exist: ./t/docs/test.html [Wed Jan 2 20:41:50 2002] [error] [client 127.0.0.1] File does not exist: ./t/docs/test.html [Wed Jan 2 20:41:50 2002] [error] [client 127.0.0.1] File does not exist: ./t/docs/test.html Cheers Dan -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
RE: Anyone got mod_perl working?
Hi thanks to those who replied. I have something working, but I'm not sure if it will come back to bite me later on. After I've had a play for a while, I may come across a few problems - which may arise from the way I've installed things, or may be from my code. To try and eliminate the former, please let me know if I did anything fatally wrong. Notes: * After scouring the net, I found someone who mentioned that they rarely got "make test" working, but the installation always ran. So after continually editing scripts and then hitting the next problem, I decided to skip the testing. * I avoided the DSO route as it just seemed to be giving me grief 1. Install (everything untarred in /tmp): in /tmp/mod_perl-1.26 $ perl Makefile.PL USE_APACI=1 EVERYTHING=1 PERL_EXTRA_CFLAGS=-DUSEIMPORTLIB DO_HTTPD=1 APACHE_SRC=../apache_1.3.22 $ make in /tmp/apache_1.3.22 $ make back in /tmp/mod_perl-1.26 $ make install back in /tmp/apache_1.3.22 $ make install $ /usr/local/apache/bin/apachectl start $ cat /usr/local/apache/logs/error_log [Thu Jan 3 10:02:22 2002] [notice] Apache/1.3.22 (Cygwin) mod_perl/1.26 configured -- resuming normal operations [Thu Jan 3 10:02:22 2002] [notice] Accept mutex: fcntl (Default: fcntl) 2. Update httpd.conf a) In the "aliases" section, I entered: Alias /perl/ "/var/www/perl/" Options Indexes FollowSymLinks MultiViews AllowOverride None Order allow,deny Allow from all b) Then add the following directive - is this correct? SetHandler perl-script PerlHandler Apache::Registry Options +ExecCGI c) restart apache 3. Test: In /var/www/perl, create test.pl as is in Stas Beckman's mod_perl Guide: print "Content-type print "Server's environment\n"; foreach ( keys %ENV) { print "$_\t$ENV{$_}\n"; } I had to set the permissions to 755. The result in my browser: SERVER_SOFTWARE Apache/1.3.22 (Cygwin) mod_perl/1.26 SERVER_ADMINdhorne@DAN-NOTEBOOK REMOTE_ADDR 192.168.1.3 DOCUMENT_ROOT /usr/local/apache/htdocs REQUEST_URI /perl/test.pl REQUEST_METHOD GET SERVER_PORT 8080 -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Dan Horne Sent: Wednesday, January 02, 2002 8:58 PM To: [EMAIL PROTECTED] Subject: Anyone got mod_perl working? Hi has anyone out there got mod_perl working under cygwin? I'd love to see your notes. At the moment, I get stuck during the "make test" phase. The error_log is [notice] Destruction->DESTROY called for $global_object Subroutine fileparse_set_fstype redefined at /usr/lib/perl5/5.6.1/cygwin-multi/File/Basename.pm line 153. Subroutine fileparse redefined at /usr/lib/perl5/5.6.1/cygwin-multi/File/Basename.pm line 167. Subroutine basename redefined at /usr/lib/perl5/5.6.1/cygwin-multi/File/Basename.pm line 224. Subroutine dirname redefined at /usr/lib/perl5/5.6.1/cygwin-multi/File/Basename.pm line 237. [Wed Jan 2 20:38:42 2002] [warn] [notice] child_init for process 1624, report any problems to [no address given] [Wed Jan 2 20:41:41 2002] [error] [client 127.0.0.1] File does not exist: ./t/docs/test.html [Wed Jan 2 20:41:43 2002] [error] [client 127.0.0.1] File does not exist: ./t/docs/test.html [Wed Jan 2 20:41:46 2002] [error] [client 127.0.0.1] File does not exist: ./t/docs/test.html [Wed Jan 2 20:41:50 2002] [error] [client 127.0.0.1] File does not exist: ./t/docs/test.html [Wed Jan 2 20:41:50 2002] [error] [client 127.0.0.1] File does not exist: ./t/docs/test.html Cheers Dan -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/ -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Apache::Request and Cygwin
Since installing Apache and mod_perl on Cygwin, everything has been working hunky-dory until, inevitably, I need to use Apache::Request. Unfortunately, I can't get it to compile, and I've seen posts that have stated that it is not possible. Has anyone got this working? Dan : lots of undefined symbols : /tmp/libapreq-0.33/Request/../blib/arch/auto/libapreq/libapreq.a(apache_mult ipart_buffer.o)(.text+0x377):apache_multipart_buffer.c: undefined reference to `ap_make_table' /tmp/libapreq-0.33/Request/../blib/arch/auto/libapreq/libapreq.a(apache_mult ipart_buffer.o)(.text+0x3bf):apache_multipart_buffer.c: undefined reference to `ap_table_add' /tmp/libapreq-0.33/Request/../blib/arch/auto/libapreq/libapreq.a(apache_mult ipart_buffer.o)(.text+0x4e2):apache_multipart_buffer.c: undefined reference to `ap_pstrcat' collect2: ld returned 1 exit status dllwrap: gcc exited with status 1 perlld: *** system() failed to execute dllwrap --dllname Request.dll --driver-name gcc --dlltool dlltool --export-all-symbols --as as --output-def libRequest.def --output-lib libRequest.a \ -s -L/usr/local/lib Request.o /usr/lib/perl5/5.6.1/cygwin-multi/CORE/libperl5_6_1.a -L/tmp/libapreq-0.33/R equest/../blib/arch/auto/libapreq -lapreq make[1]: *** [../blib/arch/auto/Apache/Request/Request.dll] Error 1 make[1]: Leaving directory `/tmp/libapreq-0.33/Request' make: *** [subdirs] Error 2 -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
RE: Anyone got mod_perl working?
Hi Gerrit thanks for your notes. I neglected to mention that I did symbolically link the liberl.a library. Unfortunately, I think I may have hit the wall in getting Apache::Request working, and according to one note that I've found on the web (http://www.mail-archive.com/modperl@apache.org/msg21136.html), it may not be possible: "However, I think that building mod_perl under Cygwin is a not a good idea (yet). For example, you won't be able to build libapreq (Apache::Request): it requires some symbols from apache and under win32 it's impossible to link .dll to symbols in .exe which loads this .dll. That's why win32 apache is split into Apache.exe and ApacheCore.dll -- it allows modules to link with ApacheCore.dll. Unfortunately, Cygwin builds single httpd.exe binary and libapreq fails to link to ap_table_add, ap_getword and many other symbols residing in apache binary." If you have any other ideas, please let me know :) Dan -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Gerrit P. Haase Sent: Saturday, January 05, 2002 4:54 AM To: Dan Horne Cc: [EMAIL PROTECTED] Subject: Re: Anyone got mod_perl working? Hallo Dan, Am 2002-01-02 um 23:07 schriebst du: > thanks to those who replied. I have something working, but I'm not sure if > it will come back to bite me later on. I figured out that Apache 1.3.2x is really slow on Cygwin if compared with Apache 2.x. but I didn't tried to build Apache2 with mod_perl yet. > After I've had a play for a while, I may come across a few problems - which > may arise from the way I've installed things, or may be from my code. To try > and eliminate the former, please let me know if I did anything fatally > wrong. No, not a mistake of you, the httpd.conf for the mod_perl tests doesn't work OOTB on Cygwin. > Notes: > * After scouring the net, I found someone who mentioned that they rarely got > "make test" working, but the installation always ran. So after continually > editing scripts and then hitting the next problem, I decided to skip the > testing. I have it working, it it tells me "All tests successful, 8 tests skipped." at the end;) I my previous mail I described the two changes I made to the test.conf file. > * I avoided the DSO route as it just seemed to be giving me grief > 1. Install (everything untarred in /tmp): > in /tmp/mod_perl-1.26 I used a newer mod_perl version from CVS, but there are no greater changes. >$ perl Makefile.PL USE_APACI=1 EVERYTHING=1 > PERL_EXTRA_CFLAGS=-DUSEIMPORTLIB DO_HTTPD=1 APACHE_SRC=../apache_1.3.22 perl Makefile.PL \ EVERYTHING=1 \ APACHE_SRC=../apache_$APACHE_VER/src \ USE_APACI=1 \ PREP_HTTPD=1 \ DO_HTTPD=1 2>&1 | tee $CWD/log.configure-mod_perl > in /tmp/apache_1.3.22 I used Apache 1.3.20 and I needed to modify the Apache Makefile because libperl5_6_1.a isn't searched only libperl.a: So I need to do this: perl -i.bak -p -e 's#-lmm#-lmm -lperl5_6_1#;' $TMP/apache_$APACHE_VER/src/Makefile or something like that before configuring everything: ln -s /lib/perl5/5.6.1/cygwin-multi/CORE/libperl5_6_1.a /lib/libperl.a > a) In the "aliases" section, I entered: >Alias /perl/ "/var/www/perl/" > > Options Indexes FollowSymLinks MultiViews > AllowOverride None > Order allow,deny > Allow from all > > b) Then add the following directive - is this correct? > > >SetHandler perl-script >PerlHandler Apache::Registry >Options +ExecCGI > > Looks ok. I used this for the beginning: SetHandler perl-script PerlHandler Apache::Registry Options +ExecCGI PerlSendHeader On > c) restart apache > 3. Test: > In /var/www/perl, create test.pl as is in Stas Beckman's mod_perl Guide: > print "Content-type > print "Server's environment\n"; > foreach ( keys %ENV) > { >print "$_\t$ENV{$_}\n"; > } > I had to set the permissions to 755. > The result in my browser: > SERVER_SOFTWARE Apache/1.3.22 (Cygwin) mod_perl/1.26 > SERVER_ADMINdhorne@DAN-NOTEBOOK > REMOTE_ADDR 192.168.1.3 > DOCUMENT_ROOT /usr/local/apache/htdocs > REQUEST_URI /perl/test.pl > REQUEST_METHOD GET > SERVER_PORT 8080 Seems to work;) Gerrit -- =^..^=mailto:[EMAIL PROTECTED] -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/ -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
vim and color
Hi All how do I set up syntax color coding with vim under cygwin? I use gvim in the Windows environmnt, and that seesm to be working okay. I've looked at the cygwin doco I could find, and it discusses windows and Unix - I'm not sure where cygwin fits into the scheme of thngs. For instance, I added a .gvimrc file to $HOME directory, but it doesn't seem to do anything. Dan -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
RE: vim and color
Thanks Randall upon further investigation (and putting .vimrc in my home directory on not gvimrc doh) I've discovered that color-coding is working if I use the command window. However, if I use rxvt, I lose color and instead get text emphasis in bolds and underlines. Obviously, I'm missing something but not sure what. Ideas appreciated Dan -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Randall R Schulz Sent: Friday, January 11, 2002 9:13 AM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: Re: vim and color Dan, Most likely all you need to know is where to put your color scheme files. If you're doing it all from Vim's "rc" file, then you need to use the right one: "~/.vimrc" / "$HOME/.vimrc". The Cygwin-hosted Vim is a non-GUI, Unix-style Vim (just vim or vi), _not_ a GUI, stand-alone one (gvim). From what little experience I have, the Vim docs and help system are careful to distinguish the graphic from non-graphic Vim configuration details. Use the ":help ..." command. Randall Schulz Mountain View, CA USA At 12:03 2002-01-10, Dan Horne wrote: >Hi All > >how do I set up syntax color coding with vim under cygwin? I use gvim in the >Windows environmnt, and that seesm to be working okay. I've looked at the >cygwin doco I could find, and it discusses windows and Unix - I'm not sure >where cygwin fits into the scheme of thngs. For instance, I added a .gvimrc >file to $HOME directory, but it doesn't seem to do anything. > >Dan -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/ -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
RE: vim and color
Hi term is set to xterm. If I do ls -l --color (or set the ls alias to do so), the listing is indeed in colour. Dan -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Charles Wilson Sent: Friday, January 11, 2002 9:28 AM To: [EMAIL PROTECTED] Cc: Randall R Schulz; [EMAIL PROTECTED] Subject: Re: vim and color Dan Horne wrote: > Thanks Randall > > upon further investigation (and putting .vimrc in my home directory on not > gvimrc doh) I've discovered that color-coding is working if I use the > command window. However, if I use rxvt, I lose color and instead get text > emphasis in bolds and underlines. Obviously, I'm missing something but not > sure what. What does `echo $TERM' say? "xterm" doesn't support color -- but "rxvt" does. Try: export TERM=rxvt when you're using rxvt. Use TERM=cygwin when you use the bash-in-a-command.com window. --Chuck -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/ -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
RE: vim and color
Thanks that worked Dan -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Charles Wilson Sent: Friday, January 11, 2002 9:52 AM To: [EMAIL PROTECTED] Cc: Randall R Schulz; [EMAIL PROTECTED] Subject: Re: vim and color Dan Horne wrote: > Hi > > term is set to xterm. If I do ls -l --color (or set the ls alias to do so), > the listing is indeed in colour. Because 'ls.exe' is less careful about emitting color codes than vim is. You can even try this: within vim, type :se term=rxvt and the :r a file in. It should now show up in color. --Chuck -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/ -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
FW: Install failure
-Original Message- From: Dan Horne [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 30, 2002 11:05 AM To: [EMAIL PROTECTED] Subject: Install failure Hi I've recently attempted to update my cygwin installation using setup.exe, but it was not successful as it failed to install a new cygwin1.dll. Looking through setup.log.full I see -- snip -- unlink C:/cygwin/bin/cygpath.exe unlink C:/cygwin/bin/cygwin1 .dll unlink C:/cygwin/bin/dumper.exe unlink C:/cygwin/bin/getfacl.exe -- end snip and -- snip -- Installing file C:/cygwin/bin/cygpath.exe Installing file C:/cygwin/bin/cygwin1 .dll Unable to install file C:/cygwin/bin/cygwin1 .dll Installing file C:/cygwin/bin/dumper.exe Installing file C:/cygwin/bin/getfacl.exe -- end snip -- It appears that there is a space between "cygwin" and ".dll" Is there a configuration that I can edit to get around this or does it have to be fixed at source? Dan -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
SSH + rsync hangs
I'm attempting to sync files over ssh from a Linux server to a cygwin client. The command I issue is rsync -avz -e ssh [EMAIL PROTECTED]:/remote_dir . but the request hangs. I can ssh directrly to the server from the cygwin shell. If I increase the logging level, I get: $ rsync -az -e ssh [EMAIL PROTECTED]:/remote_dir . cmd=ssh machine=host user=user path=/remote_dir cmd=ssh -l root host rsync --server --sender -logDtprz . /remote_dir opening connection using ssh -l user host rsync --server --sender -logDtprz . /remote_dir and then it hangs. On ctrl-c: _exit_cleanup(code=20, file=/home/lapo/packaging/tmp/rsync-2.6.6/rsync.c, line=163): entered rsync error: received SIGUSR1 or SIGINT (code 20) at /home/lapo/packaging/tmp/rsync-2.6.6/rsync.c(163) _exit_cleanup(code=20, file=/home/lapo/packaging/tmp/rsync-2.6.6/rsync.c, line=163): about to call exit(20) It works if I issue the same request from a RedHat 8 client to the same server. Cygwin Software versions: openssh: 4.2p1-1 rsync: 2.6.6 I have also installed the latest version of cygwin regards Dan Horne -- 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/