Bug 274335 - databases/firebird30-server: fix build with lld 17
Summary: databases/firebird30-server: fix build with lld 17
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Some People
Assignee: Jose Alonso Cardenas Marquez
URL:
Keywords:
Depends on:
Blocks: 273753
  Show dependency treegraph
 
Reported: 2023-10-07 15:56 UTC by Dimitry Andric
Modified: 2023-10-20 16:28 UTC (History)
0 users

See Also:
bugzilla: maintainer-feedback? (acm)


Attachments
databases/firebird30-server: fix build with lld 17 (536 bytes, patch)
2023-10-07 15:56 UTC, Dimitry Andric
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Dimitry Andric freebsd_committer freebsd_triage 2023-10-07 15:56:36 UTC
Building databases/firebird30-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=gnu++03   -fstack-protector-strong -L/usr/local/lib  -D_THREAD_SAFE   -Wl,-rpath,/usr/local/lib -Wl,-rpath,/usr/local/libexec/firebird/intl  -Wl,--version-script,empty.vers -Wl,-rpath,../gen/firebird/lib /wrkdirs/share/dim/ports/databases/firebird30-client/work/Firebird-3.0.10.33601-0/temp/Release/gpre/c_cxx.o /wrkdirs/share/dim/ports/databases/firebird30-client/work/Firebird-3.0.10.33601-0/temp/Release/gpre/cmd.o /wrkdirs/share/dim/ports/databases/firebird30-client/work/Firebird-3.0.10.33601-0/temp/Release/gpre/cme.o /wrkdirs/share/dim/ports/databases/firebird30-client/work/Firebird-3.0.10.33601-0/temp/Release/gpre/cmp.o /wrkdirs/share/dim/ports/databases/firebird30-client/work/Firebird-3.0.10.33601-0/temp/Release/gpre/exp.o /wrkdirs/share/dim/ports/databases/firebird30-client/work/Firebird-3.0.10.33601-0/temp/Release/gpre/gpre.o /wrkdirs/share/dim/ports/databases/firebird30-client/work/Firebird-3.0.10.33601-0/temp/Release/gpre/hsh.o /wrkdirs/share/dim/ports/databases/firebird30-client/work/Firebird-3.0.10.33601-0/temp/Release/gpre/int_cxx.o /wrkdirs/share/dim/ports/databases/firebird30-client/work/Firebird-3.0.10.33601-0/temp/Release/gpre/jrdmet.o /wrkdirs/share/dim/ports/databases/firebird30-client/work/Firebird-3.0.10.33601-0/temp/Release/gpre/movg.o /wrkdirs/share/dim/ports/databases/firebird30-client/work/Firebird-3.0.10.33601-0/temp/Release/gpre/msc.o /wrkdirs/share/dim/ports/databases/firebird30-client/work/Firebird-3.0.10.33601-0/temp/Release/gpre/obj_cxx.o /wrkdirs/share/dim/ports/databases/firebird30-client/work/Firebird-3.0.10.33601-0/temp/Release/gpre/par.o /wrkdirs/share/dim/ports/databases/firebird30-client/work/Firebird-3.0.10.33601-0/temp/Release/gpre/pat.o /wrkdirs/share/dim/ports/databases/firebird30-client/work/Firebird-3.0.10.33601-0/temp/Release/gpre/sqe.o /wrkdirs/share/dim/ports/databases/firebird30-client/work/Firebird-3.0.10.33601-0/temp/Release/gpre/sql.o /wrkdirs/share/dim/ports/databases/firebird30-client/work/Firebird-3.0.10.33601-0/temp/Release/gpre/boot/gpre_meta_boot.o /wrkdirs/share/dim/ports/databases/firebird30-client/work/Firebird-3.0.10.33601-0/temp/Release/yvalve/gds.o /wrkdirs/share/dim/ports/databases/firebird30-client/work/Firebird-3.0.10.33601-0/temp/Release/common.a -o /wrkdirs/share/dim/ports/databases/firebird30-client/work/Firebird-3.0.10.33601-0/gen/Release/firebird/bin/gpre_boot -L/wrkdirs/share/dim/ports/databases/firebird30-client/work/Firebird-3.0.10.33601-0/gen/Release/firebird/lib -liconv -lm  -lpthread -lcurses
  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.
