« Return to Thread: GB3 sur Mac, Connaissance :-)

Re: GB3 sur Mac, Connaissance :-)

by Bugzilla from gambas@users.sourceforge.net :: Rate this Message:

Reply to Author | View in Thread

> Le 4 juil. 09 à 14:24, François Gallo a écrit :

> > Le 4 juil. 09 à 10:08, François Gallo a écrit :
> >> Le 3 juil. 09 à 22:21, Benoît Minisini a écrit :
> >>>> Hello Benoit,
> >>>>
> >>>> Me revoila me revoici mais avec une petite merveille entre les
> >>>> mains,
> >>>> un cher iMac avec Mac OS X bien entendu.
> >>>>
> >>>>
> >>>> Alors voilà, la situation est que :
> >>>>
> >>>> - Je ne suis pas habitué de Mac OS X mais ca reste un UNIX donc
> >>>> je le prends en main relativement vite.
> >>>>
> >>>> - Tu ne connais pas grand chose a Mac OS X (voir pas du tout a ce
> >>>> que
> >>>> j'ai
> >>>> pu lire sur la ML en) mais dans la doc tu indiques sur la
> >>>> questions de
> >>>> compilation sur Mac OS X qu'il te faudrait un accés SSH a la
> >>>> rigueur
> >>>> pour
> >>>> faire celà a distance.
> >>>>
> >>>> Je me porte volontaire pour t'aider davantage a étendre Gambas
> >>>> sur le
> >>>> monde
> >>>> Mac OS X !
> >>>>
> >>>> Bon bien sur si ça t'intèresse pas on enterre le mail :D
> >>>>
> >>>> Mais bon si tu es intéressé pour faire éventuellement une tentative
> >>>> de portage de GB sur Mac OS X préviens moi
> >>>>
> >>>> (moi je ne demande pas mieux d'avoir GB sur Mac OS X ;-) )
> >>>>
> >>>> François
> >>>> ----------------------------------------------------------------------
> >>>>-----
> >>>
> >>> Je suis intéressé, mais effectivement je ne connais rien à Mac OS X.
> >>>
> >>> Il faudrait que tu essaies de compiler /trunk, en installant tout
> >>> ce qu'il
> >>> faut pour que ça compile. Je n'ai aucune idée de comment les
> >>> programmes X11
> >>> peuvent tourner, mais ça doit être possible. Peut-être que
> >>> l'interface
> >>> graphique de Mac OS X est capable d'émuler un serveur X ?
> >>>
> >>> En tout cas, une fois ça fait, je pourrais intervenir par ssh pour
> >>> débugger !
> >>>
> >>> Voilà, tiens-moi au courant !
> >>>
> >>> --
> >>> Benoît
> >>
> >> Impeccable !
> >> Ravi d'apprendre ça ;-)
> >>
> >> Le projet sur lequel je vais apporter une grosse contribution (face
> >> à la documentation ect ...)
> >> c'est de faire un composant GB pour le framework Cocoa pour
> >> l'intégration d'applications
> >> fait en Gambas dans un environnement Mac OS X :) .
> >>
> >> Je vais mettre tout ça en place pour la compilation et je te tiens
> >> au courant pour un premier
> >> rapport.
> >>
> >> François.
>
> Bon benoit, j'ai grand besoin de toi car dans l'état actuelle, je ne
> comprends pas le pourquoi
> du plantage de la compilation de GBC.
>
> Aprés avoir installé les libs principaux strict minimun j'obtiens
> aprés un ./configure global :
>
> ************************************************************
>
> THESE COMPONENTS ARE DISABLED:
> -e
Ce "-e" n'est pas normal...

> - gb.corba
> - gb.crypt
> - gb.db.firebird
> - gb.db.mysql
> - gb.db.odbc
> - gb.db.postgresql
> - gb.db.sqlite2
> - gb.opengl
> - gb.pcre
> - gb.qt
> - gb.qt.kde
> - gb.sdl
> - gb.sdl.sound
> - gb.v4l
>
> ************************************************************
>
> Bon bizarrement gb.qt étant désactivé, je ne sais pas si c'est le fait
> que c'est pas le même chemin vers la libs sur Mac OS X ou juste
> que c'est la version 3 de gb.qt et non 4, fin bref, "pour le moment"
> j'ai passé a travers. (le composant gb.gtk+ est passé sans soucis par
> contre)
Envoie-moi la sortie complète de ./configure pour que je regarde.

>
> Je résume les étapes des commandes que j'ai effectué (dans le trunk/ ) :
>
> ./reconf-all
> ./configure
>
> et lors du make, voici là ou ca tape :
>
> gcc -DHAVE_CONFIG_H -I. -I.. -I../share   -D_REENTRANT -I../libltdl  -
> I/usr/include/ffi/   -DGAMBAS_PATH="\"/usr/local/bin\"" -pipe -Wall -
> Wno-unused-value -fsigned-char -fvisibility=hidden -g -Os  -MT gbx3-
> gb_common.o -MD -MP -MF .deps/gbx3-gb_common.Tpo -c -o gbx3-
> gb_common.o `test -f 'gb_common.c' || echo './'`gb_common.c
> gb_common.c:38: error: syntax error before ‘_oldsegv’
Il doit manquer la définition du type sighandler_t. Essaie en remplaçant
/trunk/main/share/gb_common.h par le fichier joint. J'y définie le type dans
le cas où la constante OS_MACOSX est définie. Cette constante est définie par
le script ./configure lorsque Mac OS X est détecté.

