Problems Compiling glib on Solaris 5.7

Problems Compiling glib on Solaris 5.7

Post by Todd R. Brow » Sat, 30 Sep 2000 04:00:00



Hi, all,

  This may be slightly OT, but I couldn't find a glib/gtk newsgroup, so
I'm hoping to find the answer here.  I'm trying to compile and install
glib (so I can compile/install gtk, so I can eventually compile/install
gimp) and I can't get it to compile.  The configure script runs ok, but
when I try to make it, I get the following error:

gcc -DHAVE_CONFIG_H -I. -I. -I. -DG_LOG_DOMAIN=g_log_domain_glib -g -O2
-Wall -D_REENTRANT -c gdate.c  -fPIC -DPIC -o .libs/gdate.lo
In file included from
/usr/tools/gcc/lib/gcc-lib/sparc-sun-solaris2.5.1/2.7.2/include/time.h:90,

                 from gdate.c:37:
/usr/include/sys/siginfo.h:74: parse error before `pthread_attr_t'
/usr/include/sys/siginfo.h:74: warning: no semicolon at end of struct or
union
/usr/include/sys/siginfo.h:76: parse error before `}'
*** Error code 1
make: Fatal error: Command failed for target `gdate.lo'
Current working directory /u/tbrown/src/dl/glib-1.2.8
*** Error code 1
make: Fatal error: Command failed for target `all-recursive'
Current working directory /u/tbrown/src/dl/glib-1.2.8
*** Error code 1
make: Fatal error: Command failed for target `all-recursive-am'

Any ideas?  I glanced through time.h, and siginfo.h, and I couldn't see
anything obvious.  Your help would be greatly appreciated.

                Cheers,
                  Todd

 
 
 

Problems Compiling glib on Solaris 5.7

Post by Drazen Kac » Sat, 30 Sep 2000 04:00:00



> gimp) and I can't get it to compile.  The configure script runs ok, but
> when I try to make it, I get the following error:

> gcc -DHAVE_CONFIG_H -I. -I. -I. -DG_LOG_DOMAIN=g_log_domain_glib -g -O2
> -Wall -D_REENTRANT -c gdate.c  -fPIC -DPIC -o .libs/gdate.lo
> In file included from
> /usr/tools/gcc/lib/gcc-lib/sparc-sun-solaris2.5.1/2.7.2/include/time.h:90,

You have a broken gcc instalation. Your gcc version is 2.7.2 and it was
configured for Solaris 2.5.1. Get a newer version of gcc and configure
it for your Solaris 7 system.

--
 .-.   .-.    I don't work for my employer.
(_  \ /  _)



 
 
 

1. Problems compiling sniffit on Solaris 5.7

Hello....

I am having a problem compiling sniffit 0.3.7 on my Sun box I keep getting
this error....

any ideas?

gcc -w -O2 -c

sn_resolv.c -I./libpcap -L./libpcap -DHAVE_SHMGET=1 -DHAVE_ATEXIT=1 -DSIZEOF
_UNSIGNED_SHORT_INT=2 -DSIZEOF_UNSIGNED_LONG_INT=4 -DUSE_32_LONG_INT=1 -DSUN
OS=1 -DHAVE_LIBSOCKET=1 -DHAVE_LIBNSL=1
sn_resolv.c: In function `getaddrbyname':
sn_resolv.c:13: `INADDR_NONE' undeclared (first use in this function)
sn_resolv.c:13: (Each undeclared identifier is reported only once
sn_resolv.c:13: for each function it appears in.)
*** Error code 1
make: Fatal error: Command failed for target `sn_resolv.o'

BTW it works fine on a Linux box...

Thanks..

--

Rob Morin(Mr.Legacy)
System Administrator
Montreal, Canada

2. Waiting for child process under BSD

3. Java 1.3 socket problem in 420R with Solaris 5.7

4. hardware problems with adaptec adatator : scsi 2740

5. Compilation Problem: solaris 5.7 and Sun Workshop 5.0

6. Using strtok()

7. Problem with Solaris 5.7 and xmcd

8. weird ....

9. 20GB HDD and Solaris 5.7 for intell makes problem

10. Performance problems with solaris 5.7

11. xterm or less problem between Solaris 5.7 and Slackware 2.0.36

12. PDF Printing problem on Solaris 5.7

13. purify problems with X11 libs on Solaris 5.7