Comment 1 Dimitry Andric freebsd_committer freebsd_triage 2023-10-07 15:56:59 UTC
Created attachment 245485 [details]
databases/firebird30-server: fix build with lld 17
Comment 2 commit-hook freebsd_committer freebsd_triage 2023-10-20 16:26:24 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=a47b90ce18451bb618092ac1d80588af0c5193a9

commit a47b90ce18451bb618092ac1d80588af0c5193a9
Author:     Dimitry Andric <dim@FreeBSD.org>
AuthorDate: 2023-10-07 15:20:24 +0000
Commit:     Dimitry Andric <dim@FreeBSD.org>
CommitDate: 2023-10-20 16:25:47 +0000

    databases/firebird30-server: fix build with lld 17

    Building databases/firebird30-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=gnu++03   -fstack-protector-strong -L/usr/local/lib  -D_THREAD_SAFE   -Wl,-rpath,/usr/local/lib -Wl,-rpath,/usr/local/libexec/firebird/intl  -Wl,--version-script,empty.vers -Wl,-rpath,../gen/firebird/lib /wrkdirs/share/dim/ports/databases/firebird30-client/work/Firebird-3.0.10.33601-0/temp/Release/gpre/c_cxx.o /wrkdirs/share/dim/ports/databases/firebird30-client/work/Firebird-3.0.10.33601-0/temp/Release/gpre/cmd.o /wrkdirs/share/dim/ports/databases/firebird30-client/work/Firebird-3.0.10.33601-0/temp/Release/gpre/cme.o /wrkdirs/share/dim/ports/databases/firebird30-client/work/Firebird-3.0.10.33601-0/temp/Release/gpre/cmp.o /wrkdirs/share/dim/ports/databases/firebird30-client/work/Firebird-3.0.10.33601-0/temp/Release/gpre/exp.o /wrkdirs/share/dim/ports/databases/firebird30-client/work/Firebird-3.0.10.33601-0/temp/Release/gpre/gpre.o /wrkdirs/share/d
 im/ports/databases/firebird30-client/work/Firebird-3.0.10.33601-0/temp/Release/gpre/hsh.o /wrkdirs/share/dim/ports/databases/firebird30-client/work/Firebird-3.0.10.33601-0/temp/Release/gpre/int_cxx.o /wrkdirs/share/dim/ports/databases/firebird30-client/work/Firebird-3.0.10.33601-0/temp/Release/gpre/jrdmet.o /wrkdirs/share/dim/ports/databases/firebird30-client/work/Firebird-3.0.10.33601-0/temp/Release/gpre/movg.o /wrkdirs/share/dim/ports/databases/firebird30-client/work/Firebird-3.0.10.33601-0/temp/Release/gpre/msc.o /wrkdirs/share/dim/ports/databases/firebird30-client/work/Firebird-3.0.10.33601-0/temp/Release/gpre/obj_cxx.o /wrkdirs/share/dim/ports/databases/firebird30-client/work/Firebird-3.0.10.33601-0/temp/Release/gpre/par.o /wrkdirs/share/dim/ports/databases/firebird30-client/work/Firebird-3.0.10.33601-0/temp/Release/gpre/pat.o /wrkdirs/share/dim/ports/databases/firebird30-client/work/Firebird-3.0.10.33601-0/temp/Release/gpre/sqe.o /wrkdirs/share/dim/ports/databases/firebird30-c
 lient/work/Firebird-3.0.10.33601-0/temp/Rele!
 ase/gpre/sql.o /wrkdirs/share/dim/ports/databases/firebird30-client/work/Firebird-3.0.10.33601-0/temp/Release/gpre/boot/gpre_meta_boot.o /wrkdirs/share/dim/ports/databases/firebird30-client/work/Firebird-3.0.10.33601-0/temp/Release/yvalve/gds.o /wrkdirs/share/dim/ports/databases/firebird30-client/work/Firebird-3.0.10.33601-0/temp/Release/common.a -o /wrkdirs/share/dim/ports/databases/firebird30-client/work/Firebird-3.0.10.33601-0/gen/Release/firebird/bin/gpre_boot -L/wrkdirs/share/dim/ports/databases/firebird30-client/work/Firebird-3.0.10.33601-0/gen/Release/firebird/lib -liconv -lm  -lpthread -lcurses
      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:             274335
    Approved by:    maintainer timeout (2 weeks)
    MFH:            2023Q4

 .../files/patch-builds_posix_vers.sh.in (new)                  | 10 ++++++++++
 1 file changed, 10 insertions(+)