Operating System - HP-UX
1753830 Members
8819 Online
108806 Solutions
New Discussion юеВ

driver development - /usr/include/sys/h directory ?

 
SOLVED
Go to solution

driver development - /usr/include/sys/h directory ?

I am trying to build a sample driver that reference files in /usr/include/sys/h directory. What tools or how is the /usr/include/sys/h directory generated?
I installed HP C/ANSI C Developer's Bundle (B3899BA) using SAM, recompiled the sample driver and still have the same error "can't open include file in ../h/spinlock.h", and etc..

I have HP Visualize B2000 workstation, with HP-UX 11.00 installed.

Is there a forum for driver development for HP system? I couldn't seem to locate the forum on the dspp site.

Kym

7 REPLIES 7
Robert-Jan Goossens
Honored Contributor

Re: driver development - /usr/include/sys/h directory ?

Hi Kym,

Think you better ask this question in the HP-ux forum general or sys admin. Don't think your question is specially workstation related.

Kind regards,

Robert-Jan.
A. Clay Stephenson
Acclaimed Contributor
Solution

Re: driver development - /usr/include/sys/h directory ?

It's actually /etc/conf/h and there should be a spinlock.h header file there.
If it ain't broke, I can fix that.

Re: driver development - /usr/include/sys/h directory ?

Robert: Thanks! I was not able to find a forum for the device driver development. I thought I post the question in the workstation forum to get a response from someone (such as yourself).
Robert-Jan Goossens
Honored Contributor

Re: driver development - /usr/include/sys/h directory ?

Hi Kym,

Was that a silent hint ??

look at next threath.

- PHKL_23002 introduced behavior that can cause a kernel build
failure when installed on a system with either the
HPUXMinSys32 or HPUXMinSys64 Minimal 32-bit/64-bit HP-UX
Environment installed. The kernel build will fail with the
following message:
cpp: "/usr/conf/space.h.d/core-hpux.h", line 27:
error 4036: Can't open include file 'sys/spinlock.h'.


I will give you the link too

http://fhwebkb.ftc.agilent.com/KBdocDownloads/10.748/PHKL_24943.txt

Kind regards,

Robert-Jan.
Robert-Jan Goossens
Honored Contributor

Re: driver development - /usr/include/sys/h directory ?

Hi Kym,

Patch Name: PHKL_25475

Patch Description: s700_800 11.00 PM cumulative patch

Symptoms:
PHKL_25475:
( SR:8606221043 CR:JAGad90179 )
The kernel build may fail during, or after, installation
of patch PHKL_23002 or a superseding patch with the error:

cpp: "/usr/conf/space.h.d/core-hpux.h", line 27: error 4036:
Can't open include file 'sys/spinlock.h'.
*** Error exit code 1

Robert-Jan.

Re: driver development - /usr/include/sys/h directory ?

A.Clay: Thanks for the symbolic link! On my system, /etc/conf/h points to /usr/conf/h.
Hmmm....if KERNEL_BUILD is defined, the include files are referenced in the /usr/conf/h directory; otherwise, the files are referenced in the include/sys directory. I have two copies of the same file in different location (i.e. spinlock.h, types.h, kern_svcs.h).

I wonder what the reason is for the two copies in different location. Hopefully, HP will change this in the future :).

onward to driver development. Thanks!

Kym

Re: driver development - /usr/include/sys/h directory ?

Robert-Jan: Thanks for taking the time to resolve my sys/h directory. The links will be useful when I have to build the kernel for a my dual driver (static and dynamic module).

--Kym