1754378 Members
3163 Online
108813 Solutions
New Discussion юеВ

Perl Module X11::GUITest

 
Dustin Hice
New Member

Perl Module X11::GUITest

I am having a problem installing X11 GUITest


with the standard compiler i get these errors

$ make
cc -c -I/usr/X11R6/include -I/usr/X/include -Wall -O2 -DVERSION=\"0.20\" -DXS_VERSION=\"0.20\" +Z "-I/opt/perl_32/lib/5.8.7/PA-RISC1.1-thread-multi/CORE" -DNDEBUG GUITest.c
(Bundled) cc: warning 480: The -O option is available only with the C/ANSI C product; ignored.
(Bundled) cc: warning 422: Unknown option "2" ignored.
(Bundled) cc: warning 480: The +Z option is available only with the C/ANSI C product; ignored.
cpp: "/opt/perl_32/lib/5.8.7/PA-RISC1.1-thread-multi/CORE/perlio.h", line 108: error 4065: Recursion in macro "PerlIO".
*** Error exit code 1


But I added gcc to the Makefile and I receive the following errors

$ make
/opt/gcc/bin/gcc -c -I/usr/X11R6/include -I/usr/X/include -Wall -O2 -DVERSION=\"0.20\" -DXS_VERSION=\"0.20\" +Z "-I/opt/perl_32/lib/5.8.7/PA-RISC1.1-thread-multi/CORE" -DNDEBUG GUITest.c
gcc: +Z: No such file or directory
GUITest.xs:39: X11/Xlib.h: No such file or directory
GUITest.xs:40: X11/Xutil.h: No such file or directory
GUITest.xs:41: X11/Intrinsic.h: No such file or directory
GUITest.xs:42: X11/StringDefs.h: No such file or directory
GUITest.xs:43: X11/keysym.h: No such file or directory
GUITest.xs:44: X11/extensions/XTest.h: No such file or directory
*** Error exit code 1


And those files exist in the specified directory of /usr/X11R6

Thanks for the help
6 REPLIES 6
James R. Ferguson
Acclaimed Contributor

Re: Perl Module X11::GUITest

Hi Dustin:

Do:

# perl -V:cc

...to determine if your Perl was compiled with 'gcc' or with HP's Ansi compiler. If the later, you that, not the bundled K&R C compiler that comes with HP-UX.

Regards!

...JRF...
Dustin Hice
New Member

Re: Perl Module X11::GUITest

perl -V:cc
cc='cc';

perl -V:gcc
gcc='UNKNOWN';


So it was compiled with the standard compiler, but I am not sure what you are telling me to do, if this is the case.


Thanks,
James R. Ferguson
Acclaimed Contributor

Re: Perl Module X11::GUITest

Hi (again):

I don't believe that you have the Ansi C compiler. Do:

# whereis cc

You should see something like:

cc: /usr/bin/cc /usr/ccs/bin/cc /opt/ansic/bin/cc /opt/ansic/share/man/man1.Z/cc
.1

...and:

'/usr/bin/cc' should be linked to '/opt/an
sic/bin/cc' if you have Ansi C. Otherwise you have the old K&R bundled C compiler only.

Regards!

...JRF...
Dustin Hice
New Member

Re: Perl Module X11::GUITest

whereis cc
cc: /usr/bin/cc /usr/ccs/bin/cc


I do not think I have that particular compiler, so how can I get this module to install?
James R. Ferguson
Acclaimed Contributor

Re: Perl Module X11::GUITest

Hi (again) Dustin:

You need the Ansi C compiler since your Perl was compiled with that; _OR_ you need to fetch a version of Perl compiled with 'gcc' along with a 'gcc' compiler.

I would suggest that you visit Merijn's site for both:

http://mirrors.develooper.com/hpux/

Regards!

...JRF...
Dustin Hice
New Member

Re: Perl Module X11::GUITest

I am having some trouble installing the gcc version. It says that *initialization*1: missing token-sequence in '#assert', and then says that the gcc compiler isn't working.

It does this if I use cc or gcc, but I know they both can compile. Any suggestions?


Sorry for all the trouble