On 25/01/2010 23:11, Halton Huo wrote:
> On Mon, 2010-01-25 at 12:02 -0500, Hillel Lubman wrote:
>    
>> I tried to build chmlib package using pkgbuild system. It builds and
>> installs, but the package is not configured by default to include basic
>> conversion tools (like chm to html etc.). If configure is run with
>> --enable-examples, chlib should produce those tools. However in such
>> case the build fails (it can't link because of socket related symbols
>> being not found).
>>
>> I modified .pkgbuild.build.sh for chmlib to include -lsocket in LDFLAGS
>> (as per README suggestion). This partially helped, but it still was
>> missing inet_addr symbol:
>>
>> Undefined            first referenced
>>    symbol                  in file
>> inet_addr                chm_http.o  (symbol belongs to implicit
>> dependency /lib/libnsl.so.1)
>> ld: fatal: symbol referencing errors. No output written to .libs/chm_http
>>
>> How can .pkgbuild.build.sh be modified to solve it?
>>      
> Add -lnsl also.
>
> Do not you have a spec file? If you have spec file, I'd suggest you add
> "-lnsl -lsocket" into LDFLAGS in %build section. That would be more
> easier.
>
> -Halton
>
>    
Yes, I did that and it worked. May be it worth to make an additional 
spec for chmlib tools? Debian has such package (libchm-bin):
http://packages.debian.org/source/squeeze/chmlib or they can be added to 
this package itself.

Regards,

Hillel.

Reply via email to