[fpc-devel] AsString and AsWideString both return 255 Bytes
Hi, using SQLite3, the latest version of Lazarus 2.0.8 and I assume FPC. This sqlMain.FieldByName('name').AsString; and this sqlMain.FieldByName('name').AsWideString; BOTH return 255 Bytes. I have a TEXT Field in the database 1776 Bytes long. The data looks OK in SQBrowser, but FPC/Lazarus brings in only 255 Bytes. Yes I have the fpcobj and $H+ set. I posted here but so far not getting anywhere. https://forum.lazarus.freepascal.org/index.php/topic,49721.0.html The 1776 Bytes of data is being saved (.ExecSQL) to the file OK, but on read back I only get that 255. How can I make this work please? ___ fpc-devel maillist - fpc-devel@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel
Re: [fpc-devel] LinkLib Issues In Lazarus and in FPC-2.0.2
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Ale? Katona wrote: Btw. fpc 2.0.2 is in ports now. Just a binary distribution right? I did not see the sources in ports, which would have to be patched to fix the lib naming errors. You need to symlink those libraries or patch manualy, but we can't change it to the new ones since anyone with FreeBSD 6.0 or older (if they didn't portupgrade) won't work then. I patched packages/extra/gtk/gdk/gdk.pp packages/extra/gtk/gdk/gdk.pp packages/extra/gtk/glib/glib.pp in the 2.0.2 source tree to reflect the proper lib names I then port-installed graphics/gdk-pixbuf, which provided the last missing lib (/usr/X11R6/lib/libgdk_pixbuf.a) Then Lazarus compiled and linked without error, and seems to run fine. Are you saying that code produced by this Lazarus/FPC setup will not run properly on older freebsd systems? Seems to me that FPC-2.0.2 is broken as far as freebsd is concerned. It can't be just lazarus which needs those libs properly defined; so what we have here is essentially a bug fix to FPC itself. FPC 2.0.4 will have a new mechanism of libalias which will enable us to fix this by just adding either command line params (eg: fpc -Laglib=glib-12.so) or changing it in fpc.cfg for all compilations (preffered and porters can do this) I don't understand, why not just fix the missing - in the IFDEF FreeBSD statement, and produce a working FPC? Bob -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.2.2 (FreeBSD) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFEuygWAexE5bK/mHkRAmoXAJwIpLvEqBxi6NCSXZtlmFG99iC1wgCfVuGw SR+WySQahOIX+0GtDmwQ+Js= =bNo7 -END PGP SIGNATURE- ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel
[fpc-devel] LinkLib Issues In Lazarus and in FPC-2.0.2
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Greetings to the Fpc-Devel list: I recently moved from Linux to FreeBSD as my primary work environment. My development system of choice is FreePascal. I installed FPC-2.0.2 from the official FreePascal distribution tar ball, and all compiled/installed without a hitch; all my CVS sources compile and run. My next step was to install Lazaruz, and here is where I have run into troubles. A tar-ball (lazarus-0.9.16-0.tar.gz) install of Lazarus ran well until Lazarus was being Linked. The errors were all linklib related: the following libraries were not found by ld: glib12, gdk12, and gtk12. a grep -r in the FPC-2.0.2 source tree revealed the problems, in every case of: packages/extra/ glib, gtk, and gdk the linklib statements were wrong thus: {$ifdef FreeBSD} gtkdll='gtk12'; {$linklib gtk12} So, I created a patch to fix the above constructs to read: {$ifdef FreeBSD} gtkdll='gtk-12'; {$linklib gtk-12} For all three libraries; since freebsd names these libraries with a - Was this the correct thing to do??? I recompiled and reinstalled FPC-2.0.2 with the above patches applied, re-tested the compiler; all OK! I went back to the Lazarus source tree gmake clean; gmake and received the following error: Free Pascal Compiler version 2.0.2 [2006/07/14] for i386 Copyright (c) 1993-2005 by Florian Klaempfl Target OS: FreeBSD/ELF for i386 Compiling lazarus.pp Linking ../lazarus /usr/bin/ld: cannot find -lgdk_pixbuf lazarus.pp(113,1) Error: Error while linking a locate gdk_pixbuf finds: /usr/X11R6/lib/libgdk_pixbuf-2.0 So, at this pount I just sym-linked my libgdk_pixbuf-2.0 to libgdk_pixbuf: ln -s libgdk_pixbuf-2.0.a libgdk_pixbuf.a and ran gmake again, only to produce: Linking ../lazarus /usr/home/bob/lazarus/lcl/units/i386-freebsd/gtk/gtkint.o(.text+0x6f65): In function `DATASOURCEINITIALIZE': gtkobject.inc:2309: undefined reference to `gdk_pixbuf_get_from_drawable' Many many more undefined reference to something missing in gdk_pixbuf. so: freebsd's stock-installed gdk_pixbuf does not contain the functions needed! So, I went to ports and found ruby18-gdk_pixbuf2-0.14.1 a make install provided gdk_pixbuf2.so but no gdk_pixbuf2.a !! Funny! I moved away from Linux mainly because of Library-Hell issues :-) Any thoughts on this would be greatly appreciated. I seem to have run out of things to try here. Surely someone has successfully installed Lazarus on FreeBSD. The Lazarus website says Lazarus will run on FreeBSD, my question is how to make it so? TIA Bob -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.2.2 (FreeBSD) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFEup0KAexE5bK/mHkRAmqsAJ9ib0IgapRKv+8Chnr5lODqx/uLBwCeKrMC zjaYKOZcyRn/wgyahTKl/3Q= =Pzz8 -END PGP SIGNATURE- ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel
[fpc-devel]Compiler error
I have been unable to compile the 1.1 snapshot on OS/2 for the last few days : . . . make[3]: Entering directory `/FPC/rtl/os2' as -o prt0.o prt0.as as -o prt0.oo2 prt0.as as -o prt1.o prt1.as as -o prt1.oo2 prt1.as T:/FPC/COMPILER/ppc1.exe -Fi../inc -Fi../i386 -FE. -FD g:/fpc1010/bin/os2 -Ch5200 -di386 -Us -Sg system.pas Process terminated by SIGSEGV core dumped make[3]: *** [system.ppu] Segmentation fault make[3]: Leaving directory `/FPC/rtl/os2' make[2]: *** [next] Error 2 make[2]: Leaving directory `/FPC/COMPILER' make[1]: *** [ppc2.exe] Error 2 make[1]: Leaving directory `/FPC/COMPILER' make: *** [cycle] Error 2 From POPUPLOG.OS2 : 10-23-2003 15:30:02 SYS3175 PID 0232 TID 0001 Slot 0080 T:\FPC\COMPILER\PPC1.EXE c005 000190c2 P1=0001 P2=0004 P3= P4= EAX= EBX=0337ebe0 ECX= EDX=0006 ESI=0087f284 EDI=0337ebe1 DS=0053 DSACC=f0f3 DSLIM= ES=0053 ESACC=f0f3 ESLIM= FS=150b FSACC=00f3 FSLIM=0030 GS= GSACC= GSLIM= CS:EIP=005b:000190c2 CSACC=f0df CSLIM= SS:ESP=0053:0337ebe0 SSACC=f0f3 SSLIM= EBP=0337ece8 FLG=00012202 PPC1.EXE 0001:90c2 Bob Martin ___ fpc-devel maillist - [EMAIL PROTECTED] http://lists.freepascal.org/mailman/listinfo/fpc-devel