g-wrap Compile issues on Solaris 10

Derek Atkins warlord at MIT.EDU
Tue Jul 11 11:55:12 EDT 2006


g-wrap's make check is known not to work.  Just ignore it.
I couldn't get 1.9.6 to work on Solaris 10 due to LibFFI..
But 1.3.4 works just fine.

-derek

Quoting Charles Gagnon <charlesg at unixrealm.com>:

> I have issues compiling g-wrap still and I have not been able to get
> any help. Are there g-warp experts on this list? With 2.0.0 coming
> out, I will really need to upgrade soon. Should I focus on
> g-wrap-1.3.4 or g-wrap-1.9.6?.
>
> I have a Solaris 10 SPARC box, compiling with gcc 3.4.43.
>
> I ran into a problem compiled g-wrap-1.3.4 (downloaded from the
> gnucash site) on a Solaris 10 box using gcc 3.4.3. Everything goes
> up to test:
>
> Making all in test
> make[2]: Entering directory `/usr/local/src/g-wrap-1.3.4/test'
> LD_LIBRARY_PATH=/usr/local/src/g-wrap-1.3.4/test/..:/usr/local/src/g-wrap-1.3.4/test/..:/opt/SUNWspro/lib:/usr/local/BerkeleyDB.4.4/lib:/usr/lib:/usr/openwin/lib:/usr/dt/lib:/usr/lib/X11:/usr/sfw/lib:/usr/local/lib:/usr/local/lib/perl5/5.6.0/sun4-solaris/CORE:/usr/local/ssl/lib 
> \
> guile -c \
>  "(debug-enable 'backtrace) \
>           (debug-enable 'debug) \
>           (read-enable 'positions) \
>           (set! %load-path (cons 
> \"/usr/local/src/g-wrap-1.3.4/test/..\" %load-path)) \
>           (use-modules (g-wrap)) \
>           (primitive-load \"./gw-test-enumeration-spec.scm\") \
>           (gw:generate-wrapset \"gw-test-enumeration\")"
> WARNING: (g-wrap): imported module (g-wrap sorting) overrides core 
> binding `sort'
> Backtrace:
> In current input:
>   1: 0* [primitive-load "./gw-test-enumeration-spec.scm"]
> In ./gw-test-enumeration-spec.scm:
>   7: 1* (let* ((ws #)) (gw:wrapset-set-guile-module! ws (quote #)) ...)
>  20: 2* (let* ((enum #)) (gw:enum-add-value! enum "GW_TEST_ENUM_ZERO" 
> ...) ...)
>  20: 3* (gw:wrap-enumeration ws (quote <gw-test-enum>) "enum GWTestEnum")
>
> ./gw-test-enumeration-spec.scm:20:15: In expression 
> (gw:wrap-enumeration ws (quote <gw-test-enum>) ...):
> ./gw-test-enumeration-spec.scm:20:15: Unbound variable: gw:wrap-enumeration
> make[2]: *** [gw-test-enumeration.c] Error 1
> make[2]: Leaving directory `/usr/local/src/g-wrap-1.3.4/test'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/usr/local/src/g-wrap-1.3.4'
> make: *** [all] Error 2
>
> I tried g-wrap-1.9.6 and I get other errors:
>
> make[4]: Entering directory `/usr/local/src/g-wrap-1.9.6/libffi'
> /bin/bash ./libtool --tag=CC --mode=link gcc -Wall -g -fexceptions
> -g -O2  -L/usr/local/lib -R/usr/local/lib -o libffi.la -rpath
> /usr/local/lib -version-info `grep -v '^#' ./libtool-version`
> src/debug.lo src/prep_cif.lo src/types.lo src/raw_api.lo
> src/java_raw_api.lo     src/sparc/ffi.lo src/sparc/v8.lo
> src/sparc/v9.lo
> gcc -shared -Wl,-h -Wl,libffi.so.4 -o .libs/libffi.so.4.0.1
> src/.libs/debug.o src/.libs/prep_cif.o src/.libs/types.o
> src/.libs/raw_api.o src/.libs/java_raw_api.o src/sparc/.libs/ffi.o
> src/sparc/.libs/v8.o src/sparc/.libs/v9.o  -R/usr/local/lib
> -L/usr/local/lib -lc
> ld: fatal: relocation error: R_SPARC_32: file src/sparc/.libs/v8.o:
> symbol <unknown>: offset 0xfeed5a8e is non-aligned
> ld: fatal: relocation error: R_SPARC_32: file src/sparc/.libs/v8.o:
> symbol <unknown>: offset 0xfeed73b9 is non-aligned
> ld: fatal: relocation error: R_SPARC_32: file src/sparc/.libs/v8.o:
> symbol <unknown>: offset 0xfeed7b0e is non-aligned
> collect2: ld returned 1 exit status
> make[4]: *** [libffi.la] Error 1
> make[4]: Leaving directory `/usr/local/src/g-wrap-1.9.6/libffi'
> make[3]: *** [all-recursive] Error 1
> make[3]: Leaving directory `/usr/local/src/g-wrap-1.9.6/libffi'
> make[2]: *** [all] Error 2
> make[2]: Leaving directory `/usr/local/src/g-wrap-1.9.6/libffi'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/usr/local/src/g-wrap-1.9.6'
> make: *** [all] Error 2
>
> Any ideas?
>
> --
> Charles Gagnon                   | My views are my views and they
> http://unixrealm.com             | do not represent those of anybody
> charlesg at unixrealm.com        | but me.
>
> _______________________________________________
> gnucash-user mailing list
> gnucash-user at gnucash.org
> https://lists.gnucash.org/mailman/listinfo/gnucash-user
> -----
> Please remember to CC this list on all your replies.
> You can do this by using Reply-To-List or Reply-All.
>



-- 
       Derek Atkins, SB '93 MIT EE, SM '95 MIT Media Laboratory
       Member, MIT Student Information Processing Board  (SIPB)
       URL: http://web.mit.edu/warlord/    PP-ASEL-IA     N1NWH
       warlord at MIT.EDU                        PGP key available



More information about the gnucash-user mailing list