Haiku OS port

Started by EugeneP, August 19, 2010, 08:01:05 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

josebita

Thanks! Any chance of getting this into haikuports?

EugeneP

Quote from: josebita on September 06, 2010, 11:49:12 PM
Thanks! Any chance of getting this into haikuports?

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

josebita

#17
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).

SplinterGU

then no changes in code?
Download Lastest BennuGD Release: http://www.bennugd.org/node/2

EugeneP

#19
Quote from: SplinterGU on September 07, 2010, 10:53:54 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.

SplinterGU

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

#21
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

SplinterGU

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

Your machine: i586 haiku

host system type: i586-pc-haiku

SplinterGU

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

SplinterGU

I have a question.

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

SplinterGU

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

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:


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

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

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