Page 1 of 1

Compiling 6.2.8 on HP-UX 11.11

Posted: 2006-08-04T09:07:24-07:00
by elisegev
I am trying to compile ImageMgick 6.2.8 on HP-UX and have the following problems when running

./configure CPPFLAGS=-I/usr/local/include-I/usr/include

configure:38397: checking for ZLIB support
configure:38399: result:
configure:38413: checking zconf.h usability
configure:38425: cc -c -g -Wp,-H30000 -D_REENTRANT conftest.c >&5
cpp: "conftest.c", line 197: error 4036: Can't open include file 'zconf.h'.
configure:38431: $? = 1

zconf.h exists in /usr/local/include and is readable. Why the error?

On make, I get this error:

Make: line 9944: syntax error. Stop.

What am I doing wrong?

Posted: 2006-08-04T09:18:48-07:00
by magick
Try gmake instead of make.

Posted: 2006-08-04T10:55:31-07:00
by elisegev
Using gcc instead of HP-UX's cc resolved the zlib issue.

The error now with gmake is:

magick/attribute.c: In function 'FormatImageAttribute':
magick/attribute.c:287: warning: second parameter of 'va_start' not last named argument
magick/attribute.c:287: warning: 'operands' is used uninitialized in this function
magick/attribute.c:287: internal compiler error: in convert_move, at expr.c:362
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
gmake: *** [magick/magick_libMagick_la-attribute.lo] Error 1

Any suggestions?

Posted: 2006-08-04T12:30:31-07:00
by magick
Try
  • export CC=cc
    ./configure
and see if it will compile with the HP Ansi compiler. If not, try upgrading your version of gcc. If that fails, file a bug report about gcc to the GNU folks.

Posted: 2006-08-04T13:15:28-07:00
by elisegev
Using the HP-UX compiler solves the above problem. There is an issue with the local version of Perl, so this compilatioin is done without Perl. Now everything is compiled and linked. When I run 'convert', I get:

convert
/usr/lib/dld.sl: Unresolved symbol: rpl_realloc (plabel) from /usr/local/lib/libMagick.sl.10
/usr/lib/dld.sl: Unresolved module for symbol: lt_dlinit (code) from /usr/local/lib/libMagick.sl.10

I have seen the problem with rpl_realloc before, but not lt_dlinit. What do you suggest?

Posted: 2006-08-04T13:24:51-07:00
by magick
lt_dlinit() is a defined in ImageMagick-6.2.8/ltdl/ltdl.c. Try
  • ./configure --enable-ltdl-convenience
    make
If that fails, try
  • ./configure --disable-shared
    make

Posted: 2006-08-04T13:52:03-07:00
by elisegev
/configure --enable-ltdl-convenience worked.

ImageMagick seems to be working. Thank you very much.