Building g-wrap with Fedora Core 3

Derek Atkins warlord at MIT.EDU
Tue Aug 30 14:21:57 EDT 2005


I suggest you remove /usr/local/*

You've somehow got some remnants of g-wrap in /usr/local, and the configure
script is finding those broken remnants instead of the RPM.  I have no idea
what other remnants of whatever you have in /usr/local.  (FTR, this is why I
always suggest that you install into /opt/<package> instead of /usr/local).

FC3 provides all the dependencies you should need to build gnucash -- 
even g2. There's nothing that you should need to install/build that you 
can't get via
yum or apt-get.

-derek

Quoting Andrew Wood <andrew at gn.apc.org>:

> Hi Derek,
>
> Before I trash my system - assuming I've not already - then you're 
> suggesting I remove /usr/local/share/guile/* ?
>
> [root at localhost share]# ls -info guile
> total 24
> 883287 drwxr-xr-x  6 0 4096 Aug 30 14:43 1.6
> 713958 drwxr-xr-x  6 0 4096 Aug 30 14:43 ..
> 883286 drwxr-xr-x  3 0 4096 Aug 30 14:43 .
>
> Andrew
>
> Derek Atkins wrote:
>> You've got garbage installed:
>>
>> configure:13539: checking for g-wrap-config
>> configure:13557: found /usr/local/bin/g-wrap-config
>> configure:13570: result: /usr/local/bin/g-wrap-config
>> configure:13601: checking for g-wrap - 1.3.3 <= version < 99.99.99
>> configure:13643: result: yes
>> configure:13671: checking for g-wrap compile args
>> configure:13674: result: -I /usr/local/include/g-wrap
>> configure:13677: checking for g-wrap link args
>> configure:13680: result: -L/usr/local/lib -lgwrap-wct -lgwrap-glib
>> configure:13683: checking for g-wrap module directory
>> configure:13687: result: /usr/local/share/guile
>> configure:13737: checking if g-wrap works
>> configure:13742: error: g-wrap could not run.  Perhaps missing slib?
>>
>> It shouldn't be finding this in /usr/local.  Try removing your 
>> /usr/local and
>> start over.
>>
>> -derek
>>
>> PS: in the future please continue to CC gnucash-devel on replies.
>>
>> Quoting Andrew Wood <andrew at gn.apc.org>:
>>
>>> Hmmm config.log, well it says:
>>>
>>> configure:13687: result: /usr/local/share/guile
>>> configure:13737: checking if g-wrap works
>>> configure:13742: error: g-wrap could not run.  Perhaps missing slib?
>>>
>>> Which is stange as there is a directory called slib in my current 
>>> directory.
>>>
>>> Andrew
>>>
>>> Attached config.log with all the details
>>>
>>>
>>>
>>> Derek Atkins wrote:
>>>
>>>> Well, what does config.log say?
>>>> It's possible that if you tried to hand-install any dependencies you've
>>>> over-written what RH distributes.
>>>>
>>>> -derek
>>>>
>>>> Quoting Andrew Wood <andrew at gn.apc.org>:
>>>>
>>>>> Thanks Derek,
>>>>>
>>>>> Well, some progress! But bombs out now at:
>>>>>
>>>>> checking for guile headers... -I/usr/local/include
>>>>> checking whether guile works... yes
>>>>> checking for guile... /usr/local/bin/guile
>>>>> checking for guile - 1.6 <= version < 99.99.99... yes
>>>>> checking for g-wrap-config... /usr/local/bin/g-wrap-config
>>>>> checking for g-wrap - 1.3.3 <= version < 99.99.99... yes
>>>>> checking for g-wrap compile args... -I /usr/local/include/g-wrap
>>>>> checking for g-wrap link args... -L/usr/local/lib -lgwrap-wct 
>>>>> -lgwrap-glib
>>>>> checking for g-wrap module directory... /usr/local/share/guile
>>>>> checking if g-wrap works... ERROR: no code for module (g-wrap)
>>>>> configure: error: g-wrap could not run.  Perhaps missing slib?
>>>>> [andrew at localhost gnucash]$
>>>>>
>>>>> The strange thing is that I have slib install?
>>>>>
>>>>> Andrew
>>>>>
>>>>>
>>>>> Derek Atkins wrote:
>>>>>
>>>>>> g-wrap on FC3 is easy:  yum install g-wrap-devel
>>>>>>
>>>>>> -derek
>>>>>>
>>>>>> Quoting Andrew Wood <andrew at gn.apc.org>:
>>>>>>
>>>>>>> Dear all,
>>>>>>>
>>>>>>> When people started developing GNUcash did you find it as 
>>>>>>> frustrating as me?! I'm trying to build the gnome 2 branch.
>>>>>>>
>>>>>>> I'm having problems building g-wrap (g-wrap-1.3.4). I pull down 
>>>>>>> the srpm from 
>>>>>>> http://www.gnucash.org/pub/g-wrap/redhat-8.x/SRPMS/ and then, 
>>>>>>> well, see below. I'm running RH Fedora Core 3 and I've 
>>>>>>> previously built glibe.
>>>>>>>
>>>>>>> Thanks in advance and apologies if this all seems a bit dumb!
>>>>>>>
>>>>>>> Andrew Wood
>>>>>>> 109 Hurst Street, Oxford. OX4 1HE.
>>>>>>> ---------
>>>>>>>
>>>>>>> [andrew at localhost g-wrap-1.3.4]$ ls
>>>>>>> aclocal.m4    config.log     example           ltconfig       README
>>>>>>> AUTHORS       config.status  g-wrap            ltmain.sh      rpm
>>>>>>> bin           config.sub     g-wrap.m4         Makefile       stamp-h1
>>>>>>> ChangeLog     configure      g-wrap.scm        Makefile.am    test
>>>>>>> compile       configure.in   INSTALL           Makefile.in    THANKS
>>>>>>> config.guess  COPYING.LIB    install-sh        missing        TODO
>>>>>>> config.h      depcomp        kill-usr-include  mkinstalldirs
>>>>>>> config.h.in   doc            libtool           NEWS
>>>>>>> [andrew at localhost g-wrap-1.3.4]$ ./configure
>>>>>>> checking for a BSD-compatible install... /usr/bin/install -c
>>>>>>> checking whether build environment is sane... yes
>>>>>>> checking for gawk... gawk
>>>>>>> checking whether make sets ${MAKE}... yes
>>>>>>> checking whether to enable maintainer-specific portions of 
>>>>>>> Makefiles... no
>>>>>>> checking for gcc... gcc
>>>>>>> checking for C compiler default output... a.out
>>>>>>> checking whether the C compiler works... yes
>>>>>>> checking whether we are cross compiling... no
>>>>>>> checking for suffix of executables...
>>>>>>> checking for suffix of object files... o
>>>>>>> checking whether we are using the GNU C compiler... yes
>>>>>>> checking whether gcc accepts -g... yes
>>>>>>> checking for gcc option to accept ANSI C... none needed
>>>>>>> checking for style of include used by make... GNU
>>>>>>> checking dependency style of gcc... gcc3
>>>>>>> checking for a BSD-compatible install... /usr/bin/install -c
>>>>>>> checking build system type... i686-pc-linux-gnu
>>>>>>> checking host system type... i686-pc-linux-gnu
>>>>>>> checking for ld used by GCC... /usr/bin/ld
>>>>>>> checking if the linker (/usr/bin/ld) is GNU ld... yes
>>>>>>> checking for /usr/bin/ld option to reload object files... -r
>>>>>>> checking for BSD-compatible nm... /usr/bin/nm -B
>>>>>>> checking for a sed that does not truncate output... /bin/sed
>>>>>>> checking whether ln -s works... yes
>>>>>>> checking how to recognise dependent libraries... pass_all
>>>>>>> checking command to parse /usr/bin/nm -B output... ok
>>>>>>> checking how to run the C preprocessor... gcc -E
>>>>>>> checking for egrep... grep -E
>>>>>>> checking for ANSI C header files... yes
>>>>>>> checking for sys/types.h... yes
>>>>>>> checking for sys/stat.h... yes
>>>>>>> checking for stdlib.h... yes
>>>>>>> checking for string.h... yes
>>>>>>> checking for memory.h... yes
>>>>>>> checking for strings.h... yes
>>>>>>> checking for inttypes.h... yes
>>>>>>> checking for stdint.h... yes
>>>>>>> checking for unistd.h... yes
>>>>>>> checking dlfcn.h usability... yes
>>>>>>> checking dlfcn.h presence... yes
>>>>>>> checking for dlfcn.h... yes
>>>>>>> checking for ranlib... ranlib
>>>>>>> checking for strip... strip
>>>>>>> checking for objdir... .libs
>>>>>>> checking for gcc option to produce PIC... -fPIC
>>>>>>> checking if gcc PIC flag -fPIC works... yes
>>>>>>> checking if gcc static flag -static works... yes
>>>>>>> checking if gcc supports -c -o file.o... yes
>>>>>>> checking if gcc supports -c -o file.lo... yes
>>>>>>> checking if gcc supports -fno-rtti -fno-exceptions... yes
>>>>>>> checking whether the linker (/usr/bin/ld) supports shared 
>>>>>>> libraries... yes
>>>>>>> checking how to hardcode library paths into programs... immediate
>>>>>>> checking whether stripping libraries is possible... yes
>>>>>>> checking dynamic linker characteristics... GNU/Linux ld.so
>>>>>>> checking if libtool supports shared libraries... yes
>>>>>>> checking whether to build shared libraries... yes
>>>>>>> checking whether to build static libraries... yes
>>>>>>> checking whether -lc should be explicitly linked in... no
>>>>>>> creating libtool
>>>>>>> checking for guile... /usr/local/bin/guile
>>>>>>> checking for guile-config... /usr/local/bin/guile-config
>>>>>>> checking for scm_boot_guile in -lguile... yes
>>>>>>> checking for scm_puts in -lguile... yes
>>>>>>> checking for Guile Scheme directory... /usr/local/share/guile
>>>>>>> checking if guile uses old style smobs... no
>>>>>>> checking for glib-config... no
>>>>>>> checking for gtk-config... no
>>>>>>> checking for build-guile-gtk... no
>>>>>>> configure: creating ./config.status
>>>>>>> config.status: creating Makefile
>>>>>>> config.status: creating bin/Makefile
>>>>>>> config.status: creating doc/Makefile
>>>>>>> config.status: creating example/Makefile
>>>>>>> config.status: creating g-wrap/Makefile
>>>>>>> config.status: creating rpm/Makefile
>>>>>>> config.status: creating test/Makefile
>>>>>>> config.status: creating config.h
>>>>>>> config.status: config.h is unchanged
>>>>>>> config.status: executing depfiles commands
>>>>>>> [andrew at localhost g-wrap-1.3.4]$ make
>>>>>>> make  all-recursive
>>>>>>> make[1]: Entering directory `/home/andrew/g-wrap/g-wrap-1.3.4'
>>>>>>> Making all in doc
>>>>>>> make[2]: Entering directory `/home/andrew/g-wrap/g-wrap-1.3.4/doc'
>>>>>>> make[2]: Nothing to be done for `all'.
>>>>>>> make[2]: Leaving directory `/home/andrew/g-wrap/g-wrap-1.3.4/doc'
>>>>>>> Making all in rpm
>>>>>>> make[2]: Entering directory `/home/andrew/g-wrap/g-wrap-1.3.4/rpm'
>>>>>>> rm -f spec.tmp
>>>>>>> sed < spec.in > spec.tmp \
>>>>>>>             -e 
>>>>>>> 's:@-GW_RTLIB_VER-@:@GW_RUNTIME_GUILE_INTERFACE_MAJOR_VER at .@GW_RUNTIME_GUILE_INTERFACE_REVISION at .@GW_RUNTIME_GUILE_INTERFACE_AGE@:' 
>>>>>>> \
>>>>>>>             -e 
>>>>>>> 's:@-GW_RTLIB_MAJ-@:@GW_RUNTIME_GUILE_INTERFACE_MAJOR_VER@:' \
>>>>>>>             -e 's:@-VERSION-@:1.3.4:'
>>>>>>> mv spec.tmp spec
>>>>>>> make[2]: Leaving directory `/home/andrew/g-wrap/g-wrap-1.3.4/rpm'
>>>>>>> Making all in bin
>>>>>>> make[2]: Entering directory `/home/andrew/g-wrap/g-wrap-1.3.4/bin'
>>>>>>> make[2]: Nothing to be done for `all'.
>>>>>>> make[2]: Leaving directory `/home/andrew/g-wrap/g-wrap-1.3.4/bin'
>>>>>>> Making all in g-wrap
>>>>>>> make[2]: Entering directory `/home/andrew/g-wrap/g-wrap-1.3.4/g-wrap'
>>>>>>> guile -c \
>>>>>>>           "(set! %load-path (cons 
>>>>>>> \"/home/andrew/g-wrap/g-wrap-1.3.4/g-wrap/..\" 
>>>>>>> %load-path))""(debug-enable 'backtrace) \
>>>>>>>                         (debug-enable 'debug) \
>>>>>>>                         (read-enable 'positions) \
>>>>>>>                         (use-modules (g-wrap)) \
>>>>>>>                         (use-modules (g-wrap gw-standard-spec)) \
>>>>>>>                         (gw:generate-wrapset \"gw-standard\")"
>>>>>>> Backtrace:
>>>>>>> In unknown file:
>>>>>>>    ?: 38* (if (or # #) (try-load-module name))
>>>>>>>    ?: 39  [try-load-module (ice-9 slib)]
>>>>>>>    ?: 40  (or (begin (try-module-linked name)) 
>>>>>>> (try-module-autoload name) ...)
>>>>>>>    ?: 41* [try-module-autoload (ice-9 slib)]
>>>>>>>    ?: 42  (let* (# # # #) (resolve-module dir-hint-module-name 
>>>>>>> #f) (and # #))
>>>>>>>     ...
>>>>>>>    ?: 43  (letrec ((load-file #)) (dynamic-wind (lambda () #) 
>>>>>>> (lambda () #) ...) ...)
>>>>>>>    ?: 44* [dynamic-wind #<procedure #f ()> #<procedure #f ()> 
>>>>>>> #<procedure #f ()>]
>>>>>>>    ?: 45* [#<procedure #f ()>]
>>>>>>>    ?: 46* (let ((file #)) (cond (# => #) (# => #)))
>>>>>>>    ?: 47  [#<procedure #f (full)> 
>>>>>>> "/usr/local/share/guile/1.6/ice-9/slib.scm"]
>>>>>>>    ?: 48  [load-file #<primitive-procedure primitive-load> ...]
>>>>>>>    ?: 49* [save-module-excursion #<procedure #f ()>]
>>>>>>>    ?: 50  (let (# #) (dynamic-wind # thunk #))
>>>>>>>    ?: 51  [dynamic-wind #<procedure #f ()> #<procedure #f ()> 
>>>>>>> #<procedure #f ()>]
>>>>>>>    ?: 52* [#<procedure #f ()>]
>>>>>>>    ?: 53* [primitive-load "/usr/local/share/guile/1.6/ice-9/slib.scm"]
>>>>>>> In /usr/local/share/guile/1.6/ice-9/slib.scm:
>>>>>>>  217: 54* (define slib-parent-dir (let (#) (if path # #)))
>>>>>>>  218: 55* (let ((path #)) (if path (substring path 0 ...) ...))
>>>>>>>  219: 56  (if path (substring path 0 ...) ...)
>>>>>>> In unknown file:
>>>>>>>     ...
>>>>>>>    ?: 57  [scm-error misc-error #f ...]
>>>>>>>
>>>>>>> <unnamed port>: In procedure scm-error in expression (scm-error 
>>>>>>> (quote misc-error) #f ...):
>>>>>>> <unnamed port>: Could not find slib/require.scm in 
>>>>>>> ("/home/andrew/g-wrap/g-wrap-1.3.4/g-wrap/.." 
>>>>>>> "/usr/local/share/guile/site" "/usr/local/share/guile/1.6" 
>>>>>>> "/usr/local/share/guile" ".")
>>>>>>> make[2]: *** [gw-standard.c] Error 2
>>>>>>> make[2]: Leaving directory `/home/andrew/g-wrap/g-wrap-1.3.4/g-wrap'
>>>>>>> make[1]: *** [all-recursive] Error 1
>>>>>>> make[1]: Leaving directory `/home/andrew/g-wrap/g-wrap-1.3.4'
>>>>>>> make: *** [all] Error 2
>>>>>>> [andrew at localhost g-wrap-1.3.4]$
>>>>>>> [andrew at localhost g-wrap-1.3.4]$
>>>>>>>
>>>>>>> _______________________________________________
>>>>>>> gnucash-devel mailing list
>>>>>>> gnucash-devel at gnucash.org
>>>>>>> https://lists.gnucash.org/mailman/listinfo/gnucash-devel
>>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>
>>>>
>>>>
>>>>
>>>
>>
>>
>>
>



-- 
       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-devel mailing list