- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- compile wiht zlib and DA2.0W option
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-08-2005 09:18 PM
05-08-2005 09:18 PM
compile wiht zlib and DA2.0W option
I encountered following error
cc -c -o wsf_res.o wsf_res.c -Ae -DSERVER -DHP - I/usr/local/mysql2/include +DA2.0W
cc -c -o util.o util.c -Ae -DSERVER -DHP - I/usr/local/mysql2/include +DA2.0W
cc -c -o sub_function.o sub_function.c -Ae -DSERVER -DHP - I/usr/local/mysql2/include +DA2.0W
cc -c -o socket_open.o socket_open.c -Ae -DSERVER -DHP - I/usr/local/mysql2/include +DA2.0W
cc -c -o process_error.o process_error.c -Ae -DSERVER -DHP - I/usr/local/mysql2/include +DA2.0W
cc -c -o server_function.o server_function.c -Ae -DSERVER -DHP - I/usr/local/mysql2/include +DA2.0W
cc -c -o queue_function.o queue_function.c -Ae -DSERVER -DHP - I/usr/local/mysql2/include +DA2.0W
cc -c -o systeminfo.o systeminfo.c -Ae -DSERVER -DHP - I/usr/local/mysql2/include +DA2.0W
cc -c -o sql_function.o sql_function.c -Ae -DSERVER -DHP - I/usr/local/mysql2/include +DA2.0W
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
ld: Can't find library for -lz
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-08-2005 09:30 PM
05-08-2005 09:30 PM
Re: compile wiht zlib and DA2.0W option
I believe the search path for libraries is incorrect. Usually 64-bit libraries reside in
$ whereis libz.sl
or
$ find /usr -name 'libz.sl'
$ find . -name 'libz.sl'
Add a -L
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.
Lots of possibilities exist.
-Amit
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-09-2005 12:46 PM
05-09-2005 12:46 PM
Re: compile wiht zlib and DA2.0W option
% cat Makefile.hp
PROGRAM = wsf_res.hp
src=wsf_res.c util.c sub_function.c socket_open.c process_error.c server_funct
ion.c queue_function.c systeminfo.c sql_function.c
OBJS = $(SRC:.c=.o)
PROGRAM = wsf_res.hp
PROGRAM = wsf_res.hp
src=wsf_res.c util.c sub_function.c socket_open.c process_error.c server_funct
ion.c queue_function.c systeminfo.c sql_function.c
OBJS = $(SRC:.c=.o)
HEADER = wsf.h
CC = cc
INCLUDE = -I/usr/local/mysql2/include
LDLIBS = -L/usr/local/lib -L/usr/local/mysql2/lib
LIBS = -lnsl -lm -lmysqlclient -lz +DA2.0W
CFLAGS = -Ae -DSERVER -DHP
#CFLAGS = -Ae -DSERVER -DHP -D_LARGEFILE64_SOURCE
#CFLAGS = -DSERVER -DHP -D_LARGEFILE64_SOURCE
#CFLAGS = -Ae -DSERVER -DHP -D_LARGEFILE64_SOURCE -DD64
#CFLAGS = -Ae -DSERVER -DHP -D_LARGEFILE64_SOURCE -DPSTAT64
#CFLAGS = -Ae -DSERVER -DHP -DDF
#CFLAGS = -Ae -DSERVER -DHP -DDF -D_LARGEFILE64_SOURCE
$(PROGRAM) : $(OBJS)
$(CC) $(OBJS) $(TARGET_OBJS1) $(LDLIBS) $(LIBS) -o $@
\rm -f *.o
$(OBJS) : $(SRC) $(HEADER)
:q!
% cat Makefile.hp
PROGRAM = wsf_res.hp
src=wsf_res.c util.c sub_function.c socket_open.c process_error.c server_funct
ion.c queue_function.c systeminfo.c sql_function.c
OBJS = $(SRC:.c=.o)
HEADER = wsf.h
CC = cc
INCLUDE = -I/usr/local/mysql2/include
LDLIBS = -L/usr/local/lib -L/usr/local/mysql2/lib
LIBS = -lnsl -lm -lmysqlclient -lz +DA2.0W
CFLAGS = -Ae -DSERVER -DHP
#CFLAGS = -Ae -DSERVER -DHP -D_LARGEFILE64_SOURCE
#CFLAGS = -DSERVER -DHP -D_LARGEFILE64_SOURCE
#CFLAGS = -Ae -DSERVER -DHP -D_LARGEFILE64_SOURCE -DD64
#CFLAGS = -Ae -DSERVER -DHP -D_LARGEFILE64_SOURCE -DPSTAT64
#CFLAGS = -Ae -DSERVER -DHP -DDF
#CFLAGS = -Ae -DSERVER -DHP -DDF -D_LARGEFILE64_SOURCE
$(PROGRAM) : $(OBJS)
$(CC) $(OBJS) $(TARGET_OBJS1) $(LDLIBS) $(LIBS) -o $@
\rm -f *.o
$(OBJS) : $(SRC) $(HEADER)
$(CC) -c -o $@ $< $(CFLAGS) $(INCLUDE) +DA2.0W
clean :
\rm -f *.o $(PROGRAM)
libz.sl/libz.a file located following location
% pwd
/usr/local/lib
% file *
libz.a: archive file -PA-RISC1.1 relocatable library
libz.sl: PA-RISC1.1 shared library
%
finally is compiled succcessfully without DA2.0W option
thanks in advance.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-09-2005 01:57 PM
05-09-2005 01:57 PM
Re: compile wiht zlib and DA2.0W option
zlib source is here
http://www.gzip.org/zlib/
Compile it with +DA2.0W +Z (set CCOPTS) and you will get 64-bit zlib shared library.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-09-2005 05:47 PM
05-09-2005 05:47 PM
Re: compile wiht zlib and DA2.0W option
following location
http://hpux.connect.org.uk/hppd/hpux/Misc/zlib-1.2.2/
and I found this link here at itrc, and this kit's commnet is PA-RISC(64bit)
Where can I find 64bit zlib for hp-ux 11.11
Should I recompile zlib source code with 64bit option?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-09-2005 05:56 PM
05-09-2005 05:56 PM
Re: compile wiht zlib and DA2.0W option
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-10-2005 03:36 AM
05-10-2005 03:36 AM
Re: compile wiht zlib and DA2.0W option
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-10-2005 06:01 PM
05-10-2005 06:01 PM
Re: compile wiht zlib and DA2.0W option
Secondly use +DA2.0W in CFLAGS, and not LIBS. I would second Rick's suggestion, use +DD64 instead of +DA2.0W.
You can use branches in makefile to have a handle to either compile 32-bit or 64-bit. A sample makefile would be:
$ cat makefile
LIBS = libz.sl
LDLIB32 = -L/usr/local/lib
LDLIB64 = -L/usr/local/lib/pa20_64
target:
if [ $(ARCH) = 32 ]; \
then \
$(CC) ...... $(LDLIB32) $(LIB); \
else \
$(CC) ...... $(LDLIB64) $(LIB); \
fi
$ make ARCH=32
OR
$ make ARCH=64
I hope it helps.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-10-2005 06:16 PM
05-10-2005 06:16 PM
Re: compile wiht zlib and DA2.0W option
It's very helpfull to me...
thanks and regards