Suid_wrapper: Invalid cross-device link

I am installing RT-1.0.7 on RH6.2.

Make install stops here:

rm -f /var/www/cgi-bin/rt/webrt.cgi
ln: cannot create hard link ‘/var/www/cgi-bin/rt/webrt.cgi’
to ‘/home/rt/bin/suid_wrapper’: Invalid cross-device link

/var and /home are on different partitions on the same physical
disk. Is this the problem?

If so, can anyone help on how to solve it?

Frances

Frances Russell writes:

I am installing RT-1.0.7 on RH6.2.

Make install stops here:

rm -f /var/www/cgi-bin/rt/webrt.cgi
ln: cannot create hard link ‘/var/www/cgi-bin/rt/webrt.cgi’
to ‘/home/rt/bin/suid_wrapper’: Invalid cross-device link

/var and /home are on different partitions on the same physical
disk. Is this the problem?

If so, can anyone help on how to solve it?

Frances

The fact that they’re on different partitions is the problem. The only real
solution to the problem is to use a soft link (which can span partitions),
or to install it in such a way that the program and the suid_wrapper are on
the same partition. if you want to change it to a soft link, the following
snippet should work from the command line (in the dir that the Makefile is
in:

perl -pi.old -e “s/ln /ln -s /g;” Makefile

Disclaimer: I have no idea how this will affect execution. I figure they
were designed as hardlinks for a reason, especially since the rest of the
links are soft. They’re prolly hard links cause of the default way apache
handles links (it doesn’t follow soft links by default IIRC, though that is
a config-able option).

Shane Allen shane@tacni.net

Thanks for the quick answer - I thought the problem was the
separate partitions.

I have installed everything on the same partition because I’d rather
not mess with the link - not knowing for sure what else might be
affected.

It means a re-think in how I usually partition my disks; I’d rather
give the document root (with cgi-bin under it), its own partition and
keep other stuff off it.

FrancesOn 19 May 01, at 7:39, Shane Allen wrote:

Frances Russell writes:

I am installing RT-1.0.7 on RH6.2.

Make install stops here:

rm -f /var/www/cgi-bin/rt/webrt.cgi
ln: cannot create hard link ‘/var/www/cgi-bin/rt/webrt.cgi’
to ‘/home/rt/bin/suid_wrapper’: Invalid cross-device link

/var and /home are on different partitions on the same physical
disk. Is this the problem?

If so, can anyone help on how to solve it?

Frances

The fact that they’re on different partitions is the problem. The only real
solution to the problem is to use a soft link (which can span partitions),
or to install it in such a way that the program and the suid_wrapper are on
the same partition. if you want to change it to a soft link, the following
snippet should work from the command line (in the dir that the Makefile is
in:

perl -pi.old -e “s/ln /ln -s /g;” Makefile

Disclaimer: I have no idea how this will affect execution. I figure they
were designed as hardlinks for a reason, especially since the rest of the
links are soft. They’re prolly hard links cause of the default way apache
handles links (it doesn’t follow soft links by default IIRC, though that is
a config-able option).


Shane Allen shane@tacni.net


rt-users mailing list
rt-users@lists.fsck.com
http://lists.fsck.com/mailman/listinfo/rt-users

I am installing RT-1.0.7 on RH6.2.

 Make install stops here:
 
 rm -f /var/www/cgi-bin/rt/webrt.cgi
 ln: cannot create hard link '/var/www/cgi-bin/rt/webrt.cgi' \
 to '/home/rt/bin/suid_wrapper':  Invalid cross-device link
 
 /var and /home are on different partitions on the same physical 
 disk. Is this the problem? 

That’s exactly it. Hard links can’t span filesystems. You may try making it a symbolic link, or change where you’re installing things.

 If so, can anyone help on how to solve it?
 
 Frances

-Feargal.

_/_/_/ _/_/_/  _/_/_/  Feargal Reilly,

_/ _/ / / Systems Administrator,
/ / //// The Communications Interactive Agency.
//
/ //
/ _/ _/ Phone: +353-86-8157621.