delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/10/16/09:33:23

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Message-Id: <E562FCEE3A42D61192880002A5FB4333447151@kite.pigroup.co.uk>
From: David Kilroy <david DOT kilroy AT pigroup DOT co DOT uk>
To: "'Gerrit P. Haase'" <freeweb AT nyckelpiga DOT de>, cygwin AT cygwin DOT com
Subject: RE: gcc created exe: permission problems
Date: Wed, 16 Oct 2002 14:33:24 +0100
MIME-Version: 1.0
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id g9GDXMi12556

I get the same symptoms (without the -ldb and -lutils which I don't have)

Removing the -shared option from the gcc compile line fixes it for me.


Dave

NT SP6
cygwin	1.3.12-4
gcc		2.95.3-4


> -----Original Message-----
> From: Gerrit P. Haase [mailto:freeweb AT nyckelpiga DOT de]
> Sent: 16 October 2002 14:18
> To: cygwin AT cygwin DOT com
> Subject: gcc created exe: permission problems
> 
> 
> Hallo,
> 
> I have *not* updated Cygwin recently:
> $ cygcheck -c cygwin
> Cygwin Package Information
> Package             Version             
> cygwin              1.3.12-4            
> 
> and everything works fine some days back when compiling C files,
> now I'm having these problems:
> 
> $ mount
> [...]
> H:\cygwin\usr on /usr type system (binmode)
> [...]
> 
> $ pwd
> /usr/src
> 
> $ ls *try*
> ls: *try*: No such file or directory
> 
> $ echo '#include <stdio.h>' >try.c
> 
> $ echo 'int main() { printf("Ok\n"); exit(0); }' >>try.c
> 
> $ gcc -o try -g -O2 -DPERL_USE_SAFE_PUTENV -DDEBUGGING 
> -shared -g try.c -lgdbm -ldb -lcrypt -lutil
> 
> $ ls *try*
> try.c  try.exe*
> 
> $ ./try
> bash: ./try: Permission denied
> 
> $ ./try.exe
> bash: ./try.exe: Permission denied
> 
> $ ls -l *try*
> -rw-r--r--    1 gerrit   Domänen-       59 Oct 16 14:22 try.c
> -rwxr-xr-x    1 gerrit   Domänen-    29804 Oct 16 14:22 try.exe*
> 
> I tried several chmod and chown commands, nothing seems to help.
> 
> Any ideas?
> Would cygcheck -svr help someone to get an idea?
> 
> 
> Gerrit
> -- 
> =^..^=
> 
> 
> --
> 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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019