Re: [fpc-pascal] UDF+FREEBSD+FIREBIRD

2008-11-15 Thread Stephano
KES wrote: #ld -shared -soname libtkes2.so.1 -o libtkes2.so.1.0 -lc tkes2.o #cp tkes2.so /usr/local/libexec/firebird/udf/ #cp tkes2.so.1.0 /usr/local/libexec/firebird/udf/ #cd /usr/local/libexec/firebird/udf/ #ls -l Is the above used in a script? If yes, then it is linking into libtkes2.so, bu

Re: [fpc-pascal] UDF+FREEBSD+FIREBIRD

2008-11-14 Thread Stephano
KES wrote: library tkes2; {$mode objfpc} {$PACKRECORDS C} function somefn: integer; cdecl; export; begin somefn:= 3; end; exports //I do not do as: // somefn name 'somefn'; // because of this cause error tkes2(17,1) Error: Asm: Duplicate label somefn //so I do as: somefn name '_somefn'

Re: [fpc-pascal] UDF+FREEBSD+FIREBIRD

2008-11-13 Thread Marc Santhoff
Am Donnerstag, den 13.11.2008, 18:59 +0200 schrieb KES: > Здравствуйте, Marc. > > Вы писали 12 ноября 2008 г., 23:12:43: > MS> Then I'd say the fault is clearly on the firebird side. > > MS> One last thing I'd try is to use another name (like with ld: using > MS> -lmine is searching for "libmin

Re: [fpc-pascal] UDF+FREEBSD+FIREBIRD

2008-11-12 Thread Marc Santhoff
Another observation: In any case you get the error message: > function FNTEST2 is not defined > module name or entrypoint could not be found If the function name is there and written correctly, make sure the module (= your library) is found. I'm not used to making UDFs, but somehow the search pa

Re: [fpc-pascal] UDF+FREEBSD+FIREBIRD

2008-11-12 Thread Jon
Should there be a 'uses' line somewhere? > > library tkes2; > > {$mode objfpc} > {$PACKRECORDS C} > > > function somefn: integer; cdecl; export; > begin > somefn:= 3; > end; > > exports > //I do not do as: > // somefn name 'somefn'; // because of this cause > error tkes2(17,1) Error: Asm: