05-11-2009 02:12 AM
At the beggining the XPADE was as default mode, but i removed it, and now i don't how to make it the default compiling mode again.
Solved! Go to Solution.
05-11-2009 02:22 AM
Look at the documentation under:
05-11-2009 05:52 AM
Copy your HP 9000 application source files to the target Integrity system where HP XPADE
2. Change the$PATH variable to pick up compiler from HP XPADE directory.
3. Update makefile to pick up libraries and headers from HP XPADE directory.
4. Change makefile to use shared libraries instead of archive libraries if any archive library is
used in your product build scripts. This is because, the PA archive libraries are not part of
HP XPADE package as these are not officially supported.
But now I have find the following error:
cc -gc -O -Wp,-H256000 -DRELEASE -D_HPUX_SOURCE -D_CLASSIC_TYPES -DX11R6 -I/opt/XPADE/v3/usr/include -I/hpivi/tape/usr/include/X11R2 -I/opt/XPADE/v3/usr/includeX11R6 -I. -I../../inc Zt_Error.c
cc: Couldn't open the message catalog: "/opt/ansic/lib/nls/msg/C/cc.cat".
/opt/langtools/lbin/cpp.ansi: illegal option -- d
Should I remove some compilation flags.
05-11-2009 08:53 PM
Did you do these:
3.4 Installing and Setting up HP XPADE Depot
Set environmental variables to refer to XPADE environment:
On HP-UX 11i V3 system:
On HP-UX 11i V2 system:
05-11-2009 09:29 PM
Suppose it was installed in /opt/XPADE/v3. One could use the XPADE using:
You could remove either -O or -g to get around this problem. Bascially -d is passed to cpp.ansi by the driver for enabling debugging optimized code.
But the actual problem is different one.
05-11-2009 10:59 PM
I don't know if i'm doing something wrong, because i thougth I have this environment variables set, but they aren't!
I declare it but the system doesn't mantain it.
I do the export comand in the shell. that's the correct way? Or I have to declare it in a file?
05-12-2009 08:25 AM
>I declare it but the system doesn't maintain it. I do the export command in the shell. What's the correct way?
If you 'su -' the old environmental variables are discarded and a new environment is created. If you do a simple 'su' without the hyphen ('-') then most variables are preserved, _EXCEPT_ 'HOME', 'ENV', 'IFS', 'SHLIB_PATH' or 'LD_*' unless 'SU_KEEP_ENV_VARS' is set in '/etc/default/security' (see the security(4) manpages).
05-12-2009 11:09 PM
I know I'm compiling in XPADE mode becase the compiler admit old modifiers as -Ac. But now I have two doubts about problem would probably appear as I advance in my work.
I have the following call to the compiler and to the linker, for example
cc -c -O -Wp,-H256000 -DRELEASE -D_HPUX_SOURCE -D_CLASSIC_TYPES -DX11R
6 -I/opt/XPADE/v3/usr/include -I/opt/XPADE/v3/master/hpivi/tape/usr/include/X11R
2 -I/opt/XPADE/v3/usr/include/X11R6 -Ac -I. -I../../inc Zt_Error.c
ar ruv ../../lib/libZt.a Zt_Error.o
ar: creating ../../lib/libZt.a
a - Zt_Error.o
And I have the following PATH
The first three folder are where are the XPADE cc compiler, the /opt/XPADE/v3/opt/ansic/bin, the ar linker is in the path /opt/XPADE/v3/usr/ccs/bin and libaries are in /opt/XPADE/v3/usr/ccs/lbin.
So i have the following doubts, I'm doing it right, and I will not find ELF file errors because im not using the linker well.
And the second, when I have finally the program, how can i execute it, I should execute it under XPADE or as if it where a normal program?
05-12-2009 11:30 PM
> So i have the following doubts, I'm doing it right, and I will not find ELF file errors because im not using the linker well.
Without using a linker (directly or indirectly through cc) you could not get any executable, the final program.
> And the second, when I have finally the program, how can i execute it, I should execute it under XPADE or as if it where a normal program?
You could execute the generated executable in IA itself with the help of ARIES. For more information about ARIES please refer to: www.hp.com/go/aries
05-13-2009 04:46 AM
/opt/XPADE/v3/usr/ccs/lbin/ld32: Unsatisfied symbols:
XtShellStrings (first referenced in ../../lib/libZtddServ.a) (data)
XtStrings (first referenced in ../../lib/libZtddServ.a) (data)
XtWindowOfObject (first referenced in ../../lib/libZtddServ.a) (code)
*** Error exit code 1
I had the same problem when I compiled this program without the XPADE, and I solved it adding the library /usr/lib/hpux32/libXt.so.1. which have the missing symbols.
but now it isn't a the solution because it duplicates many simbols.
05-13-2009 07:08 AM
Are you directly including /usr/lib/hpux32/libXt.so.1 (in the link line)? If so, it is incorrect. You should use -lXt. For the XPADE compilation (linking) it will pickup the appropriate libXt from /opt/XPADE/v2/usr/lib/libXt.*
05-13-2009 07:18 AM
I don't have that libary in my XPADE/v3/ directories, but finally I get compiling the program using the /usr/lib/libXt.1
but it's very posible it gives me a BUS ERROR
Thank you very much.
05-13-2009 07:27 AM
You should have /opt/XPADE/v3/usr/lib/libXt.*. Otherwise you could download it from www.hp.com/go/xpade and "Download latest release".
> but finally I get compiling the program using the /usr/lib/libXt.1
You should not use this in XPADE build environment.
05-14-2009 02:02 AM
I have finally got a successfull compilation, I hope it work, but when I reinstalled the XPADE i don't know if I have touch something I should not touch. but i dont know what.