From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,b19471aa234c3c08 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-09-15 10:14:51 PST Path: archiver1.google.com!postnews1.google.com!not-for-mail From: lin@post.com (Lin) Newsgroups: comp.lang.ada Subject: Re: Ada with Protected Object & Importing C program in Linux Date: 15 Sep 2001 10:14:50 -0700 Organization: http://groups.google.com/ Message-ID: <86772402.0109150914.2105212f@posting.google.com> References: <86772402.0109131712.7583f07f@posting.google.com> <3BA15E67.D41D1D84@worldnet.att.net> NNTP-Posting-Host: 144.32.177.108 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: posting.google.com 1000574091 8196 127.0.0.1 (15 Sep 2001 17:14:51 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: 15 Sep 2001 17:14:51 GMT Xref: archiver1.google.com comp.lang.ada:13093 Date: 2001-09-15T17:14:51+00:00 List-Id: After I get rid of the Java shared library from the compile command, the program works fine. Actually, I need to use Ada to create JVM via a C program in Linux, and the Ada program includes a protected object to update data as well. That is, the compile command needs to include Java shared library(-ljvm, -lhpi, -ljava). Without the protected object, Ada can create JVM successfully,but when adding the protected object, it raises the "segmentation fault". It seems that the protected object in Ada is not compatible with Java shared library. Anybody has ever used the combination of Ada protected object and Java shared library? Many Thanks, Linda