[Kde-bindings] Problems builing RUBY binding

Alexander Kellett lypanov at kde.org
Fri Jun 4 09:59:10 UTC 2004


thanks domi, i knew there was a define for this :)
i just gave him the wrong one :) but i'm guessing urs is good :)

On Fri, Jun 04, 2004 at 12:03:31PM +0200, Dominique Devriese wrote:
> Alex Martin Ugalde writes:
> 
> > Hi folks,
> > 	I'm trying to compile kde ruby binding, but i'm experiencing
> > problems to compile de qtruby, getting the following error (at
> > linking time):
> 
> Can you try the attached patch against Qt.cpp ?
> 
> ( Save the patch, go to the directory with Qt.cpp, run 
> "patch -p0 < qtruby-compile.patch", and recompile )
> 
> Rationale: man asprintf says you need to define _GNU_SOURCE before
> including stdio.h if you want to use vasprintf.
> 
> Let us know if this works for you, if so, I'll be committing it...
> 
> cheers
> domi
> 

> Index: Qt.cpp
> ===================================================================
> RCS file: /home/kde/kdebindings/qtruby/rubylib/qtruby/Qt.cpp,v
> retrieving revision 1.63
> diff -u -b -r1.63 Qt.cpp
> --- Qt.cpp	12 May 2004 14:58:49 -0000	1.63
> +++ Qt.cpp	4 Jun 2004 09:59:20 -0000
> @@ -15,6 +15,9 @@
>   *                                                                         *
>   ***************************************************************************/
>  
> +#ifndef _GNU_SOURCE
> +#define _GNU_SOURCE
> +#endif
>  #include <stdio.h>
>  #include <stdarg.h>
>  
> @@ -28,9 +31,6 @@
>  #include <private/qucomextra_p.h>
>  
>  #undef DEBUG
> -#ifndef _GNU_SOURCE
> -#define _GNU_SOURCE
> -#endif
>  #ifndef __USE_POSIX
>  #define __USE_POSIX
>  #endif

> _______________________________________________
> Kde-bindings mailing list
> Kde-bindings at kde.org
> https://mail.kde.org/mailman/listinfo/kde-bindings


mvg,
Alex

-- 
When women love us, they forgive us everything, even our crimes; when they do
not love us, they give us credit for nothing, not even our virtues.
		-- Honor'e de Balzac



More information about the Kde-bindings mailing list