[cups.bugs] Re: [CRIT] STR #1154: cannot build ghostscript,

Thomas Bork knuffelmail at gmx.de
Tue May 17 13:18:17 PDT 2005


Toshihiro Yamagishi wrote:

> [STR New]
> 
> I've update the configure.ac-iconv.patch as
> "espgs-r103-configure.ac-iconv-2.patch" which improved iconv detection.
> Do not include opvp/oprp driver if no iconv/libiconv in the system.
> Thanks
> 
> Link: http://www.cups.org/str.php?L1154
> Version: 8.15rc3

vmeis # cd espgs-8.15rc3
vmeis # patch -p1 < espgs-r103-configure.ac-iconv-2.patch
(Stripping trailing CRs from patch.)
patching file src/configure.ac
vmeis # patch -p1 < espgs-r103-unixinst-2.patch
(Stripping trailing CRs from patch.)
patching file src/unixinst.mak
vmeis # ./autogen.sh
Generating configuration files for ghostscript, please wait....
   creating links to configuration sources
   running autoconf
Can't locate object method "path" via package "Request" (perhaps you 
forgot to load "Request"?) at /usr/share/autoconf/Autom4te/C4che.pm line 
69, <GEN1> line 110.
I am going to run ./configure with no arguments - if you wish
to pass any to it, please specify them on the ./autogen.sh command line.
[...]
vmeis # export CFLAGS='-O2'
vmeis # ./configure \
 > --target=i486-pc-linux-gnu \
 > --prefix=/usr/local \
 > --enable-compiled-inits \
 > --with-fontpath=/usr/local/share/ghostscript/fonts \
 > --with-ijs \
 > --with-gimp-print \
 > --without-omni \
 > --with-libiconv=gnu \
 > --without-x
checking for gcc... gcc
[...]
checking for iconv_open... yes

config.log:
[...]
configure:5870: checking for iconv_open
configure:5920: gcc -o conftest -O2   conftest.c -lm  >&5
configure:5923: $? = 0
configure:5926: test -s conftest
configure:5929: $? = 0
configure:5940: result: yes
[...]
ac_cv_func_iconv_open=yes

Makefile:
[...]
COMPILE_INITS=0

? Configured with '--enable-compiled-inits'...

make:

if [ x != x ]; then LD_RUN_PATH=; export LD_RUN_PATH; fi; \
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= \
/bin/sh <./obj/ldt.tr
../obj/gdevopvp.o(.text+0x676): In function `opvp_to_utf8':
: undefined reference to `libiconv_open'
../obj/gdevopvp.o(.text+0x69f): In function `opvp_to_utf8':
: undefined reference to `libiconv'
../obj/gdevopvp.o(.text+0x6bd): In function `opvp_to_utf8':
: undefined reference to `libiconv_close'
collect2: ld returned 1 exit status
make: *** [bin/gs] Error 1

This was with explicit declaration of gnu libiconv. Now without...:

It's the same :(
I don't understand the line numbers:

configure:5870: checking for iconv_open
configure:5920: gcc -o conftest -O2   conftest.c -lm  >&5
configure:5923: $? = 0
configure:5926: test -s conftest
configure:5929: $? = 0
configure:5940: result: yes

line 5868-5881 from configure is:

main ()
{

   FILE *f = fopen ("conftest.val", "w");
   if (! f)
     exit (1);
   if (((long) (sizeof (unsigned __int64))) < 0)
     {
       long i = longval ();
       if (i != ((long) (sizeof (unsigned __int64))))
         exit (1);
       fprintf (f, "%ld\n", i);
     }
   else

Thanks for your help.


der tom





More information about the cups mailing list