<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: dlkm compiled error in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/dlkm-compiled-error/m-p/5184179#M460432</link>
    <description>basically your sysent structure doesn't look to be defined.&lt;BR /&gt;</description>
    <pubDate>Mon, 29 Jun 2009 08:27:20 GMT</pubDate>
    <dc:creator>Laurent Menase</dc:creator>
    <dc:date>2009-06-29T08:27:20Z</dc:date>
    <item>
      <title>dlkm compiled error</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/dlkm-compiled-error/m-p/5184177#M460430</link>
      <description>I wrote a code on hpux11.11&lt;BR /&gt;and compiled the dlkm error&lt;BR /&gt;&lt;BR /&gt;extern struct sysent sysent[];&lt;BR /&gt;&lt;BR /&gt;int my_kill(pid_t pid, int sig)&lt;BR /&gt;{&lt;BR /&gt;  printf( "pid is %d\n", pid );&lt;BR /&gt;&lt;BR /&gt;  return kill( pid, sig );&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;int my_load()&lt;BR /&gt;{&lt;BR /&gt;   sysent[SYS_kill].sy_call = &amp;amp;(my_kill);//line 278&lt;BR /&gt;   return 0;&lt;BR /&gt;} &lt;BR /&gt;&lt;BR /&gt;cc: "my_mod.c", line 278: error 1720: Subscript expression must combine object pointer and integer.&lt;BR /&gt;cc: "my_mod.c", line 278: error 1529: Cannot select field of non-structure.&lt;BR /&gt;&lt;BR /&gt;why have these errors?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;bash-4.0# uname -a&lt;BR /&gt;HP-UX rp5470 B.11.11 U 9000/800 142444635 unlimited-user license&lt;BR /&gt;</description>
      <pubDate>Mon, 29 Jun 2009 07:14:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/dlkm-compiled-error/m-p/5184177#M460430</guid>
      <dc:creator>kaijile</dc:creator>
      <dc:date>2009-06-29T07:14:47Z</dc:date>
    </item>
    <item>
      <title>Re: dlkm compiled error</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/dlkm-compiled-error/m-p/5184178#M460431</link>
      <description>where did you get struct sysent definition?&lt;BR /&gt;what is your struct sysent definition?&lt;BR /&gt;What is you SYS_kill definition?&lt;BR /&gt;&lt;BR /&gt;Usually they are private and not available.&lt;BR /&gt;</description>
      <pubDate>Mon, 29 Jun 2009 07:36:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/dlkm-compiled-error/m-p/5184178#M460431</guid>
      <dc:creator>Laurent Menase</dc:creator>
      <dc:date>2009-06-29T07:36:04Z</dc:date>
    </item>
    <item>
      <title>Re: dlkm compiled error</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/dlkm-compiled-error/m-p/5184179#M460432</link>
      <description>basically your sysent structure doesn't look to be defined.&lt;BR /&gt;</description>
      <pubDate>Mon, 29 Jun 2009 08:27:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/dlkm-compiled-error/m-p/5184179#M460432</guid>
      <dc:creator>Laurent Menase</dc:creator>
      <dc:date>2009-06-29T08:27:20Z</dc:date>
    </item>
    <item>
      <title>Re: dlkm compiled error</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/dlkm-compiled-error/m-p/5184180#M460433</link>
      <description>external api exist using&lt;BR /&gt;sysent_delete()&lt;BR /&gt;sysent_assign_function()&lt;BR /&gt;sysent_define_arg()&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 29 Jun 2009 08:50:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/dlkm-compiled-error/m-p/5184180#M460433</guid>
      <dc:creator>Laurent Menase</dc:creator>
      <dc:date>2009-06-29T08:50:16Z</dc:date>
    </item>
    <item>
      <title>Re: dlkm compiled error</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/dlkm-compiled-error/m-p/5184181#M460434</link>
      <description>indirect kill system call on HP-UX 11.11i &lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://unix.derkeiler.com/Newsgroups/comp.sys.hp.hpux/2003-09/0224.html" target="_blank"&gt;http://unix.derkeiler.com/Newsgroups/comp.sys.hp.hpux/2003-09/0224.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;bash-4.0# nm /stand/vmunix |grep sysent&lt;BR /&gt;[8356]   |               9565376|       8|OBJT |LOCAL|0| .rodata|S$414$sysent_link_function&lt;BR /&gt;[38471]  |              11852496|       8|OBJT |GLOB |0|   .data|kload_sysent&lt;BR /&gt;[20530]  |              12472824|       4|OBJT |GLOB |0|  .sdata|nsysent&lt;BR /&gt;[35194]  |               4311816|     328|FUNC |GLOB |0|   .text|patch_sysent_stub&lt;BR /&gt;[20577]  |              11733352|       4|OBJT |GLOB |0|   .data|sysent&lt;BR /&gt;[24412]  |               4312712|     784|FUNC |GLOB |0|   .text|sysent_assign_function&lt;BR /&gt;[22214]  |               4313960|     452|FUNC |GLOB |0|   .text|sysent_complain&lt;BR /&gt;[28378]  |               4312144|     564|FUNC |GLOB |0|   .text|sysent_define_arg&lt;BR /&gt;[39319]  |               4310184|     472|FUNC |GLOB |0|   .text|sysent_delete&lt;BR /&gt;[27159]  |               4310656|     492|FUNC |GLOB |0|   .text|sysent_enable&lt;BR /&gt;[38654]  |               4310112|      36|FUNC |GLOB |0|   .text|sysent_get_function&lt;BR /&gt;[26765]  |               4310040|      36|FUNC |GLOB |0|   .text|sysent_get_name&lt;BR /&gt;[26665]  |               4310080|      32|FUNC |GLOB |0|   .text|sysent_get_narg&lt;BR /&gt;[38537]  |               4311152|     660|FUNC |GLOB |0|   .text|sysent_link_function&lt;BR /&gt;[25129]  |               4310168|       8|FUNC |GLOB |0|   .text|sysent_returns_long&lt;BR /&gt;[22001]  |               4310152|       8|FUNC |GLOB |0|   .text|sysent_returns_pointer&lt;BR /&gt;[39362]  |               4310176|       8|FUNC |GLOB |0|   .text|sysent_returns_range&lt;BR /&gt;[27135]  |               4310160|       8|FUNC |GLOB |0|   .text|sysent_returns_ulong&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 29 Jun 2009 16:15:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/dlkm-compiled-error/m-p/5184181#M460434</guid>
      <dc:creator>kaijile</dc:creator>
      <dc:date>2009-06-29T16:15:06Z</dc:date>
    </item>
    <item>
      <title>Re: dlkm compiled error</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/dlkm-compiled-error/m-p/5184182#M460435</link>
      <description>&amp;gt;indirect kill system call on 11.11&lt;BR /&gt;&lt;BR /&gt;You can't write C code unless you have a header that defines your variables, types (struct  sysent), enums and defines.</description>
      <pubDate>Mon, 29 Jun 2009 18:41:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/dlkm-compiled-error/m-p/5184182#M460435</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2009-06-29T18:41:25Z</dc:date>
    </item>
    <item>
      <title>Re: dlkm compiled error</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/dlkm-compiled-error/m-p/5184183#M460436</link>
      <description>If your purpose is only to get kill printouts there are other solutions.&lt;BR /&gt;An HP internal support instrumentation called timer9 exist which traces kill calls.&lt;BR /&gt;but it is statically linked.&lt;BR /&gt;&lt;BR /&gt;you can also use ktracer&lt;BR /&gt;&lt;BR /&gt;ktracer -a kill &lt;BR /&gt;ktracer -B&lt;BR /&gt;&lt;BR /&gt;ktracedump -D will tell you all kill called on the system.&lt;BR /&gt;&lt;BR /&gt;Also there is an other problem&lt;BR /&gt;a syscall have only 1 parameter which is a pointer to the uarea.</description>
      <pubDate>Tue, 30 Jun 2009 12:26:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/dlkm-compiled-error/m-p/5184183#M460436</guid>
      <dc:creator>Laurent Menase</dc:creator>
      <dc:date>2009-06-30T12:26:57Z</dc:date>
    </item>
    <item>
      <title>Re: dlkm compiled error</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/dlkm-compiled-error/m-p/5184184#M460437</link>
      <description>thanks Laurent Menase &amp;amp; Dennis Handly</description>
      <pubDate>Tue, 30 Jun 2009 16:39:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/dlkm-compiled-error/m-p/5184184#M460437</guid>
      <dc:creator>kaijile</dc:creator>
      <dc:date>2009-06-30T16:39:50Z</dc:date>
    </item>
  </channel>
</rss>

