Compiling 6.2.8 on HP-UX 11.11

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
elisegev
Posts: 50
Joined: 2005-09-28T07:47:13-07:00
Contact:

Compiling 6.2.8 on HP-UX 11.11

Post by elisegev » 2006-08-04T09:07:24-07:00

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?

User avatar
magick
Site Admin
Posts: 11095
Joined: 2003-05-31T11:32:55-07:00

Post by magick » 2006-08-04T09:18:48-07:00

Try gmake instead of make.

elisegev
Posts: 50
Joined: 2005-09-28T07:47:13-07:00
Contact:

Post by elisegev » 2006-08-04T10:55:31-07:00

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?

User avatar
magick
Site Admin
Posts: 11095
Joined: 2003-05-31T11:32:55-07:00

Post by magick » 2006-08-04T12:30:31-07:00

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.

elisegev
Posts: 50
Joined: 2005-09-28T07:47:13-07:00
Contact:

Post by elisegev » 2006-08-04T13:15:28-07:00

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?

User avatar
magick
Site Admin
Posts: 11095
Joined: 2003-05-31T11:32:55-07:00

Post by magick » 2006-08-04T13:24:51-07:00

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

elisegev
Posts: 50
Joined: 2005-09-28T07:47:13-07:00
Contact:

Post by elisegev » 2006-08-04T13:52:03-07:00

/configure --enable-ltdl-convenience worked.

ImageMagick seems to be working. Thank you very much.

Post Reply