OSDK bugs

Questions, bug reports, features requests, ... about the Oric Software Development Kit. Please indicate clearly in the title the related element (OSDK for generic questions, PictConv, FilePack, XA, Euphoric, etc...) to make it easy to locate messages.

Post Reply
User avatar
Dbug
Site Admin
Posts: 2773
Joined: Fri Jan 06, 2006 10:00 pm
Location: Oslo, Norway
Contact:

OSDK bugs

Post by Dbug » Sun Mar 01, 2015 3:31 pm

Hi.
I spent a bit of time today to implement a very primitive issue tracking system on the osdk site:
http://www.osdk.org/index?page=issues

Considering the low traffic, it does not really make sense to have a full system such as Bugzilla, Kira, Mantis, etc... so that will have to do :)

Of course over time I will add some details, task id, css to make it pretty, reprocase, etc... but in the mean time if you want to get issues worked on they will have to appear on this page.

To make them appear, the easiest is to either send me a mail (dbug@defence-force.org) or post on this thread with a clear description of what the problem is, ideally with sample code or easy to reproduce examples.

Thanks!

User avatar
iss
Squad Leader
Posts: 722
Joined: Sat Apr 03, 2010 5:43 pm
Location: Bulgaria
Contact:

Re: OSDK bugs

Post by iss » Mon Oct 19, 2015 7:25 pm

I found little bug in OSDK libraries.
Problem: Can't compile program which uses both functions 'memcpy' and 'strcpy'.
Error: Symbol 'get_2ptr' is already defined.
Sample code:

Code: Select all

#include <lib.h>
static char* a = "a";
static char b[2];
void main(void)
{
    strcpy(b,a);
    memcpy(b,a,2);
}
Possible solution: In file 'osdk/main/Osdk/_final_/lib/strcpy.s' remove duplicated code - from line #28 to end of file. This code is defined in 'osdk/main/Osdk/_final_/lib/c_parameters.s'.

User avatar
Dbug
Site Admin
Posts: 2773
Joined: Fri Jan 06, 2006 10:00 pm
Location: Oslo, Norway
Contact:

Re: OSDK bugs

Post by Dbug » Mon Oct 19, 2015 8:03 pm

Your fix is correct, thanks for reporting :)

If you look in library.ndx you will see that the symbol is already present:

Code: Select all

-c_parameters.s	
	get_2ptr
It will be fixed in the next version of the OSDK, in the mean time please remove the version of get_2ptr which is not in the c_parameters.s file

User avatar
iss
Squad Leader
Posts: 722
Joined: Sat Apr 03, 2010 5:43 pm
Location: Bulgaria
Contact:

Re: OSDK bugs

Post by iss » Mon Oct 19, 2015 10:27 pm

Thanks for update in defence-force SVN. This bug is Dbug-ged now! ;)

User avatar
iss
Squad Leader
Posts: 722
Joined: Sat Apr 03, 2010 5:43 pm
Location: Bulgaria
Contact:

Re: OSDK bugs

Post by iss » Tue Jan 01, 2019 5:10 pm

A post at ori.org forum has exposed an annoying bug with rand() and random() functions in OSDK. The problem actually is that rand() is defined in 'lib.h' and in 'stdlib.h'. If you use only rand() then the definition in 'lib.h" is used and it works ok, but if you use random() then both _rand and _random (which are the same thing) are linked from lib/rand.s and imho they don't work .
Possible solution is to remove rand/random from the lib/rand.s. BTW, there is a file 'lib/random.s' too, which is unused at all.

User avatar
retroric
Pilot Officer
Posts: 66
Joined: Sun Nov 22, 2009 4:33 pm
Location: Paris, France

Re: OSDK bugs

Post by retroric » Tue Jan 01, 2019 11:00 pm

This is the post iss refers to:
http://forums.oric.org/t633-fonction-random-et-rand

Speaking of OSDK issues, there seems to be a bug about the bug tracking system itself :D , this page seems to have vanished:
http://www.osdk.org/index?page=issues
flag_fr RetrOric, aka laurentd75 flag_uk
            GitHub - RetrOric

User avatar
Dbug
Site Admin
Posts: 2773
Joined: Fri Jan 06, 2006 10:00 pm
Location: Oslo, Norway
Contact:

Re: OSDK bugs

Post by Dbug » Fri Jan 04, 2019 6:31 pm

Before I look more in detail, is it a new issue, or is it the same as in described there:
viewtopic.php?f=24&t=1870&p=18007&hilit=rand#p18007

User avatar
iss
Squad Leader
Posts: 722
Joined: Sat Apr 03, 2010 5:43 pm
Location: Bulgaria
Contact:

Re: OSDK bugs

Post by iss » Fri Jan 04, 2019 7:19 pm

Yes, it's the same bug.

Post Reply