trinity-devel@lists.pearsoncomputing.net

Message: previous - next
Month: March 2012

[SOLVED] Re: [trinity-devel] tdegraphics build failure 2 : libkscan.so (linker error?)

From: "David C. Rankin" <drankinatty@...>
Date: Wed, 07 Mar 2012 14:42:49 -0600
On 03/07/2012 01:04 PM, David C. Rankin wrote:
> On 03/07/2012 11:08 AM, Serghei Amelian wrote:
>> On Wednesday 07 March 2012 18:55:51 David C. Rankin wrote:
>> [...]
>>
>>> LIBSANE_LIBS='-lsane
>>> -Wl,-O1,--sort-common,--as-needed,-z,relro,--hash-style=gnu -L/usr/lib
>>> -lnetsnmp -lcrypto -lm -ldl -lv4l1   -lm -ltiff -ljpeg  -lgphoto2
>>> -lgphoto2_port -lm -lexif -lusb     -lavahi-common -lavahi-client    -lusb 
>>> '
>>>
>>> LIBSANE_LDFLAGS='-L/usr/lib
>>> -Wl,-O1,--sort-common,--as-needed,-z,relro,--hash-style=gnu
>>> -Wl,-rpath,/usr/lib'
>>>
>>> LIBSANE_INCLUDES=''
>>>
>>>   I have no idea how '-lsane-Wl' is ending up crammed together. Any
>>> thoughts from the gurus?
>>
>> cmake expects only a library list from sane-config.
>>
> 
> Well, that could explain it :p
> 
>   That would also be consistent with the man page for sane-config:
> 
>        --libs  Print the additional libraries that are necessary to link a SANE
> frontend to libsane.
> 
>   I'll sed those out and follow up with arch on the behavior of sane. What is
> the output of your:
> 
> sane-config --libs
> 
> ?
> 

Tim, all:

net-snmp-config --libs includes NON library information which causes packages
built later that depend on it (eg: sane) to fail to link due to extraneous
library information. I opened a bug report with Arch:

https://bugs.archlinux.org/task/28817

-- 
David C. Rankin, J.D.,P.E.