I'm surprised from your build log. All of the missing -l...-static are to be defined as CMake targets, so there should be nothing like -lbackend-static. In your build log, I see the build of the backend-shared, although no tde_add_library(backend SHARED ...), but tde_add_library(backend STATIC-PIC...) is defined in CMake rules. There it seems that something fundamentally interferes with the CMake rules that shared libraries are built instead of auxiliary static libraries. It makes no sense.
I'm surprised from your build log. All of the missing `-l...-static` are to be defined as CMake targets, so there should be nothing like `-lbackend-static`. In your build log, I see the build of the `backend-shared`, although no `tde_add_library(backend SHARED ...)`, but `tde_add_library(backend STATIC-PIC...)` is defined in CMake rules. There it seems that something fundamentally interferes with the CMake rules that shared libraries are built instead of auxiliary static libraries. It makes no sense.
Thanks for looking into it.
It looks like it should be spelled "STATIC_PIC" (with underscore) and not "STATIC-PIC". I try to patch and rebuild.
But how can this work on your side ?
Thanks for looking into it.
It looks like it should be spelled "STATIC_PIC" (with underscore) and not "STATIC-PIC". I try to patch and rebuild.
But how can this work on your side ?
Great, good observation. I will do a build test on Debian, but I do not expect any complications. It is great that it has been analyzed and solved so quickly.
Great, good observation. I will do a build test on Debian, but I do not expect any complications. It is great that it has been analyzed and solved so quickly.
Basic information
Description
Build fails during link. See Screenshots section below.
Full log file is attached.
Steps to reproduce
cmake
make
Screenshots
I'm surprised from your build log. All of the missing
-l...-static
are to be defined as CMake targets, so there should be nothing like-lbackend-static
. In your build log, I see the build of thebackend-shared
, although notde_add_library(backend SHARED ...)
, buttde_add_library(backend STATIC-PIC...)
is defined in CMake rules. There it seems that something fundamentally interferes with the CMake rules that shared libraries are built instead of auxiliary static libraries. It makes no sense.Thanks for looking into it.
It looks like it should be spelled "STATIC_PIC" (with underscore) and not "STATIC-PIC". I try to patch and rebuild.
But how can this work on your side ?
Using STATIC_PIC fixed the issue.
The PR is done.
Great, good observation. I will do a build test on Debian, but I do not expect any complications. It is great that it has been analyzed and solved so quickly.
I did a quick test on Debian Buster – as expected, everything was fine. PR merged, Issue can be closed.