Nick Kew wrote: > Shawn Walker wrote: >> Nick Kew wrote: >>>> Don't do that. Use solaris ld on solaris; do not use >>>> GNU ld. >>> >>> Scroll up to the top of the thread at >>> http://opensolaris.org/jive/thread.jspa?messageID=252205 >>> The original error is that opensolaris ld doesn't work, and the fix >>> suggested in this thread has failed (bombed out) several times for me. >>> >>> Perhaps you can tell me where to get a solaris ld that works, >>> starting from 2008.05. >> >> solaris ld works just fine. I suspect your build environment and/or >> configuration are wrong. >> >> If you provide $PATH and any related CC, etc. variables, I'm certain >> that something amiss will become obvious. >> > > OK, to reproduce: > 1. Create a new virtualbox (I did this morning) > 2. Install OpenSolaris from a 2008.05 CD. > 3. pkg install SUNWgcc[1] > 4. Try to compile a HelloWorld.c > > The ld error is exactly as reported in this thread: > it was googling "SUNWprivate_4.2" that brought me here. > > Looks like a broken ld to me, as explained in this > thread and at > http://opensolaris.org/jive/thread.jspa?messageID=260598&tstart=0 > > Maybe I should try copying the binary from SXCE (where it works > fine), on the grounds that it can scarcely be more broken than > the existing one. > > [1] Or SunStudio - the error is the same either way. > I tried gcc this morning, after encountering the same > problem with sunstudio last time. >
http://blogs.sun.com/sch/entry/a_not_quite_isochronous_upgrade I've been using SunStudio to build things on os2008.05 without a problem -- I don't ever use gcc though so can't speak for it. I suspect that some additional dependency or package isn't installed -- or the gcc4 build in the repository is broken somehow. Have you tried "pkg install gcc-dev" instead? -- Shawn Walker _______________________________________________ opensolaris-code mailing list opensolaris-code@opensolaris.org http://mail.opensolaris.org/mailman/listinfo/opensolaris-code