I built bash on Solaris 2. Why do globbing expansions and filename completion chop off the first few characters of each filename?

I built bash on Solaris 2. Why do globbing expansions and filename completion chop off the first few characters of each filename?


This is the consequence of building bash on SunOS 5 and linking
with the libraries in /usr/ucblib, but using the definitions
and structures from files in /usr/include.

The actual conflict is between the dirent structure in
/usr/include/dirent.h and the struct returned by the version of
`readdir' in libucb.a (a 4.3-BSD style `struct direct').

Make sure you've got /usr/ccs/bin ahead of /usr/ucb in your $PATH
when configuring and building bash. This will ensure that you
use /usr/ccs/bin/cc or acc instead of /usr/ucb/cc and that you
link with libc before libucb.

If you have installed the Sun C compiler, you may also need to
put /usr/ccs/bin and /opt/SUNWspro/bin into your $PATH before
/usr/ucb.



Home FAQ