[opensuse-packaging] Fuse chunkfs undefined reference to `fuse_main_real_compat25'
Hi, I tried to package fuse-chunkfs. However, I get linker errors and have no clue why. Manually it builds fine. (Manually means: extracting the archive and doing a "make"). When building on the OBS i get these errors: [ 33s] chunkfs.o: In function `main': [ 33s] chunkfs.c:(.text.startup+0x175): undefined reference to `fuse_main_real_compat25' [ 33s] chunkfs.c:(.text.startup+0x341): undefined reference to `fuse_main_real_compat25' [ 33s] chunkfs.c:(.text.startup+0x3ae): undefined reference to `fuse_main_real_compat25' [ 33s] collect2: error: ld returned 1 exit status Here is the corresponding package: https://build.opensuse.org/package/show/home:Aikhjarto/chunkfs Has anyone an idea why it builds manually with "make" but not via the OBS system? BR Thomas -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
On Sun, Jun 05, 2016 at 03:24:15PM +0200, Thomas Wagner wrote:
Hi,
I tried to package fuse-chunkfs. However, I get linker errors and have no clue why. Manually it builds fine. (Manually means: extracting the archive and doing a "make"). When building on the OBS i get these errors: [ 33s] chunkfs.o: In function `main': [ 33s] chunkfs.c:(.text.startup+0x175): undefined reference to `fuse_main_real_compat25' [ 33s] chunkfs.c:(.text.startup+0x341): undefined reference to `fuse_main_real_compat25' [ 33s] chunkfs.c:(.text.startup+0x3ae): undefined reference to `fuse_main_real_compat25' [ 33s] collect2: error: ld returned 1 exit status
Here is the corresponding package: https://build.opensuse.org/package/show/home:Aikhjarto/chunkfs
Has anyone an idea why it builds manually with "make" but not via the OBS system?
Due to --as-needed being set... [ 29s] cc -s -lfuse chunkfs.o utils.o -o chunkfs [ 29s] cc -s -lfuse unchunkfs.o utils.o -o unchunkfs Here order is important, the -lfuse needs to be after the .o files Ciao, Marcus -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
On 2016-06-05 14:27, Marcus Meissner wrote:
On Sun, Jun 05, 2016 at 03:24:15PM +0200, Thomas Wagner wrote:
i get these errors: [ 33s] chunkfs.o: In function `main': [ 33s] chunkfs.c:(.text.startup+0x175): undefined reference to `fuse_main_real_compat25' [ 33s] chunkfs.c:(.text.startup+0x341): undefined reference to `fuse_main_real_compat25' [ 33s] chunkfs.c:(.text.startup+0x3ae): undefined reference to `fuse_main_real_compat25' [ 33s] collect2: error: ld returned 1 exit status
Due to --as-needed being set...
[ 29s] cc -s -lfuse chunkfs.o utils.o -o chunkfs [ 29s] cc -s -lfuse unchunkfs.o utils.o -o unchunkfs
Here order is important, the -lfuse needs to be after the .o files
Thanks a lot for the hint. Splitting up LDFLAGS into LDLIB and LDFLAGS finally did that trick. -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
participants (2)
-
Marcus Meissner
-
Thomas Wagner