compile xev on HPUX 10.20 - errors

Thread Tools Search this Thread
Top Forums Programming compile xev on HPUX 10.20 - errors
# 1  
Old 05-15-2002
Question compile xev on HPUX 10.20 - errors


i compiled the program xev under HPUX 10.20 and there are a lot of errors like this. Can anybody help me to fix this errors?

make xev
cc -O xev.c -o xev
/usr/ccs/bin/ld: Unsatisfied symbols:
XFree (code)
XKeysymToString (code)
XSelectInput (code)
XOpenDisplay (code)
XCreateSimpleWindow (code)
XGetWindowAttributes (code)
XCloseDisplay (code)
XRefreshKeyboardMapping (code)
XMapWindow (code)
XSetStandardProperties (code)
XParseGeometry (code)
XCreateWindow (code)
XGetAtomName (code)
XDisplayName (code)
XLookupString (code)
XNextEvent (code)
*** Error exit code 1

many thanks
# 2  
Old 05-16-2002
This works for me on 11.00, you may have to modify slightly for 10.20.

gcc -o xev xev.c -DSVR4 -DSYSV -DFUNCPROTO=15 -L/usr/lib/X11R6 -lX11

BTW, you should not use the bundled compiler (cc) for general development. It is a crippled compiler which is only included so that you may rebuild your kernel if necessary. Use the ansi compiler or (preferably) gcc.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. HP-UX

Compile sendmail on hpux

The sendmail on hp site is too old,and still support the bugged ssl3(poodle) even if enable tlsv1. So i decide to compile sendmail by myself i use this site.config.m4 define(`confCClibsmi', `gcc -fPIC') define(`confCC',`/usr/local/bin/gcc -fPIC') define(`confOPTIMIZE', ` -O3')... (0 Replies)
Discussion started by: Linusolaradm1
0 Replies

2. HP-UX

Compile krb5-appl 1.0.3 on hpux

asprintf.c: In function 'vasprintf': asprintf.c:58: error: 'SIZE_MAX' undeclared (first use in this function) asprintf.c:58: error: (Each undeclared identifier is reported only once asprintf.c:58: error: for each function it appears in.) Someone know how to fix? Thanks (2 Replies)
Discussion started by: Linusolaradm1
2 Replies

3. UNIX Desktop Questions & Answers

Xev can't detect Caps_lock

Hi: I am trying to remap Caps_lock to something else but just encountered an unexpected issue: the xwindows can't even detect Caps_lock. I tried with xev, there was no events shown when Caps_lock key was toggled. the key itself still works though, meaning it does toggle the... (2 Replies)
Discussion started by: phil518
2 Replies

4. Programming

compile errors with gcc4.1.2 in rhel5.5

Hi All, My test code ldap_test.c can be compiled successfully with gcc2.95.2. But not gcc 4.1.2 in redhat5.5. The command I used and the output are: #gcc -fPIC -shared -o ldap_test.c /usr/include/ldap.h:179: error: expected ‚=‚, ‚,‚, ‚;‚, ‚asm‚ or ‚__attribute__‚ before ‚typedef‚... (2 Replies)
Discussion started by: rluo
2 Replies

5. Solaris

Compile errors on Solaris 10 (missing libwrap)

I'm trying to compile tacacs+-F4.0.4.18 on Solaris 10 (sparc based server). It fails during the "./configure" phase with the following error: checking whether to use libwrap... yes configure: error: Could not find libwrap. You must first install tcp_wrappers. I do a have tcpwrappers... (4 Replies)
Discussion started by: pingmeback
4 Replies

6. Solaris

Errors trying to compile PHP for use with MySQL on Solaris 10

have installed and am using the GNU based tools from the Sunfreeware site to compile PHP. I already have Apache, MySQL, and Oracle compiled and working properly. Below is my configure string for my PHP build: ./configure --prefix=/usr/local/php5 \... (2 Replies)
Discussion started by: sunsysadm2003
2 Replies

7. Programming

Not able to compile Pro*c file due - give errors and points to /usr/include/.. file

I am trying to compile the pro*C file but gives errors. It says it encountered "std" while it was expecting ; , = ( $ $ORACLE_HOME/bin/proc tradewind/dataaccess/Blob.pcc Pro*C/C++: Release - Production on Fri May 9 11:10:54 2008 Copyright (c) 1982, 2005, Oracle. All rights... (0 Replies)
Discussion started by: shafi2all
0 Replies

8. AIX

Compile errors because of the ras.h file

I recently compile some code in 32 bit mode on a AIX 5.3 server that has its kernal set to 64 bit mode. The compile was successful and the code works great. That being the case I use the model of the successful makefile on some other code but ended up getting errors that looked like this...... ... (2 Replies)
Discussion started by: morrisey
2 Replies

9. UNIX for Dummies Questions & Answers

Compile and dump errors to a text file

Hi there, I want to compile a program and dump errors to a text file. How could I do so..? Thanks for reading and thanks in advance!!! (6 Replies)
Discussion started by: starstarting
6 Replies

10. Programming

Why won't this compile on HPUX?

typedef struct { struct timeval t1; struct timeval time; } timer_t; cc: "timer.h", line 9: error 1584: Inconsistent type declaration: "timer_t". It compiles fine with gcc...:confused: Thanks for the help. (3 Replies)
Discussion started by: clockworks
3 Replies
Login or Register to Ask a Question