This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: gcc 3.0.1 does not work on Solaris 8/sparc


On Fri, 7 Sep 2001, mike stump wrote:
> > > For the one in /usr/ucb, the order of the flags becomes important.
> > >
> > > /usr/bin/ln -s -f /usr/bin somelink  (works)
> > > /usr/bin/ln -f -s /usr/bin somelink  (works)
> > > /usr/ucb/ln -s -f /usr/bin somelink  (does not work)
> > > /usr/ucb/ln -f -s /usr/bin somelink  (works)

Um, what Solaris versions is that valid for? 

Here's what I get for Solaris 8/x86 (and 8/sparc):

rfhpc8317% touch /tmp/x
rfhpc8317% /usr/bin/ln -s -f /etc/group /tmp/x
ln: cannot create /tmp/x: File exists
rfhpc8317% /usr/bin/ln -f -s /etc/group /tmp/x
ln: cannot create /tmp/x: File exists
rfhpc8317% /usr/ucb/ln -f -s /etc/group /tmp/x
ln: /tmp/x: File exists
rfhpc8317% /usr/ucb/ln -s -f /etc/group /tmp/x
Usage: ln [-f] [-s] f1
       ln [-f] [-s] f1 f2
       ln [-f] [-s] f1 ... fn d1


The workaround I suggested before, involving rm(1), works:

rfhpc8317% rm /tmp/x
rfhpc8317% /usr/bin/ln -f -s /etc/group /tmp/x
rfhpc8317% ls -la /tmp/x
lrwxrwxrwx   1 feyrer   bedienst      10 Sep  8 02:32 /tmp/x -> /etc/group


 - Hubert

-- 
Want to get a clue on IPv6 but don't know where to start? Try this:
* Basics -> http://www.onlamp.com/pub/a/onlamp/2001/05/24/ipv6_tutorial.html
* Setup  -> http://www.onlamp.com/pub/a/onlamp/2001/06/01/ipv6_tutorial.html 
Of course with your #1 IPv6 ready operating system -> http://www.NetBSD.org/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]