After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 168110 - Cannot compile libgnome on Alpha or amd64
Cannot compile libgnome on Alpha or amd64
Status: RESOLVED DUPLICATE of bug 168387
Product: libgnome
Classification: Deprecated
Component: general
2.8.x
Other FreeBSD
: Normal major
: ---
Assigned To: libgnome maintainer
libgnome maintainer
Depends on:
Blocks:
 
 
Reported: 2005-02-22 04:49 UTC by Joe Marcus Clarke
Modified: 2005-03-01 13:48 UTC
See Also:
GNOME target: ---
GNOME version: 2.7/2.8



Description Joe Marcus Clarke 2005-02-22 04:49:10 UTC
Please describe the problem:
The recent change in libgnome-2.8.2's gnome-program.c to initialize args to 0,
then pass it to gnome_program_init_common() breaks compilation on FreeBSD am64
and Alpha (at least).  I have a feeling the same will be true on RedHat Alpha.

Steps to reproduce:
1. Try to compile libgnome-2.8.2 or HEAD on FreeBSD amd64 or alpha.
2. 
3. 


Actual results:
The compilation aborts complaining argument 8 to gnome_program_init_common() is
not of the right type.

Expected results:
The compilation should succeed.

Does this happen every time?
Yes.

Other information:
The fix is to revert the initialize fix.  That is, if va_list args is left
uninitialized, the compilation succeeds on all tested architectures.  However,
the better solution is probably to pass the va_list argument as a pointer or do
some ifdef checking to properly set the argument for architecture on which
libgnome is being compiled.
Comment 1 Kjartan Maraas 2005-02-22 17:07:21 UTC
I was afraid this was going to happen. The first fix made it produce a whole
bunch of uninitialized memory warnings from valgrind so I wanted to fix those...

Can someone point to a solution that will fix this for all archs?
Comment 2 Jean Bréfort 2005-02-24 09:49:01 UTC
This works for me on amd64
   va_list args = {};
Comment 3 Kjartan Maraas 2005-03-01 13:48:48 UTC
Please try the solution in bug #168387

*** This bug has been marked as a duplicate of 168387 ***