Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!uwm.edu!uakari.primate.wisc.edu!ginosko!uunet!bischeops!nick From: nick@bischeops.UUCP (Nick Bender) Newsgroups: comp.sys.hp Subject: Re: Long filenames on HPUX 6.2 Summary: watch out for ar, SCCS, RCS... Message-ID: <380@bischeops.UUCP> Date: 12 Oct 89 21:17:18 GMT References: <4243@yunexus.UUCP> <3935@helios.ee.lbl.gov> Lines: 70 In article <3935@helios.ee.lbl.gov>, milburn@me10.lbl.gov (John Milburn) writes: > In article <4243@yunexus.UUCP> mathieu@yunexus.UUCP (Pierre Mathieu) writes: > >therefore considering converting our system to long > >filenames. Before I do this however, I would like to > >hear from people who have done it on their systems > > We did this as soon as it was possible, and have experienced no ill > effects. If you intend to integrate hp-ux machines into a nfs > environment including servers from other vendors, it is imperative that > you change. > We also did this on our HPs since we also have Suns and a Pyramid. Unfortunately some utilities didn't grok long names. The specific instance I uncovered is that ar only handles 14 char filenames. Example: % cat main.c main () { func (); } % cat longlonglonglong.c #include func () { printf ("one\n"); } % cc -c longlonglonglong.c % cc -c main.c % ar rv libnew.a longlonglonglong.o a - longlonglonglong.o ar: creating libnew.a % cc -o main main.o libnew.a % ./main one % ar vt libnew.a rw-r--r-- 214/ 20 160 Oct 12 17:00 1989 longlonglonglo % vi longlonglonglong.c .... % cat longlonglonglong.c #include func () { printf ("two\n"); } % cc -c longlonglonglong.c % ar ruv libnew.a longlonglonglong.o a - longlonglonglong.o % ar tv libnew.a rw-r--r-- 214/ 20 160 Oct 12 17:00 1989 longlonglonglo rw-r--r-- 214/ 20 160 Oct 12 17:06 1989 longlonglonglo % cc -o main main.o libnew.a % ./main one % Nice, huh? Not only do you get the wrong module, but the library size would grow indefinately. [Hey HP: this is still broken under 6.5. Will it be fixed for 7.0?] After this little gotcha I didn't bother testing RCS & SCCS, but I would bet they break also. -Nick