<?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: Shared library behavior in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/shared-library-behavior/m-p/2796269#M720588</link>
    <description>The following is the output from the Makefile:&lt;BR /&gt;&lt;BR /&gt;cc -Ae +Z -I /opt/hp83000/f330/pws/lib -I /opt/hp83000/f330/prod_com/include -I /opt/hp83000/f330/com/include -I /opt/graphics/OpenGl/include -I /opt/X11R6incs/include -I /opt/X11R6includes/X11/Xmu -I /usr/include/Motif1.2 -I /opt/graphics/GLUT/include -b -c functions.c || (rm -f functions.o)&lt;BR /&gt;ld -a shared -B nonfatal -B symbolic -L/opt/hp83000/f330/prod_com/C++/lib -L/opt/graphics/GLUT/lib/glut -lglut -L/opt/graphics/OpenGL/lib -lGLU -lGL -L/usr/lib/X11R6 -lXmu -lXi -lXext -lXhp11 -lX11 -L/usr/lib/Motif1.2 -b -o libcifset.sl functions.o -dld -lMrm -Xm -lm&lt;BR /&gt;&lt;BR /&gt;The library I am creating is libcifset, the source is functions.c; This compiles with no errors and all the source libraries are shared. I had to download the source for  the glut library and compile from scratch as hp's native version was not shared, and the 10.2 install package from the UK mirror had a shared library, but that one did not work (the archive file it was made from had a corrupt symbol). In any case my current glut library compiled with no errors and works on regular C files with the .sl as the library.&lt;BR /&gt;No errors are reported during compilation and no errors are reported during runtime, the problem is that when I pass a function name to "glutDisplayFunct()" or other functions requiring a function name as a parameter it accepts it, but it does not show any evidence that it read the function (No window opens and no graphics!). I am rather new at this kind of thing. But I am very persistant. Would seeing the functions.c file help? I can edit it down to eliminate the parts that don't matter (it is quite large).&lt;BR /&gt;Thanks for the reply.&lt;BR /&gt;Terry&lt;BR /&gt;</description>
    <pubDate>Thu, 29 Aug 2002 13:01:30 GMT</pubDate>
    <dc:creator>Terry Dabbs</dc:creator>
    <dc:date>2002-08-29T13:01:30Z</dc:date>
    <item>
      <title>Shared library behavior</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shared-library-behavior/m-p/2796267#M720586</link>
      <description>I have a shared library (for HPUX10.2) that I am using with a Command interpreter to call the functions. I am trying to use glut utilities with the OpenGL to draw graphics during a test program.&lt;BR /&gt;&lt;BR /&gt;The problem:&lt;BR /&gt;Some of the functions of the glut toolkit use user defined functions as arguments. These work well in a standard (non-library) C program, but are ignored when used in the shared library!&lt;BR /&gt;&lt;BR /&gt;Standard C example:.&lt;BR /&gt;.&lt;BR /&gt;.&lt;BR /&gt;void display(void)&lt;BR /&gt;{&lt;BR /&gt;Code ......&lt;BR /&gt;}&lt;BR /&gt;int main(int argc, char** argv)&lt;BR /&gt;{&lt;BR /&gt;glutDisplayFunct(display);&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;In the shared lib:&lt;BR /&gt;void display(void)&lt;BR /&gt;{&lt;BR /&gt;Code....&lt;BR /&gt;}&lt;BR /&gt;void glmain(int arg1, char** arg2)&lt;BR /&gt;{&lt;BR /&gt;glutDisplayFunct(display);&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;The shared library (after much work on the Makefile)&lt;BR /&gt;works for all other functions called except these functions that are taking another function as an argument. I don't have a main function in the shared library, so it doesn't fit exactly the code examples in the toolkit, which I can modify all day long without a problem.&lt;BR /&gt;&lt;BR /&gt;I am sure someone has run into this before. Please help!&lt;BR /&gt;&lt;BR /&gt;Terr</description>
      <pubDate>Wed, 28 Aug 2002 21:11:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shared-library-behavior/m-p/2796267#M720586</guid>
      <dc:creator>Terry Dabbs</dc:creator>
      <dc:date>2002-08-28T21:11:45Z</dc:date>
    </item>
    <item>
      <title>Re: Shared library behavior</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shared-library-behavior/m-p/2796268#M720587</link>
      <description>&lt;BR /&gt;You did not mention how you link the application, or what the error looks like. Is is a coredump or unsatisfied symbols? Are you linking statically, dynamically, or are you loading the shared lib explicitly with shl_load()? &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 29 Aug 2002 09:31:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shared-library-behavior/m-p/2796268#M720587</guid>
      <dc:creator>Martin Schneider_2</dc:creator>
      <dc:date>2002-08-29T09:31:27Z</dc:date>
    </item>
    <item>
      <title>Re: Shared library behavior</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shared-library-behavior/m-p/2796269#M720588</link>
      <description>The following is the output from the Makefile:&lt;BR /&gt;&lt;BR /&gt;cc -Ae +Z -I /opt/hp83000/f330/pws/lib -I /opt/hp83000/f330/prod_com/include -I /opt/hp83000/f330/com/include -I /opt/graphics/OpenGl/include -I /opt/X11R6incs/include -I /opt/X11R6includes/X11/Xmu -I /usr/include/Motif1.2 -I /opt/graphics/GLUT/include -b -c functions.c || (rm -f functions.o)&lt;BR /&gt;ld -a shared -B nonfatal -B symbolic -L/opt/hp83000/f330/prod_com/C++/lib -L/opt/graphics/GLUT/lib/glut -lglut -L/opt/graphics/OpenGL/lib -lGLU -lGL -L/usr/lib/X11R6 -lXmu -lXi -lXext -lXhp11 -lX11 -L/usr/lib/Motif1.2 -b -o libcifset.sl functions.o -dld -lMrm -Xm -lm&lt;BR /&gt;&lt;BR /&gt;The library I am creating is libcifset, the source is functions.c; This compiles with no errors and all the source libraries are shared. I had to download the source for  the glut library and compile from scratch as hp's native version was not shared, and the 10.2 install package from the UK mirror had a shared library, but that one did not work (the archive file it was made from had a corrupt symbol). In any case my current glut library compiled with no errors and works on regular C files with the .sl as the library.&lt;BR /&gt;No errors are reported during compilation and no errors are reported during runtime, the problem is that when I pass a function name to "glutDisplayFunct()" or other functions requiring a function name as a parameter it accepts it, but it does not show any evidence that it read the function (No window opens and no graphics!). I am rather new at this kind of thing. But I am very persistant. Would seeing the functions.c file help? I can edit it down to eliminate the parts that don't matter (it is quite large).&lt;BR /&gt;Thanks for the reply.&lt;BR /&gt;Terry&lt;BR /&gt;</description>
      <pubDate>Thu, 29 Aug 2002 13:01:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shared-library-behavior/m-p/2796269#M720588</guid>
      <dc:creator>Terry Dabbs</dc:creator>
      <dc:date>2002-08-29T13:01:30Z</dc:date>
    </item>
    <item>
      <title>Re: Shared library behavior</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shared-library-behavior/m-p/2796270#M720589</link>
      <description>I will attach a sample C file please check it out.</description>
      <pubDate>Thu, 29 Aug 2002 14:02:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shared-library-behavior/m-p/2796270#M720589</guid>
      <dc:creator>Terry Dabbs</dc:creator>
      <dc:date>2002-08-29T14:02:23Z</dc:date>
    </item>
    <item>
      <title>Re: Shared library behavior</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shared-library-behavior/m-p/2796271#M720590</link>
      <description>I couldn't read the attachment so here's another attempt</description>
      <pubDate>Thu, 29 Aug 2002 14:08:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shared-library-behavior/m-p/2796271#M720590</guid>
      <dc:creator>Terry Dabbs</dc:creator>
      <dc:date>2002-08-29T14:08:38Z</dc:date>
    </item>
  </channel>
</rss>

