Re: [gtk-list] Re: glib install problem on solaris 2.7.2



On Thu, 10 Feb 2000 15:29:12 -0700 (MST), Greg Lindsay wrote:
> I actually changed my path so that /usr/include/sys/ occurred before the
> blahblah.../gcc-lib/sparc-sun-solaris2.5/2.7.2 directory, and successfully made
> it past the siginfo.h 

Hmm, sounds like a final resort hack ;-)

> error.  However, I am now presented with a problem in gutils.c:
> 
> [59] gregoryl@sunray7: make
> make  all-recursive
> Making all in .
> /bin/sh ./libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I.
> -DG_LOG_DOMAIN=g_log_domain_glib    -g -O2 -Wall  -D_REENTRANT -c gutils.c
> rm -f .libs/gutils.lo
> gcc -DHAVE_CONFIG_H -I. -I. -I. -DG_LOG_DOMAIN=g_log_domain_glib -g -O2 -Wall
> -D_REENTRANT -c  -fPIC -DPIC gutils.c -o .libs/gutils.lo
> gutils.c: In function `g_get_any_init':
> gutils.c:477: too many arguments to function `getpwuid_r'
> gutils.c:477: warning: assignment makes integer from pointer without a cast
> gutils.c:498: warning: int format, uid_t arg (arg 4)
> *** Error code 1
> make: Fatal error: Command failed for target `gutils.lo'
> Current working directory /home/gregoryl/tools/glib-1.2.6
> *** Error code 1
> make: Fatal error: Command failed for target `all-recursive'
> Current working directory /home/gregoryl/tools/glib-1.2.6
> *** Error code 1
> make: Fatal error: Command failed for target `all-recursive-am'

This can still be a problem with the compiler, or a broken thread
implementation. Try configuring with --disable-threads (not sure if this
is correct, use configure --help to find out).

> I tried upgrading gcc to version 2.95.2 as suggested, but it also failed on
> build with this error:
> 
> gcc -c  -DIN_GCC -DSVR4  -g -O2     -I. -I.. -I. -I./.. -I./../config
> -I./../../include jcf-write.c
> jcf-write.c: In function `make_class_file_name':
> jcf-write.c:3023: too few arguments to function `mkdir'
> *** Error code 1
> make: Fatal error: Command failed for target `jcf-write.o'
> Current working directory /home/gregoryl/tools/gcc-2.95.2/gcc/java
> *** Error code 1
> make: Fatal error: Command failed for target `jc1'
> Current working directory /home/gregoryl/tools/gcc-2.95.2/gcc
> *** Error code 1
> make: Fatal error: Command failed for target `all-gcc'
> 
> So, it seems I'm having no luck.  The build processes for both glib and gcc
> proceeded quite a ways before exiting.  I feel I'm close to getting it, but
> this is where I'm stuck.

Don't compile the Java front-end when you don't need it. I compiled gcc (on
SunOS 4.1.4, IRIX 5.3, IRIX 6.x) with:

  mkdir build
  cd build
  ../gcc-2.95.2/configure --prefix=/opt --exec-prefix=/opt/sun4 \
    --enable-threads --enable-languages='c,c++,objc' \
    --with-gnu-ld=/opt/bin/gld --with-gnu-as=/opt/bin/gas \
    sparc-sun-sunos4.1.4 
  make bootstrap
  make install

Or download a precompiled binary from Sun at http://www.sunfreeware.com/ .


Erik

-- 
A towel has immense psychological value.
 -- Douglas Adams, The Hitch Hikers Guide to the Galaxy





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