On Jul 30, 2007, at 1:35 PM, Martin Costabel wrote:

> Hans-Christoph Steiner wrote:
>> I am currently making a package for libhid (http://  
>> libhid.alioth.debian.org/) which depends on libusb.  The libusb  
>> build  flags are causing an error related to pkgconfig so I  
>> currently have a  kludge to work around this.
>> Here's the error:
>> Validating .deb dir root-libhid0-0.2.16-1...
>> Error: The -Wl,-framework flag may get munged by pkg-config. See  
>> the  gcc manpage for information about passing options to flags  
>> for  specific compiler passes.
>>          Offending file: /sw/lib/pkgconfig/libhid.pc
>>          Offending line: Libs: -L/sw/lib -lusb -Wl,-framework -  
>> Wl,IOKit -Wl,-framework -Wl,CoreFoundation -Wl,-prebind -L$ 
>> {libdir} - lhid
>
> The reason for the validator to protest here is that pkg-config has  
> a bug that will remove one of the -Wl,-framework flags in its  
> output. See the discussion on fink-Bugs-978293.
>
> What libusb should do (and the libusb.info file contains traces of  
> an older effort to do so) is to replace
>
> -Wl,-framework -Wl,IOKit -Wl,-framework -Wl,CoreFoundation
>
> by what is equivalent for the linker:
>
> -Wl,-framework,IOKit -Wl,-framework,CoreFoundation
>
> []
>> I've never used/seen these -Wl,-framework, etc, flags before.  Anyone
>
> Read man gcc.
>
>> know why they can't just be -framework IOKit -framework   
>> CoreFoundation?
>
> That would be worse. In addition to pkg-config eating one of the - 
> framework flags, libtool would probably create another disaster by  
> ordering these four words alphabetically...

Ah, I see, I've always let gcc call ld/libtool/etc so I've never  
touched them.

>> Ideally this would be fixed with the libusb package  rather than a  
>> kludge in the libhid package.
>
> Yes. I put a new revision libusb-0.1.12-1011 into 10.4/unstable  
> that is supposed to fix this. Please try.

Yup, that did it.  Now it builds cleanly.  I think I'll submit my  
libhid0.info now.  One last question, I don't quite get the rules for  
when a package would be called libhid0 vs. libhid.  I figure that  
since this library is version 0.2.16, the package should be called  
libhid0.  Is that correct?

.hc


>
> -- 
> Martin



------------------------------------------------------------------------ 
----

Computer science is no more related to the computer than astronomy is  
related to the telescope.      -Edsger Dykstra



-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
Fink-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fink-devel

Reply via email to