public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* libtool: error: cannot find the library '/usr/lib/libxcb.la'...
@ 2016-08-20 23:09 Ken Brown
  2016-08-21 12:28 ` Ken Brown
  0 siblings, 1 reply; 4+ messages in thread
From: Ken Brown @ 2016-08-20 23:09 UTC (permalink / raw)
  To: cygwin

I'm trying to rebuild texlive, and the build on x86 is failing as follows:

make[2]: Entering directory '/home/kbrown/src/cygtexlive/texlive/texlive-20160520-2.i686/build/texk/xdvik'
/bin/sh ./libtool  --tag=CC   --mode=link gcc -Wimplicit -Wreturn-type -Wdeclaration-after-statement -Wno-unknown-pragmas -ggdb -O2 -pipe -Wimplicit-function-declaration -fdebug-prefix-map=/home/kbrown/src/cygtexlive/texlive/texlive-20160520-2.i686/build=/usr/src/debug/texlive-20160520-2 -fdebug-prefix-map=/home/kbrown/src/cygtexlive/texlive/texlive-20160520-2.i686/src/texlive-20160520-source=/usr/src/debug/texlive-20160520-2   -o xdvi-bin.exe main.o libxdvi.a /home/kbrown/src/cygtexlive/texlive/texlive-20160520-2.i686/build/texk/kpathsea/libkpathsea.la -lfreetype  -Xlinker --allow-multiple-definition  -lXaw -lXmu -lXt -lSM -lICE -lXi -lXext -lXpm -lX11
libtool:   error: cannot find the library '/usr/lib/libxcb.la' or unhandled argument '/usr/lib/libxcb.la'

(/usr/lib/libxcb.la was removed from the x86 distro in the recent update of libxcb-devel.)

I've never really understood .la files and when they're needed.  Can someone point me in the right direction for tracking down this error?  I've looked at the libtool script, and there's no substantial difference between the x86 and x86_64 cases, so I have no idea why libtool expects to find /usr/lib/libxcb.la on x86.

Thanks.

Ken

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: libtool: error: cannot find the library '/usr/lib/libxcb.la'...
  2016-08-20 23:09 libtool: error: cannot find the library '/usr/lib/libxcb.la' Ken Brown
@ 2016-08-21 12:28 ` Ken Brown
  2016-08-21 18:15   ` Marco Atzeri
  0 siblings, 1 reply; 4+ messages in thread
From: Ken Brown @ 2016-08-21 12:28 UTC (permalink / raw)
  To: cygwin

On 8/20/2016 5:54 PM, Ken Brown wrote:
> I'm trying to rebuild texlive, and the build on x86 is failing as follows:
>
> make[2]: Entering directory '/home/kbrown/src/cygtexlive/texlive/texlive-20160520-2.i686/build/texk/xdvik'
> /bin/sh ./libtool  --tag=CC   --mode=link gcc -Wimplicit -Wreturn-type -Wdeclaration-after-statement -Wno-unknown-pragmas -ggdb -O2 -pipe -Wimplicit-function-declaration -fdebug-prefix-map=/home/kbrown/src/cygtexlive/texlive/texlive-20160520-2.i686/build=/usr/src/debug/texlive-20160520-2 -fdebug-prefix-map=/home/kbrown/src/cygtexlive/texlive/texlive-20160520-2.i686/src/texlive-20160520-source=/usr/src/debug/texlive-20160520-2   -o xdvi-bin.exe main.o libxdvi.a /home/kbrown/src/cygtexlive/texlive/texlive-20160520-2.i686/build/texk/kpathsea/libkpathsea.la -lfreetype  -Xlinker --allow-multiple-definition  -lXaw -lXmu -lXt -lSM -lICE -lXi -lXext -lXpm -lX11
> libtool:   error: cannot find the library '/usr/lib/libxcb.la' or unhandled argument '/usr/lib/libxcb.la'
>
> (/usr/lib/libxcb.la was removed from the x86 distro in the recent update of libxcb-devel.)

I think I found the problem, but I don't have access to my build machine 
right now to test it: Several /usr/lib/*.la files include the 
non-existent /usr/lib/libxcb.la in their dependency_libs.  In 
particular, this is true of /usr/lib/libXext.la.  So I'm guessing that 
the presence of -lXext in the libtool command line is causing libtool to 
look for /usr/lib/libxcb.la.

Can someone confirm this guess?  If I'm right, then it seems that 
/usr/lib/libxcb.la should be restored until all packages that depend on 
it can be rebuilt.

Ken


--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: libtool: error: cannot find the library '/usr/lib/libxcb.la'...
  2016-08-21 12:28 ` Ken Brown
@ 2016-08-21 18:15   ` Marco Atzeri
  2016-08-21 22:18     ` Ken Brown
  0 siblings, 1 reply; 4+ messages in thread
From: Marco Atzeri @ 2016-08-21 18:15 UTC (permalink / raw)
  To: cygwin

