Solaris 9 build (configure) error's
Pete Naylor
pete@geckoworks.com
Wed, 14 Jul 2004 09:42:01 -0700
Hi Bryan.
Bryan Loniewski wrote...
> I'm trying to build lsh-1.4.3 on Solaris 9 sparc 64. I'm failing during the configure
> script with the error:
>
> "checking size of short... configure: error: cannot compute sizeof (short), 77"
>
> When I check the config.log for more details I notice the additional error:
>
> ld: fatal: library -lutil: not found
> ld: fatal: File processing errors. No output written to conftest
> collect2: ld returned 1 exit status
>
> and this is true I don't have the libutil library. Do I really need this library, and if
> so, is building glibc the only way to get it? I tried taking out the library and the
> function openpty is what's needed. Are there other workarounds?
>
> I've noticed some Solaris questions on the mailing list, and none dealing with the
> configure step, how did you guys get past it?
I was experiencing the same error. I was able to avoid it by not
specifying paths for all the required libraries etc as options on the
command line with configure, instead setting them in my LDFLAGS and
CPPFLAGS environment variables prior to running configure. For me, it
seemed that the runtime linking paths (liboop in particular) etc just
didn't work into the configuration properly unless I did it this way. It
was discussed on this list early last year, but I don't think an
explanation or solution became clear.