Forum > Other

FreeBSD shared library problems

<< < (6/6)

bbrtj:

--- Quote from: Fred vS on May 02, 2025, 02:55:48 pm ---Please, give us the parameters you use to compile your library.

If you are using Lazarus, menu "Project/Project Options" and click on "Show options" and copy the result + give it here.

--- End quote ---

Here are my options:

--- Code: ---/usr/home/bartosz/fpc/fixes/fpc/bin/x86_64-freebsd/fpc.sh
-MObjFPC
-Scghi
-Cg
-O1
-l
-vewnhibq
-Filib/x86_64-freebsd
-Fu/home/bartosz/prg/ovoplayer/src/ovotag
-Fu../../fpc/fixes/lazarus/components/lazutils/lib/x86_64-freebsd
-Fu../../fpc/fixes/lazarus/packager/units/x86_64-freebsd
-Fu.
-FUlib/x86_64-freebsd
-FE.
-olibtags.so
-B
-dLIBRARY

--- End code ---

Fred vS:

--- Quote from: bbrtj on May 02, 2025, 04:28:06 pm ---
--- Quote from: Fred vS on May 02, 2025, 02:55:48 pm ---Please, give us the parameters you use to compile your library.

If you are using Lazarus, menu "Project/Project Options" and click on "Show options" and copy the result + give it here.

--- End quote ---

Here are my options:

--- Code: ---/usr/home/bartosz/fpc/fixes/fpc/bin/x86_64-freebsd/fpc.sh
-MObjFPC
-Scghi
-Cg
-O1
-l
-vewnhibq
-Filib/x86_64-freebsd
-Fu/home/bartosz/prg/ovoplayer/src/ovotag
-Fu../../fpc/fixes/lazarus/components/lazutils/lib/x86_64-freebsd
-Fu../../fpc/fixes/lazarus/packager/units/x86_64-freebsd
-Fu.
-FUlib/x86_64-freebsd
-FE.
-olibtags.so
-B
-dLIBRARY

--- End code ---

--- End quote ---

Hum, so you did not try adding the parameters/code from my reply #4  and #8 ...  :-\
I dont see -fPIC -Sh nor -O-

bbrtj:

--- Quote from: Fred vS on May 02, 2025, 04:37:41 pm ---Hum, so you did not try adding the parameters/code from my reply #4  and #8 ...  :-\
I dont see -fPIC -Sh nor -O-

--- End quote ---

I added -fPIC and -Sh before, but removed them since they had no noticeable effect on the end result. I keep my sample as small as possible so that I know what helps and what doesn't.

I tried adding them again just now and they yet again make no impact. But you're right, you already gave me tons of tips that are not currently applied on my project. So I tried some of them again, and adding the cmem as the first unit seems to do the trick. Thanks and sorry.


--- Quote from: AmatCoder on May 02, 2025, 10:50:49 am ---Can you test if it works with version 3.2.2?
Or as you are using fixes_3_2 branch you can try reverting this commit.

--- End quote ---

I will try that in the coming days, at the moment I'm trying to finish this one thing I started.

Fred vS:

--- Quote from: bbrtj on May 02, 2025, 06:14:16 pm ---... and adding the cmem as the first unit seems to do the trick. Thanks and sorry.

--- End quote ---
And it was also the first advice.  ;)

And I'm glad we won this battle.

Navigation

[0] Message Index

[*] Previous page

Go to full version