Re: [fpc-pascal] Compiling FPC for SPARC

2006-08-06 Thread Tomas Hajny
On 5 Aug 06, at 21:03, Florian Klaempfl wrote:
> Tomas Hajny wrote:
> > Peter Vreman wrote:
>  on't bother with Solaris in 2.0.x, it won't work at all. None of
>  the Solaris fixes from 2.1.1 have been merged
> >>> On a positive note, Sparc/Solaris works fine in 2.1.1
> >> I tried to merge it in the past but aborted it. The Solaris RTL
> >> changes had a too much conflicts to qualify for a merge to 2.0.x. The
> >> sparc compiler codegenerator in 2.0.x and 2.1.1 are almost identical
> >> so there is not much of a difference between 2.0.x and 2.1.1 for the
> >> sparc. And therefor it is recommended to use 2.1.1.
> > 
> > Right. On the other hand, the start would be probably easier if there's at
> > least 2.0.4 sparc-linux available as starting compiler for further working
> > with 2.1.1 (considering the fact that the existing 2.0.0 binary apparently
> > fails with IE when building the current sources).
> 
> Cross compiling is easy, you need only to rip the following files from
> the used solaris:
> libaio.so
> libc.so
> libelf.so
> libm.so
> libmd5.so
> librt.so
> libucb.so
> and put them in fpc/compiler, after that a cross build should work.

That still requires at least some compiler for 
SPARC processor available (e.g. sparc-linux) - 
that's why I suggested that having 2.0.4 sparc-
linux would be probably useful (although I 
understand that one can build a cross-compiler, 
but nevertheless).

BTW, is the list above available somewhere in 
Wiki or so?

Tomas
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] Compiling FPC for SPARC

2006-08-06 Thread Florian Klaempfl
Tomas Hajny wrote:
> On 5 Aug 06, at 21:03, Florian Klaempfl wrote:
>> Tomas Hajny wrote:
>>> Peter Vreman wrote:
>> on't bother with Solaris in 2.0.x, it won't work at all. None of
>> the Solaris fixes from 2.1.1 have been merged
> On a positive note, Sparc/Solaris works fine in 2.1.1
 I tried to merge it in the past but aborted it. The Solaris RTL
 changes had a too much conflicts to qualify for a merge to 2.0.x. The
 sparc compiler codegenerator in 2.0.x and 2.1.1 are almost identical
 so there is not much of a difference between 2.0.x and 2.1.1 for the
 sparc. And therefor it is recommended to use 2.1.1.
>>> Right. On the other hand, the start would be probably easier if there's at
>>> least 2.0.4 sparc-linux available as starting compiler for further working
>>> with 2.1.1 (considering the fact that the existing 2.0.0 binary apparently
>>> fails with IE when building the current sources).
>> Cross compiling is easy, you need only to rip the following files from
>> the used solaris:
>> libaio.so
>> libc.so
>> libelf.so
>> libm.so
>> libmd5.so
>> librt.so
>> libucb.so
>> and put them in fpc/compiler, after that a cross build should work.
> 
> That still requires at least some compiler for 
> SPARC processor available (e.g. sparc-linux) - 
> that's why I suggested that having 2.0.4 sparc-
> linux would be probably useful (although I 
> understand that one can build a cross-compiler, 
> but nevertheless).

Why? Get sparc-solaris binutils, put these libs in the compiler dir and do
cd fpc; make clean all OS_TARGET=solaris CPU_TARGET=sparc

