RE: [fpc-devel] DLL WIN64: Entry point not found

2007-07-18 Thread Luc Vigato, Sita Software
That's my sql with the error code from firebird. SELECT simple('tes t !') FROM rdb$database ISC ERROR CODE:335544343 ISC ERROR MESSAGE: invalid request BLR at offset 79 function SIMPLE is not defined module name or entrypoint could not be found UDF declation is DECLARE EXTERNAL FUNCTION SIMPL

RE: [fpc-devel] DLL WIN64: Entry point not found

2007-07-18 Thread Luc Vigato, Sita Software
A host application compiled with fpc don't have this problem. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Vincent Snijders Sent: mercredi 18 juillet 2007 18:41 To: FPC developers' list Subject: Re: [fpc-devel] DLL WIN64: Entry point not found Luc Viga

Re: [fpc-devel] Linux kernel behaviour change regarding keyboard

2007-07-18 Thread Bisma Jayadi
Therefore, console is popular as well. I second this! So far I've using FPC to develop server-side application (using PSP/PWU) which has no X installed on the server machine and I only have SSH access to the machine. fpIDE is the best text mode IDE on Linux. -Bee- has Bee.ography at: http:/

Re: [fpc-devel] Linux kernel behaviour change regarding keyboard

2007-07-18 Thread Marco van de Voort
> On Wed, 18 Jul 2007, Dani?l Mantione wrote: > > What is bad about such a solution? > > It's not KIS. If you can't have certain keys without being root, well then > you'll have to learn to live with it. IMHO either give up the textmode IDE, or try to support it to the fullest extend. > This is

Re: [fpc-devel] Linux kernel behaviour change regarding keyboard

2007-07-18 Thread Marco van de Voort
> Op Wed, 18 Jul 2007, schreef Michael Van Canneyt: > > Under the assumption a setuid root program is the only possible option: > > > > The safest - and in my opinion only correct - way is to write a small > > setuid > > root program which sets the proper TTY stuff, and then executes the IDE as

Re: [fpc-devel] Linux kernel behaviour change regarding keyboard

2007-07-18 Thread Marco van de Voort
> Ales wrote: > A project the size of the IDE is unauditable, given it's size. > This again is not meant to criticize the IDE - any project of the size > is unauditable. Not that it is doable for us for the IDE, but OpenBSD seems to think otherwise. But I still think not making a separation betwe

Re: [fpc-devel] Linux kernel behaviour change regarding keyboard

2007-07-18 Thread Daniël Mantione
Op Wed, 18 Jul 2007, schreef Michael Van Canneyt: > > The "scary" thing is the setuid root. The communication channel can be > > standard i/o and there is nothing scary about that. > > There is: a user using the keyboard unit should then distribute the > (setuid) program too, and that is not a

Re: [fpc-devel] Signal handlers

2007-07-18 Thread Jonas Maebe
On 18 Jul 2007, at 22:17, Micha Nelissen wrote: Jonas Maebe wrote: Since there are only 3 parameters, it should be possible to do this even on i386. Implemented and committed; but thinking about it, does it really matter ? It's still being executed more or less asynchronous to the appli

Re: [fpc-devel] Linux kernel behaviour change regarding keyboard

2007-07-18 Thread Michael Van Canneyt
On Wed, 18 Jul 2007, Daniël Mantione wrote: > > > Op Wed, 18 Jul 2007, schreef Michael Van Canneyt: > > > > > > > On Wed, 18 Jul 2007, Daniël Mantione wrote: > > > > > > > > > > > Op Wed, 18 Jul 2007, schreef Michael Van Canneyt: > > > > > > > > > well then that's it... If you want to u

Re: [fpc-devel] Signal handlers

2007-07-18 Thread Micha Nelissen
Jonas Maebe wrote: > Since there are only 3 parameters, it should be possible to do this even > on i386. Implemented and committed; but thinking about it, does it really matter ? It's still being executed more or less asynchronous to the application: it could be in the middle of heap manager opera

Re: [fpc-devel] Linux kernel behaviour change regarding keyboard

