Operating System - HP-UX
1751968 Members
4715 Online
108783 Solutions
New Discussion юеВ

Re: problems generating exe file

 
SOLVED
Go to solution
Eder Urruela
Frequent Advisor

Re: problems generating exe file

Yes the new version is very diferent, for example two new error are refered to system fuctions whose declaration is the following typedef void (*XtWidgetProc)(Widget) and typedef void (*XtProc)(void).

I can see that actually have only one parameter, but in the source file I am compiling are called with two parameters and the error is that the function has too many parameter. So I think I should remove the parameter which do not fix with the declaration.

I supose it is going to afect to the program working, but not how.

Any recomendations?

Thanks!
Dennis Handly
Acclaimed Contributor

Re: problems generating exe file

>I think I should remove the parameter which do not fix with the declaration.

Yes.

>I suppose it is going to affect to the program working, ... Any recommendations?

If you had old and new man pages, you could compare. Otherwise you'll have to look at the new man page and basically start over with the call.
Eder Urruela
Frequent Advisor

Re: problems generating exe file

I haven't the old man pages, but I'm going to make a backup and try.

Thank you very much Dennis.
Eder Urruela
Frequent Advisor

Re: problems generating exe file

I have make the guess, but I have not sucess, I changed the header files which call to the Xt functions, but I continue with the same problem.

ld: Unsatisfied symbol "XtStrings" in file ../../lib/libZtddServ.a
ld: Unsatisfied symbol "__1kanji" in file ../../lib/libIVIbuild.a[liberror.o]
ld: Unsatisfied symbol "XtWindowOfObject" in file ../../lib/libZtddServ.a
ld: Unsatisfied symbol "XtShellStrings" in file ../../lib/libZtddServ.a

I have done a call to nm -pxAN lib* | grep -e XtStrings and I have found the following results.

0x00000000 U ../../lib/libXtR2.a[Core.o]:XtStrings
0x00000000 U ../../lib/libXtR2.a[Event.o]:XtStrings
0x00000000 U ../../lib/libXtR2.a[Intrinsic.o]:XtStrings
0x00000000 U ../../lib/libXtR2.a[Popup.o]:XtStrings
0x00000000 U ../../lib/libXtR2.a[Resources.o]:XtStrings
0x00000000 U ../../lib/libXtR2.a[Shell.o]:XtStrings
0x00000000 U ../../lib/libXtR2.a[TMparse.o]:XtStrings
0x00000000 U ../../lib/libXtR2.a[TMstate.o]:XtStrings
0x00000000 U ../../lib/libXw.a[Arrow.o]:XtStrings
0x00000000 U ../../lib/libXw.a[Button.o]:XtStrings
0x00000000 U ../../lib/libXw.a[Cascade.o]:XtStrings
0x00000000 U ../../lib/libXw.a[Display.o]:XtStrings
0x00000000 U ../../lib/libXw.a[Form.o]:XtStrings
0x00000000 U ../../lib/libXw.a[ImageEdit.o]:XtStrings
0x00000000 U ../../lib/libXw.a[List.o]:XtStrings
0x00000000 U ../../lib/libXw.a[ListRC.o]:XtStrings
0x00000000 U ../../lib/libXw.a[Manager.o]:XtStrings
0x00000000 U ../../lib/libXw.a[MenuBtn.o]:XtStrings
0x00000000 U ../../lib/libXw.a[MenuMgr.o]:XtStrings
0x00000000 U ../../lib/libXw.a[MenuPane.o]:XtStrings
0x00000000 U ../../lib/libXw.a[MenuSep.o]:XtStrings
0x00000000 U ../../lib/libXw.a[PButton.o]:XtStrings
0x00000000 U ../../lib/libXw.a[Panel.o]:XtStrings
0x00000000 U ../../lib/libXw.a[PopupMgr.o]:XtStrings
0x00000000 U ../../lib/libXw.a[Primitive.o]:XtStrings
0x00000000 U ../../lib/libXw.a[Pulldown.o]:XtStrings
0x00000000 U ../../lib/libXw.a[RCManager.o]:XtStrings
0x00000000 U ../../lib/libXw.a[ResConvert.o]:XtStrings
0x00000000 U ../../lib/libXw.a[SRaster.o]:XtStrings
0x00000000 U ../../lib/libXw.a[SText.o]:XtStrings
0x00000000 U ../../lib/libXw.a[SWindow.o]:XtStrings
0x00000000 U ../../lib/libXw.a[Sash.o]:XtStrings
0x00000000 U ../../lib/libXw.a[ScrollBar.o]:XtStrings
0x00000000 U ../../lib/libXw.a[SourceDsk.o]:XtStrings
0x00000000 U ../../lib/libXw.a[SourceStr.o]:XtStrings
0x00000000 U ../../lib/libXw.a[TextEdit.o]:XtStrings
0x00000000 U ../../lib/libXw.a[TitleBar.o]:XtStrings
0x00000000 U ../../lib/libXw.a[Toggle.o]:XtStrings
0x00000000 U ../../lib/libXw.a[VPW.o]:XtStrings
0x00000000 U ../../lib/libXw.a[Valuator.o]:XtStrings
0x00000000 U ../../lib/libXw.a[WorkSpace.o]:XtStrings
0x00000000 U ../../lib/libXwnlio.a[SourceDsk.o]:XtStrings
0x00000000 U ../../lib/libXwnlio.a[Display.o]:XtStrings
0x00000000 U ../../lib/libXwnlio.a[SourceStr.o]:XtStrings
0x00000000 U ../../lib/libXwnlio.a[TextEdit.o]:XtStrings
0x00000000 U ../../lib/libZtddServ.a:XtStrings

