public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* problem with the link command : ln
@ 2002-07-09  1:00 DEMOTTIE Christophe DvSI/SIReS/GRE
  2002-07-09  5:51 ` Corinna Vinschen
  2002-07-09  6:01 ` Dario Alcocer
  0 siblings, 2 replies; 4+ messages in thread
From: DEMOTTIE Christophe DvSI/SIReS/GRE @ 2002-07-09  1:00 UTC (permalink / raw)
  To: cygwin

Hie, I'm french, so excuse me if my english is not perfect.

I've been using cygwin/Xfree since the 4.1 version of Xfree on Windows NT4 SP5,
and I enjoy its product. I try the new version which package cygwin and
Xfree 4.2.0.1 in the same setup. And I have a problem with "ln" command.

The symbolic link is ok, but not the physical link. In the old version,
I hadn't the problem. I don't know how cygwin simulate physical link,
but it's not the problem.

Here is an example of my test :

$ cd /bin
$ ls -l df*
-rwxr-xr-x    1 Admin    Aucun       39936 Jun 15  2001 df.exe

I'm trying to link the "df" command :

$ ln df.exe df1.exe
Segmentation fault (core dumped)

$ cat ln.exe.sta*
Exception: STATUS_ACCESS_VIOLATION at eip=77F348B5
eax=00000000 ebx=02423328 ecx=FFFFFFFF edx=FFFFFFFF esi=0000000C edi=0000000C
ebp=0241F440 esp=0241F414 program=d:\cygwin\bin\ln.exe
cs=001B ds=0023 es=0023 fs=0038 gs=0000 ss=0023
Stack trace:
Frame     Function  Args
0241F440  77F348B5  (00000000, 00000000, 0000000C, FFFFFFFF)
0241FD60  6107120A  (61683890, 616838B8, 0241FE20, 00401D49)
0241FE20  00401EE3  (61683890, 616838B8, 0241FEB0, 00402BB8)
0241FEB0  004032C3  (00000003, 61682738, 0A010278, 0241FEE4)
0241FF00  61005A9E  (610C095C, FFFFFFFE, 000000A0, 610C08A0)
0241FF60  61005D28  (00000000, 00000000, 807FD0F3, 80F92BCC)
0241FF90  0040EB3B  (00402BA4, 0000000A, 00000246, 8011748B)
0241FFC0  0040103D  (0022E430, 0022E3C2, 7FFDF000, 7FFDF000)
0241FFF0  77F1BA06  (00401000, 00000000, 000000B0, 00000100)
End of stack trace

$ ln -s df.exe df1.exe

$ ls -l df*
-rwxr-xr-x    1 Admin    Aucun       39936 Jun 15  2001 df.exe
lrwxrwxrwx    1 Admin    Aucun          92 Jul  5 10:55 df1.exe -> df.exe

The symbolic link is ok, but not the physical link. In the old version,
I hadn't the problem.

Christophe.


Have a good day.

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: problem with the link command : ln
  2002-07-09  1:00 problem with the link command : ln DEMOTTIE Christophe DvSI/SIReS/GRE
@ 2002-07-09  5:51 ` Corinna Vinschen
  2002-07-09  6:01 ` Dario Alcocer
  1 sibling, 0 replies; 4+ messages in thread
From: Corinna Vinschen @ 2002-07-09  5:51 UTC (permalink / raw)
  To: cygwin

On Tue, Jul 09, 2002 at 08:58:09AM +0200, DEMOTTIE Christophe DvSI/SIReS/GRE wrote:
> Hie, I'm french, so excuse me if my english is not perfect.
> 
> I've been using cygwin/Xfree since the 4.1 version of Xfree on Windows NT4 SP5,
> and I enjoy its product. I try the new version which package cygwin and
> Xfree 4.2.0.1 in the same setup. And I have a problem with "ln" command.
> 
> The symbolic link is ok, but not the physical link. In the old version,
> I hadn't the problem. I don't know how cygwin simulate physical link,
> but it's not the problem.

I tried it on XP and NT4SP6 and I had no problems creating a hard link,
neither on NTFS, nor on FAT, testing on both platforms with cygwin 1.3.12-2.

Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Developer                                mailto:cygwin@cygwin.com
Red Hat, Inc.

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: problem with the link command : ln
  2002-07-09  1:00 problem with the link command : ln DEMOTTIE Christophe DvSI/SIReS/GRE
  2002-07-09  5:51 ` Corinna Vinschen
@ 2002-07-09  6:01 ` Dario Alcocer
  1 sibling, 0 replies; 4+ messages in thread
From: Dario Alcocer @ 2002-07-09  6:01 UTC (permalink / raw)
  To: cygwin

On Tue, Jul 09, 2002 at 08:58:09AM +0200, DEMOTTIE Christophe DvSI/SIReS/GRE wrote:
> The symbolic link is ok, but not the physical link. In the old version,
> I hadn't the problem. I don't know how cygwin simulate physical link,
> but it's not the problem.
> 
> Here is an example of my test :
> 
> $ cd /bin
> $ ls -l df*
> -rwxr-xr-x    1 Admin    Aucun       39936 Jun 15  2001 df.exe
> 
> I'm trying to link the "df" command :
> 
> $ ln df.exe df1.exe
> Segmentation fault (core dumped)

Hmm, this command works for me just fine.  I'm running Cygwin 1.3.12
and fileutils 4.1.

    $ uname -a
    CYGWIN_NT-4.0 NTDEVEL 1.3.12(0.54/3/2) 2002-07-03 16:42 i686 unknown
    $ zgrep ln.exe /etc/setup/*.lst.gz
    /etc/setup/fileutils.lst.gz:usr/bin/ln.exe
    $ grep fileutils /etc/setup/installed.db
    fileutils fileutils-4.1-1.tar.bz2 0

Check if you have multiple copies of cygwin1.dll, and see if have
any aliases or scripts also named 'ln' that might be executed instead
of /bin/ln.exe.

Hope this helps.

-- 
Dario Alcocer -- Sr. Software Developer, Helix Digital Inc.
alcocer@helixdigital.com -- http://www.helixdigital.com

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: problem with the link command : ln
@ 2002-07-09  6:17 Dr. Wayne Keen
  0 siblings, 0 replies; 4+ messages in thread
From: Dr. Wayne Keen @ 2002-07-09  6:17 UTC (permalink / raw)
  To: cygwin

> Check if you have multiple copies of cygwin1.dll, and see if have
> any aliases or scripts also named 'ln' that might be executed instead
> of /bin/ln.exe.

This is a good point.  One of the first steps when a command seems to
be having problems is to do a which on the command to find out
where it is coming from, i.e.

which ln 

that in my case returns

/usr/bin/ln

See my post from a earlier today about multiple copies of cygwin1.dll.
I thought I was pretty smart about that, but I found an application,
ds9, had put not one, but maybe two different versions of cygwin1.dll
on my system.

Wayne Keen

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2002-07-09 13:00 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-07-09  1:00 problem with the link command : ln DEMOTTIE Christophe DvSI/SIReS/GRE
2002-07-09  5:51 ` Corinna Vinschen
2002-07-09  6:01 ` Dario Alcocer
2002-07-09  6:17 Dr. Wayne Keen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).