2007-07-18 Thread Daniël Mantione
Op Wed, 18 Jul 2007, schreef Michael Van Canneyt: > > > On Wed, 18 Jul 2007, Daniël Mantione wrote: > > > > > > > Op Wed, 18 Jul 2007, schreef Michael Van Canneyt: > > > > > > > well then that's it... If you want to use these keys, you'll have to > > > > > run your > > > > > programs as r

Re: [fpc-devel] Linux kernel behaviour change regarding keyboard

2007-07-18 Thread Michael Van Canneyt
On Wed, 18 Jul 2007, Daniël Mantione wrote: > > > Op Wed, 18 Jul 2007, schreef Michael Van Canneyt: > > > > > well then that's it... If you want to use these keys, you'll have to > > > > run your > > > > programs as root... > > > > > > > > Or use a GUI IDE like Lazarus... > > > > > > You j

Re: [fpc-devel] Linux kernel behaviour change regarding keyboard

2007-07-18 Thread Daniël Mantione
Op Wed, 18 Jul 2007, schreef Michael Van Canneyt: > > > well then that's it... If you want to use these keys, you'll have to run > > > your > > > programs as root... > > > > > > Or use a GUI IDE like Lazarus... > > > > You just proposed this yourself, but before executing the IDE? > > ? I pr

Re: [fpc-devel] Linux kernel behaviour change regarding keyboard

