- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: dlkm compiled error
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-29-2009 12:14 AM
тАО06-29-2009 12:14 AM
and compiled the dlkm error
extern struct sysent sysent[];
int my_kill(pid_t pid, int sig)
{
printf( "pid is %d\n", pid );
return kill( pid, sig );
}
int my_load()
{
sysent[SYS_kill].sy_call = &(my_kill);//line 278
return 0;
}
cc: "my_mod.c", line 278: error 1720: Subscript expression must combine object pointer and integer.
cc: "my_mod.c", line 278: error 1529: Cannot select field of non-structure.
why have these errors?
bash-4.0# uname -a
HP-UX rp5470 B.11.11 U 9000/800 142444635 unlimited-user license
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-29-2009 12:36 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-29-2009 01:27 AM
тАО06-29-2009 01:27 AM
Re: dlkm compiled error
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-29-2009 01:50 AM
тАО06-29-2009 01:50 AM
Re: dlkm compiled error
sysent_delete()
sysent_assign_function()
sysent_define_arg()
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-29-2009 09:15 AM
тАО06-29-2009 09:15 AM
Re: dlkm compiled error
http://unix.derkeiler.com/Newsgroups/comp.sys.hp.hpux/2003-09/0224.html
bash-4.0# nm /stand/vmunix |grep sysent
[8356] | 9565376| 8|OBJT |LOCAL|0| .rodata|S$414$sysent_link_function
[38471] | 11852496| 8|OBJT |GLOB |0| .data|kload_sysent
[20530] | 12472824| 4|OBJT |GLOB |0| .sdata|nsysent
[35194] | 4311816| 328|FUNC |GLOB |0| .text|patch_sysent_stub
[20577] | 11733352| 4|OBJT |GLOB |0| .data|sysent
[24412] | 4312712| 784|FUNC |GLOB |0| .text|sysent_assign_function
[22214] | 4313960| 452|FUNC |GLOB |0| .text|sysent_complain
[28378] | 4312144| 564|FUNC |GLOB |0| .text|sysent_define_arg
[39319] | 4310184| 472|FUNC |GLOB |0| .text|sysent_delete
[27159] | 4310656| 492|FUNC |GLOB |0| .text|sysent_enable
[38654] | 4310112| 36|FUNC |GLOB |0| .text|sysent_get_function
[26765] | 4310040| 36|FUNC |GLOB |0| .text|sysent_get_name
[26665] | 4310080| 32|FUNC |GLOB |0| .text|sysent_get_narg
[38537] | 4311152| 660|FUNC |GLOB |0| .text|sysent_link_function
[25129] | 4310168| 8|FUNC |GLOB |0| .text|sysent_returns_long
[22001] | 4310152| 8|FUNC |GLOB |0| .text|sysent_returns_pointer
[39362] | 4310176| 8|FUNC |GLOB |0| .text|sysent_returns_range
[27135] | 4310160| 8|FUNC |GLOB |0| .text|sysent_returns_ulong
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-29-2009 11:41 AM
тАО06-29-2009 11:41 AM
Re: dlkm compiled error
You can't write C code unless you have a header that defines your variables, types (struct sysent), enums and defines.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-30-2009 05:26 AM
тАО06-30-2009 05:26 AM
Re: dlkm compiled error
An HP internal support instrumentation called timer9 exist which traces kill calls.
but it is statically linked.
you can also use ktracer
ktracer -a kill
ktracer -B
ktracedump -D will tell you all kill called on the system.
Also there is an other problem
a syscall have only 1 parameter which is a pointer to the uarea.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-30-2009 09:39 AM
тАО06-30-2009 09:39 AM