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

Re: GB3 sur Mac, Connaissance :-)

by Benoît Minisini :: Rate this Message:

Reply to Author | View in Thread

>
> Oui Mac OS X est basé sur FreeBSD :) . Je n'ai pas fait la remarque
> car je pensais
> que tu le savais lol. C'est pas bien grave.

Je le savais en fait, mais je ne savais pas que *c'était* un FreeBSD. Enfin
plus ou moins émulé je crois...

>
> Donc bon j'ai du nouveau avec le fichier gb_common.h que tu m'as
> envoyé, ca a l'air
> de marcher, j'ai une autre erreur provenant maintenant de gb_error.h
>
> (cd .libs && rm -f gb.0.so && ln -s gb.0.0.0.so gb.0.so)
> (cd .libs && rm -f gb.so && ln -s gb.0.0.0.so gb.so)
> creating gb.la
> (cd .libs && rm -f gb.la && ln -s ../gb.la gb.la)
> 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
> mv -f .deps/gbx3-gb_common.Tpo .deps/gbx3-gb_common.Po
> 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-
> gbx_debug.o -MD -MP -MF .deps/gbx3-gbx_debug.Tpo -c -o gbx3-
> gbx_debug.o `test -f 'gbx_debug.c' || echo './'`gbx_debug.c
> mv -f .deps/gbx3-gbx_debug.Tpo .deps/gbx3-gbx_debug.Po
> if 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 -
> O3  -MT gbx3-gb_error.o -MD -MP -MF ".deps/gbx3-gb_error.Tpo" -c -o
> gbx3-gb_error.o `test -f 'gb_error.c' || echo './'`gb_error.c; then mv
> -f ".deps/gbx3-gb_error.Tpo" ".deps/gbx3-gb_error.Po"; else rm -f
> ".deps/gbx3-gb_error.Tpo"; exit 1; fi
> gb_error.c:435: error: conflicting types for ‘ERROR_print_at’
> gb_error.h:202: error: previous declaration of ‘ERROR_print_at’ was here

Chez moi les deux lignes sont identiques, donc tu ne devrais pas avoir
d'erreur... ???

Tapes ça:

$ cd <le chemin qui va bien>
$ gcc -DHAVE_CONFIG_H -I. -I.. -I../share -D_REENTRANT -I../libltdl  -
I/usr/include/ffi/  -DGAMBAS_PATH="\"/usr/local/bin\"" -E gb_error.c | less

Ca génère le code C réellement compilé.

Avec "less", cherche ERROR_print_at, et compare la déclaration avec
l'implémentation. Dis-moi si c'est identique ou pas.

--
Benoît

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

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