Re: Fedora Core 4

2005-08-07 Thread David Hampton
On Sun, 2005-08-07 at 20:05 -0500, Brian Lloyd wrote:
> On Sun, 2005-08-07 at 19:14 -0400, David Hampton wrote:
> > 
> > What exact problems are you having?
> 
> I get the same problem using gcc 4.0 or gcc 3.2 (using the commands
> above).  Could you help me with my problem as well?

Sure.

> gcc32 -DHAVE_CONFIG_H -I. -I. -I../.. -I /usr/local/include/g-wrap
> -pthread -I/u sr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DORBIT2=1
> -pthread -I/usr/inclu de/gconf/2 -I/usr/include/orbit-2.0
> -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/ include -DXTHREADS
> -D_REENTRANT -DXUSE_MTSAFE_API -I/usr/include/gtk-2.0 -I/usr/
> lib/gtk-2.0/include -I/usr/X11R6/include -I/usr/include/atk-1.0
> -I/usr/include/p ango-1.0 -I/usr/include/freetype2
> -I/usr/include/freetype2/config -I/usr/include /glib-2.0
> -I/usr/lib/glib-2.0/include -g -O2 -Wall -Wunused -Wmissing-prototypes
> -Wmissing-declarations -Werror -MT gw-core-utils.lo -MD -MP
> -MF .deps/gw-core-u tils.Tpo -c gw-core-utils.c  -fPIC
> -o .libs/gw-core-utils.o
> In file included from core-utils.h:25,
>  from gw-core-utils.c:12:
> ../../config.h:209:1: "PACKAGE_BUGREPORT" redefined
> In file included from /usr/local/include/libguile/__scm.h:127,
>  from /usr/local/include/libguile.h:50,
>  from /usr/local/include/guile/gh.h:52,
>  from gw-core-utils.c:3:
> /usr/local/include/libguile/scmconfig.h:427:1: this is the location of
> the previ ous definition
> In file included from core-utils.h:25,
>  from gw-core-utils.c:12:
> ../../config.h:212:1: "PACKAGE_NAME" redefined

Check your guile-devel package.  What version is it and why is it
installed in /usr/local?  The guile-devel package that ships with FC4 is
1.6.7 and should be installed in /usr.  I checked my copy of scmconfig.h
(from /usr/include/libguile) and it has the defines for PACKAGE_XXX
commented out with a note that says "do not publish".  Yours doesn't for
some reason.  Thats what's causing your compile to fail.  Fix that and
your compile should finish.  Or at least get further before
failing.  :-)

David


___
gnucash-devel mailing list
gnucash-devel@gnucash.org
https://lists.gnucash.org/mailman/listinfo/gnucash-devel


Re: Fedora Core 4

2005-08-07 Thread Brian Lloyd
On Sun, 2005-08-07 at 19:14 -0400, David Hampton wrote:
> On Sun, 2005-08-07 at 16:54 -0400, Terry D. Boldt wrote:
> 
> [I updated the subject and copied the mailing list.]
> 
> > > > The above said, I can compile the baseline GNUCASH on my FC 4 system.
> > > > However, I can not (yet) get the gtk+2.0 port (which is what I was
> > > > wanting to help with) to compile.
> > >
> > > I have compiled the Gcnucash g2 port with no problem on FC4 test 3.
> > > (Might have been FC4 final.)  Are you using the gcc3.2 compiler?
> > > Gnucash is known not to compile with gcc4.
> > 
> > gcc 3.2.4
> 
> I just fired up my freshly installed FC4 laptop, checked out cvs,
> installed all the necessary development libraries, compiled gnucash, and
> ran it.  The commands I used were:
> 
>   CC=gcc32 ./autogen.sh --prefix=/opt/gnucash/g2
>   make
>   make install
>   /opt/gnucash/g2/bin/gnucash --nofile
> 
> What exact problems are you having?

I get the same problem using gcc 4.0 or gcc 3.2 (using the commands
above).  Could you help me with my problem as well?


gcc32 -DHAVE_CONFIG_H -I. -I. -I../.. -I /usr/local/include/g-wrap
-pthread -I/u sr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DORBIT2=1
-pthread -I/usr/inclu de/gconf/2 -I/usr/include/orbit-2.0
-I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/ include -DXTHREADS
-D_REENTRANT -DXUSE_MTSAFE_API -I/usr/include/gtk-2.0 -I/usr/
lib/gtk-2.0/include -I/usr/X11R6/include -I/usr/include/atk-1.0
-I/usr/include/p ango-1.0 -I/usr/include/freetype2
-I/usr/include/freetype2/config -I/usr/include /glib-2.0
-I/usr/lib/glib-2.0/include -g -O2 -Wall -Wunused -Wmissing-prototypes
-Wmissing-declarations -Werror -MT gw-core-utils.lo -MD -MP
-MF .deps/gw-core-u tils.Tpo -c gw-core-utils.c  -fPIC
-o .libs/gw-core-utils.o
In file included from core-utils.h:25,
 from gw-core-utils.c:12:
