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]
Other format: [Raw text]

Running ranlib after installation - okay or not?


We currently perform the following sequence of commands as part of the 
installation (-m 444 being the default on current FreeBSD systems).

  install -m 444 ./libgcc.a /prefix/lib/gcc/i386-portbld-freebsd5.4/3.4.5/gcc/i386-portbld-freebsd5.4/3.4.5/
  ranlib /prefix/lib/gcc/i386-portbld-freebsd5.4/3.4.5/gcc/i386-portbld-freebsd5.4/3.4.5/libgcc.a

This works fine when running as root, but when doing an installation as
user, installation fails:
 
  ranlib: unable to copy file '/prefix/lib/gcc/i386-portbld-freebsd5.4/3.4.5/gcc/i386-portbld-freebsd5.4/3.4.5/libgcc.a' reason: Permission denied
  gmake[2]: *** [install] Error 1


I believe installing libraries with permissions 444 ought to be okay,
as is for ranlib to refuse working on files which are not writeable.

Does anyone disagree (and if not, have suggestions how to address this
in GCC)?

Gerald


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