tech-pkg archive

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

"libiconv" package doesn't build under Solaris



        Hello,

after working around the bison issue(*) I'm stuck with another
Solaris/pkgsrc problem. The "libiconv" package fails to build:

if test -n "yes"; then  /bin/sh ../libtool --mode=link gcc -Wl,-R/opt/pkg/lib  
-I. -I. -I../include -I./../include -I.. -I./.. -O  -DLIBDIR=\"/opt/pkg/lib\" 
-DBUILDING_LIBICONV -DBUILDING_DLL  -DENABLE_RELOCATABLE=1 -DIN_LIBRARY 
-DINSTALLDIR=\"/opt/pkg/lib\" -DNO_XMALLOC  
-Dset_relocation_prefix=libiconv_set_relocation_prefix  
-Drelocate=libiconv_relocate -DHAVE_CONFIG_H -fPIC -DPIC -DLIBICONV_PLUG 
./iconv.c ./../libcharset/lib/localcharset.c ./relocatable.c -shared -o 
preloadable_libiconv_solaris.so;  else  /bin/sh ../libtool --mode=link gcc 
-Wl,-R/opt/pkg/lib  -I. -I. -I../include -I./../include -I.. -I./.. -O  
-DLIBDIR=\"/opt/pkg/lib\" -DBUILDING_LIBICONV -DBUILDING_DLL  
-DENABLE_RELOCATABLE=1 -DIN_LIBRARY -DINSTALLDIR=\"/opt/pkg/lib\" -DNO_XMALLOC  
-Dset_relocation_prefix=libiconv_set_relocation_prefix  
-Drelocate=libiconv_relocate -DHAVE_CONFIG_H -KPIC -DPIC -DLIBICONV_PLUG 
./iconv.c ./../libcharset/lib/localcharset.c ./relocatable.c -G -o 
preloadable_libiconv_solaris.so;  fi
libtool: link: gcc -Wl,-R/opt/pkg/lib -I. -I../include -I./../include -I.. 
-I./.. -O -DLIBDIR=\"/opt/pkg/lib\" -DBUILDING_LIBICONV -DBUILDING_DLL 
-DENABLE_RELOCATABLE=1 -DIN_LIBRARY -DINSTALLDIR=\"/opt/pkg/lib\" -DNO_XMALLOC 
-Dset_relocation_prefix=libiconv_set_relocation_prefix 
-Drelocate=libiconv_relocate -DHAVE_CONFIG_H -fPIC -DPIC -DLIBICONV_PLUG 
./iconv.c ./../libcharset/lib/localcharset.c ./relocatable.c -o 
preloadable_libiconv_solaris.so  
-L/tmp/pkgsrc/converters/libiconv/work/.buildlink/lib
Undefined                       first referenced
 symbol                             in file
main                                /usr/lib/crt1.o
ld: fatal: Symbol referencing errors. No output written to 
preloadable_libiconv_solaris.so
collect2: ld returned 1 exit status
*** Error code 1

It looks like "libtool" thinks that it is linking a program and not
a shared object. I've tried to replace "-shared" with "-module" but
it doesn't help. Any ideas how to fix that?

        Kind regards

(*) See http://mail-index.netbsd.org/tech-pkg/2009/12/31/msg004623.html

-- 
Matthias Scheler                                  http://zhadum.org.uk/


Home | Main Index | Thread Index | Old Index