rpath flags in Mac Firebird.framework

18 views
Skip to first unread message

Hamish Moffatt

unread,
Aug 4, 2026, 4:58:51 AM (yesterday) Aug 4
to firebird-devel
In https://github.com/FirebirdSQL/firebird/issues/9004 I reported that
Firebird 5.0.4 contains a regression in the linker flags which makes it
unsuitable for dynamic linking into third party applications.

At least, the new release broke my application build. It might not break
everyone's. This is unfortunate because 5.0.4 also contains a security
fix which I haven't been able to ship.

I guess the delivered server application works though. Is the
Firebird.framework for linking to other applications a supported
deliverable, or do I need to patch and rebuild this myself?


Hamish

Adriano dos Santos Fernandes

unread,
Aug 4, 2026, 6:41:24 AM (yesterday) Aug 4
to firebir...@googlegroups.com
On 8/4/26 05:58, 'Hamish Moffatt' via firebird-devel wrote:
> In https://github.com/FirebirdSQL/firebird/issues/9004 I reported that
> Firebird 5.0.4 contains a regression in the linker flags which makes it
> unsuitable for dynamic linking into third party applications.
>
> At least, the new release broke my application build. It might not break
> everyone's. This is unfortunate because 5.0.4 also contains a security
> fix which I haven't been able to ship.
>

Why it works in
https://github.com/FirebirdSQL/firebird/actions/runs/30852752018/job/91816481975
(end section of Build)?

Is it due to statically loading?


> I guess the delivered server application works though.


> Is the
> Firebird.framework for linking to other applications a supported
> deliverable,

Should be.


or do I need to patch and rebuild this myself?
>

A PR would help.

As well testing if the same problem happens in new releases.


Adriano

Hamish Moffatt

unread,
Aug 4, 2026, 6:51:26 AM (yesterday) Aug 4
to firebir...@googlegroups.com
On 4/08/2026 8:41 pm, Adriano dos Santos Fernandes wrote:
> On 8/4/26 05:58, 'Hamish Moffatt' via firebird-devel wrote:
>> In https://github.com/FirebirdSQL/firebird/issues/9004 I reported that
>> Firebird 5.0.4 contains a regression in the linker flags which makes it
>> unsuitable for dynamic linking into third party applications.
>>
>> At least, the new release broke my application build. It might not break
>> everyone's. This is unfortunate because 5.0.4 also contains a security
>> fix which I haven't been able to ship.
>>
> Why it works in
> https://github.com/FirebirdSQL/firebird/actions/runs/30852752018/job/91816481975
> (end section of Build)?
>
> Is it due to statically loading?

I will have to investigate further how it works there.


> A PR would help.

The simplest course of action is to revert (your) change that I linked
in the issue, which I suspect introduced the problem. It is only a cleanup.


regards

Hamish

Sergey Khalyutin

unread,
Aug 4, 2026, 8:36:00 AM (yesterday) Aug 4
to firebird-devel
+1
>> unsuitable for dynamic linking into third party applications.

In our CLIENT application  libfbclient.dynlib  rpath is problem in macOS many years  for us...

One time rpath  fbclient find libtommath if it  place like it in server directory tree. Now it not work.

Apple is constantly tightening its rules regarding the acceptable location of executable files, which are already quite complex...

The solution is  build   fbclient  with static  link   libtommath and libtomcrypt.

Now I just can't figure out where to put libtommath.dylib :(


Screenshot 2026-08-04 at 14.59.01.png
Reply all
Reply to author
Forward
0 new messages