Re: Beginner - problem linking pascal program
David Given <dg <at> cowlark.com>
2010-09-27 20:54:44 GMT
On 27/09/10 15:27, erik <at> backerud.se wrote:
(Do I owe you a reply to a message from weeks ago?)
[...]
> Now I can compile Pascal programs with a command like: "ack -o f2 f2.p". This seems to work except when the
program contains calls to the standard procedures reset() and rewrite(), then I get an error from the linker:
> Undefined:
> __open
> __creat
> _remove
> There are modules with names like: 1317-pcreat.o in libpascal.a. and that files seems to contain the
symbol '__creat' for example. What am I doing wrong?
[...]
Nothing. I've just had a look at the libpascal source code and the
relevant files are calling _open() and _creat() instead of open() and
creat() for some reason; it is perfectly legitimately broken. remove()
was simply not supported in the extremely minimal syscall library for
linux386.
I've changed libpascal to call the correct functions, and I've added
remove() and unlink() to the syscall library; however as these changes
are scattered across the system I'm not going to try and produce a
patch, so I'm afraid I'll have to ask you to check out head of CVS to
get the fixed version. None of this is at all tested. There may be a
*reason* why libpascal is calling _open() and _creat().
To check out CVS, install a CVS client, then run this commands:
cvs -z3 -d:pserver:anonymous <at> tack.cvs.sourceforge.net:/cvsroot/tack co
-P Ack
This will download the ACK source into a directory called Ack.
Sorry for the inconvenience...
--
┌─── dg@cowlark.com ─────
http://www.cowlark.com ─────
│ "To be is to do" -- Nietzche
│ "To do is to be" -- Sartre
│ "Do be do be do" -- Sinatra
------------------------------------------------------------------------------
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing.
http://p.sf.net/sfu/novell-sfdev2dev
_______________________________________________
Tack-devel mailing list
Tack-devel <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tack-devel