XtStrings apperas in all the libaries which I have linked, so, the problem could be in the Makefile?

Thanks!
Dennis Handly
Acclaimed Contributor

Re: problems generating exe file

>but I continue with the same problem.
ld: Unsatisfied symbol "__1kanji" in liberror.o

Compile this file with "-E -.i" and look at liberror.i. Search for __1kanji. This symbol is obsolete and isn't valid for any 11.x system. You must have some 10x headers with this bad macro?

>I have done a call to nm -pxAN lib* | grep -e XtStrings and I have found the following results.

Did you look in /usr/lib/hpux32/lib*?

>XtStrings appears in all the libraries which I have linked
U ../../lib/libXtR2.a[Core.o]:XtStrings

The "U" stands for unsats, there are no definitions here.

>the problem could be in the Makefile?

Only if the Makefile forgot to add some -lXX.
Is there a man entry for XtStrings?
Eder Urruela
Frequent Advisor

Re: problems generating exe file

>Compile this file with "-E -.i" and look at liberror.i. Search for __1kanji. This symbol is obsolete and isn't valid for any 11.x system. You must have some 10x headers with this bad macro?

I have problems to generate a preprocessed file, but I can confirm that this program was made under the 9x versi├Г┬│n of HP-UX.

Did you look in /usr/lib/hpux32/lib*?

I don't use any liebary from this folder.


>The "U" stands for unsats, there are no definitions here.

Ok I see now, I suposse the linker only shows me te first undefinition it finds.

>Only if the Makefile forgot to add some -lXX.

I think all the necesary -I paths are included in the makefile.

Is there a man entry for XtStrings?

There is not any man entry for XtStrings, but the are one for XtWindowOfObject.

Thanks!
Eder Urruela
Frequent Advisor

Re: problems generating exe file

The only file where I have references to XtStrings, is in the header file StringDefs.h

extern _XtStringDefs_h_Const char XtStrings[];

in that line, in the following lines XtStrings are used like this:

#ifndef XtNaccelerators
#define XtNaccelerators ((char*)&XtStrings[0])
#endif
#ifndef XtNallowHoriz
#define XtNallowHoriz ((char*)&XtStrings[13])
...

I have the extern, but I think I need something some.

Thanks!
Dennis Handly
Acclaimed Contributor

Re: problems generating exe file

>I have problems to generate a preprocessed file

Why? What errors?

>I can confirm that this program was made under the 9.x version of HP-UX.

That would explain __1kanji.

>>Did you look in /usr/lib/hpux32/lib*?

>I don't use any library from this folder.

If you are on Integrity, you must use some libs from here or hpux64/.

>I suppose the linker only shows me the first unsat it finds.

It should show all.

>>Only if the Makefile forgot to add some -lXX.

>I think all the necessary -I paths are included in the makefile.

That's -l. And probably -lXt from below.

>The only file where I have references to XtStrings, is in the header file StringDefs.h
extern _XtStringDefs_h_Const char XtStrings[];

This is defined in:
/usr/lib/libXt.1: D XtStrings
/usr/lib/libXt.2: D XtStrings
/usr/lib/libXt.3: D XtStrings

Or:
D /usr/lib/hpux32/libXt.so.1:XtStrings
Eder Urruela
Frequent Advisor

Re: problems generating exe file

>>I have problems to generate a preprocessed file

>Why? What errors?

The cc command returns me the preproccesed file into the screen, not into a *.i file. Despite I give a liberror.i into the command line.


>>>Did you look in /usr/lib/hpux32/lib*?

>>I don't use any library from this folder.


I am no using this folder and after your explanation I am thiking that it could be the problem, I don't have compilation error, and I make my libraries from the source files I have, without any reference to the a lib folder.

>>>Only if the Makefile forgot to add some -lXX.

>>I think all the necessary -I paths are included in the makefile.

>That's -l. And probably -lXt from below.

These are my flags in the makefile I compile the source files which I use to generate the libIVIbuild.a

CCFLAGS = -Wp,-H564000 -DRELEASE -D_IVIOVISUAL -D_INCLUDE_HPUX_SOURCE -D_INCLIDE
_POSIX_SOURCE -D_HPUX_SOURCE -D_CLASSIC_TYPES -DX11R6 -I/hpivi/tape/usr/include/
X11R2 -I/usr/include/X11R6 -I/usr/rtap/include -I/obras/master/EC/include -I/usr
/old/usr/include.

And This my call to the linker in order to generate the final exe file. Ivibuild

$(BIN)/ivibuild: ivibuild.o cgPonerBPR.o $(OBJLIB)
$(LINK) -o $(BIN)/ivibuild ivibuild.o cgPonerBPR.o $(OBJLIB) \
$(LIB)/libZtddServ.a $(LIB)/libZt.a \
$(CG_DIR_IHM_VI)/lib/libcgInterface.a \
$(LIB)/libXwnlio.a $(LIB)/libXw.a $(LIB)/libXtR2.a -lX11 -lm

I am thinking abuot add the libXt.1, libXt.2, libXt.3 to the las command line in order to include the symbols which now are undefined.


>This is defined in:
>/usr/lib/libXt.1: D XtStrings
>/usr/lib/libXt.2: D XtStrings
>/usr/lib/libXt.3: D XtStrings

>Or:
>D /usr/lib/hpux32/libXt.so.1:XtStrings

That is a very good clue, thaks you very much.
Eder Urruela
Frequent Advisor

Re: problems generating exe file

When I had the -l /usr/lib/libXt.1 the linker returns a:
ld: Mismatched ABI (not an ELF file) for /usr/lib/libXt.1
Fatal error.

what can I do?

Thanks!