2007-07-18 Thread Michael Van Canneyt
On Wed, 18 Jul 2007, Daniël Mantione wrote: > > > Op Wed, 18 Jul 2007, schreef Michael Van Canneyt: > > > > > > > On Wed, 18 Jul 2007, Daniël Mantione wrote: > > > > > > > > > > > Op Wed, 18 Jul 2007, schreef Michael Van Canneyt: > > > > > > > On Wed, 18 Jul 2007, Ales( Katona wrote: >

Re: [fpc-devel] Linux kernel behaviour change regarding keyboard

2007-07-18 Thread Daniël Mantione
Op Wed, 18 Jul 2007, schreef Michael Van Canneyt: > > > On Wed, 18 Jul 2007, Daniël Mantione wrote: > > > > > > > Op Wed, 18 Jul 2007, schreef Michael Van Canneyt: > > > > > On Wed, 18 Jul 2007, Ales( Katona wrote: > > > > > > > Why? You have your good ol' PING doing it. I agree tho that

Re: [fpc-devel] Linux kernel behaviour change regarding keyboard

2007-07-18 Thread Michael Van Canneyt
On Wed, 18 Jul 2007, Daniël Mantione wrote: > > > Op Wed, 18 Jul 2007, schreef Michael Van Canneyt: > > > On Wed, 18 Jul 2007, Ales( Katona wrote: > > > > > Why? You have your good ol' PING doing it. I agree tho that if a wrapper > > > can do it for us it's safest. Or if the ide can do it on

Re: [fpc-devel] Linux kernel behaviour change regarding keyboard

2007-07-18 Thread Daniël Mantione
Op Wed, 18 Jul 2007, schreef Michael Van Canneyt: > On Wed, 18 Jul 2007, Ales( Katona wrote: > > > Why? You have your good ol' PING doing it. I agree tho that if a wrapper > > can do it for us it's safest. Or if the ide can do it on start, and > > always setuid(userid) itself right after settin

Re: [fpc-devel] Linux kernel behaviour change regarding keyboard

2007-07-18 Thread Daniël Mantione
Op Wed, 18 Jul 2007, schreef Jonas Maebe: > > On 17 Jul 2007, at 23:20, Marco van de Voort wrote: > > > > The result is that the keyboard unit is no longer able to catch keys > > > like > > > escape, shift+tab alt+F1..F12 etc. on the Linux console. This affects > > > the > > > Free Pascal IDE

Re: [fpc-devel] Linux kernel behaviour change regarding keyboard

2007-07-18 Thread Michael Van Canneyt
On Wed, 18 Jul 2007, Ales( Katona wrote: > Why? You have your good ol' PING doing it. I agree tho that if a wrapper > can do it for us it's safest. Or if the ide can do it on start, and > always setuid(userid) itself right after setting the proper things. I > don't see a problem with ANY program

Re: [fpc-devel] Linux kernel behaviour change regarding keyboard

2007-07-18 Thread Daniël Mantione
Op Wed, 18 Jul 2007, schreef Sergei Gorelkin: > Jonas Maebe wrote: > > > > On 18 Jul 2007, at 14:08, Jonas Maebe wrote: > > > > > > Install the IDE setuid. > > > > > > That would be an extremely bad idea with the current stability record > > > of the IDE. > > > > Not to mention that it allow

Re: [fpc-devel] Linux kernel behaviour change regarding keyboard

2007-07-18 Thread Daniël Mantione
Op Wed, 18 Jul 2007, schreef Michael Van Canneyt: > > > On Wed, 18 Jul 2007, Marco van de Voort wrote: > > > > On 18 Jul 2007, at 14:08, Jonas Maebe wrote: > > > > > > >> Install the IDE setuid. > > > > > > > > That would be an extremely bad idea with the current stability > > > > record o

Re: [fpc-devel] Linux kernel behaviour change regarding keyboard

2007-07-18 Thread Christian Iversen
Ales wrote: Strawman yes, but if we setuid to userid right after setting the console stuff, there's nothing left to audit. We're not malicious software makers so there's no chance anything else could happen? Or am I missing something here? eg: fp starts fp sets itself to uid 0 fp sets the requi

Re: [fpc-devel] Linux kernel behaviour change regarding keyboard

2007-07-18 Thread Katona <[EMAIL PROTECTED]>
Strawman yes, but if we setuid to userid right after setting the console stuff, there's nothing left to audit. We're not malicious software makers so there's no chance anything else could happen? Or am I missing something here? eg: fp starts fp sets itself to uid 0 fp sets the required things as

Re: [fpc-devel] Linux kernel behaviour change regarding keyboard

2007-07-18 Thread Christian Iversen
Ales wrote: Why? You have your good ol' PING doing it. Unbelievable strawman argument there. This is not at all a critique of the IDE, but please don't compare the complexity of "ping" and "fpide"(!) I agree tho that if a wrapper can do it for us it's safest. Or if the ide can do it on start

Re: [fpc-devel] Linux kernel behaviour change regarding keyboard

2007-07-18 Thread Katona <[EMAIL PROTECTED]>
Why? You have your good ol' PING doing it. I agree tho that if a wrapper can do it for us it's safest. Or if the ide can do it on start, and always setuid(userid) itself right after setting the proper things. I don't see a problem with ANY program being setuid if it has a proper reason, and is audi

Re: [fpc-devel] Linux kernel behaviour change regarding keyboard

2007-07-18 Thread Christian Iversen
Ales wrote: And to add to my last setuid stuff.. I think that if we properly audit the IDE code so that: a) fpc is called in the uid of the original ide starter b) the "console" is run in the uid of the original ide starter c) compiler programs are called in the uid of the original IDE starter

Re: [fpc-devel] Linux kernel behaviour change regarding keyboard

2007-07-18 Thread Christian Iversen
Ales wrote: While I agree that it could cause some PR trouble, I don't see how this is our problem. It's not like anyone blames the software makers for windows security issues... You cannot seriously mean that. I agree 100% with Jonas here. PLEASE rethink your position Ales :-) -- Regards, C

Re: [fpc-devel] Linux kernel behaviour change regarding keyboard

2007-07-18 Thread Christian Iversen
Michael Van Canneyt wrote: On Wed, 18 Jul 2007, Marco van de Voort wrote: On 18 Jul 2007, at 14:08, Jonas Maebe wrote: Install the IDE setuid. That would be an extremely bad idea with the current stability record of the IDE. Not to mention that it allows you to open and overwrite any arbit

Re: [fpc-devel] Linux kernel behaviour change regarding keyboard

2007-07-18 Thread Katona <[EMAIL PROTECTED]>
And to add to my last setuid stuff.. I think that if we properly audit the IDE code so that: a) fpc is called in the uid of the original ide starter b) the "console" is run in the uid of the original ide starter c) compiler programs are called in the uid of the original IDE starter I think it's o

