> Carlos Villegas wrote:
> > I've seen this same error (ELF error) with other software on solaris while
> > using gcc, the solution is to have /usr/ccs/bin in your path BEFORE
> > /opt/sfw/bin, so the linker should be /usr/ccs/bin/ld not gnu's. I don't
> > know why this happens, but it might fix your problem.
> 
> I have /usr/ucb/ld and /usr/ccs/bin/ld, and no /opt/sfw. Which one is 
> the correct one? How does one find out what package a file belongs to?

I've used succesfully (although I've never tried compiling ipf) 
/usr/ccs/bin/ld, and I think that's the one you should try, you should 
also use /usr/ccs/bin/make instead of GNU make (I think that's somewhere 
in the README's of ipf). Maybe Darren knows better what the difference 
is, I'm just guessing.

Use pkgchk to find out which package has a file (use all the path):

pkgchk -l -p /usr/ucb/ld

I did it, and this is the result for those two ld's:

/usr/ucb/ld is in SUNWscpu
/usr/ccs/bin/ld is in SUNWtoo

Carlos


Reply via email to