[...]
make[3]: Leaving directory `C:/fpc/utils/fpdoc'
make[2]: Leaving directory `C:/fpc/utils'
make[1]: Leaving directory `C:/fpc'

echo Build > build-stamp.sparc-solaris

and get a native compiler in fpc/compiler:

C:\fpc>dir compiler\ppcsparc
 Datenträger in Laufwerk C: ist 6Y120PO PRI
 Volumeseriennummer: 12E3-1449

 Verzeichnis von C:\fpc\compiler

06.08.2006  10:35 2.036.816 ppcsparc
   1 Datei(en)  2.036.816 Bytes
   0 Verzeichnis(se),  1.752.629.248 Bytes frei

This was on win32.

> 
> BTW, is the list above available somewhere in 
> Wiki or so?
> 

Hmm, don't know :)
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


RE: [fpc-pascal] MySQL3, MySQL4, and MySql5 - Micha Might have answer

2006-08-06 Thread Jason P Sage
[Jason Peter Sage] In response to Jes?s Reyes question about where I looked
for the MySQL5 unit
[Jason Peter Sage] I did google search for MySQL5 and Freepascal - and
mostly found my own FPC mailing list entries. I'm currently using FPC 2.0.2
so that may be why I'm a little out dated. I admittedly have never tried to
compile the FPC compiler itself, but think I should some day to make sure I
can do it on my most frequented platforms. To date, I tend to grab the
official releases, because I'm not contributing on a FPC compiler level at
all, and I'm making applications so I prefer the "FPC Team Approved" (and
packaged) versions.

As far as contributions, I'm trying to figure out how to release some code
that is part of a proprietary system, in a manner that can help the
community at large without rendering the commercial product usurped.

I've released a lib in the past, but it has progressed in many ways that I
think should be shared in whole or in part - as it has really helped me get
a lot out of FPC.

I think it's great that the MySQL5 unit will be in the next release -
hopefully the same release slated for August! 

It was mentioned to me that this new release ALSO includes an important CRT
unit fix for Linux that I'm very excited about. Why? Sometimes I need a
plain, easy to write, UI that isn't about GFX as much as simplicity and
portable. The CRT unit makes this a reality when its working. And let me add
it has always worked to my knowledge - and just ended up with bug this
(2.0.2 only I think) go around.

Thanks for Asking Jes?s 
Jason P Sage


___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


[fpc-pascal] DLL and Shared Libs in FPC

2006-08-06 Thread Jason P Sage
I have read some things here and there, but can anyone simply tell me if its
now possible to write DLL's and Linux Shared Libraries with FPC now?

The last time I approached this topic, it was unsupported, and was still not
really something that was ready for prime time.

Jason P Sage

___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


[fpc-pascal] Threading in FPC on Win32 and Linux

2006-08-06 Thread Jason P Sage
Does anyone have any suggestions on where I should really start with making
threads etc in a manner that will allow one code base but work on at least
win32 and Linux?

I'm trying to make an application that is more or less acting like a daemon,
that waits for a message from another process, and takes that information
and begins processing it in a separate thread or process, allowing the main
app to be already in a state ready to catch another message when it arrives
and do the same thing.

In short, I'm trying to implement a "FAST-CGI" like (but not FASTCGI itself)
thin layer CGI client, that gets a request, and passes the required info to
a bigger application which actually does the work and then passes the
resultant out going web page result back to the thin layer CGI app that then
spits it out to the client.

Thanks in advance!
Jason P Sage


___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] DLL and Shared Libs in FPC

2006-08-06 Thread Felipe Monteiro de Carvalho

On 8/6/06, Jason P Sage <[EMAIL PROTECTED]> wrote:

I have read some things here and there, but can anyone simply tell me if its
now possible to write DLL's and Linux Shared Libraries with FPC now?


I think this has being supported for a long time now. At least FPC
2.0.2 can build libraries without any problems.

--
Felipe Monteiro de Carvalho
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] Threading in FPC on Win32 and Linux

2006-08-06 Thread Felipe Monteiro de Carvalho

On 8/6/06, Jason P Sage <[EMAIL PROTECTED]> wrote:

Does anyone have any suggestions on where I should really start with making
threads etc in a manner that will allow one code base but work on at least
win32 and Linux?


There is a tutorial here:

http://wiki.lazarus.freepascal.org/index.php/Multithreaded_Application_Tutorial

And it should work on all supported platforms.

--
Felipe Monteiro de Carvalho
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] Threading in FPC on Win32 and Linux

2006-08-06 Thread Jonas Maebe


On 06 Aug 2006, at 11:30, Jason P Sage wrote:

Does anyone have any suggestions on where I should really start  
with making
threads etc in a manner that will allow one code base but work on  
at least

win32 and Linux?


http://www.freepascal.org/docs-html/rtl/classes/tthread.html


Jonas
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal