w32-shell-execute function definition is void

2006-06-05 Thread Mark Fisher

i cannot seem to be able to use/find w32-shell-execute.
i'm using emacs v21.3.50.1, but it was the same under a
previous version (v21.2.13).

i've tried moving my .emacs and starting up clean, but it
is just always comes back with the function definition
being void if i try to excecute anything that uses this
function. Typing "M-x w32" and hitting tab comes back
empty (No match).

i tried compiling the source version of 21.3.50.2 but i
get the errors mentioned elsewhere with bootstrap-emacs
causing a segmentation fault after altering the souce
for the emacs/d_ino issue against cygwin 1.5.19-4,
but browsing the source i can see the w32-shell-execute
method is in the source, but i just don't seem to be able
to ever get it to be recognised.

I mostly use emacs-X11, but i've just tested it with the non
x11 binary distribution from installing with setup.exe and that
has the same problem.

can anyone help me understand why this fails?
is there something i'm missing about the cywin build of emacs?

thanks,
mark

--
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: Why are Windows paths broken in make 3.81?

2006-07-24 Thread Mark Fisher

On 7/24/06, Joachim Achtzehnter <[EMAIL PROTECTED]> wrote:

This sarcastic response to one sentence out of a much longer post quoted in
isolation suggests that a clarification is in order.


here here! i'd like to add that i'm getting fed up of reading sarcastic
comments from cgf since i rejoined the mailing list.

this particular gem:


I assumed the compiled program would work in a bash
shell but it only works in a dos shell-its too late to
worry about why that is. I miss unix.


Yeah, things work a lot better in a dos shell on unix.

