Issue #7279 has been reported by alexharv074 (Alex Harvey).

----------------------------------------
Bug #7279: Zlib load error on HP-UX
https://bugs.ruby-lang.org/issues/7279

Author: alexharv074 (Alex Harvey)
Status: Open
Priority: Normal
Assignee: 
Category: 
Target version: 
ruby -v: ruby 1.8.7 (2012-06-29 patchlevel 370) [hppa2.0w-hpux11.11]


This was apparently a known issue on HP-UX and it is preventing me from compiling zlib
http://www.ruby-forum.com/topic/191987

To reproduce -

PA-RISC/HP-UX 11.11

<pre>
# swlist
...
  gcc                                   4.2.3          gcc
  libgcc                                4.2.3          libgcc
  m4                                    1.4.16         m4
  make                                  3.82           make
</pre>

<pre>
# /usr/local/bin/ruby extconf.rb --with-zlib-include=/usr/local/include --with-zlib-lib=/usr/local/lib
checking for deflateReset() in -lz... no
checking for deflateReset() in -llibz... no
checking for deflateReset() in -lzlib1... no
checking for deflateReset() in -lzlib... no
checking for deflateReset() in -lzdll... no
</pre>

<pre>
# file /usr/local/lib/libz.sl
/usr/local/lib/libz.sl: PA-RISC1.1 shared library
</pre>

<pre>
# file /usr/local/include/zlib.h
/usr/local/include/zlib.h:      c program text
</pre>

I have attached the mkmf.log.


-- 
http://bugs.ruby-lang.org/