Skip to content

Commit

Permalink
devel/gamin: fix build with lld 17
Browse files Browse the repository at this point in the history
Building devel/gamin with lld 17 results in the following link error:

  cc -shared  .libs/gam_api.o .libs/gam_data.o .libs/gam_fork.o .libs/gam_error.o .libs/gam_event.o  -lpthread -L/usr/local/lib  -fstack-protector-strong -Wl,--version-script=./gamin_sym.version -fstack-protector-strong -Wl,-soname -Wl,libfam.so.0 -o .libs/libfam.so.0.0.0
  ld: error: version script assignment of 'global' to symbol 'FAMDebugLevel' failed: symbol not defined
  ld: error: version script assignment of 'global' to symbol 'FAMDebug' failed: symbol not defined
  cc: error: linker command failed with exit code 1 (use -v to see invocation)

This is because the FAMDebugLevel and FAMDebug symbols are only defined
when gamin is configured with --enable-debug, which we have no option
for in the port.

So fix it by removing the undefined symbols from the linker version
script.

PR:		274089
MFH:		2023Q4
  • Loading branch information
DimitryAndric committed Oct 6, 2023
1 parent e5019ec commit 9b934eb
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions devel/gamin/files/patch-libgamin_gamin__sym.version
@@ -0,0 +1,11 @@
--- libgamin/gamin_sym.version.orig 2007-07-04 13:36:48 UTC
+++ libgamin/gamin_sym.version
@@ -2,8 +2,6 @@
global:
FAMCancelMonitor;
FAMClose;
- FAMDebugLevel;
- FAMDebug;
FamErrlist;
FAMErrno;
FAMMonitorCollection;

0 comments on commit 9b934eb

Please sign in to comment.