Commit d20d0da
committed
librdmacm/preload.c: fix duplicate LFS symbols definitions
85f9747 introduces the preload of fcntl64 and it fails to build on armhf:
Assembler messages:
Error: symbol `__fcntl_time64' is already defined
Error: symbol `sendfile64' is already defined
On armhf (and potentially other 32 bits systems), glibc directs fcntl64
and fcntl to the same symbol name. preload.c defines both fcntl and fcntl64
and these 2 implementations are in fact tight to the same symbol, that causes
the double symbol error.
So only provide the definition of both fcntl and fcntl64 if they are 2
separate symbols.
This fixes the issue both for sendfile64 and fcntl64.
Fixes: 85f9747 ("librdmacm: Add support for fcntl64")
Signed-off-by: Hector Cao <hector.cao@canonical.com>1 parent 1c73934 commit d20d0da
1 file changed
Lines changed: 9 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
467 | 467 | | |
468 | 468 | | |
469 | 469 | | |
| 470 | + | |
| 471 | + | |
| 472 | + | |
| 473 | + | |
| 474 | + | |
| 475 | + | |
| 476 | + | |
| 477 | + | |
470 | 478 | | |
471 | 479 | | |
472 | | - | |
| 480 | + | |
473 | 481 | | |
474 | 482 | | |
475 | 483 | | |
| |||
0 commit comments