Bug 691304 - Build fails on OpenSolaris, can't find stringprep.h
Summary: Build fails on OpenSolaris, can't find stringprep.h
Status: RESOLVED DUPLICATE of bug 691312
Alias: None
Product: Ghostscript
Classification: Unclassified
Component: Build Process (show other bugs)
Version: master
Hardware: PC Solaris
: P4 normal
Assignee: Hin-Tak Leung
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-05-14 12:36 UTC by Alex Cherepanov
Modified: 2010-05-19 08:27 UTC (History)
1 user (show)

See Also:
Customer:
Word Size: ---


Attachments
autoconf mod to run jbig2dec/configure and define -dHAVE_CONFIG_H (1.56 KB, patch)
2010-05-17 19:03 UTC, Hin-Tak Leung
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Alex Cherepanov 2010-05-14 12:36:59 UTC
Current revision doesn't compile on OpenSolaris, use opensolaris host
to debug.

Apparently, the functions declared in stringprep.h are found during
configuration time but stringprep.h is not found during build time.
The file is at /usr/include/idn/stringprep.h

./psi/zpdfops.c:30:26: stringprep.h: No such file or directory
./psi/zpdfops.c: In function `zsaslprep':
./psi/zpdfops.c:144: error: `Stringprep_rc' undeclared (first use in this function)
Comment 1 Hin-Tak Leung 2010-05-17 05:14:18 UTC
added check for stringprep.h in r11266 (as fix for bug 691312) to disable libidn dependency which was introduced in r11171 two weeks ago.

*** This bug has been marked as a duplicate of bug 691312 ***
Comment 2 Hin-Tak Leung 2010-05-17 19:03:06 UTC
Created attachment 6293 [details]
autoconf mod to run jbig2dec/configure and define -dHAVE_CONFIG_H

autoconf mod to run jbig2dec/configure and define -dHAVE_CONFIG_H

This should solve some portability problems.
Comment 3 Alex Cherepanov 2010-05-17 22:21:18 UTC
This patch resolves the compilation problems.
Ghostscript starts up and passes a smoke test.
Comment 4 Masaki Ushizaka 2010-05-19 08:27:17 UTC
I also removed jbig2dec/config.h from under subversion control in r11280.
(Otherwise you may bothered by modified svn status after you run 'configure'.)