adding LDFLAGS / lts issue

Riccardo Mottola rmottola at
Sat Feb 9 10:21:31 CET 2019

Hi Dagobert,

On 2/4/19 9:24 AM, Dagobert Michelsen wrote:
> Works for me, I just committed these lines:
> # Checkpkg suggests adding the following lines to the GAR recipe:
> # This is a summary; see above for details.
> RUNTIME_DEP_PKGS_CSWgnustep-back += CSWlibart
> If any of the reported errors were false positives, you can override them
> pasting the lines below to the GAR recipe.
> CHECKPKG_OVERRIDES_CSWgnustep-back += 
> pkginfo-opencsw-repository-uncommitted
> CHECKPKG_OVERRIDES_CSWgnustep-back += missing-dependency|CSWlibart
> CHECKPKG_OVERRIDES_CSWgnustep-back += surplus-dependency|CSWlibfontconfig1
> CHECKPKG_OVERRIDES_CSWgnustep-back += surplus-dependency|CSWlibcairo2
> CHECKPKG_OVERRIDES_CSWgnustep-back += surplus-dependency|CSWlibxrenderù

I explained in another mail why this wasn't the "right solution" even if 
the package built - configure tries to detect cairo, else it drops back 
to art or plain xlib.

instead of

EXTRA_LDFLAGS += -lcairo
EXTRA_LDFLAGS += -lpthread

I tried it "the hard way"


This way the configure script fails pretty early though:

compilation terminated.
configure:2783: $? = 1
configure:2803: checking whether the C compiler works
configure:2825: /opt/csw/bin/gcc-4.6 -O2 -pipe -fno-omit-frame-pointer 
-mcpu=v8   -mcpu=v8 -lcairo -lpthread -L/opt/csw/lib -lcairo -lpthread 
conftest.c  >&5
Undefined                       first referenced
  symbol                             in file
__tls_get_addr                      /opt/csw/lib/
ld: fatal: Symbol referencing errors. No output written to a.out
collect2: ld returned 1 exit status
configure:2829: $? = 1

do you have any suggestions? is a package broken or a -L is missing? 
Let's leave the best way to write the receipe out:

-lcairo and and -pthread are not enough (interestingly - here in this 
test they appear even twice...)

pixman gets in from cairo, I suppose.. Perhaps the solution for 
_tls_get_addr missing is different or am I not applying it correct?


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the devel mailing list