Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 21 Dec 2001 11:46:53 +0100 (CET)
From:      Hans Lambermont <hans@blender.nl>
To:        freebsd-java@FreeBSD.ORG
Subject:   JNI, -pthread vs -lc_r
Message-ID:  <200112211046.LAA90155@www.blender.nl>

next in thread | raw e-mail | index | archive | help
Hello list,
 
Linking a JNI .so with only -pthread seems insufficient. I get:
    Exception in thread "main" java.lang.UnsatisfiedLinkError:
    libblenderssr.so:
    /usr/X11R6/lib/libGL.so.1: Undefined symbol "pthread_getspecific"
 
Adding -lc_r solves this linking problem, but it should not be necessary
IMO. Linking the application in its non-shared-object version works fine
with just -pthread.
 
Why is -lc_r required for the shared library version ?
 
environment used: FreeBSD 4.4-RC / native jdk-1.3.1p5 / gcc 2.95.3
 
regards,
   Hans Lambermont
--
ir Hans Lambermont   Software Architect   hans@blender.nl
www.blender.nl +31(0)402501229 Eindhoven, the Netherlands
          Not a Number - 3D Enabling Technology

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-java" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200112211046.LAA90155>