8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-01-22 22:43:03 +01:00
Commit Graph

1019 Commits

Author SHA1 Message Date
Piotr Kubaj
9693120034 Add support for FreeBSD/powerpc64le 2022-07-29 20:20:19 +03:00
Adriano dos Santos Fernandes
637c92403b Build and use static libc++ in MacOS.
We are already using static libstdc++ in Linux due to a problem
now appearing in MacOS when using Boost.Test.

When shared C++ library (with C++ interface) is used and
executable does not export its new/delete operators, a situation
of one program/library allocating objects with "new" operator
and another program/library deallocating them with "delete"
operator makes program to crash.

We haven't yet seen these crashes in Windows, even using
Boost.Test. That may be pure luck or because Microsoft std C++
library is coded in a way that makes it not happen.
2022-07-20 23:00:44 -03:00
Adriano dos Santos Fernandes
78b95b337e Move tests directory to avoid problem with non-system shared libraries. 2022-07-20 22:49:37 -03:00
Adriano dos Santos Fernandes
76dbad5002 Add test framework in engine library. 2022-07-18 08:16:16 -03:00
Adriano dos Santos Fernandes
2139d4a5ac Add tests for common/classes/Aligner. 2022-07-18 08:16:16 -03:00
Adriano dos Santos Fernandes
bb5a1e0149 Add test framework in common library. 2022-07-18 08:16:15 -03:00
Adriano dos Santos Fernandes
5727c86ff4 Postfix for #7169 and MacOS build. 2022-04-22 21:23:43 -03:00
Adriano dos Santos Fernandes
953f42bbdd Postfix for #7169 - Add LD_lookup_texttype_with_status in fbintl.vers. 2022-04-21 22:34:10 -03:00
Dmitry Yemanov
19f2bfdd01 Refactored the optimizer. Better debug logging. 2022-02-09 10:20:16 +03:00
AlexPeshkoff
249dbc9fd4 Fixed #7113: Wrong path in object pascal readme.md 2022-01-27 13:25:14 +03:00
Jonathan Frutos
b9e1051446 Add initial MacOS ARM support (#7116)
Co-authored-by: Jonathan Frutos <>
2022-01-26 22:59:41 -03:00
Adriano dos Santos Fernandes
2f503f2e2d Profiler. 2021-12-23 15:08:04 -03:00
Adriano dos Santos Fernandes
d2ba43ad25 Add rpath to empbuild in MacOS. 2021-12-17 09:25:09 -03:00
Adriano dos Santos Fernandes
59f0d23c26 Postfix for #7037 for MacOS. 2021-11-02 17:04:14 -03:00
Adriano dos Santos Fernandes
94479776de Fix #7037 - Build problem when using both --with-builtin-tommath and --with-builtin-tomcrypt. 2021-11-02 16:32:39 -03:00
Adriano dos Santos Fernandes
e64c3aacad
Merge pull request #6991 from FirebirdSQL/work/external-pool
Introduce the external memory pool.
2021-10-30 20:08:24 -03:00
real-dam
da33c229ab
use be.zip for timezone data source on big-endian platforms (#7030)
resolves "FIXME: For big-endian, be.zip must be used" in Makefile.in

the configure.ac usage of AC_C_BIGENDIAN is expanded so apart from
defining `WORDS_BIGENDIAN` on big-endian platforms, it also defines
`TZDATA_ZIP` to be `be.zip` or `le.zip` and that substitution is used later
in the makefiles

my initial attempt was to use the result of the plain `AC_C_BIGENDIAN`
check, but that is not propagated to the makefiles, just to `autoconf.h`
2021-10-29 08:08:25 -03:00
Adriano dos Santos Fernandes
ab42db972a Introduce the external memory pool.
Standard new operator will alloc memory from the external pool.

FB_NEW will alloc memory from the default pool.

The difference of the external pool to the default pool is that
the external pool is only freed during unload when there is no
memory allocated from it.

If the external pool destructor is called before objects that
allocated memory from it, it's placed in special DYING state.

When in DYING state its desallocation is deferred to the moment
the last memory allocated is freed from it.
2021-10-05 11:24:08 -03:00
Adriano dos Santos Fernandes
46616c6f4f Change absl build after #6970. 2021-09-27 16:24:26 -03:00
Adriano dos Santos Fernandes
0cec1e65d6
Improve build of external projects using same tools and flags specified by user. (#6970)
When using different tools in configure (CC= CXX=) these tools were not passed
to external projects, making them using different tools.
2021-09-27 15:40:42 -03:00
AlexPeshkoff
cc1950a156 Fix for #6978: FB4 build fails on big endian 2021-09-22 13:11:49 +03:00
real-dam
615c034957
add --with-system-boost configure option for using system-wide boost headers (#6972) 2021-09-17 09:19:53 -03:00
Adriano dos Santos Fernandes
ee088c22e3
Rework messages processing, simplifying the build and avoiding store generated files in git. (#6958) 2021-09-15 08:37:17 -03:00
real-dam
f6cb4a7aa9
add --with-system-re2 configure option for using system-wide libre2 (#6964) 2021-09-14 08:08:46 -03:00
Adriano dos Santos Fernandes
c46f6cd344 Fix problem happening when epp file is modified after initial build.
Problem introduced with QLI removal.
2021-07-25 17:09:40 -03:00
Adriano dos Santos Fernandes
c16a3cf571 Turn warning "deleting pointer to incomplete type may cause undefined behavior" in error in posix build. 2021-07-08 14:30:17 -03:00
AlexPeshkoff
11f69dee65 Avoid any files in gen after 'make clean_all' 2021-07-01 15:34:13 +03:00
Adriano dos Santos Fernandes
184bab6083 Do not remove versioned filed with make clean. 2021-06-21 14:15:02 -03:00
Adriano dos Santos Fernandes
936e045d50 Set POSIX build to use C++17. 2021-06-08 14:59:02 -03:00
Adriano dos Santos Fernandes
010c3a8bd5
Remove QLI. (#6840) 2021-06-08 10:31:18 -03:00
Dmitry Yemanov
eac0f27e12 Renamed the package and the security database to v5 2021-05-31 14:36:48 +03:00
AlexPeshkoff
96b134a718 Front-ported MacOS related changes from FB3 2021-03-02 19:08:42 +03:00
AlexPeshkoff
ecb17cef2a Android port, both armv7a & aarch64 2021-02-05 21:06:20 +03:00
AlexPeshkoff
6b851de60b Android build completes successfully with NDK r21b and gmake 4.3 2021-01-07 18:06:58 +03:00
AlexPeshkoff
108587661c Warnings 2020-12-30 12:51:53 +03:00
faserg1
91140c0095 Fixing uncreated directories for tzdata 2020-10-07 16:20:24 -03:00
86f17fd7c9 employe2.sql is used by two api examples and one gpre example.
It seems to have got lost in a cleanup a long time ago.
2020-08-17 17:03:22 +02:00
AlexPeshkoff
8c1ef78fcf Avoid unneeded dependencies from termcap/curses library 2020-07-16 18:32:44 +03:00
Alex Peshkoff
a9cef6d9ae Implemented CORE-6320: Replace Util methods to get interface pointer by legacy handle with plain functions 2020-05-29 15:44:54 +03:00
AlexPeshkoff
a94107e410 Fixes for Android port 2020-05-18 16:30:12 +03:00
AlexPeshkoff
30784c1db2 Fixed CORE-6305: Android port build failure 2020-05-15 18:03:52 +03:00
Adriano dos Santos Fernandes
cec0c6ff3a Add tzdata to MacOS package. 2020-05-08 13:36:11 -03:00
AlexPeshkoff
0839d1c200 Reflect changed sample plugin names in posix built&install scripts 2020-05-07 13:22:19 +03:00
AlexPeshkoff
1b6b717f78 Place precompiled samples of plugins into binary package according to new rules 2020-04-21 18:58:37 +03:00
Adriano dos Santos Fernandes
3dde086c3d Fix Linux build. 2020-04-18 23:11:08 -03:00
Adriano dos Santos Fernandes
476a54bc8a Cleanup: remove trailing spaces. 2020-04-18 23:10:09 -03:00
AlexPeshkoff
2d8ebe0395 Partial fix for CORE-6157: Firebird.pas : avoid use of awk and grep to build target 2020-04-10 16:19:09 +03:00
AlexPeshkoff
77437e443b Applied freebsd-related changes from PR#72 2020-04-09 17:18:41 +03:00
Adriano dos Santos Fernandes
d0add7d82c Shrink MacOS pkg size not including three copies of each ICU library. 2020-03-02 08:20:17 -03:00
AlexPeshkoff
de498a38bc Avoid annoying error in release build 2020-02-18 20:17:50 +03:00
AlexPeshkoff
57e7035411 Added a sample of authentication plugin based on shared secret key 2020-02-07 20:36:20 +03:00
AlexPeshkoff
95163e7455 Fixed CORE-6237: Performance issue - security database connections cache in SRP plugin 2020-01-24 19:02:52 +03:00
Adriano dos Santos Fernandes
4b6eaa57c3 Move tzdata to extern/icu. 2020-01-21 12:57:31 -03:00
5d1bcc284c Generate ids.h without m4 2020-01-21 13:14:21 +03:00
5e525588bf Use static_assert to check ODS layout (#234) 2020-01-14 19:49:43 +03:00
Adriano dos Santos Fernandes
64ecbd8dd2 CORE-6214 - Update outdated tzdata version.
Added documentation and script for update.

zipjs.bat is downloaded from https://github.com/npocmaka/batch.scripts/blob/master/hybrids/jscript/zipjs.bat
2020-01-14 12:41:15 -03:00
Alexander Peshkov
4ea61ec05b
Wire encryption plugin using chacha cypher (#244)
* Added wire crypt plugin using ChaCha cipher
Co-authored-by: Vlad Khorsun <hvlad@users.sourceforge.net>
2019-12-24 11:16:59 +03:00
Adriano dos Santos Fernandes
2e8060f081 Frontport changes for MacOS build. 2019-12-03 21:57:12 -03:00
Adriano dos Santos Fernandes
de57ae7f5e Fixes for MacOS build. 2019-12-01 10:37:05 -03:00
AlexPeshkoff
f9d2dcb56a Added cloop-generated file to clean target 2019-11-29 20:03:56 +03:00
Adriano dos Santos Fernandes
0969fb70e8 Use -static-libstdc++ to avoid crashes. 2019-08-26 21:47:44 -03:00
Adriano dos Santos Fernandes
bb6e08c7d1 Misc. 2019-08-13 22:31:10 -03:00
Adriano dos Santos Fernandes
3d47c2224c Adjust posix build. 2019-08-13 22:14:58 -03:00
Adriano dos Santos Fernandes
28e18749ff WIP: Reimplementation of SIMILAR TO and SUBSTRING...SIMILAR using Google's re2 library.
This should fix:
CORE-4874
CORE-5664
CORE-3858
CORE-6088
CORE-3773
CORE-5931
CORE-6088
CORE-4893
2019-08-10 22:39:19 -03:00
Artyom Smirnov
d7fc847bff Fix POSIX build (#211) 2019-07-03 13:18:30 +03:00
Alex Peshkoff
a021ed4418 Fixed CORE-6061: Building with --with-builtin-tommath doesn't work 2019-06-14 16:34:17 +03:00
Adriano dos Santos Fernandes
45d5e3aa7a
Refactor public include files (#205)
Refactor include files.
2019-06-03 11:45:00 -03:00
AlexPeshkoff
638c4a84d2 Fixed CORE-5888: Firebird server on Android has problem with numerics 2019-05-24 20:11:17 +03:00
AlexPeshkoff
249c64a74c Fixed android port - some android kernels accept only PIE binaries 2019-05-24 20:05:35 +03:00
AlexPeshkoff
84a682bf17 Fixed some gcc8 warnings - WiP 2019-03-18 20:10:48 +03:00
AlexPeshkoff
b4d03d475b Added files to "clean" target 2019-01-25 13:58:00 +03:00
Dmitry Yemanov
932ca51574
Replication support (#182)
* Initial implementation of replication

* Postfixes for configuration and Windows builds

* Misc Windows adjustments

* Forgotten changes from prior commits

* Last round (fingers crossed) of fixing the Windows build

* Improve self-documentation

* Misc improvements

* Updates the docs

* More configuration

* Frontported some remaining pieces

* Installation post-fixes

* Special permission for replication
2019-01-25 12:09:01 +03:00
AlexPeshkoff
5da970b8c6 Cleaned up use of compiler flags in posix build 2019-01-11 20:12:37 +03:00
AlexPeshkoff
4a8fcb322f Next attempt to fix build with built-in tomcrypt 2018-12-07 11:17:06 +03:00
Adriano dos Santos Fernandes
e0450a79d9 Add encode/decode functions to IUtil and remove partially added legacy API functions. 2018-11-12 13:18:00 -02:00
Adriano dos Santos Fernandes
141f62611b Changing descriptors to store in memory date/time tz in UTC and usage of ICU for time zone regions.
This version is fixedly configured only with America/Sao_Paulo and America/Los_Angeles.
2018-11-12 13:18:00 -02:00
AlexPeshkoff
ab31df2699 Add gcc's libatomic only when needed (this fixes snapshot builds broken in the beginning of August) 2018-09-23 16:14:23 +03:00
Adriano dos Santos Fernandes
980432a12a After usage of is_lock_free, Linux debug (at least with clang) build started failing. 2018-08-08 23:10:20 -03:00
Adriano dos Santos Fernandes
c5aea12432 Fix clang 6.0.0-1ubuntu2 build. 2018-08-06 13:03:31 -03:00
hvlad
ca71a54609 Merge branch 'master' into read_consistency 2018-07-16 16:16:22 +03:00
Alex Peshkoff
8a5b97db3c Applied CORE-5851 2018-06-21 17:39:44 +03:00
Alex Peshkoff
b9a93f5312 Applied CORE-5788: Security Patch: Replacement of use of SHA-1 in the SRP Client Proof with SHA-256 2018-06-21 14:49:16 +03:00
hvlad
3e057e10ca Merge branch 'master' into read_consistency 2018-05-27 17:32:54 +03:00
AlexPeshkoff
a545b78c36 Postfix for CORE-5791 - no GNU extensions in awk are actually needed 2018-04-12 16:28:13 +03:00
AlexPeshkoff
affb39894b Fixed CORE-5791: ODS for windows builds and linux-x64 (on the one side) and linux-x86 (on the other side) does not match 2018-04-11 20:17:45 +03:00
hvlad
fdecfd1319 Merge branch 'master' into read_consistency 2018-02-20 13:50:04 +02:00
Alexander Peshkov
a6d57fc4d8
Gbak (#139)
* Rewritten gbak using OO API
* Make gbak correctly work with wide records (if record format to be made > 64K)
* Improve gbak performance over network using batch interface
* Enhanced template AutoPtr to make use of it more comfortable
2018-02-19 13:38:28 +03:00
Adriano dos Santos Fernandes
bee3105b47 Revert wrong push (branch gbak) to master. 2018-02-16 15:42:41 -02:00
AlexPeshkoff
54607bbce4 Build gbak using OO API 2018-02-16 13:06:16 -02:00
Maciej S. Szmigiero
6c65ccfc8b ARM needs MSG_NOSIGNAL in FB_SEND_FLAGS, too (#140)
We need to add MSG_NOSIGNAL to FB_SEND_FLAGS for ARM, too, otherwise
clients get killed with SIGPIPE when server connection breaks, just like
commit 37bcd38740 did for other platforms.

Use this opportunity to also split out common build flags to COMMON_FLAGS
variable, as the above commit did.

Signed-off-by: Maciej S. Szmigiero <mail@maciej.szmigiero.name>
2018-02-15 15:26:21 +03:00
AlexPeshkoff
9bb4ce764b Fixed cross build for android/arm 32-bit 2018-02-08 20:21:48 +03:00
AlexPeshkoff
854e1f5208 Android build - work in progress 2018-02-07 20:16:57 +03:00
hvlad
ccbf5c724a Merge branch 'master' into read_consistency 2017-12-29 10:55:31 +02:00
b9c17656e9 Fixed CORE-5657: Various UDF-related security vulnerabilities 2017-11-09 13:15:00 +03:00
f418336819 Fixed CORE-5654: Mixed intermediate build files for plugins examples 2017-11-03 14:44:13 +03:00
Alexander Peshkov
f53c23c17a New interface Batch helping to efficiently implement JDBC prepared statement batches (#99)
Batch interface implementation
2017-10-23 17:10:49 +03:00
Adriano dos Santos Fernandes
98702b9cda Make posix build use libtomcrypt from extern or system. 2017-09-06 16:35:40 +00:00
Dmitry Yemanov
025c66c8f9 Misc version adjustments 2017-08-09 12:44:30 +03:00
hvlad
eae0a1d62f Merge branch 'master' into read_consistency 2017-08-08 12:16:18 +03:00
Adriano dos Santos Fernandes
ca33f71291 Added src/common/tomcrypt to POSIX build. 2017-07-24 12:07:07 +00:00