Re: [fpc-devel] DLL WIN64: Entry point not found

2007-07-18 Thread Dimitrios Chr. Ioannidis
O/H Vincent Snijders έγραψε: Mark - WBIsoft.COM schreef: I think the calling convention be STDCALL ? IIRC, that is the same on win64. Are you sure about this ? AFAIK, they have opposite order of arguments in stack. In cdecl caller will clean up stack after the call (raise ESP) while in

Re: [fpc-devel] Linux kernel behaviour change regarding keyboard

2007-07-18 Thread Katona <[EMAIL PROTECTED]>
Jonas Maebe wrote / napísal(a): Oh and btw, setuid is generaly used afaik. It's a normal thing to allow temporary root access on normal programs in linux. Ofcourse doing it on something like fpIDE is somewhat questionable (heh the possibilities :D), but I don't see it as such a great risk. The mo

Re: [fpc-devel] Linux kernel behaviour change regarding keyboard

2007-07-18 Thread Katona <[EMAIL PROTECTED]>
Why? If they allow it it's their problem. If there's no sane way to do something and we do it this way it's their problem that it's allowed... I just don't see as how this whole thing is "our" problem. I guess we could ask on install, "do you want a rootkit or no shortcuts?"... > > This has nothi

Re: [fpc-devel] DLL WIN64: Entry point not found

2007-07-18 Thread Vincent Snijders
Luc Vigato, Sita Software schreef: Here an little test DLL (SitaUdfLib.pas). It also don't work with firebird 2.1 64bit version. How can I test this, without installing firebird? Do you have another host application? Vincent ___ fpc-devel maillist

Re: [fpc-devel] Linux kernel behaviour change regarding keyboard

2007-07-18 Thread Marco van de Voort
> On 18 Jul 2007, at 17:42, Marco van de Voort wrote: > > >> arguments like "the kernel forcing us to do so" will not help us > >> then. > > > > What is the security hole exactly? > > If you install the IDE as setuid root, then every user starting the > IDE will run the IDE as if he were root

Re: [fpc-devel] Linux kernel behaviour change regarding keyboard

