- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Re: Error compiling pro*c thru make in HP-UX
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
Discussions
Discussions
Forums
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
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
тАО04-03-2007 08:05 PM - edited тАО10-07-2011 01:56 AM
тАО04-03-2007 08:05 PM - edited тАО10-07-2011 01:56 AM
Re: Error compiling pro*c thru make in HP-UX
>is there any way I link required file (libasn1ber.a) with program for resolving error
As I said, you need to add this lib to an existing *LIB* make macro, or add this lib to the build rule that links tapin.exe.
I suppose I can look at your makefile if is isn't too complex.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-03-2007 11:06 PM
тАО04-03-2007 11:06 PM
Re: Error compiling pro*c thru make in HP-UX
My makefile is very simple as below please see:
.SUFFIXES: .pc .c .o
DEBUG_FLAG =
HDRS=tap.h asn1type.h
HDRS1=libasn1ber.a
EXE=tapin.exe
#include $(ORACLE_HOME)/precomp/lib/env_precomp.mk
all:tapin.pc
xpc tapin.pc -o ./$(EXE)
tapin.o:tapin.c $(HDRS) $(HDRS1) makefile
xcc tapin.c -c $(DEBUG_FLAG) $(HDRS1)
tapin.c:tapin.pc $(HDRS) $(HDRS1) makefile
xpc tapin.pc -c $(DEBUG_FLAG) $(HDRS1)
clean:
rm -f tapin.o tapin.c tapin.lis
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-03-2007 11:10 PM
тАО04-03-2007 11:10 PM
Re: Error compiling pro*c thru make in HP-UX
Ok, trying to guess what it does:
all: tapin.pc
xpc tapin.pc -o ./$(EXE) -lasn1ber
You may want to look at env_precomp.mk to see if there is a variable you can set to add your lib.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-08-2007 06:30 PM
тАО04-08-2007 06:30 PM
Re: Error compiling pro*c thru make in HP-UX
#include $(ORACLE_HOME)/precomp/lib/env_precomp.mk
is commented , and even if try to modify its read only
is there any other way i can link required library file libasn1ber.a
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-08-2007 06:43 PM
тАО04-08-2007 06:43 PM
Re: Error compiling pro*c thru make in HP-UX
Oops, right.
>and even if try to modify its read only
That doesn't prevent you from define macros that are used in that makefile.
>is there any other way i can link required library file libasn1ber.a
As I said:
xpc tapin.pc -o ./$(EXE) -lasn1ber
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-08-2007 09:37 PM
тАО04-08-2007 09:37 PM
Re: Error compiling pro*c thru make in HP-UX
after i modified: xpc tapin.pc -o ./$(EXE) -lasn1ber
I am getting this error
: C compiler
/usr/ccs/bin/ld: Can't find library: "asn1ber"
xcc@ : Compilation Error! ./tapin.c -o ./tapin.exe -lasn1ber -I/opt/oracle/produ
ct/ora92/precomp/public -I/opt/oracle/product/ora92/rdbms/public -I/opt/oracle/
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-08-2007 10:33 PM
тАО04-08-2007 10:33 PM
Re: Error compiling pro*c thru make in HP-UX
You'll need to add -L path-to-your-lib, before that -lasn1ber.
(That you found with that nm command.)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-09-2007 12:38 AM
тАО04-09-2007 12:38 AM
Re: Error compiling pro*c thru make in HP-UX
if had tried but not working
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-09-2007 12:21 PM
тАО04-09-2007 12:21 PM
Re: Error compiling pro*c thru make in HP-UX
xpc tapin.pc -o ./$(EXE) -L absolute-path-to-libasn1ber -lasn1ber
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-09-2007 02:32 PM
тАО04-09-2007 02:32 PM
Re: Error compiling pro*c thru make in HP-UX
Actually i tried by defining macros in the make file,it seems to work,but i think out of 3 unsatis ,it found 2,but still not finding 3rd(asn1D_DataInterChange)
i tried to find it by command
nm -pxNA /path/lib* | fgrep -e asn1D_DataInterChange
it dont gives any output.
how to search for this in all the directories or what is alternative in this situation please advice