Operating System - Linux
1748165 Members
3869 Online
108758 Solutions
New Discussion юеВ

Re: Error compiling pro*c thru make in HP-UX

 
SOLVED
Go to solution
Dennis Handly
Acclaimed Contributor

Re: Error compiling pro*c thru make in HP-UX

>but still not finding asn1D_DataInterChange

You need to go to Pro*C and see if they know what it is for.

Also do you have any variables with the name or substrings asn1D or DataInterChange in your tapin.pc?

>how to search for this in all the directories

You could use:
$ find paths-to-search -name "lib*" -exec nm -pxNA + 2> /dev/null | fgrep -e asn1D_DataInterChange

You could of course try making tapin.exe executable and execute it.
hpuserhk
Frequent Advisor

Re: Error compiling pro*c thru make in HP-UX

It is creating executable,but this one compilation error of unsat not found asn1D_DataInterChange,( and this function is used in the programm for decoding binary data),i am also able to run executable ,will it be ok ,if i use this exe ,i will check if this function is effecting functionality much if i comment where it is called
Dennis Handly
Acclaimed Contributor

Re: Error compiling pro*c thru make in HP-UX

>asn1D_DataInterChange, (and this function is used in the program for decoding binary data)

Are you calling it, or did Pro*C add it?

>will it be ok, if i use this exe

It will abort if asn1D_DataInterChange is called.
hpuserhk
Frequent Advisor

Re: Error compiling pro*c thru make in HP-UX

I am calling it,its proto defined in
the header file used by the program
hpuserhk
Frequent Advisor

Re: Error compiling pro*c thru make in HP-UX

$ find paths-to-search -name "lib*" -exec nm -pxNA + 2> /dev/null | fgrep -e asn1D_DataInterChange

giving no output
Dennis Handly
Acclaimed Contributor

Re: Error compiling pro*c thru make in HP-UX

>giving no output

I assume you replaced "paths-to-search" by something appropriate? "/" would work.

>I am calling it, its proto defined in the header file used by the program

Why are you calling something if you don't know where it is defined? Who owns the header? Where is the lib that defines those functions?
hpuserhk
Frequent Advisor

Re: Error compiling pro*c thru make in HP-UX

I already used "/" in place otf path,but it dont give any output.
I am actually modifying some one else programm, with no documentation available
and this lib/function is called init.
I find out htat this function is part of third party software used here for decoding binary files
and this softwae is installed in one of direcroy
Dennis Handly
Acclaimed Contributor

Re: Error compiling pro*c thru make in HP-UX

>I find out that this function is part of third party software used here for decoding binary files and this software is installed in one of directory

Any libs there? There is a chance it is in an object, so can you just do the above nm on any file with *.o?
hpuserhk
Frequent Advisor

Re: Error compiling pro*c thru make in HP-UX

Thanks for your help
I find out one of the .o file was
having defination of this unsat function
after including this .o(object file)
programm compiled without any errors
(no error as such of unsat which i was getting before) and executable is generated
after running this executable, after
few steps of processing(i debug by printf) programm aborting with follwing:
Memory fault(coredump)

is this link with same reason (compilation problem in creating exe)
or some other issue ,if you suggest
where exactly is problem great help
Dennis Handly
Acclaimed Contributor

Re: Error compiling pro*c thru make in HP-UX

>after running this executable, after few steps of processing(I debug by printf) program aborting with following:
Memory fault(coredump)

You'll need to compile with -g so you can debug it with gdb. You can download the latest from:
http://www.hp.com/go/wdb

Then you just use: gdb tapin.exe core
Or you can start from the beginning and run it in the debugger.