Bug 690584

Summary: ld: fatal: Symbol referencing errors. No output written to ./bin/gs collect2: ld returned 1 exit status
Product: Ghostscript Reporter: Ralph <Wittig.Ralph>
Component: Build ProcessAssignee: Ralph Giles <ralph.giles>
Status: RESOLVED DUPLICATE    
Severity: major CC: demetrio.vitani
Priority: P4    
Version: 8.64   
Hardware: Sun   
OS: Solaris   
Customer: Word Size: ---
Attachments: Config.log

Description Ralph 2009-06-29 08:22:07 UTC
I try to build GS 8.64 with following options 

./configure --prefix=/opt/Ghostscript-8.64 and following bug happens

XCFLAGS= XINCLUDE= XLDFLAGS= XLIBDIRS= XLIBS= \
FEATURE_DEVS= DEVICE_DEVS= DEVICE_DEVS1= DEVICE_DEVS2= DEVICE_DEVS3= \
DEVICE_DEVS4= DEVICE_DEVS5= DEVICE_DEVS6= DEVICE_DEVS7= DEVICE_DEVS8= \
DEVICE_DEVS9= DEVICE_DEVS10= DEVICE_DEVS11= DEVICE_DEVS12= \
DEVICE_DEVS13= DEVICE_DEVS14= DEVICE_DEVS15= DEVICE_DEVS16= \
DEVICE_DEVS17= DEVICE_DEVS18= DEVICE_DEVS19= DEVICE_DEVS20= \
DEVICE_DEVS_EXTRA= \
/bin/sh <./obj/ldt.tr
Undefined                       first referenced
 symbol                             in file
libiconv_close                      ./obj/gdevopvp.o
libiconv_open                       ./obj/gdevopvp.o
libiconv                            ./obj/gdevopvp.o
ld: fatal: Symbol referencing errors. No output written to ./bin/gs
collect2: ld returned 1 exit status
*** Error code 1
make: Fatal error: Command failed for target `bin/gs'
Comment 1 Ken Sharp 2009-06-29 09:02:18 UTC
Looks like you do not have libiconv installed ?
Comment 2 Marcos H. Woehrmann 2009-06-29 09:20:32 UTC
I ran into this same issue the other day while building on Solaris 10 x86. We need to detect this 
during ./configure. 
Comment 3 Alex Cherepanov 2009-06-29 16:46:46 UTC
We try to detect this during configue . I wrote the current test.
Apparently, it doesn't work as expected although on all platforms.
Comment 4 Ralph 2009-06-29 23:26:56 UTC
libiconv is correctly installed with package from sunfreeware.com.
I also compiled Imagemagick with that installation and all works fine.

System information: SUN Solaris 10 / Sparc / gcc 3.4.6
Comment 5 Ralph 2009-07-08 07:25:56 UTC
Created attachment 5196 [details]
Config.log
Comment 6 demetrio.vitani 2009-07-09 10:37:24 UTC
*** Bug 690614 has been marked as a duplicate of this bug. ***
Comment 7 Alex Cherepanov 2009-07-18 21:10:44 UTC
The work-around for the case of GNU iconv.h and system libraries was ineffective
because of the typo. Rev 9871 corrects the typo. See bug 690123 for details.

*** This bug has been marked as a duplicate of 690123 ***