glib not building on Solaris 64Bit w/ Workshop 5.0 cc



Hi all,

This should probably be a faq since it's so prevalent in google, though
no-one seems to have come up with a solution.

I'm trying to build glib 1.3.5 using:
    cd /var/tmp
    rm -rf /glib
    rm -rf glib-1.3.5/
    mkdir /glib
    untgz /usr/local/src/graphics/gtk/glib-1.3.5.tar.gz
    cd glib-1.3.5/
    ./configure --prefix=/glib
    make
    make check
    make install
# echo $CC
cc -xtarget=ultra -xarch=v9 -xcode=pic32

I want to build a 64 bit library and it keeps dying on either the inline
declarations:


mkdir .libs
cc -xtarget=ultra -xarch=v9 -xcode=pic32 -DHAVE_CONFIG_H -I. -I. -I. 
-DG_LOG_DOMAIN=g_log_domain_glib -DG_ENABLE_DEBUG -DG_DISABLE_DEPRECATED 
-DGLIB_COMPILATION -g -D_REENTRANT -c ghash.c  -KPIC -DPIC -o ghash.o
"ghash.c", line 107: warning: argument #3 is incompatible with prototype:
        prototype: pointer to function(pointer to void) returning void : 
"./ghash.h", line 44
        argument : pointer to void
"ghash.c", line 107: warning: argument #4 is incompatible with prototype:
        prototype: pointer to function(pointer to void) returning void : 
"./ghash.h", line 44
        argument : pointer to void
"ghash.c", line 417: warning: argument #2 is incompatible with prototype:
        prototype: pointer to function(pointer to void) returning void : 
"ghash.c", line 68
        argument : pointer to void
"ghash.c", line 417: warning: argument #3 is incompatible with prototype:
        prototype: pointer to function(pointer to void) returning void : 
"ghash.c", line 68
        argument : pointer to void
"ghash.c", line 448: warning: operands have incompatible pointer types: op "!="
"ghash.c", line 471: warning: operands have incompatible pointer types: op "!="
"ghash.c", line 504: operands have incompatible types:
         pointer to function(pointer to void) returning void ":" pointer to void
"ghash.c", line 505: operands have incompatible types:
         pointer to function(pointer to void) returning void ":" pointer to void
"ghash.c", line 512: operands have incompatible types:
         pointer to function(pointer to void) returning void ":" pointer to void
"ghash.c", line 513: operands have incompatible types:
         pointer to function(pointer to void) returning void ":" pointer to void
"ghash.c", line 544: warning: operands have incompatible pointer types: op "!="
cc: acomp failed for ghash.c
*** Error code 1
make: Fatal error: Command failed for target `ghash.lo'
Current working directory /var/tmp/glib-1.3.5
*** Error code 1
make: Fatal error: Command failed for target `all-recursive'
Current working directory /var/tmp/glib-1.3.5
*** Error code 1
make: Fatal error: Command failed for target `all-recursive-am'



or if I set -Dinline= I get this:



cc -xtarget=ultra -xarch=v9 -xcode=pic32 -DHAVE_CONFIG_H -I. -I. -I. 
-DG_LOG_DOMAIN=g_log_domain_glib -DG_ENABLE_DEBUG -DG_DISABLE_DEPRECATED 
-DGLIB_COMPILATION -Dinline= -D_REENTRANT -c ghash.c  -KPIC -DPIC -o ghash.o
"ghash.c", line 107: warning: argument #3 is incompatible with prototype:
        prototype: pointer to function(pointer to void) returning void : 
"./ghash.h", line 44
        argument : pointer to void
"ghash.c", line 107: warning: argument #4 is incompatible with prototype:
        prototype: pointer to function(pointer to void) returning void : 
"./ghash.h", line 44
        argument : pointer to void
"ghash.c", line 417: warning: argument #2 is incompatible with prototype:
        prototype: pointer to function(pointer to void) returning void : 
"ghash.c", line 68
        argument : pointer to void
"ghash.c", line 417: warning: argument #3 is incompatible with prototype:
        prototype: pointer to function(pointer to void) returning void : 
"ghash.c", line 68
        argument : pointer to void
"ghash.c", line 448: warning: operands have incompatible pointer types: op "!="
"ghash.c", line 471: warning: operands have incompatible pointer types: op "!="
"ghash.c", line 504: operands have incompatible types:
         pointer to function(pointer to void) returning void ":" pointer to void
"ghash.c", line 505: operands have incompatible types:
         pointer to function(pointer to void) returning void ":" pointer to void
"ghash.c", line 512: operands have incompatible types:
         pointer to function(pointer to void) returning void ":" pointer to void
"ghash.c", line 513: operands have incompatible types:
         pointer to function(pointer to void) returning void ":" pointer to void
"ghash.c", line 544: warning: operands have incompatible pointer types: op "!="
cc: acomp failed for ghash.c
*** Error code 1
make: Fatal error: Command failed for target `ghash.lo'
Current working directory /var/tmp/glib-1.3.5
*** Error code 1
make: Fatal error: Command failed for target `all-recursive'
Current working directory /var/tmp/glib-1.3.5
*** Error code 1
make: Fatal error: Command failed for target `all-recursive-am'


Note in the above it has the -Dinline= which came from:

env CFLAGS=-Dinline= ./configure --prefix=/glib

which is what the ethereal people used.

What else can I try to resolve this problem? It's stopping me building
gtk+ and therefore the whole gnome and gimp tools.

I don't see why inlines are being used and such dependancies on the
continual use of the same compiler (who uses $exec_prefix in real life?)
is built into the glib code. Some people have posted about it but it
seems to be a showstopper for so many others. Any insights welcome.

Thanks,
Mark.





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