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



On Wed, 09 Feb 2000 19:26:41 -0700, Greg Lindsay wrote:
> I'm attempting to install glib 1.2.6 in my homedir under Solaris 2.7.2, but I
> keep getting a parse error (see below).  I'm unsure if the error is related to
> the fact that siginfo.h is located in /usr/include/sys, whereas the other
> includes are in
> /usr/dist/local/share/tom/gnu/lib/gcc-lib/sparc-sun-solaris2.5/2.7.2/include. 
> If I view siginfo.h, it looks fine.  I don't see any parse errors in the
> described structure - perhaps I'm wrong.  Has anyone run into this before?  Any
> suggestions?
> 
> 
> [4:39pm] 4 [~/tools/glib-1.2.6]:sunray7% make
> make  all-recursive
> Making all in .
> /usr/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 gdate.c
> rm -f .libs/gdate.lo
> gcc -DHAVE_CONFIG_H -I. -I. -I. -DG_LOG_DOMAIN=g_log_domain_glib -g -O2 -Wall
> -D_REENTRANT -c  -fPIC -DPIC gdate.c -o .libs/gdate.lo
> In file included from
> /usr/dist/local/share/tom/gnu/lib/gcc-lib/sparc-sun-solaris2.5/2.7.2/include/ti
> e.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 /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'

Don't use a gcc compiler configured for Solaris 2.5 on Solaris 2.7. The
gcc build process fixes the broken system header files on your system.
Each OS release contains other broken header files, so the system header
files and the fixed ones are no longer in sync.

Another problem might be the ancient gcc compiler release. While it is
quite safe to use gcc-2.7.2 on Linux (mainly because the kernel can't be
build with newer gcc versions, although that problem is fixed in the 2.3
kernels), other OSes should really upgrade to gcc-2.95.2. Being a merge
between egcs and gcc, gcc-2.95.2 is considered the best gcc ever. Have a
look at http://gcc.gnu.org/ .


Erik

PS: Please don't use HTML mail. It doubles the size of the message without
    adding extra functionality.

-- 
J.A.K. (Erik) Mouw, Information and Communication Theory Group, Department
of Electrical Engineering, Faculty of Information Technology and Systems,
Delft University of Technology, PO BOX 5031,  2600 GA Delft, The Netherlands
Phone: +31-15-2785859  Fax: +31-15-2781843  Email J.A.K.Mouw@its.tudelft.nl
WWW: http://www-ict.its.tudelft.nl/~erik/





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