#158: 64-bit libXtst/libXext is required to compile gcc/libjava
--------------------------------+-------------------------------------------
 Reporter:  [EMAIL PROTECTED]  |              Owner:  [EMAIL PROTECTED]     
     Type:  defect              |             Status:  new                    
 Priority:  high                |          Milestone:  Elatte Unstable Alpha 2
Component:  libxtst             |            Version:  1.0                    
 Severity:  major               |         Resolution:                         
 Keywords:                      |   Launchpad_linked:  0                      
--------------------------------+-------------------------------------------
Changes (by Mac):

  * summary:  64-bit libXtst is required to compile gcc/libjava => 64-bit
              libXtst/libXext is required to compile
              gcc/libjava

Old description:

> Now that gcc is compiling with 64-bit support, we are hitting the
> following issue when building 64-bit libjava:
>
> {{{
> configure:13074:
> /home/mac/repository/gnusolaris1/gcc-4.0/trunk/build/gcc/xgcc
> -B/home/mac/repository/gnusolaris1/gcc-4.0/trunk/build/gcc/ -B/usr/i386
> -pc-solaris2.11/bin/ -B/usr/i386-pc-solaris2.11/lib/ -isystem /usr/i386
> -pc-solaris2.11/include -isystem /usr/i386-pc-solaris2.11/sys-include
> -m64 -o conftest -O2 -g -O2   conftest.c -lXtst  -L/usr/X11R6/lib
> -R/usr/X11R6/lib  >&5
> /usr/bin/ld: skipping incompatible /usr/lib/gcc/../libXtst.so when
> searching for -lXtst
> /usr/bin/ld: skipping incompatible /usr/lib/gcc/../libXtst.a when
> searching for -lXtst
> /usr/bin/ld: skipping incompatible /usr/bin/../lib/libXtst.so when
> searching for -lXtst
> /usr/bin/ld: skipping incompatible /usr/bin/../lib/libXtst.a when
> searching for -lXtst
> /usr/bin/ld: cannot find -lXtst
> collect2: ld returned 1 exit status
> }}}
>
> Note the "-m64" flag passed to gcc, and the failure to find
> /usr/lib/amd64/libXtst.so.
>
> To solve this, we may need to bootstrap libXtst.so by taking
> an existing 64-bit version of that library, recompile gcc,
> and then recompile libxtst package with 64-bit version added.

New description:

 Now that gcc is compiling with 64-bit support, we are hitting the
 following issue when building 64-bit libjava:

 {{{
 configure:13074:
 /home/mac/repository/gnusolaris1/gcc-4.0/trunk/build/gcc/xgcc
 -B/home/mac/repository/gnusolaris1/gcc-4.0/trunk/build/gcc/ -B/usr/i386
 -pc-solaris2.11/bin/ -B/usr/i386-pc-solaris2.11/lib/ -isystem /usr/i386
 -pc-solaris2.11/include -isystem /usr/i386-pc-solaris2.11/sys-include
 -m64 -o conftest -O2 -g -O2   conftest.c -lXtst  -L/usr/X11R6/lib
 -R/usr/X11R6/lib  >&5
 /usr/bin/ld: skipping incompatible /usr/lib/gcc/../libXtst.so when
 searching for -lXtst
 /usr/bin/ld: skipping incompatible /usr/lib/gcc/../libXtst.a when
 searching for -lXtst
 /usr/bin/ld: skipping incompatible /usr/bin/../lib/libXtst.so when
 searching for -lXtst
 /usr/bin/ld: skipping incompatible /usr/bin/../lib/libXtst.a when
 searching for -lXtst
 /usr/bin/ld: cannot find -lXtst
 collect2: ld returned 1 exit status
 }}}

 Note the "-m64" flag passed to gcc, and the failure to find
 /usr/lib/amd64/libXtst.so.

 To solve this, we may need to bootstrap libXtst.so by taking
 an existing 64-bit version of that library, recompile gcc,
 and then recompile libxtst package with 64-bit version added.
 Note that libxtst depends on libxext, so the latter needs to
 provide 64-bit binary as well.

-- 
Ticket URL: <http://www.gnusolaris.org/cgi-bin/trac.cgi/ticket/158>
Nexenta Bug Tracking System <http://www.gnusolaris.org/gswiki/Bugs>
Core Components
_______________________________________________
GNU/Solaris Development mailing list
[email protected]

Reply via email to