Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2011-12

FpGetRLimit and FpSetRLimit reference an undefined symbol

4 messages · 3 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Seth Grover

When I attempt to use fpgetrlimit and fpsetrlimit from the baseunix unit (see http://www.freepascal.org/docs-html/rtl/baseunix/fpgetrlimit.html and http://www.freepascal.org/docs-html/rtl/baseunix/fpsetrlimit.html), compilation fails with:

undefined reference to `FPC_SYSC_GETRLIMIT'

This happens targetting Linux for both i386 and x86_64.

Is this a bug?

Thanks,

-SG

This email is fiction. Any resemblance to actual events or persons living or dead is purely coincidental. Seth Grover

Reply by email

Jonas Maebe
to Seth Grover
Seth Grover wrote 10 lines
When I attempt to use fpgetrlimit and fpsetrlimit from the baseunix unit (see http://www.freepascal.org/docs-html/rtl/baseunix/fpgetrlimit.html and http://www.freepascal.org/docs-html/rtl/baseunix/fpsetrlimit.html), compilation fails with: undefined reference to `FPC_SYSC_GETRLIMIT' This happens targetting Linux for both i386 and x86_64. Is this a bug?

Yes, it seems like a missing public alias for the FpGetRLimit function in the Linux system unit.

Jonas

Reply by email

Marco van de Voort
to Jonas Maebe

In our previous episode, Jonas Maebe said:

> undefined reference to `FPC_SYSC_GETRLIMIT' Yes, it seems like a missing public alias for the FpGetRLimit function in the Linux system unit.

I added it.

Reply by email

Seth Grover
> Yes, it seems like a missing public alias for the FpGetRLimit function in > the Linux system unit. I added it.

Thank you both.

-SG

This email is fiction. Any resemblance to actual events or persons living or dead is purely coincidental. Seth Grover `

Reply by email