pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

pkg/43636: devel/libtool-base is broken on SunOS



>Number:         43636
>Category:       pkg
>Synopsis:       devel/libtool-base is broken on SunOS
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Jul 18 13:45:00 +0000 2010
>Originator:     Aleksey Cheusov
>Release:        NetBSD 5.1_RC3
>Organization:
>Environment:
System: SunOS sunos 5.11 snv_134 i86pc i386 i86pc Solaris
Architecture: x86
Machine: amd64
>Description:
Under OpenSolaris snv_134
pkgsrc version of "libtool" compiled with gcc
doesn't handle properly -export-symbols option
and maybe others.
As a result many packages including glib2, png and lots of others
fails like this.

    ...
    /home/cheusov/pkg-gcc34/bin/pdksh ./libtool --tag=CC    --mode=link gcc   
-O -I/usr/include  -no-undefined  -export-dynamic -version-number  14:3:0   
-export-symbols libpng.sym -L/usr/lib -Wl,-R/usr/lib 
-Wl,-R/home/cheusov/pkg-gcc34/lib -o  libpng14.la -rpath 
/home/cheusov/pkg-gcc34/lib libpng14_la-png.lo  libpng14_la-pngset.lo  
libpng14_la-pngget.lo  libpng14_la-pngrutil.lo  libpng14_la-pngtrans.lo  
libpng14_la-pngwutil.lo  libpng14_la-pngread.lo  libpng14_la-pngrio.lo  
libpng14_la-pngwio.lo  libpng14_la-pngwrite.lo  libpng14_la-pngrtran.lo  
libpng14_la-pngwtran.lo  libpng14_la-pngmem.lo  libpng14_la-pngerror.lo  
libpng14_la-pngpread.lo  -lz -lm
    libtool: link: gcc -shared  .libs/libpng14_la-png.o 
.libs/libpng14_la-pngset.o .libs/libpng14_la-pngget.o 
.libs/libpng14_la-pngrutil.o .libs/libpng14_la-pngtrans.o 
.libs/libpng14_la-pngwutil.o .libs/libpng14_la-pngread.o 
.libs/libpng14_la-pngrio.o .libs/libpng14_la-pngwio.o 
.libs/libpng14_la-pngwrite.o .libs/libpng14_la-pngrtran.o 
.libs/libpng14_la-pngwtran.o .libs/libpng14_la-pngmem.o 
.libs/libpng14_la-pngerror.o .libs/libpng14_la-pngpread.o   -lz -lm 
-L/tmp/obj_pkgsrc34/graphics/png/work/.buildlink/lib -lc  
-Wl,-R/home/cheusov/pkg-gcc34/lib   -Wl,-soname -Wl,libpng14.so.14 
-Wl,-retain-symbols-file -Wl,libpng.sym -o .libs/libpng14.so.14.3.0
    ld: fatal: file libpng.sym: unknown file type
    ld: fatal: file processing errors. No output written to 
.libs/libpng14.so.14.3.0
    collect2: ld returned 1 exit status
    *** Error code 1

Options -Wl,-retain-symbols-file -Wl,libpng.sym
should not be passwd to compiler on Solaris when Sun's ld is used.

hint: upstream libtool built manually works perfectly.

>How-To-Repeat:
0 bootstrap> echo $PATH
/usr/gnu/bin:/opt/SunStudioExpress/bin:/sbin:/usr/sbin:/usr/local/sbin:/home/cheusov/bin:/home/cheusov/local/sunos/bin:/usr/bin:/bin
0 bootstrap> ./bootstrap --unprivileged --prefix ~/pkg-sunos --workdir 
/tmp/pkg-tmp
0 bootstrap> cd ~/prjs/g++
0 g++>cat five.c
int do_five (void)
{
  return 5;
}

int five (void)
{
  return do_five ();
}

0 g++>cat libfive.exp
five

0 g++>~/pkg-sunos/bin/libtool --tag=CC --mode=compile /usr/gcc/4.3/bin/gcc -c 
-o five.lo five.c
libtool: compile:  /usr/gcc/4.3/bin/gcc -c five.c  -fPIC -DPIC -o .libs/five.o
libtool: compile:  /usr/gcc/4.3/bin/gcc -c five.c -o five.o >/dev/null 2>&1

0 g++>~/pkg-sunos/bin/libtool --tag=CC --mode=link /usr/gcc/4.3/bin/gcc 
-no-undefined -export-dynamic -version-number 14:3:0 -export-symbols 
libfive.exp -rpath /usr/local/lib -o libfive.la five.lo
libtool: link: rm -fr  .libs/libfive.a .libs/libfive.la .libs/libfive.lai 
.libs/libfive.so .libs/libfive.so.14 .libs/libfive.so.14.3.0
libtool: link: gcc -shared  .libs/five.o   -lc    -Wl,-soname -Wl,libfive.so.14 
-Wl,-retain-symbols-file -Wl,libfive.exp -o .libs/libfive.so.14.3.0
ld: fatal: file libfive.exp: unknown file type
ld: fatal: file processing errors. No output written to .libs/libfive.so.14.3.0
collect2: ld returned 1 exit status

1 g++>

>Fix:

Unknown


Home | Main Index | Thread Index | Old Index