Bug 691312 - './autogen "CC=gcc -m32" ; make' broken starting with r.11171
Summary: './autogen "CC=gcc -m32" ; make' broken starting with r.11171
Status: RESOLVED FIXED
Alias: None
Product: Ghostscript
Classification: Unclassified
Component: Build Process (show other bugs)
Version: master
Hardware: PC Linux
: P4 normal
Assignee: Hin-Tak Leung
URL:
Keywords:
: 691304 (view as bug list)
Depends on:
Blocks:
 
Reported: 2010-05-17 02:46 UTC by Marcos H. Woehrmann
Modified: 2010-05-17 05:14 UTC (History)
1 user (show)

See Also:
Customer:
Word Size: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Marcos H. Woehrmann 2010-05-17 02:46:47 UTC
Starting with r11171 the command
  
  ./autogen "CC=gcc -m32" ; make

no longer works (with previous versions it builds a 32 bit version of Ghostscript on 64 bit Linux boxes).

The error message produced is:

  gcc -m32  -DHAVE_MKSTEMP -DHAVE_HYPOT -DHAVE_FILE64 -DHAVE_MKSTEMP64 -DHAVE_FONTCONFIG -DHAVE_LIBIDN -DHAVE_SETLOCALE -O2 -Wall -Wstrict-prototypes -Wundef -Wmissing-declarations -Wmissing-prototypes -Wwrite-strings -Wno-strict-aliasing -Wdeclaration-after-statement -fno-builtin -fno-common -DHAVE_STDINT_H -DGX_COLOR_INDEX_TYPE="unsigned long long"   -I./psi -I./obj -I./obj -I./base  -o ./obj/zpdfops.o -c ./psi/zpdfops.c
./psi/zpdfops.c:30:26: error: stringprep.h: No such file or directory
.
.
.

This appears to be because on a default Ubuntu installation the file 

  /usr/lib32/libidn.so

exists but the corresponding /usr/lib/libidn.so file does not.  autogen.sh in -m32 mode detects the library and assumes that the libidn11-dev package is installed.

It is possible to work around this problem by installing that package (or probably removing the /usr/lib32/libidn.so file) but it would be preferable Ghostscript compiled without this change.

Note that peeves fails in this way so can be used for testing.
Comment 1 Hin-Tak Leung 2010-05-17 04:54:20 UTC
added check for stringprep.h in r11266 and tested on peeves.
Comment 2 Hin-Tak Leung 2010-05-17 05:14:18 UTC
*** Bug 691304 has been marked as a duplicate of this bug. ***