2007-07-18 Thread Jonas Maebe
On 18 Jul 2007, at 18:01, Ales( Katona <[EMAIL PROTECTED]> wrote: While I agree that it could cause some PR trouble, I don't see how this is our problem. It's not like anyone blames the software makers for windows security issues... This has nothing at all to do with "pr trouble", but w

Re: [fpc-devel] Linux kernel behaviour change regarding keyboard

2007-07-18 Thread Tomas Hajny
Michael Van Canneyt wrote: > On Wed, 18 Jul 2007, Marco van de Voort wrote: >> > On 18 Jul 2007, at 14:08, Jonas Maebe wrote: >> > >> > >> Install the IDE setuid. >> > > >> > > That would be an extremely bad idea with the current stability >> > > record of the IDE. >> > >> > Not to mention that it

Re: [fpc-devel] Linux kernel behaviour change regarding keyboard

2007-07-18 Thread Katona <[EMAIL PROTECTED]>
While I agree that it could cause some PR trouble, I don't see how this is our problem. It's not like anyone blames the software makers for windows security issues... > > If you install the IDE as setuid root, then every user starting the > IDE will run the IDE as if he were root. That means he can

Re: [fpc-devel] Linux kernel behaviour change regarding keyboard

2007-07-18 Thread Jonas Maebe
On 18 Jul 2007, at 17:42, Marco van de Voort wrote: On Wed, 18 Jul 2007, Marco van de Voort wrote: On 18 Jul 2007, at 14:08, Jonas Maebe wrote: Install the IDE setuid. That would be an extremely bad idea with the current stability record of the IDE. Not to mention that it allows you to

Re: [fpc-devel] Linux kernel behaviour change regarding keyboard

2007-07-18 Thread Marco van de Voort
> On Wed, 18 Jul 2007, Marco van de Voort wrote: > > > > On 18 Jul 2007, at 14:08, Jonas Maebe wrote: > > > > > > >> Install the IDE setuid. > > > > > > > > That would be an extremely bad idea with the current stability > > > > record of the IDE. > > > > > > Not to mention that it allows you t

Re: [fpc-devel] Linux kernel behaviour change regarding keyboard

2007-07-18 Thread Marco van de Voort
> On Tuesday 17 July 2007 11:20:54 pm Marco van de Voort wrote: > > > Apparently someone suddenly got a good idea that you need to be root to > > > reprogram the keyboard, and got a patch merged into the Linux kernel: > > > > > > http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=co

RE: [fpc-devel] DLL WIN64: Entry point not found

2007-07-18 Thread Luc Vigato, Sita Software
Here an little test DLL (SitaUdfLib.pas). It also don't work with firebird 2.1 64bit version. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Felipe Monteiro de Carvalho Sent: mercredi 18 juillet 2007 16:48 To: FPC developers' list Subject: Re: [fpc-de

Re: [fpc-devel] Linux kernel behaviour change regarding keyboard

2007-07-18 Thread Den Jean
On Tuesday 17 July 2007 11:20:54 pm Marco van de Voort wrote: > > Apparently someone suddenly got a good idea that you need to be root to > > reprogram the keyboard, and got a patch merged into the Linux kernel: > > > > http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit > >di

Re: [fpc-devel] Linux kernel behaviour change regarding keyboard

2007-07-18 Thread Michael Van Canneyt
On Wed, 18 Jul 2007, Marco van de Voort wrote: > > On 18 Jul 2007, at 14:08, Jonas Maebe wrote: > > > > >> Install the IDE setuid. > > > > > > That would be an extremely bad idea with the current stability > > > record of the IDE. > > > > Not to mention that it allows you to open and overwri

Re: [fpc-devel] DLL WIN64: Entry point not found

2007-07-18 Thread Felipe Monteiro de Carvalho
On 7/18/07, Luc Vigato, Sita Software <[EMAIL PROTECTED]> wrote: The export table seems to be OK, but from where comes the error "Entry point not found"? I don't have any idea. I'm open for all suggestions. Try to reproduce with a small DLL (the smaller the better). And then post the source cod

RE: [fpc-devel] DLL WIN64: Entry point not found

2007-07-18 Thread Luc Vigato, Sita Software
The export table seems to be OK, but from where comes the error "Entry point not found"? I don't have any idea. I'm open for all suggestions. Result of MiTeC EXE explorer. Dump of file \\pc-luc\DeRaoul\SitaUdfLib.dll Created by EXE Explorer 1.0.0.0 - Copyright C 2006 Michal Mutl DOS HEADER

Re: [fpc-devel] DLL WIN64: Entry point not found

2007-07-18 Thread Mark - WBIsoft.COM
Ok, try the MiTeC EXE explorer from http://www.mitec.cz I use it for my 64bit windows dll's ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel

Re: [fpc-devel] Linux kernel behaviour change regarding keyboard

2007-07-18 Thread Marco van de Voort
> On 18 Jul 2007, at 14:08, Jonas Maebe wrote: > > >> Install the IDE setuid. > > > > That would be an extremely bad idea with the current stability > > record of the IDE. > > Not to mention that it allows you to open and overwrite any arbitrary > file. Yes. Just like we all have for decades

[fpc-devel] tlibrary3 test

2007-07-18 Thread Vincent Snijders
What is the purpose of the tlibrary3 test: http://www.freepascal.org/cgi-bin/viewcvs.cgi/trunk/tests/test/tlibrary3.pp?view=markup It does not compile on win64, because there is no unit initc, because there is not cygwin.dll for win64. Vincent ___ fp

Re: [fpc-devel] Linux kernel behaviour change regarding keyboard

2007-07-18 Thread Sergei Gorelkin
Jonas Maebe wrote: On 18 Jul 2007, at 14:08, Jonas Maebe wrote: Install the IDE setuid. That would be an extremely bad idea with the current stability record of the IDE. Not to mention that it allows you to open and overwrite any arbitrary file. Looking at that kernel patch, I see that

Re: [fpc-devel] Running test suite for 2.1.4 on linux/sparc

2007-07-18 Thread Mark Morgan Lloyd
Mark Morgan Lloyd wrote: Ah- the kernel buffer is full of "Kernel unaligned access" messages. What I can't say is whether this is the result of testing or because of something that was being done on this machine a few minutes ago, however this is suspiciously similar to the fault I was getting

Re: [fpc-devel] Linux kernel behaviour change regarding keyboard

2007-07-18 Thread Jonas Maebe
On 18 Jul 2007, at 14:08, Jonas Maebe wrote: Install the IDE setuid. That would be an extremely bad idea with the current stability record of the IDE. Not to mention that it allows you to open and overwrite any arbitrary file. Jonas ___ fpc

Re: [fpc-devel] Linux kernel behaviour change regarding keyboard

2007-07-18 Thread Jonas Maebe
On 17 Jul 2007, at 23:20, Marco van de Voort wrote: The result is that the keyboard unit is no longer able to catch keys like escape, shift+tab alt+F1..F12 etc. on the Linux console. This affects the Free Pascal IDE and any other program using the keyboard unit. Install the IDE setuid.

Re: [fpc-devel] Signal handlers

2007-07-18 Thread Jonas Maebe
On 17 Jul 2007, at 23:43, Micha Nelissen wrote: SignalToRunError is a signal handler, but it calls an ErrorProc calling many functions, like CRelocateThreadVar (for accessing the exception stack), GetMem (to allocate an exception object); are these functions guaranteed to run correctly in a s

RE: [fpc-devel] DLL WIN64: Entry point not found

2007-07-18 Thread Luc Vigato, Sita Software
I have tried at the moment the DLL only with PE Explorer PE Explorer gives an error . I don't know about other dependancy checker. When you give me an other depandancy checker I try it. When loading DLL with PE Explorer 18.07.2007 13:47:09 : Open File: D:\Fichiers echange\DeRaoul\SitaUdfLib.dll 1

Re: [fpc-devel] DLL WIN64: Entry point not found

2007-07-18 Thread Mark - WBIsoft.COM
Wasn't aware CDECL on Win64 was the same as STDCALL, if so then is the export table correct - have you checked with a dependancy checker ? ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel

Re: [fpc-devel] DLL WIN64: Entry point not found

2007-07-18 Thread Vincent Snijders
Mark - WBIsoft.COM schreef: I think the calling convention be STDCALL ? IIRC, that is the same on win64. Vincent ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel

Re: [fpc-devel] DLL WIN64: Entry point not found

2007-07-18 Thread Mark - WBIsoft.COM
I think the calling convention be STDCALL ? Mark - Original Message - From: "Luc Vigato, Sita Software" <[EMAIL PROTECTED]> To: Sent: Wednesday, July 18, 2007 10:43 AM Subject: [fpc-devel] DLL WIN64: Entry point not found Hello, I have compiled a DLL under Win64. It's a UDF-libr

[fpc-devel] DLL WIN64: Entry point not found

2007-07-18 Thread Luc Vigato, Sita Software
Hello, I have compiled a DLL under Win64. It's a UDF-library for Firbird 2.1. Under Linux 64bit all things are working, only in WIN64 not. The problem is that Firebird says that he cannot find the Entry Point of each of my functions. It's not a Firebird problem, i have made a test application who

Re: [fpc-devel] graphh.inc - few questions.

2007-07-18 Thread Evgeniy Ivanov
Thanks, Jonas. I will deep inside it. 2007/7/16, Jonas Maebe <[EMAIL PROTECTED]>: On 14 Jul 2007, at 16:01, Evgeniy Ivanov wrote: > I'm doing sdlgraph - so I put my self to packages/base/graph. graph probably has to be moved to packages/extra, so it can easily use things like sdl and the (Ma