On 21/08/2016 06:01, Ken Brown wrote:
> On 8/20/2016 5:54 PM, Ken Brown wrote:
>> I'm trying to rebuild texlive, and the build on x86 is failing as
>> follows:
>>
>> make[2]: Entering directory
>> '/home/kbrown/src/cygtexlive/texlive/texlive-20160520-2.i686/build/texk/xdvik'
>>
>> /bin/sh ./libtool  --tag=CC   --mode=link gcc -Wimplicit -Wreturn-type
>> -Wdeclaration-after-statement -Wno-unknown-pragmas -ggdb -O2 -pipe
>> -Wimplicit-function-declaration
>> -fdebug-prefix-map=/home/kbrown/src/cygtexlive/texlive/texlive-20160520-2.i686/build=/usr/src/debug/texlive-20160520-2
>> -fdebug-prefix-map=/home/kbrown/src/cygtexlive/texlive/texlive-20160520-2.i686/src/texlive-20160520-source=/usr/src/debug/texlive-20160520-2
>> -o xdvi-bin.exe main.o libxdvi.a
>> /home/kbrown/src/cygtexlive/texlive/texlive-20160520-2.i686/build/texk/kpathsea/libkpathsea.la
>> -lfreetype  -Xlinker --allow-multiple-definition  -lXaw -lXmu -lXt
>> -lSM -lICE -lXi -lXext -lXpm -lX11
>> libtool:   error: cannot find the library '/usr/lib/libxcb.la' or
>> unhandled argument '/usr/lib/libxcb.la'
>>
>> (/usr/lib/libxcb.la was removed from the x86 distro in the recent
>> update of libxcb-devel.)
>
> I think I found the problem, but I don't have access to my build machine
> right now to test it: Several /usr/lib/*.la files include the
> non-existent /usr/lib/libxcb.la in their dependency_libs.  In
> particular, this is true of /usr/lib/libXext.la.  So I'm guessing that
> the presence of -lXext in the libtool command line is causing libtool to
> look for /usr/lib/libxcb.la.
>
> Can someone confirm this guess?  If I'm right, then it seems that
> /usr/lib/libxcb.la should be restored until all packages that depend on
> it can be rebuilt.
>
> Ken
>

my usual solution it to remove the /usr/lib/*.la that is calling the
/usr/lib/libxcb.la.
This is also what Yaakov proposed as general solution.

On the 64 bit we have no  /usr/lib/*.la for the same reason.

Regards
Marco

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: libtool: error: cannot find the library '/usr/lib/libxcb.la'...
  2016-08-21 18:15   ` Marco Atzeri
@ 2016-08-21 22:18     ` Ken Brown
  0 siblings, 0 replies; 4+ messages in thread
From: Ken Brown @ 2016-08-21 22:18 UTC (permalink / raw)
  To: cygwin

On 8/21/2016 11:04 AM, Marco Atzeri wrote:
> On 21/08/2016 06:01, Ken Brown wrote:
>> On 8/20/2016 5:54 PM, Ken Brown wrote:
>>> I'm trying to rebuild texlive, and the build on x86 is failing as
>>> follows:
>>>
>>> make[2]: Entering directory
>>> '/home/kbrown/src/cygtexlive/texlive/texlive-20160520-2.i686/build/texk/xdvik'
>>>
>>>
>>> /bin/sh ./libtool  --tag=CC   --mode=link gcc -Wimplicit -Wreturn-type
>>> -Wdeclaration-after-statement -Wno-unknown-pragmas -ggdb -O2 -pipe
>>> -Wimplicit-function-declaration
>>> -fdebug-prefix-map=/home/kbrown/src/cygtexlive/texlive/texlive-20160520-2.i686/build=/usr/src/debug/texlive-20160520-2
>>>
>>> -fdebug-prefix-map=/home/kbrown/src/cygtexlive/texlive/texlive-20160520-2.i686/src/texlive-20160520-source=/usr/src/debug/texlive-20160520-2
>>>
>>> -o xdvi-bin.exe main.o libxdvi.a
>>> /home/kbrown/src/cygtexlive/texlive/texlive-20160520-2.i686/build/texk/kpathsea/libkpathsea.la
>>>
>>> -lfreetype  -Xlinker --allow-multiple-definition  -lXaw -lXmu -lXt
>>> -lSM -lICE -lXi -lXext -lXpm -lX11
>>> libtool:   error: cannot find the library '/usr/lib/libxcb.la' or
>>> unhandled argument '/usr/lib/libxcb.la'
>>>
>>> (/usr/lib/libxcb.la was removed from the x86 distro in the recent
>>> update of libxcb-devel.)
>>
>> I think I found the problem, but I don't have access to my build machine
>> right now to test it: Several /usr/lib/*.la files include the
>> non-existent /usr/lib/libxcb.la in their dependency_libs.  In
>> particular, this is true of /usr/lib/libXext.la.  So I'm guessing that
>> the presence of -lXext in the libtool command line is causing libtool to
>> look for /usr/lib/libxcb.la.
>>
>> Can someone confirm this guess?  If I'm right, then it seems that
>> /usr/lib/libxcb.la should be restored until all packages that depend on
>> it can be rebuilt.
>>
>> Ken
>>
>
> my usual solution it to remove the /usr/lib/*.la that is calling the
> /usr/lib/libxcb.la.
> This is also what Yaakov proposed as general solution.

Removing /usr/lib/libXext.la solved the problem.  Thanks for your help.

Ken


--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2016-08-21 21:36 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-08-20 23:09 libtool: error: cannot find the library '/usr/lib/libxcb.la' Ken Brown
2016-08-21 12:28 ` Ken Brown
2016-08-21 18:15   ` Marco Atzeri
2016-08-21 22:18     ` Ken Brown

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).