( http://cygwin.com/ml/cygwin/2006-07/msg00682.html )

the sole comment to an entire post sums up for me a very
arrogant attitude towards people with less knowledge who
need help.

this forum (i hope) was never meant as a personal sarcasm
area and to read it it's very annoying.

if you don't have something constructive to say, lay off laying
into people.

--
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: Where is complex.h

2006-07-27 Thread Mark Fisher

On 7/26/06, TV JOE wrote:

 Would any of you that replied be interested in assisting me
 with compiling this program. It's a C program written for a Suse
 Linux distribution. The author maintains the only problem
 would be resolving the complex.h warnings.


just for completion on the mailing list and in case anyone else has a
similar issue with complex numbers, i found using the c9x-complex math
package was needed to compile
your program. i got the source from http://www.netlib.org/cephes/

you need to amend the makefile slightly by adding "stubs.o" to the
LIBMCFILES definition if you're not using the rest of cephes, i.e. change it to

LIBMCFILES = $(SFILES) $(DFILES) $(LFILES) stubs.o

run "make", ignore the errors for the apps that don't compile, and
then copy the libmc.a file into your libs path.
copy *.h to your include path

mark

--
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 to install cygwin without internet connection?

2006-08-04 Thread Mark Fisher

On 8/4/06, Rupert Kolb  wrote:

we have some (~20) PCs here, which have no connection to the Internet.
Reason: Security!

Question: How can I install cygwin on such PCs?


can they all be setup to share a common drive, and then choose
"install from local directory" and point it to the shared drive?
you simply have to put the entire cygwin download there then.

--
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: making a cygwin install.

2006-08-04 Thread Mark Fisher

> From: Igor Peshansky [mailto:[EMAIL PROTECTED]


seems you missed the

hint from Igor.

--
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: need assistance w/sftp & home folder creation

2006-08-04 Thread Mark Fisher

On 8/4/06, MyStiC wrote:

Also, I am looking for a way to have the initial setup of the users'
home directories to also create predefined links.  ie /home/user/
link_1, link_2...  Presently, I am creating these links manually so
the restricted users, or any user which is unfamiliar with the file
system, can quickly access public resources.


can't help with the sftp, but one solution to creating the links is
to create a script that checks for them and creates them if they
don't exist. then put it in "/etc/profile.d/" and it will be run when
they run a shell and thus the links will be available to them.
i have several scripts in this area, export.sh, alias.sh, ...
to set common values for each shell.

--
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: 1.5.21-1 DLL Loading Problem

2006-08-04 Thread Mark Fisher

On 8/4/06, Karl M wrote:

Hi Rob...

I got...

$ ./run
Foundation load failed: Permission denied

HTH,


not without knowing your setup it doesn't, no.
and he was asking for personal mails to keep the spam off the
list while collating information about the bug.

try running "cygcheck -cd gcc cygwin" and mailing it to rob
at the very least to show what versions of the compiler and cygwin
you are running. reporting you got a problem but not knowing what
versions you are running doesn't really help narrow the problem
down.

--
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: Checking XCOPY Exit Value in Cygwin Bash

2006-08-06 Thread Mark Fisher

On 8/6/06, Shane wrote:

Can you please provide me a way of checking the XCOPY exit code: reference 
[http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/xcopy.mspx?mfr=true]
 within Bash?


result codes are stored in $? in bash
success = 0 usually, and xcopy seems to follow the norm here.

here, i did
xcopy somefile somedir
echo $?

which returned 0

when i tried
xcopy nonfile somedir
echo $?

i get 4

so test for 0 for success.

extensions of this idea:
xcopy somefile somedir && echo ok
xcopy somefile somedir || echo fail

--
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: GnuPG bug: --refresh-keys

2006-08-08 Thread Mark Fisher

On 8/7/06, Max Bowsher wrote:

Reini Urban wrote:
> Did you get gpg-agent working?
> My private gnupg-1.9.20-1 fails.

I used the stable release, not the development branch.



hi, which version of gpg-agent and gpg are you using?
My research [reading from latest announce :
http://lists.gnupg.org/pipermail/gnupg-announce/2006q3/000229.html

 GnuPG 1.9.x is the development series of GnuPG.  This version merged
 the code from the Aegypten project and thus includes the gpg-agent
]

and various other postings on the subject, seems to point that
gpg-agent is only available with the development version of gpg, 1.9.
(hence i don't understand how you are using a stable release to get
gpg-agent)

i've done as it says in that message, use gpg 1.4 for gpg and built
gpg-agent from the source, but get the same errors mentioned by Reini.

i've had huge trouble trying to track down in the source why gpg-agent
fails to talk to gpg for key information, so getting your version info
would be a great help to know what versions do work together, and how
you installed (i.e. built manually vs installed).

mark

--
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: problem with malloc/realloc. Pls help.

2006-08-21 Thread Mark Fisher

On 8/21/06, Omololu wrote:

Hi,
 i have the following code. it compiles with gcc in Cygwin but the contents of
the array ifitQ that I get after the call to the subroutine readCharges2 is
gibberish.


looks like a passing by reference problem. if you add debug to look
at the address of ifitQ at all stages, you'll notice that the copy pointer
in readCharges2 gets changed, but that isn't the same pointer as in
the calling block.

see section 2.17 of http://www.lysator.liu.se/c/c-faq/c-2.html

i don't understand how linux is getting it right tbh.

--
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: Installing cygwin on a computer without internet connection

2006-11-19 Thread Mark Fisher

On 11/18/06, Florian Haßmann wrote:


I've got a computer without internet connection, but I want to install cygwin
there.
What can I do?
Is there a .zip file or anything else including all the data to install?


simply use setup to "download without installing" on a machine that
does have internet connection, then copy the entire directory and
setup.exe to a portable disk/usb/dvd and install on the connectionless
machine(s) using the "install from local directory" option.

--
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: bash CRLF problems (I have read the recent announcement)

2006-12-05 Thread Mark Fisher

On 12/5/06, Kevin Layer  wrote:

Larry Hall (Cygwin)  wrote:

>> > version=`cat foo1.out`
>> > ...
>> Time to adjust your expectations. ;-)  Text mounts write CRNL as EOLs
>> for all files that are not explicitly opened as binary (or text for
>> that matter).  Text mounts remove the CR from EOLs read from files that
>> are not explicitly opened as binary (or text).  'cat' explicitly opens
>> the file as binary.

What is the portable way to get the contents of foo1.out into a
variable, getting proper translation of the end of lines?  (If the
answer is use `d2u' that is not portable.)  I thought I was safe by
using text mounts--I spent quite a while looking at the archives
before posting and thought I had covered all bases.

Kevin



if you change the echo's to "echo -n" you don't get the ^M chars, as
it surpresses the CR in the output.
is this possible on the "real" scripts you talk about, or is the
version generating script/app not changeable?

$ cat foo1.sh
echo -n 8010 > foo1.out

$ cat foo2.sh
sh foo1.sh
version=`cat  foo1.out`
echo -n ${version}.bar > foo2.out
cat -v foo2.out

$ sh foo2.sh
8010.bar

alternate solutions to using cat (which allow the \r\n in foo1.out) :
version=`cut -f1 foo1.out`
version=`awk '{print $1}' foo1.out`
version=`sed -n '1p'  foo1.out`

cat is doing what it's supposed to, putting the whole file in the variable.
don't use it. if you can't change the \r\n from your version file, use one
of the alternatives.

mark

--
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: emacs trouble

2006-12-13 Thread Mark Fisher

On 12/13/06, Lorenzo Travaglio  wrote:

I'm experiencing a little problem using emacs. It
seems that C-x C-c doesn't work, and I leave Emacs via
F10-f-e. I'm using only text window, not X, and the
Emacs version is 21.2-13.


same here if i load it from a dos shell, but
works fine from within an rxvt session (which i
would recommend anyway).

i'm testing this with same version of emacs and invoking with
"emacs -q -nw" to remove any startup.

mark

--
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: rxvt-unicode 7.7-5 - titles displaying wrongly

2006-12-20 Thread Mark Fisher

On 12/19/06, Mark Fisher wrote:

i just upgraded to 7.7-5 from 7.7-4 and noticed that it breaks my
titles of sessions that i create. it only seems to happen when using
the fluxbox windowmanager. i tried with fvwm2 and the titles appear
fine in 7.7-5.
...
and i open sessions running
urxvtc -e /bin/bash --login


i should learn to pay more attention to release notes.
changing my startup to
LC_CTYPE=en_UK.UTF-8 urxvtc -e /bin/bash --login

fixes the issue.

mark

--
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: cygpath problems

2007-01-30 Thread Mark Fisher

>java -classpath ${AHECLIENT_HOME}/lib/org.mortbay.jetty.jar 
org.mortbay.util.PKCS12Import $1 ${AHECLIENT_HOME}/conf/aheclient.ks
>
>keytool -keystore ${AHECLIENT_HOME}/conf/aheclient.ks -import -alias rootca 
-file ${AHECLIENT_HOME}/lib/certs/cacert.pem -trustcacerts


"cygpath -w some_dir"
will convert to a windows directory that can be accepted by java etc
(check "man cygpath").

so try
java -classpath $(cygpath -w ${AHECLIENT_HOME}/lib/org.mortbat.jetty.jar) ...

mark

--
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: Problem running C server with Cygwin

2007-05-28 Thread Mark Fisher

On 28/05/07, Nick048 wrote:

I have written a C Server program and I have compiled this with Cygwin
without errors.
Running the exe file with Cygwin, if the client (telnet) send to Server a
word (in italian language "parola"), in the Cygwin window this message is
displayed:
5 [main] myserver 2736 _cygtls:: handle_exception: Error while dumping state
(probably corrupted stack)


i don't get this error running the code you linked.
i'm running "gcc (GCC) 3.4.4 (cygming special, gdc 0.12, using dmd 0.125)"

i did notice a simple bug in your program though, line 141 should be:

 if (NodoTrovato == NULL){

otherwise you never create words in your list.

after that, it ran fine.
(if by fine you wanted each connection to only add one word to your server)

mark

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