Autor Tema: Haiku OS port  (Leído 21276 veces)

josebita

  • Administrator
  • *****
  • Mensajes: 4039
  • Karma: 257
    • BennuGD Mobile Worklog
Re: Haiku OS port
« Respuesta #15 en: Septiembre 06, 2010, 11:49:12 pm »
Thanks! Any chance of getting this into haikuports?

EugeneP

  • Jr. Member
  • **
  • Mensajes: 81
  • Karma: 12
    • http://uwolke.ru
Re: Haiku OS port
« Respuesta #16 en: Septiembre 07, 2010, 05:01:14 am »
Thanks! Any chance of getting this into haikuports?

Yes. As soon as I learn how to use HaikuPorter.

josebita

  • Administrator
  • *****
  • Mensajes: 4039
  • Karma: 257
    • BennuGD Mobile Worklog
Re: Haiku OS port
« Respuesta #17 en: Septiembre 07, 2010, 07:35:48 am »
Great! Thanks a lot!

PS: Splinter, the changes are in the script. He's basically not linking against libm (as its functionality is included in libroot in Haiku, but we don't really need to explicitly link against it as SDL relies on it).
« última modificación: Septiembre 07, 2010, 09:56:07 am por josebita »

SplinterGU

  • Hero Member
  • *****
  • Mensajes: 12536
  • Karma: 370
Re: Haiku OS port
« Respuesta #18 en: Septiembre 07, 2010, 10:53:54 am »
then no changes in code?
Download Lastest BennuGD Release: http://www.bennugd.org/node/2

EugeneP

  • Jr. Member
  • **
  • Mensajes: 81
  • Karma: 12
    • http://uwolke.ru
Re: Haiku OS port
« Respuesta #19 en: Septiembre 07, 2010, 11:17:37 am »
then no changes in code?

Code with no changes will be compiled successfully but won't work. The problem in POSIX [not]compliance of Haiku dl-* functions. Work on this problem is being done but I decided that it is better to make a workaround for now (until next Haiku release).

This is my "patch" to avoid problems:

[code language="bash"]#removing dependence on libm
sed -i 's/ -lz -lm/ -lz/' modules/configure.in
#problems with dladdr on Haiku
sed -i 's/strcmp( ptr, handle->fname )/0/' core/include/loadlib.h[/code]

Literally changing 2 lines. This is kind of ugly but does trick for now.
« última modificación: Septiembre 07, 2010, 11:21:02 am por EugeneP »

SplinterGU

  • Hero Member
  • *****
  • Mensajes: 12536
  • Karma: 370
Re: Haiku OS port
« Respuesta #20 en: Septiembre 07, 2010, 11:28:46 am »
please, let me know the return of "uname -a" command in your haiku os.

thanks.
Download Lastest BennuGD Release: http://www.bennugd.org/node/2

EugeneP

  • Jr. Member
  • **
  • Mensajes: 81
  • Karma: 12
    • http://uwolke.ru
Re: Haiku OS port
« Respuesta #21 en: Septiembre 07, 2010, 11:34:47 am »
uname -a
Haiku shredder 1 r38492 Sep 1 2010 10:51:51 BePC Haiku

----edit---

It's a gcc4 hybrid.

there should not be any problems on Haiku past R1-rc1
« última modificación: Septiembre 07, 2010, 11:38:01 am por EugeneP »

SplinterGU

  • Hero Member
  • *****
  • Mensajes: 12536
  • Karma: 370
Re: Haiku OS port
« Respuesta #22 en: Septiembre 07, 2010, 04:24:29 pm »
one question more

if you run "./configure" ... what say in "Your machine:" ?

you can use "./configure |grep Your"

thanks
Download Lastest BennuGD Release: http://www.bennugd.org/node/2

EugeneP

  • Jr. Member
  • **
  • Mensajes: 81
  • Karma: 12
    • http://uwolke.ru
Re: Haiku OS port
« Respuesta #23 en: Septiembre 07, 2010, 06:24:31 pm »
Your machine: i586 haiku

host system type: i586-pc-haiku

SplinterGU

  • Hero Member
  • *****
  • Mensajes: 12536
  • Karma: 370
Re: Haiku OS port
« Respuesta #24 en: Septiembre 07, 2010, 08:53:54 pm »
thanks!
Download Lastest BennuGD Release: http://www.bennugd.org/node/2

SplinterGU

  • Hero Member
  • *****
  • Mensajes: 12536
  • Karma: 370
Re: Haiku OS port
« Respuesta #25 en: Septiembre 07, 2010, 09:15:38 pm »
I have a question.

what TARGET_* you set?
Download Lastest BennuGD Release: http://www.bennugd.org/node/2

SplinterGU

  • Hero Member
  • *****
  • Mensajes: 12536
  • Karma: 370
Re: Haiku OS port
« Respuesta #26 en: Septiembre 07, 2010, 09:19:57 pm »
can you tell me that value give  ptr and handle->fname in loadlib.h when bennugd do strcmp?

this strcmp is needed.
Download Lastest BennuGD Release: http://www.bennugd.org/node/2

SplinterGU

  • Hero Member
  • *****
  • Mensajes: 12536
  • Karma: 370
Re: Haiku OS port
« Respuesta #27 en: Septiembre 07, 2010, 09:27:12 pm »
Can you update the svn and test it directly? without script.

I need the info in loadlib of ptr and handle->fname, for complete the port.

I suggest:

Código: [Seleccionar]
printf ("ptr:[%] handle->fname:[%s]\n", ptr, handle->fname ); fflush(stdout);

thanks.

PS: I add TARGET_HAIKU and new OS_ID = OS_HAIKU
Download Lastest BennuGD Release: http://www.bennugd.org/node/2

josebita

  • Administrator
  • *****
  • Mensajes: 4039
  • Karma: 257
    • BennuGD Mobile Worklog
Re: Haiku OS port
« Respuesta #28 en: Septiembre 07, 2010, 09:57:51 pm »
I believe it's in the spirit of Haiku to be used as BeOS, so maybe having OS_ID OS_HAIKU=OS_BEOS should be appropriate.

SplinterGU

  • Hero Member
  • *****
  • Mensajes: 12536
  • Karma: 370
Re: Haiku OS port
« Respuesta #29 en: Septiembre 07, 2010, 10:11:35 pm »
you are sure?

I think that BeOS for old versions... HAIKU for new versions... but maybe I wrong.
Download Lastest BennuGD Release: http://www.bennugd.org/node/2