<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: compile wiht zlib and DA2.0W option in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/compile-wiht-zlib-and-da2-0w-option/m-p/3540199#M223091</link>
    <description>I think all software from HP-UX porting depot is still 32-bit (64-bit in the package description refers to system architecture), so you will need to recompile zlib yourself.</description>
    <pubDate>Tue, 10 May 2005 00:56:14 GMT</pubDate>
    <dc:creator>Ermin Borovac</dc:creator>
    <dc:date>2005-05-10T00:56:14Z</dc:date>
    <item>
      <title>compile wiht zlib and DA2.0W option</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/compile-wiht-zlib-and-da2-0w-option/m-p/3540194#M223086</link>
      <description>Is it possible to compile zlib with DA2.0W option?&lt;BR /&gt;&lt;BR /&gt;I encountered following error&lt;BR /&gt;&lt;BR /&gt;        cc -c -o wsf_res.o wsf_res.c -Ae -DSERVER -DHP - I/usr/local/mysql2/include +DA2.0W&lt;BR /&gt;&lt;BR /&gt;        cc -c -o util.o util.c -Ae -DSERVER -DHP - I/usr/local/mysql2/include +DA2.0W&lt;BR /&gt;&lt;BR /&gt;        cc -c -o sub_function.o sub_function.c -Ae -DSERVER -DHP - I/usr/local/mysql2/include +DA2.0W&lt;BR /&gt;&lt;BR /&gt;        cc -c -o socket_open.o socket_open.c -Ae -DSERVER -DHP - I/usr/local/mysql2/include +DA2.0W&lt;BR /&gt;&lt;BR /&gt;        cc -c -o process_error.o process_error.c -Ae -DSERVER -DHP - I/usr/local/mysql2/include +DA2.0W&lt;BR /&gt;&lt;BR /&gt;        cc -c -o server_function.o server_function.c -Ae -DSERVER -DHP - I/usr/local/mysql2/include +DA2.0W&lt;BR /&gt;&lt;BR /&gt;        cc -c -o queue_function.o queue_function.c -Ae -DSERVER -DHP - I/usr/local/mysql2/include +DA2.0W&lt;BR /&gt;&lt;BR /&gt;        cc -c -o systeminfo.o systeminfo.c -Ae -DSERVER -DHP - I/usr/local/mysql2/include +DA2.0W&lt;BR /&gt;&lt;BR /&gt;        cc -c -o sql_function.o sql_function.c -Ae -DSERVER -DHP - I/usr/local/mysql2/include +DA2.0W&lt;BR /&gt;&lt;BR /&gt;        cc wsf_res.o util.o sub_function.o socket_open.o process_error.o server_function.o queue_function.o systeminfo.o sql_function.o  - L/usr/local/lib -L/usr/local/mysql2/lib -lnsl -lm -lmysqlclient -lz +DA2.0W -o wsf_res.hp&lt;BR /&gt;&lt;BR /&gt;ld: Can't find library for -lz&lt;BR /&gt;</description>
      <pubDate>Mon, 09 May 2005 04:18:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/compile-wiht-zlib-and-da2-0w-option/m-p/3540194#M223086</guid>
      <dc:creator>seokgu</dc:creator>
      <dc:date>2005-05-09T04:18:20Z</dc:date>
    </item>
    <item>
      <title>Re: compile wiht zlib and DA2.0W option</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/compile-wiht-zlib-and-da2-0w-option/m-p/3540195#M223087</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I believe the search path for libraries is incorrect. Usually 64-bit libraries reside in &lt;PREFIX&gt;/lib/pa20_64/ directory. Search for libz.sl in your system.&lt;BR /&gt;&lt;BR /&gt;$ whereis libz.sl&lt;BR /&gt;or&lt;BR /&gt;$ find /usr -name 'libz.sl'&lt;BR /&gt;$ find . -name 'libz.sl'&lt;BR /&gt;&lt;BR /&gt;Add a -L&lt;PATH&gt; option to the last cc line in your makefile. &lt;BR /&gt;&lt;BR /&gt;having said that, going by the name the library seems to be local for zlib pack. It is possible that for reason the rule t build libz.sl may not be gettign executed. &lt;BR /&gt;&lt;BR /&gt;Lots of possibilities exist. &lt;BR /&gt;&lt;BR /&gt;-Amit&lt;/PATH&gt;&lt;/PREFIX&gt;</description>
      <pubDate>Mon, 09 May 2005 04:30:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/compile-wiht-zlib-and-da2-0w-option/m-p/3540195#M223087</guid>
      <dc:creator>Amit Agarwal_1</dc:creator>
      <dc:date>2005-05-09T04:30:06Z</dc:date>
    </item>
    <item>
      <title>Re: compile wiht zlib and DA2.0W option</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/compile-wiht-zlib-and-da2-0w-option/m-p/3540196#M223088</link>
      <description>My makefile script as bellow&lt;BR /&gt;% cat Makefile.hp&lt;BR /&gt;PROGRAM = wsf_res.hp&lt;BR /&gt;&lt;BR /&gt;src=wsf_res.c util.c sub_function.c socket_open.c process_error.c server_funct&lt;BR /&gt;ion.c queue_function.c systeminfo.c sql_function.c&lt;BR /&gt;OBJS = $(SRC:.c=.o)&lt;BR /&gt;&lt;BR /&gt;PROGRAM = wsf_res.hp&lt;BR /&gt;&lt;BR /&gt;PROGRAM = wsf_res.hp&lt;BR /&gt;&lt;BR /&gt;src=wsf_res.c util.c sub_function.c socket_open.c process_error.c server_funct&lt;BR /&gt;ion.c queue_function.c systeminfo.c sql_function.c&lt;BR /&gt;OBJS = $(SRC:.c=.o)&lt;BR /&gt;&lt;BR /&gt;HEADER = wsf.h&lt;BR /&gt;&lt;BR /&gt;CC = cc&lt;BR /&gt;&lt;BR /&gt;INCLUDE = -I/usr/local/mysql2/include&lt;BR /&gt;LDLIBS  = -L/usr/local/lib -L/usr/local/mysql2/lib&lt;BR /&gt;LIBS    = -lnsl -lm -lmysqlclient -lz +DA2.0W&lt;BR /&gt;CFLAGS = -Ae -DSERVER -DHP&lt;BR /&gt;#CFLAGS = -Ae -DSERVER -DHP -D_LARGEFILE64_SOURCE&lt;BR /&gt;#CFLAGS = -DSERVER -DHP -D_LARGEFILE64_SOURCE&lt;BR /&gt;#CFLAGS = -Ae -DSERVER -DHP -D_LARGEFILE64_SOURCE -DD64&lt;BR /&gt;#CFLAGS = -Ae -DSERVER -DHP -D_LARGEFILE64_SOURCE -DPSTAT64&lt;BR /&gt;#CFLAGS = -Ae -DSERVER -DHP -DDF&lt;BR /&gt;#CFLAGS = -Ae -DSERVER -DHP -DDF -D_LARGEFILE64_SOURCE&lt;BR /&gt;&lt;BR /&gt;$(PROGRAM) : $(OBJS)&lt;BR /&gt;        $(CC) $(OBJS) $(TARGET_OBJS1) $(LDLIBS) $(LIBS) -o $@&lt;BR /&gt;        \rm -f *.o&lt;BR /&gt;$(OBJS) : $(SRC) $(HEADER)&lt;BR /&gt;:q!&lt;BR /&gt;% cat Makefile.hp&lt;BR /&gt;PROGRAM = wsf_res.hp&lt;BR /&gt;&lt;BR /&gt;src=wsf_res.c util.c sub_function.c socket_open.c process_error.c server_funct&lt;BR /&gt;ion.c queue_function.c systeminfo.c sql_function.c&lt;BR /&gt;OBJS = $(SRC:.c=.o)&lt;BR /&gt;&lt;BR /&gt;HEADER = wsf.h&lt;BR /&gt;&lt;BR /&gt;CC = cc&lt;BR /&gt;&lt;BR /&gt;INCLUDE = -I/usr/local/mysql2/include&lt;BR /&gt;LDLIBS  = -L/usr/local/lib -L/usr/local/mysql2/lib&lt;BR /&gt;LIBS    = -lnsl -lm -lmysqlclient -lz +DA2.0W&lt;BR /&gt;CFLAGS = -Ae -DSERVER -DHP&lt;BR /&gt;#CFLAGS = -Ae -DSERVER -DHP -D_LARGEFILE64_SOURCE&lt;BR /&gt;#CFLAGS = -DSERVER -DHP -D_LARGEFILE64_SOURCE&lt;BR /&gt;#CFLAGS = -Ae -DSERVER -DHP -D_LARGEFILE64_SOURCE -DD64&lt;BR /&gt;#CFLAGS = -Ae -DSERVER -DHP -D_LARGEFILE64_SOURCE -DPSTAT64&lt;BR /&gt;#CFLAGS = -Ae -DSERVER -DHP -DDF&lt;BR /&gt;#CFLAGS = -Ae -DSERVER -DHP -DDF -D_LARGEFILE64_SOURCE&lt;BR /&gt;&lt;BR /&gt;$(PROGRAM) : $(OBJS)&lt;BR /&gt;        $(CC) $(OBJS) $(TARGET_OBJS1) $(LDLIBS) $(LIBS) -o $@&lt;BR /&gt;        \rm -f *.o&lt;BR /&gt;$(OBJS) : $(SRC) $(HEADER)&lt;BR /&gt;        $(CC) -c -o $@ $&amp;lt; $(CFLAGS) $(INCLUDE) +DA2.0W&lt;BR /&gt;clean :&lt;BR /&gt;        \rm -f *.o $(PROGRAM)&lt;BR /&gt;&lt;BR /&gt;libz.sl/libz.a file located following location&lt;BR /&gt;&lt;BR /&gt;% pwd&lt;BR /&gt;/usr/local/lib&lt;BR /&gt;% file *&lt;BR /&gt;libz.a:         archive file -PA-RISC1.1 relocatable library&lt;BR /&gt;libz.sl:        PA-RISC1.1 shared library&lt;BR /&gt;% &lt;BR /&gt;&lt;BR /&gt;finally is compiled succcessfully without DA2.0W option&lt;BR /&gt;&lt;BR /&gt;thanks in advance.&lt;BR /&gt;</description>
      <pubDate>Mon, 09 May 2005 19:46:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/compile-wiht-zlib-and-da2-0w-option/m-p/3540196#M223088</guid>
      <dc:creator>seokgu</dc:creator>
      <dc:date>2005-05-09T19:46:56Z</dc:date>
    </item>
    <item>
      <title>Re: compile wiht zlib and DA2.0W option</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/compile-wiht-zlib-and-da2-0w-option/m-p/3540197#M223089</link>
      <description>If you want to link your 64-bit program with zlib library then you need 64-bit version of zlib library (you have 32-bit).&lt;BR /&gt;&lt;BR /&gt;zlib source is here&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.gzip.org/zlib/" target="_blank"&gt;http://www.gzip.org/zlib/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Compile it with +DA2.0W +Z (set CCOPTS) and you will get 64-bit zlib shared library.</description>
      <pubDate>Mon, 09 May 2005 20:57:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/compile-wiht-zlib-and-da2-0w-option/m-p/3540197#M223089</guid>
      <dc:creator>Ermin Borovac</dc:creator>
      <dc:date>2005-05-09T20:57:20Z</dc:date>
    </item>
    <item>
      <title>Re: compile wiht zlib and DA2.0W option</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/compile-wiht-zlib-and-da2-0w-option/m-p/3540198#M223090</link>
      <description>I have been downloaded zlib kit from&lt;BR /&gt;following location&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://hpux.connect.org.uk/hppd/hpux/Misc/zlib-1.2.2/" target="_blank"&gt;http://hpux.connect.org.uk/hppd/hpux/Misc/zlib-1.2.2/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;and I found this link here at itrc, and this kit's commnet is PA-RISC(64bit)&lt;BR /&gt;&lt;BR /&gt;Where can I find 64bit zlib for hp-ux 11.11&lt;BR /&gt;&lt;BR /&gt;Should I recompile zlib source code with 64bit option?</description>
      <pubDate>Tue, 10 May 2005 00:47:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/compile-wiht-zlib-and-da2-0w-option/m-p/3540198#M223090</guid>
      <dc:creator>seokgu</dc:creator>
      <dc:date>2005-05-10T00:47:00Z</dc:date>
    </item>
    <item>
      <title>Re: compile wiht zlib and DA2.0W option</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/compile-wiht-zlib-and-da2-0w-option/m-p/3540199#M223091</link>
      <description>I think all software from HP-UX porting depot is still 32-bit (64-bit in the package description refers to system architecture), so you will need to recompile zlib yourself.</description>
      <pubDate>Tue, 10 May 2005 00:56:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/compile-wiht-zlib-and-da2-0w-option/m-p/3540199#M223091</guid>
      <dc:creator>Ermin Borovac</dc:creator>
      <dc:date>2005-05-10T00:56:14Z</dc:date>
    </item>
    <item>
      <title>Re: compile wiht zlib and DA2.0W option</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/compile-wiht-zlib-and-da2-0w-option/m-p/3540200#M223092</link>
      <description>Just a little note - unless folks are stuck on ancient revs of compilers, 64-bit compilation should be requested via the +DD64 directive rather than +DA2.0W.  +DD64 requests a 64-bit compilation regardless of PA-RISC/IPF system</description>
      <pubDate>Tue, 10 May 2005 10:36:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/compile-wiht-zlib-and-da2-0w-option/m-p/3540200#M223092</guid>
      <dc:creator>rick jones</dc:creator>
      <dc:date>2005-05-10T10:36:54Z</dc:date>
    </item>
    <item>
      <title>Re: compile wiht zlib and DA2.0W option</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/compile-wiht-zlib-and-da2-0w-option/m-p/3540201#M223093</link>
      <description>I would suggest to keep 64-bit libraries at different path i.e. /usr/local/lib/pa20_64. And modify the library path to include -L/usr/local/lib/pa20_64. &lt;BR /&gt;Secondly use +DA2.0W in CFLAGS, and not LIBS. I would second Rick's suggestion, use +DD64 instead of +DA2.0W.&lt;BR /&gt;&lt;BR /&gt;You can use branches in makefile to have a handle to either compile 32-bit or 64-bit. A sample makefile would be:&lt;BR /&gt;&lt;BR /&gt;$ cat makefile&lt;BR /&gt;LIBS = libz.sl&lt;BR /&gt;LDLIB32 = -L/usr/local/lib&lt;BR /&gt;LDLIB64 = -L/usr/local/lib/pa20_64&lt;BR /&gt;&lt;BR /&gt;target:&lt;BR /&gt;        if [ $(ARCH) = 32 ]; \&lt;BR /&gt;        then \&lt;BR /&gt;           $(CC) ...... $(LDLIB32) $(LIB); \&lt;BR /&gt;        else \&lt;BR /&gt;           $(CC) ...... $(LDLIB64) $(LIB); \&lt;BR /&gt;        fi&lt;BR /&gt;&lt;BR /&gt;$ make ARCH=32&lt;BR /&gt;OR&lt;BR /&gt;$ make ARCH=64&lt;BR /&gt;&lt;BR /&gt;I hope it helps.</description>
      <pubDate>Wed, 11 May 2005 01:01:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/compile-wiht-zlib-and-da2-0w-option/m-p/3540201#M223093</guid>
      <dc:creator>Amit Agarwal_1</dc:creator>
      <dc:date>2005-05-11T01:01:20Z</dc:date>
    </item>
    <item>
      <title>Re: compile wiht zlib and DA2.0W option</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/compile-wiht-zlib-and-da2-0w-option/m-p/3540202#M223094</link>
      <description>Thanks for kind reply.&lt;BR /&gt;It's very helpfull to me...&lt;BR /&gt;&lt;BR /&gt;thanks and regards</description>
      <pubDate>Wed, 11 May 2005 01:16:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/compile-wiht-zlib-and-da2-0w-option/m-p/3540202#M223094</guid>
      <dc:creator>seokgu</dc:creator>
      <dc:date>2005-05-11T01:16:54Z</dc:date>
    </item>
  </channel>
</rss>

