Skip to content

fix linkage on Xenial (16.04)#627

Merged
DeckerSU merged 1 commit intodevfrom
patch-xenial-linkage
Mar 21, 2025
Merged

fix linkage on Xenial (16.04)#627
DeckerSU merged 1 commit intodevfrom
patch-xenial-linkage

Conversation

@DeckerSU
Copy link

@DeckerSU DeckerSU commented Sep 9, 2024

This PR fixes linkage error below on Xenial:

/usr/bin/ld: libcc.a(libcc_a-cclib.o): relocation R_X86_64_32 against `.rodata.str1.8' can not be used when making a shared object; recompile with -fPIC
libcc.a: error adding symbols: Bad value
collect2: error: ld returned 1 exit status
Makefile:2305: recipe for target 'komodod' failed
make[2]: *** [komodod] Error 1

```
/usr/bin/ld: libcc.a(libcc_a-cclib.o): relocation R_X86_64_32 against `.rodata.str1.8' can not be used when making a shared object; recompile with -fPIC
libcc.a: error adding symbols: Bad value
collect2: error: ld returned 1 exit status
Makefile:2305: recipe for target 'komodod' failed
make[2]: *** [komodod] Error 1
```
@TheComputerGenie
Copy link

While I think a PIC flag is a good idea, I cannot help but ask: "Why does anyone care about Xenial?". Xenial support for non-Pro subscribers ended its life some 3 years ago.
Why are we so determined to "lead" the future from as far back as possible?

@DeckerSU
Copy link
Author

Why does anyone care about Xenial?

Hmm... the answer is probably "because it costs zero effort," right? If we can support Xenial without any additional resources spent, why not?

@TheComputerGenie
Copy link

without any additional resources spent

Given that everything automated is running 20/22, some additional resources are clearly spent going back 2 releases further. At that point, might as well also set it up for Trusty Tahr (since "technically" its full EoL isn't until April 2026), no?

@DeckerSU DeckerSU requested a review from smk762 November 25, 2024 21:08
Copy link

@smk762 smk762 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Confirmed successful build via both make and zcutil/build.sh on Ubuntu 16.04

@DeckerSU DeckerSU merged commit 7e21162 into dev Mar 21, 2025
TheComputerGenie pushed a commit to ComputerGenieCo/komodo that referenced this pull request Sep 12, 2025
```
/usr/bin/ld: libcc.a(libcc_a-cclib.o): relocation R_X86_64_32 against `.rodata.str1.8' can not be used when making a shared object; recompile with -fPIC
libcc.a: error adding symbols: Bad value
collect2: error: ld returned 1 exit status
Makefile:2305: recipe for target 'komodod' failed
make[2]: *** [komodod] Error 1
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants