1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-03 06:04:53 +00:00

databases/firebird40-server: fix build with lld 17

Building databases/firebird40-server with lld 17 results in the
following link error:

  c++  -O2 -pipe  -DAMD64 -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing   -isystem /usr/local/include -std=c++11  -std=c++11 -std=c++11 -std=c++11 -static-libstdc++ -Wl,--version-script,firebird.vers  -fstack-protector-strong -L/usr/local/lib  -D_THREAD_SAFE  -shared   -Wl,-soname,libfbclient.so.4 -Wl,-rpath,/usr/local/lib  -o /wrkdirs/share/dim/ports/databases/firebird40-client/work/Firebird-4.0.2.2816-0/gen/Release/firebird/lib/libfbclient.so.4.0.2 /wrkdirs/share/dim/ports/databases/firebird40-client/work/Firebird-4.0.2.2816-0/temp/Release/yvalve/DistributedTransaction.o /wrkdirs/share/dim/ports/databases/firebird40-client/work/Firebird-4.0.2.2816-0/temp/Release/yvalve/MasterImplementation.o /wrkdirs/share/dim/ports/databases/firebird40-client/work/Firebird-4.0.2.2816-0/temp/Release/yvalve/PluginManager.o /wrkdirs/share/dim/ports/databases/firebird40-client/work/Firebird-4.0.2.2816-0/temp/Release/yvalve/alt.o /wrkdirs/share/dim/ports/databases/firebird40-client/work/Firebird-4.0.2.2816-0/temp/Release/yvalve/array.o /wrkdirs/share/dim/ports/databases/firebird40-client/work/Firebird-4.0.2.2816-0/temp/Release/yvalve/blob.o /wrkdirs/share/dim/ports/databases/firebird40-client/work/Firebird-4.0.2.2816-0/temp/Release/yvalve/gds.o /wrkdirs/share/dim/ports/databases/firebird40-client/work/Firebird-4.0.2.2816-0/temp/Release/yvalve/keywordsStub.o /wrkdirs/share/dim/ports/databases/firebird40-client/work/Firebird-4.0.2.2816-0/temp/Release/yvalve/perf.o /wrkdirs/share/dim/ports/databases/firebird40-client/work/Firebird-4.0.2.2816-0/temp/Release/yvalve/preparse.o /wrkdirs/share/dim/ports/databases/firebird40-client/work/Firebird-4.0.2.2816-0/temp/Release/yvalve/user_dsql.o /wrkdirs/share/dim/ports/databases/firebird40-client/work/Firebird-4.0.2.2816-0/temp/Release/yvalve/utl.o /wrkdirs/share/dim/ports/databases/firebird40-client/work/Firebird-4.0.2.2816-0/temp/Release/yvalve/why.o /wrkdirs/share/dim/ports/databases/firebird40-client/work/Firebird-4.0.2.2816-0/temp/Release/yvalve/config/os/posix/binreloc.o /wrkdirs/share/dim/ports/databases/firebird40-client/work/Firebird-4.0.2.2816-0/temp/Release/yvalve/config/os/posix/config_root.o /wrkdirs/share/dim/ports/databases/firebird40-client/work/Firebird-4.0.2.2816-0/temp/Release/remote/inet.o /wrkdirs/share/dim/ports/databases/firebird40-client/work/Firebird-4.0.2.2816-0/temp/Release/remote/merge.o /wrkdirs/share/dim/ports/databases/firebird40-client/work/Firebird-4.0.2.2816-0/temp/Release/remote/parser.o /wrkdirs/share/dim/ports/databases/firebird40-client/work/Firebird-4.0.2.2816-0/temp/Release/remote/protocol.o /wrkdirs/share/dim/ports/databases/firebird40-client/work/Firebird-4.0.2.2816-0/temp/Release/remote/remote.o /wrkdirs/share/dim/ports/databases/firebird40-client/work/Firebird-4.0.2.2816-0/temp/Release/auth/SecureRemotePassword/srp.o /wrkdirs/share/dim/ports/databases/firebird40-client/work/Firebird-4.0.2.2816-0/temp/Release/remote/client/BlrFromMessage.o /wrkdirs/share/dim/ports/databases/firebird40-client/work/Firebird-4.0.2.2816-0/temp/Release/remote/client/interface.o /wrkdirs/share/dim/ports/databases/firebird40-client/work/Firebird-4.0.2.2816-0/temp/Release/auth/SecureRemotePassword/client/SrpClient.o /wrkdirs/share/dim/ports/databases/firebird40-client/work/Firebird-4.0.2.2816-0/temp/Release/auth/SecurityDatabase/LegacyClient.o /wrkdirs/share/dim/ports/databases/firebird40-client/work/Firebird-4.0.2.2816-0/temp/Release/plugins/crypt/arc4/Arc4.o /wrkdirs/share/dim/ports/databases/firebird40-client/work/Firebird-4.0.2.2816-0/temp/Release/common.a -L/wrkdirs/share/dim/ports/databases/firebird40-client/work/Firebird-4.0.2.2816-0/gen/Release/firebird/lib  -liconv -lm  -lpthread -ldecFloat -lre2  -ltommath -ltomcrypt
  c++: warning: argument unused during compilation: '-static-libstdc++' [-Wunused-command-line-argument]
  ld: error: version script assignment of 'global' to symbol '_IO_stdin_used' failed: symbol not defined
  c++: error: linker command failed with exit code 1 (use -v to see invocation)

The mentioned symbol is only relevant for Linux. Remove it from the
builds/posix/vers.sh.in script that generates the linker version script.

PR:		274336
Approved by:	maintainer timeout (2 weeks)
MFH:		2023Q4
This commit is contained in:
Dimitry Andric 2023-10-07 17:31:33 +02:00
parent a47b90ce18
commit d93897eed7

View File

@ -0,0 +1,10 @@
--- builds/posix/vers.sh.in.orig 2022-08-10 09:04:28 UTC
+++ builds/posix/vers.sh.in
@@ -57,7 +57,6 @@ platform_linux() {
echo "${TAB}$i;"
done
- echo "${TAB}_IO_stdin_used;"
echo 'local:'
echo "${TAB}*;"
echo '};'