Attempts to rebuild the IBM Rational ClearCase 7.x MVFS Linux kernel module result in the error "objdump: invalid option -- h".
You are running ClearCase 7.x on Suse Linux 10 service pack 1.
The MVFS kernel module needs to be rebuilt.
You run the make command per the instructions, this error is seen:
CC [M] /var/adm/rational/clearcase/mvfs/mvfs_src/mvfs_vfsops.o
objdump: invalid option -- h
Try `objdump --help' or `objdump --usage' for more information.
CC [M] /var/adm/rational/clearcase/mvfs/mvfs_src/mvfs_vnodeops.o
objdump: invalid option -- h.txt.
This causes the rebuild to fail every time.
The $PATH variable having /usr/local/bin before /usr/bin, thus the wrong objdump binary was being called.
Diagnosing the problem
Run the which command on objdump to determine the path being used.
On a working Suse Linux 10 system this should return with /usr/bin/objdump.
Resolving the problem
- Change the $PATH variable order to have /usr/bin before /usr/local/bin.
- Rebuild the MVFS kernel module