Reinier Olislagers wrote:
On 16-7-2012 18:41, Mark Morgan Lloyd wrote:
Reinier Olislagers wrote:

Whoopsie, error in the patch: this:
- merged
P.SourcePath.Add('src/sqldb/sqlite', SqldbConnectionOSes);
P.SourcePath.Add('src/sqldb/sqlite', SqliteOSes);
into
P.SourcePath.Add('src/sqldb/sqlite', SqldbConnectionOSes+SqliteOSes);
for clarity on who gets sqlite
wasn't true... I had mixed some very similar but different paths.
New patches attached.

FPC trunk compiles for me with this patch (x86) on Windows.
In Solaris/SPARC,

..
Assembling oracleconnection
Compiling ./fcl-db/src/sqldb/postgres/pqconnection.pp
Writing Resource String Table file: pqconnection.rst
Assembling pqconnection
Compiling ./fcl-db/src/sqldb/postgres/pqeventmonitor.pp
Writing Resource String Table file: pqeventmonitor.rst
Assembling pqeventmonitor
Compiling ./fcl-db/src/sqldb/mssql/mssqlconn.pp
mssqlconn.pp(43,3) Fatal: Can't find unit dblib used by mssqlconn
Fatal: Compilation aborted

gmake[2]: *** [all] Error 1
gmake[2]: Leaving directory
`/export/home/local-src/fpc/fpcbuild-2.7.1/fpcsrc/packages'
gmake[1]: *** [packages_all] Error 2
gmake[1]: Leaving directory
`/export/home/local-src/fpc/fpcbuild-2.7.1/fpcsrc'
gmake: *** [build-stamp.sparc-solaris] Error 2

Have I missed any stages out: applied patch successfully, make
distclean, make all?

Blast, I'm sorry... missed the dblib unit that is required for FreeTDS...:

which requires adding solaris: from
  DBLibOSes         = [linux,freebsd,netbsd,openbsd,win32,win64,haiku];
to
  DBLibOSes         =
[linux,freebsd,netbsd,openbsd,solaris,win32,win64,haiku];


Going to have a look at Oracle and mysql units as well then.
Mysql: looked at packages\mysql; no idea what if anything to change there.

Oracle packages\oracle\fpmake.pp shows
P.OSes := AllUnixOSes+AllWindowsOSes-[qnx];
which sounds reasonable, so no changes
Likewise for packages\ODBC
Likewise for packages\ibase (Interbase/Firebird)
Likewise for packages\postgres
Likewise for packages\sqlite

Updated patch attached

Hope this one does the trick...

Please don't apologise: I very much appreciate the effort :-)

That compiles and installs OK. Currently working on Lazarus... bigide compiles and runs OK. Deo volente, I'll get back onto testing the program that was having trouble with PostgreSQL in the morning, after that it will be at least a few days before I've got Borg-NG talking to its backends.

--
Mark Morgan Lloyd
markMLl .AT. telemetry.co .DOT. uk

[Opinions above are the author's, not those of his employers or colleagues]
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Reply via email to