../../config.h:209:1: "PACKAGE_BUGREPORT" redefined
In file included from /usr/local/include/libguile/__scm.h:127,
 from /usr/local/include/libguile.h:50,
 from /usr/local/include/guile/gh.h:52,
 from gw-core-utils.c:3:
/usr/local/include/libguile/scmconfig.h:427:1: this is the location of
the previ ous definition
In file included from core-utils.h:25,
 from gw-core-utils.c:12:
../../config.h:212:1: "PACKAGE_NAME" redefined
In file included from /usr/local/include/libguile/__scm.h:127,
 from /usr/local/include/libguile.h:50,
 from /usr/local/include/guile/gh.h:52,
 from gw-core-utils.c:3:
/usr/local/include/libguile/scmconfig.h:430:1: this is the location of
the previ ous definition
In file included from core-utils.h:25,
 from gw-core-utils.c:12:
../../config.h:215:1: "PACKAGE_STRING" redefined
In file included from /usr/local/include/libguile/__scm.h:127,
 from /usr/local/include/libguile.h:50,
 from /usr/local/include/guile/gh.h:52,
 from gw-core-utils.c:3:
/usr/local/include/libguile/scmconfig.h:433:1: this is the location of
the previ ous definition
In file included from core-utils.h:25,
 from gw-core-utils.c:12:
../../config.h:218:1: "PACKAGE_TARNAME" redefined
In file included from /usr/local/include/libguile/__scm.h:127,
 from /usr/local/include/libguile.h:50,
 from /usr/local/include/guile/gh.h:52,
 from gw-core-utils.c:3:
/usr/local/include/libguile/scmconfig.h:436:1: this is the location of
the previ ous definition
In file included from core-utils.h:25,
 from gw-core-utils.c:12:
../../config.h:221:1: "PACKAGE_VERSION" redefined
In file included from /usr/local/include/libguile/__scm.h:127,
 from /usr/local/include/libguile.h:50,
 from /usr/local/include/guile/gh.h:52,
 from gw-core-utils.c:3:
/usr/local/include/libguile/scmconfig.h:439:1: this is the location of
the previous definition
make[4]: *** [gw-core-utils.lo] Error 1


___
gnucash-devel mailing list
gnucash-devel@gnucash.org
https://lists.gnucash.org/mailman/listinfo/gnucash-devel


Re: Fedora Core 4

2005-08-07 Thread David Hampton
On Sun, 2005-08-07 at 16:54 -0400, Terry D. Boldt wrote:

[I updated the subject and copied the mailing list.]

> > > The above said, I can compile the baseline GNUCASH on my FC 4 system.
> > > However, I can not (yet) get the gtk+2.0 port (which is what I was
> > > wanting to help with) to compile.
> >
> > I have compiled the Gcnucash g2 port with no problem on FC4 test 3.
> > (Might have been FC4 final.)  Are you using the gcc3.2 compiler?
> > Gnucash is known not to compile with gcc4.
> 
> gcc 3.2.4

I just fired up my freshly installed FC4 laptop, checked out cvs,
installed all the necessary development libraries, compiled gnucash, and
ran it.  The commands I used were:

CC=gcc32 ./autogen.sh --prefix=/opt/gnucash/g2
make
make install
/opt/gnucash/g2/bin/gnucash --nofile

What exact problems are you having?

David


___
gnucash-devel mailing list
gnucash-devel@gnucash.org
https://lists.gnucash.org/mailman/listinfo/gnucash-devel


Re: Gnucash2 Build fails on fedora Core 4

2005-07-17 Thread Chris Shoemaker
On Sun, Jul 17, 2005 at 06:18:10PM -0400, David Hampton wrote:
> On Mon, 2005-07-18 at 00:21 +0300, Nikos Charonitakis wrote:
> > gcc4 problem or something missing in mystem?
> 
> New checks added to gcc4.  Use gcc3.x.

Incidentally, I just bought a new laptop and put FC4 on it, so I've
discovered that it is at least possible to build with gcc4 with the
"-Wno-pointer-sign" option to CFLAGS.  I also had to make some changes
related to G_INLINE_FUNC, too, but I'm still sorting out exactly what
was necessary.  I think we were basically abusing the macro, and if it
expands to 'extern inline' *everywhere* (including function
definition) then you end up with an undefined symbol in the .so.  My
current work-around is to remove the macro from function definitions,
but leave it in the declarations.  I haven't verified that the
inlining actually takes place, but at least it links.

-chris

> 
> David
> 
> 
> ___
> gnucash-devel mailing list
> gnucash-devel@gnucash.org
> https://lists.gnucash.org/mailman/listinfo/gnucash-devel
___
gnucash-devel mailing list
gnucash-devel@gnucash.org
https://lists.gnucash.org/mailman/listinfo/gnucash-devel


Re: Gnucash2 Build fails on fedora Core 4

2005-07-17 Thread David Hampton
On Mon, 2005-07-18 at 00:21 +0300, Nikos Charonitakis wrote:
> gcc4 problem or something missing in mystem?

New checks added to gcc4.  Use gcc3.x.

David


___
gnucash-devel mailing list
gnucash-devel@gnucash.org
https://lists.gnucash.org/mailman/listinfo/gnucash-devel


Gnucash2 Build fails on fedora Core 4

2005-07-17 Thread Nikos Charonitakis
gcc4 problem or something missing in mystem?

Some deprecated features have been used.  Set the environment
variable GUILE_WARN_DEPRECATED to "detailed" and rerun the
program to get more information.  Set it to "no" to suppress
this message.
FLAVOR=gnome guile -c \
 "(set! %load-path (cons \"/usr/share/guile\" %load-path)) \
 (set! %load-path (cons \"/usr/local/src/gnucash/src/engine\" %load-path)) \
 (primitive-load \"./gw-kvp-spec.scm\") \
 (gw:generate-wrapset \"gw-kvp\")"
add-ws-t gw-kvp # gw:global-declarations-ccg
 for-client gw-engine gw-kvp
 for-client gw-glib gw-kvp
 for-client gw-wct gw-kvp
 for-client gw-standard gw-kvp
 for-parent gw-kvp
add-ws-t gw-kvp # gw:global-definitions-ccg
 for-client gw-engine gw-kvp
 for-client gw-glib gw-kvp
 for-client gw-wct gw-kvp
 for-client gw-standard gw-kvp
 for-parent gw-kvp

Some deprecated features have been used.  Set the environment
variable GUILE_WARN_DEPRECATED to "detailed" and rerun the
program to get more information.  Set it to "no" to suppress
this message.
make  all-recursive
make[4]: Entering directory `/usr/local/src/gnucash/src/engine'
Making all in .
make[5]: Entering directory `/usr/local/src/gnucash/src/engine'
if /bin/sh ../../libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I.
-I../..-I../../lib/libc -I../../src -I../../src/gnc-module
-DGNUCASH -pthread -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include
  -I /usr/include/g-wrap  -g -O2 -Wall -Wunused -Wmissing-prototypes
-Wmissing-declarations   -Werror -MT gw-engine.lo -MD -MP -MF
".deps/gw-engine.Tpo" -c -o gw-engine.lo gw-engine.c; \
then mv -f ".deps/gw-engine.Tpo" ".deps/gw-engine.Plo"; else rm -f
".deps/gw-engine.Tpo"; exit 1; fi
mkdir .libs
gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../../lib/libc -I../../src
-I../../src/gnc-module -DGNUCASH -pthread -I/usr/include/glib-2.0
-I/usr/lib/glib-2.0/include -I /usr/include/g-wrap -g -O2 -Wall
-Wunused -Wmissing-prototypes -Wmissing-declarations -Werror -MT
gw-engine.lo -MD -MP -MF .deps/gw-engine.Tpo -c gw-engine.c  -fPIC -o
.libs/gw-engine.o
cc1: warnings being treated as errors
gw-engine.c: In function 'gw__tmp427_xaccQueryAddDateMatch_wrapper':
gw-engine.c:16688: warning: 'gw__scm_extras[0]' is used uninitialized
in this function
make[5]: *** [gw-engine.lo] Error 1
make[5]: Leaving directory `/usr/local/src/gnucash/src/engine'
make[4]: *** [all-recursive] Error 1
make[4]: Leaving directory `/usr/local/src/gnucash/src/engine'
make[3]: *** [all] Error 2
make[3]: Leaving directory `/usr/local/src/gnucash/src/engine'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/usr/local/src/gnucash/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/local/src/gnucash'
make: *** [all] Error 2

___
gnucash-devel mailing list
gnucash-devel@gnucash.org
https://lists.gnucash.org/mailman/listinfo/gnucash-devel