Il faudrait que tu vérifies quelle est ta version de gcc aussi. Deux version
différentes ne donnent pas les mêmes warnings...

--
Benoît

[gb_common.h]

/***************************************************************************

  common.h

  Common useful macros

  Copyright (c) 2000-2007 Benoit Minisini <gambas@...>

  This program is free software; you can redistribute it and/or modify
  it under the terms of the GNU General Public License as published by
  the Free Software Foundation; either version 1, or (at your option)
  any later version.

  This program is distributed in the hope that it will be useful,
  but WITHOUT ANY WARRANTY; without even the implied warranty of
  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  GNU General Public License for more details.

  You should have received a copy of the GNU General Public License
  along with this program; if not, write to the Free Software
  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.

***************************************************************************/

#ifndef __GB_COMMON_H
#define __GB_COMMON_H

#include "config.h"

#ifdef _GNU_SOURCE
#undef _GNU_SOURCE
#endif
#define _GNU_SOURCE 500
#define _FILE_OFFSET_BITS 64

#include <math.h>
#include <unistd.h>
#include <stdlib.h>
#include <stdio.h>
#include <stdarg.h>
#include <string.h>
#include <stddef.h>
#include <stdint.h>
#include <inttypes.h>
#include <fcntl.h>
#include <sys/types.h>
#include <sys/stat.h>

#if defined(__GNU_LIBRARY__) || defined(OS_FREEBSD)
#include <getopt.h>
#define HAVE_GETOPT_LONG 1
#endif

#if defined(OS_CYGWIN) || defined(OS_MACOSX)

typedef void (*sighandler_t) (int);

#endif

#if defined(OS_FREEBSD) || defined(OS_OPENBSD)

  /* Get definition for PATH_MAX */
  #include <limits.h>
  /* sighandler_t is replaced by sig_t */
  #define sighandler_t sig_t
  /* modfl is not yet implemented */
  # define modfl(a,b) modf(a,b)

        typedef unsigned long ulong;

        #if (defined(__amd64__) || defined(__ia64__) || defined(__sparc64__))
                #define __WORDSIZE 64
        #endif

#endif

#ifdef OS_FREEBSD
  /* finite is replaced by isfinite */
  #define finite isfinite
#endif

#ifdef OS_SOLARIS

 /* PGS: The following #define prevents /usr/include/sys/mman.h on solaris
    from #define'ing PRIVATE to 0x20, thus breaking Gambas.
    Perhaps Gambas should use a different name?
    BM: I don't use PRIVATE anymore!
 */
  #ifdef _POSIX_C_SOURCE
  /* PGS: Stop compiler warnings when gcc on solaris does remember to define
    _POSIX_C_SOURCE, e.g. when compiling qt related files. */
    #undef _POSIX_C_SOURCE
  #endif

  #define _POSIX_C_SOURCE 3
  /* Get prototype for alloca() */
  #include <alloca.h>
  /* Get definition for PATH_MAX */
  #include <limits.h>
  /* Get definition for index() */
  #include <strings.h>

#endif

#if !defined(__cplusplus)

  #ifndef FALSE
    enum
    {
      FALSE = 0,
      TRUE = 1
    };
  #endif

  typedef
    char boolean;

  typedef
    char bool;

#endif

typedef
  unsigned char uchar;
 
typedef
        size_t offset_t;
 
#define PUBLIC
#define INLINE __inline__
#define EXTERN extern
#define PACKED __attribute__((packed))
#define NORETURN __attribute__((noreturn))
#define CONST __attribute__((const))

#if __WORDSIZE == 64
#define OS_64BITS 1
#endif

#define CLEAR(s) (memset(s, 0, sizeof(*s)))

/* Workaround spurious gcc warnings */
#define NO_WARNING(var) var = var

#ifndef offsetof
  #define offsetof(_type, _arg) ((size_t)&(((_type *)0)->_arg))
#endif

#define Max(a, b) ({ int _a = (a), _b = (b); _a > _b ? _a : _b; })
#define Min(a, b) ({ int _a = (a), _b = (b); _a < _b ? _a : _b; })
#define MinMax(v, a, b) ({ int _v = (v), _a = (a), _b = (b); _v < _a ? _a : (_v > _b ? _b : _v); })

#if (defined (__i386__) || defined (__x86_64__)) && defined (__GNUC__) && __GNUC__ >= 2
#  define BREAKPOINT() { __asm__ __volatile__ ("int $03"); }
#elif (defined (_MSC_VER) || defined (__DMC__)) && defined (_M_IX86)
#  define BREAKPOINT() { __asm int 3h }G_STMT_END
#elif defined (__alpha__) && !defined(__osf__) && defined (__GNUC__) && __GNUC__ >= 2
#  define BREAKPOINT() { __asm__ __volatile__ ("bpt"); }
#else /* !__i386__ && !__alpha__ */
#  define BREAKPOINT() { raise (SIGTRAP); }
#endif /* __i386__ */

#define COPYRIGHT "(c) 2000-2008 Benoit Minisini\n\n" \
  "This program is free software; you can redistribute it and/or \n" \
  "modify it under the terms of the GNU General Public License as \n" \
  "published by the Free Software Foundation; either version 2, or \n" \
  "(at your option) any later version.\n\n"

#endif /* __COMMON_H */


------------------------------------------------------------------------------

_______________________________________________
Gambas-user-fr mailing list
Gambas-user-fr@...
https://lists.sourceforge.net/lists/listinfo/gambas-user-fr

 « Return to Thread: GB3 sur Mac, Connaissance :-)