Re: Problems compiling gnome-libs



Steve Haslam wrote:
> 
> On Wed, Mar 17, 1999 at 04:44:46PM +0100, Johan Groth wrote:
> > I can't compile gnome-libs because it can't find libz.so when I
> > configure. I don't have root access so I had to install libz in a
> > nonstandard dir (i.e. not /lib, /usr/lib or /usr/local/lib). Is there a
> > way I can configure where I have installed libz?
> 
> set the environment variables CPPFLAGS and LIBS before running configure.
> e.g. from bash:
> 
> LIBS=-L$mydir/lib CPPFLAGS=-I$mydir/include ./configure ....
> 
> The -I and -L bits are necessary :} (I think.)

I tried that in sh (don't have bash on Solaris) and the answer I get is:

$ LIBS=/home/eingrot/gnome/lib ./configure --prefix=/home/eingrot/gnome
--with-gtk-prefix=/home/eingrot/gnome
loading cache ./config.cache
checking host system type... sparc-sun-solaris2.6
checking target system type... sparc-sun-solaris2.6
checking build system type... sparc-sun-solaris2.6
checking for a BSD compatible install... ./install-sh -c
checking whether build environment is sane... yes
checking whether make sets ${MAKE}... yes
checking for working aclocal... found
checking for working autoconf... found
checking for working automake... found
checking for working autoheader... found
checking for working makeinfo... found
checking for gcc... gcc
checking whether the C compiler (gcc  ) works... no
configure: error: installation or configuration problem: C compiler
cannot create executables.

When I look in config.log I see the following:
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

configure:635: checking host system type
configure:656: checking target system type
configure:674: checking build system type
configure:709: checking for a BSD compatible install
configure:762: checking whether build environment is sane
configure:819: checking whether make sets ${MAKE}
configure:865: checking for working aclocal
configure:878: checking for working autoconf
configure:891: checking for working automake
configure:904: checking for working autoheader
configure:917: checking for working makeinfo
configure:948: checking for gcc
configure:1061: checking whether the C compiler (gcc  ) works
configure:1077: gcc -o conftest    conftest.c /home/eingrot/gnome/lib
1>&5
/home/eingrot/gnome/lib: file not recognized: File format not recognized
collect2: ld returned 1 exit status

As you can see the LIBS= part is missing! How do I fix that?

///Johan

--
! Ericsson Infotech AB	    ! ECN: 863 3554                         !
! Johan Groth KS/EIN/T/R    ! Phone: +46 54 19 3554                 !
! Box 1038                  ! Fax:   +46 54 19 3466                 !
! Lagergrens gata 3	    ! Email: Johan.Groth(at)ein.ericsson.se !
! S-651 15 Karlstad, Sweden ! Email: Johan.Groth(at)ks.ericsson.se  !



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]