Problem compiling from cvs
Derek Atkins
warlord@MIT.EDU
27 Nov 2002 11:51:55 -0500
The guile at the beginning is "running g-wrap" to convert the foo-gwrap.scm
to foo-gwrap.c and foo-gwrap.h.
I don't know why it's failing for "make install", but honestly why are
you running "make install" before you run "make all"?
What happens if you run:
make all install DESTDIR=/...
Does it work then? If so, then I would call this "user error" and move on ;)
-derek
"James A. Treacy" <treacy@debian.org> writes:
> Compiling directly from CVS works fine. If, on the other hand I do a
> 'make dist' and work from the result, there is a problem:
>
> bash$ cd src/gnc-module/test/mod-foo
> bash$ make install DESTDIR=/home/treacy/debs/gnucash/test/gnucash-1.7.3/debian/tmp/
> source='foo-gwrap.c' object='foo-gwrap.lo' libtool=yes \
> depfile='.deps/foo-gwrap.Plo' tmpdepfile='.deps/foo-gwrap.TPlo' \
> depmode=gcc /bin/sh ../../../../depcomp \
> /bin/sh ../../../../libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I../../../.. -I../../../../src/gnc-module -I/usr/include/g-wrap -I/usr/include/glib-1.2 -I/usr/lib/glib/include -g -O2 -Wall -Wunused -Wmissing-prototypes -Wmissing-declarations -Werror-implicit-function-declaration -c -o foo-gwrap.lo `test -f foo-gwrap.c || echo './'`foo-gwrap.c
> gcc -DHAVE_CONFIG_H -I. -I. -I../../../.. -I../../../../src/gnc-module -I/usr/include/g-wrap -I/usr/include/glib-1.2 -I/usr/lib/glib/include -g -O2 -Wall -Wunused -Wmissing-prototypes -Wmissing-declarations -Werror-implicit-function-declaration -c foo-gwrap.c -Wp,-MD,.deps/foo-gwrap.TPlo -fPIC -o .libs/foo-gwrap.o
> foo-gwrap.c:8: foo-gwrap.h: No such file or directory
> make: *** [foo-gwrap.lo] Error 1
>
> On the other hand, if I simply type 'make':
>
> bash$ make
> bash$ make
> FLAVOR=gnome guile -c \
> "(set! %load-path (cons \"/usr/share/guile\" %load-path)) \
> (primitive-load \"./foo-gwrap.scm\") \
> (gw:generate-wrapset \"foo-gwrap\")"
> add-ws-t foo-gwrap #<output: foo-gwrap.c 3> gw:global-declarations-ccg
> for-client gw-standard foo-gwrap
> for-parent foo-gwrap
> add-ws-t foo-gwrap #<output: foo-gwrap.c 3> gw:global-definitions-ccg
> for-client gw-standard foo-gwrap
> for-parent foo-gwrap
> make all-am
> make[1]: Entering directory `/home/treacy/debs/gnucash/test/gnucash-1.7.3/src/gnc-module/test/mod-foo'
> source='foo-gwrap.c' object='foo-gwrap.lo' libtool=yes \
> depfile='.deps/foo-gwrap.Plo' tmpdepfile='.deps/foo-gwrap.TPlo' \
> depmode=gcc /bin/sh ../../../../depcomp \
> /bin/sh ../../../../libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I../../../.. -I../../../../src/gnc-module -I/usr/include/g-wrap -I/usr/include/glib-1.2 -I/usr/lib/glib/include -g -O2 -Wall -Wunused -Wmissing-prototypes -Wmissing-declarations -Werror-implicit-function-declaration -c -o foo-gwrap.lo `test -f foo-gwrap.c || echo './'`foo-gwrap.c
> gcc -DHAVE_CONFIG_H -I. -I. -I../../../.. -I../../../../src/gnc-module -I/usr/include/g-wrap -I/usr/include/glib-1.2 -I/usr/lib/glib/include -g -O2 -Wall -Wunused -Wmissing-prototypes -Wmissing-declarations -Werror-implicit-function-declaration -c foo-gwrap.c -Wp,-MD,.deps/foo-gwrap.TPlo -fPIC -o .libs/foo-gwrap.o
> foo-gwrap.c: In function `gw_init_wrapset_foo_gwrap':
> foo-gwrap.c:130: warning: unused variable `gw__tmp9_err_misc_msg'
> foo-gwrap.c:129: warning: unused variable `gw__tmp10_err_data'
> foo-gwrap.c:128: warning: unused variable `gw__tmp8_status_var'
> foo-gwrap.c:135: warning: unused variable `gw__tmp12_err_misc_msg'
> foo-gwrap.c:134: warning: unused variable `gw__tmp13_err_data'
> foo-gwrap.c:133: warning: unused variable `gw__tmp11_err_status'
> source='gnc-mod-foo.c' object='gnc-mod-foo.lo' libtool=yes \
> depfile='.deps/gnc-mod-foo.Plo' tmpdepfile='.deps/gnc-mod-foo.TPlo' \
> depmode=gcc /bin/sh ../../../../depcomp \
> [snip]
>
> It's not clear what the guile at the beginning is doing, but it seems to
> do the trick.
>
> --
> James (Jay) Treacy
> treacy@debian.org
> _______________________________________________
> gnucash-devel mailing list
> gnucash-devel@lists.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@MIT.EDU PGP key available