Sun C Library's equivalent of __GLIBC__
If GNU's C library is used, __GLIBC__ isdefined. Is there an equivalent macro for Sun's C Library? What is the official name for Sun's libc - Solaris C Library? Sun Studio C Library? Can someone point me to its documentation?
Some parts of libc (both Sun libc and glibc) are simple utility
functions where any normal implementation could be used in theory.
Other parts of the library (both glibc and Sun libc) are very interwoven with
the operating system and the runtime linker. Because of this it's
normal for all Solaris programs (even portable ones, even Linux-designed
software) to use the implementation of libc that comes built-in to Solaris,
when they are running on Solaris. As far as I know, there is no easy #define
to detect that you are using Sun's libc. You could use the combination
of: 1) running on Solaris AND 2) not using GLIBC. Even though I would
not expect to find any/many programs using glibc on Solaris, it's better
to check for both flags.
--chris
Similar Messages
-
How to Use the Sun Fortran Library
I wish to use the Sun Fortran Library of functions, but I am having trouble compiling my program. I would appreciate some help on selecting the proper compiler options, code modifications, etc.
My OS is Fedora 10 on a 64-bit system. I use the latest Sun Studio Express. I have used the Sun f95 compiler for quite some time as well, but this is my first use of one of the functions from the Sun Fortran Library.
Here is my first attempt after doing some unsuccessful research of my own on this issue:
PROGRAM test
IMPLICIT NONE
REAL*8 x, y
REAL*8, EXTERNAL :: d_lgamma
x=2.0
y=d_lgamma(x)
y=EXP(y)
WRITE(*,*) x, y
END PROGRAM test
Here's how I tried to compile:
f95 -lm test.f95test.o: In function `MAIN_':
test.f95:(.text+0x91): undefined reference to `d_lgamma_'
Obviously I am not doing this correctly. Is it possible that the Sun compiler and libraries have not been installed correctly on my system? How can I test if this is case?
Thank you for your help with this matter.The routine d_lgamma_ is not supplied as part of Sun's Fortran product.
Sun's Fortran team does not maintain the library that contains that
routine. The team that does support the library has not yet ported it to
Linux. Different teams have different priorities.
In this case, there is a simple workaround. The C routine
#include <math.h>
double
d_lgamma_(double *x)
return (lgamma(*x));
implements the routine d_lgamma_.
Bob Corbett -
Sun Performance Library and OpenMP applications
Hi list,
I have a code that uses BLAS/Lapack libraries. This code requires the BLAS/Lapack to run in serial mode. If and when it runs in parallel this is a disaster. The code runs in parallel with OpenMP directives in SMP systems. I specify the number of threads by setting
OMP_NUM_THREADS
to the number of threads desired. Unfortunately if OMP_NUM_THREADS > 1 then sunperf runs in parallel as well. Is there anyway to tell to the sunperf library to run in serial mode no matter what the value of OMP_NUM_THREADS is?
For example GOTO BLAS library provides the environmental variable GOTO_NUM_THREADS which is dedicated to the threads of the GOTO library. So by setting GOTO_NUM_THREADS = 1, the library always runs in serial mode no matter what the value of OMP_NUM_THREADS is.
How could I achieve the same effect with Sun Performance Library?Take a look at Perflib's USE_THREADS routine :
man -s 3p use_threads
Doing a call to USE_THREADS with the value of "1", before calling Perflib routines may work for you.
Also, I've noticed applications that have lots of small chunks of parallel work, need the threads to be very responsive. (And not sleep in between work chunks)
A way to make the threads not sleep is with the ${SUNW_MP_THR_IDLE} environment variable. I always set the value to "SPIN" :
% setenv SUNW_MP_THR_IDLE SPIN
You can see other settings for this in the OpenMP User's Guide, page 18 :
http://docs.sun.com/app/docs/doc/819-5270
Hope this helps. -
CBLAS in sun performance library coming with solaris studio 12.2
Hello,
In sunperf library coming with sun studio 12u1 (linux x86) I can use cblas callings using the standard names cblas_xxxx. This interface do not appears in sunperf.h (you can use standard cblas.h) but the objects are in libsunperf.(a|so).
But in solaris studio 12.2 libsunperf cblas_xxxx objects do not exists. Is this normal? Contains libsunperf a standard c blas interface?
ThanksHello again,
In this blog post
http://www.mlds-networks.com/index.php/component/option,com_mojo/Itemid,29/p,35/
is explained how to link the ACML (AMD core math library) in order to use the standard CBLAS interface (ACML do not provides a standard CBLAS). I tried it and all runs OK. I did the same for the sun performance library in solstudio 12.2 and the compilation proccess runs ok, but in the testing step all functions fails becaude an incorrect argument in each function.
Exists any way for use the standard CBLAS interface with sun performance library? As I noted in my previous post, version 12.1 of sunstudio libsunperf contains the standard CBLAS interface, but I would like to use version 12.2
Thanks -
Unable to link to sun performance library
I am using SS12 with nevada build 70. When trying to link to sun performance library routine from F90 code, I am getting errors. See the code and output below,
PROGRAM DeepWell
USE SUNPERF
IMPLICIT NONE
INTEGER, PARAMETER :: N=5 ! No. of nucleons in consideration
INTEGER :: i,j,k,ios
DOUBLE PRECISION,DIMENSION(N,N) :: S,H
DOUBLE PRECISION,DIMENSION(N) :: eig
DOUBLE PRECISION :: tmp
DO i=1,N
DO j=i,N
k = i+j
IF (MOD(k,2) == 0) THEN
S(i,j) = 2.0/(k+5.0) - 4.0/(k+3.0) + 2.0/(k+1.0)
H(i,j) = 8*(k+2.0*i*j-1)/(k+3.0)/(k+1.0)/(k-1.0)
ELSE
S(i,j) = 0.0
H(i,j) = 0.0
ENDIF
ENDDO
ENDDO
call sygy(1,'V','U','N',H,B=S,W=eig)
END PROGRAM DeepWell
Output:
Running "/usr/bin/dmake -f Makefile CONF=Release" in /export/home/mbkumar/Thissjen/C3/This_C3_P1_VC
dmake: defaulting to parallel mode.
See the man page dmake(1) for more information on setting up the .dmakerc file.
bharat1 --> 1 job
/usr/bin/dmake -f nbproject/Makefile-Release.mk SUBPROJECTS= .build-conf
bharat1 --> 1 job
mkdir -p build/Release/Sun12-Solaris-x86
f90 -xtarget=opteron -m64 -dalign -xlic_lib=sunperf -c -O3 -w1 -o build/Release/Sun12-Solaris-x86/VC.o VC.f90
bharat1 --> Job output
mkdir -p build/Release/Sun12-Solaris-x86
f90 -xtarget=opteron -m64 -dalign -xlic_lib=sunperf -c -O3 -w1 -o build/Release/Sun12-Solaris-x86/VC.o VC.f90
(/export/home/mbkumar/Thissjen/C3/This_C3_P1_VC)VC.f90:
call ssygy(1,'V','U','N',H,B=S,W=eig)
^
"VC.f90", Line = 41, Column = 30: ERROR: An actual argument keyword is being used when an explicit interface is not known.
^
"VC.f90", Line = 41, Column = 34: ERROR: An actual argument keyword is being used when an explicit interface is not known.
f90comp: 44 SOURCE LINES
f90comp: 2 ERRORS, 0 WARNINGS, 0 OTHER MESSAGES, 0 ANSI
:(/export/home/mbkumar/Thissjen/C3/This_C3_P1_VC)VC.f90
*** Error code 1
dmake: Fatal error: Command failed for target `build/Release/Sun12-Solaris-x86/VC.o'
Current working directory /export/home/mbkumar/Thissjen/C3/This_C3_P1_VC
*** Error code 1
dmake: Fatal error: Command failed for target `.build-impl'
Build failed. Exit value 1.please ignore the above question. I called non-existing routine.
-
Sun Performance library or just a tuned BLAS for Solaris x86?
Hi,
I know the sun performance library is not available on Solaris x86, but is
there at least a tuned blas library available?
thanks,
timThe compilation line you list is correct. One way to see if there are outstanding unsatisfied references is to use the ldd command on the shared library that you created:
% CC -dalign -xarch=v9a -G -o LA.so $(OBJECTS) -library=sunperf -staticlib=sunperf
% ldd LA.so
I assume that one or more of the .o files in the $(OBJECTS) list makes calls to Perflib routines. Does your application (the code that is linking to the LA.so shared library) also make calls to Perflib routines? If so, these will not have been satisfied in the previous creation of the LA.so shared library. -
FLTBOUNDS coredump, relative to sun performance library
Hi,
I got an core dump, the "truss" log is:
27346: lwp_kill(1209, SIG#0) Err#3 ESRCH
27346: lwp_create(0xFFBEF088, LWP_SUSPENDED, 0xFFBEF084) = 1210
27346: lwp_create() (returning as new lwp ...) = 0
27346: lwp_continue(1210) = 0
27346: lwp_schedctl(SC_STATE|SC_PREEMPT, 0, 0xFDEFBDA4) = 0
27346: sigprocmask(SIG_SETMASK, 0xFF35819C, 0x00000000) = 0
27346: lwp_exit()
27346: lwp_wait(1210, 0xFFBEF24C) = 0
27346: lwp_wait(1210, 0xFFBEF24C) Err#3 ESRCH
27346: lwp_kill(1210, SIG#0) Err#3 ESRCH
27346: lwp_create(0xFFBEF088, LWP_SUSPENDED, 0xFFBEF084) = 1211
27346: lwp_create() (returning as new lwp ...) = 0
27346: lwp_continue(1211) = 0
27346: lwp_schedctl(SC_STATE|SC_PREEMPT, 0, 0xFDEFBDA4) = 0
27346: Incurred fault #6, FLTBOUNDS %pc = 0xFEF7756C
27346: siginfo: SIGSEGV SEGV_MAPERR addr=0xFF194000
27346: Received signal #11, SIGSEGV [default]
27346: siginfo: SIGSEGV SEGV_MAPERR addr=0xFF194000
27346: *** process killed ***
I used "/mnts/cdstools/SunCC-7.0.5/solaris-sparc-2.8/bin/CC test.C -xlic_l=sunperf -g -mt -lthread -R/usr/lib/lwp/" to compile.
I suspect there is a bug in dgemm(one function from Sun Performance Library), since if I comment it out, anything become ok.
Any one have similar problem?
Thanks.
ljgCan you post a testcase of your code so I can try to replicate the problem?
Also, what is is your per-thread stack size set to? A large (4MB) stacksize is required if libsunperf is called from a user created thread.
See the following for more info if it is indeed a stacksize issue..
http://docs.sun.com/source/816-2463/plug_optimizing.html#pgfId-19550
-Moazam -
Oracle on Linux Library Files Equivalent
Hi
I installed RedHat Linux 6.0 and installed oracle downloaded. I
have problem when porting my c programs, the following files are
not available under LINUX where these library file are reqd in
my earlier version on HP-Unix.
Problem Summary :what is the equivalent of
libcv6.a libc3v6.a libsqlnet.a libcore3.a
Can someone let me know the equivalent files or any alternate
solution to proceed further
Thanx in advance
Rgd
GBS
nullThat worked. Someone should ask Oracle to update the instruction page to remove the -c option from the cpio command line!
Thanks! -
Recently, on my SUN L25 I began receiving an error 2401 message, but my library works (i succesfully backuped on it) and nothing shown in Prism Card Event History
http://img44.imageshack.us/img44/7743/0908210935.jpg
I tried to google its description, but without success. Who else has faced this, or at least can explain what this error code mean?
I would be grateful for any assistance.Hi tolik2525
I`ve the same problem with a storedge L25. I make the following tests:
- Fw test. Firmware upgrade to drives, library and PRISM card.
- Boot library disconnected of host.
- Boot with one drive alternatively.
- Boot with one PSU alternatively.
- Change SCSI terminators.
And a long etc... After all the problem persists.
All sugesttions are wellcome.
Thanks all.
Edited by: zariweya on Dec 1, 2009 4:50 AM -
Sun L25 library showing "2401" error
I have the 2401 error but my L25 stopped working.
When I go by the error, the screen comes up but I have no options on any button. So it's unusable.
Any help would be appreciated.Hi tolik2525
I`ve the same problem with a storedge L25. I make the following tests:
- Fw test. Firmware upgrade to drives, library and PRISM card.
- Boot library disconnected of host.
- Boot with one drive alternatively.
- Boot with one PSU alternatively.
- Change SCSI terminators.
And a long etc... After all the problem persists.
All sugesttions are wellcome.
Thanks all.
Edited by: zariweya on Dec 1, 2009 4:50 AM -
Sun Win32 Emulation Library v1.1 for Solaris
I was wondering, has anyone else experienced missing source and header files from the 'Sun Win32 Emulation Library v1.1 for Solaris' download.
When proceeding to download this version and unzipping into the relevant directory, it would appear that many of the source and headers files described at:
http:/soldc.sun.com/ntmigration.nttech/SupportedAPIs.html
(ie. Functions currently implemented in the in32 Emulation Library V1.1 for Solaris) are missing ?
Any help regarding this matter would be greatly appreciated.
Best WishesFor those interested, the Sun Win32 library can now be properly downloaded.
-
When I create an EJB Transport Business Service, after selecting the jar that has the EJB 2.1 artefacts (Remote, Home, etc) the oepe plugin fails and can't continue.
As I understand it seems that there is a problem with the classpath of ant build.xml that oepe creates inside folder /tmp/alsbejbtransport/ to compile the bs and generate the wsdl. I checked if tools.jar is in the classpath (in eclipse) and is included, so I can't figure out wich is the problem.
I found this in Oracle, but not helps solve the problem:
BEA-398120
Error: The WSDL for the typed transport endpoint could not be accessed.
Description
There was a problem retrieving the WSDL from the typed transport service endpoint at the time of service registration
Action
Contact technical support
This is the the full stacktrace that shows eclipse.
Generate : Error during generation of the WSDL:
BUILD FAILED
java.lang.NoClassDefFoundError: com/sun/javadoc/Type
at com.bea.util.jam.provider.JamServiceFactoryImpl.createSourceBuilder(JamServiceFactoryImpl.java:205)
at com.bea.util.jam.provider.JamServiceFactoryImpl.createBuilder(JamServiceFactoryImpl.java:158)
at com.bea.util.jam.provider.JamServiceFactoryImpl.createClassLoader(JamServiceFactoryImpl.java:137)
at com.bea.util.jam.provider.JamServiceFactoryImpl.createService(JamServiceFactoryImpl.java:78)
at weblogic.wsee.util.JamUtil.parseSource(JamUtil.java:152)
at weblogic.wsee.tools.anttasks.JwsLoader.loadJClasses(JwsLoader.java:186)
at weblogic.wsee.tools.anttasks.JwsLoader.load(JwsLoader.java:75)
at weblogic.wsee.tools.anttasks.JwsModule.loadWebServices(JwsModule.java:569)
at weblogic.wsee.tools.anttasks.JwsModule.generate(JwsModule.java:369)
at weblogic.wsee.tools.anttasks.JwsModule.build(JwsModule.java:256)
at weblogic.wsee.tools.anttasks.JwscTask.execute(JwscTask.java:184)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
at sun.reflect.GeneratedMethodAccessor1.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
at org.apache.tools.ant.Task.perform(Task.java:348)
at org.apache.tools.ant.Target.execute(Target.java:357)
at org.apache.tools.ant.Target.performTasks(Target.java:385)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1337)
at org.apache.tools.ant.Project.executeTarget(Project.java:1306)
at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
at org.apache.tools.ant.Project.executeTargets(Project.java:1189)
at org.apache.tools.ant.Main.runBuild(Main.java:758)
at org.apache.tools.ant.Main.startAnt(Main.java:217)
at org.apache.tools.ant.launch.Launcher.run(Launcher.java:257)
at org.apache.tools.ant.launch.Launcher.main(Launcher.java:104)
Caused by: java.lang.ClassNotFoundException: com.sun.javadoc.Type
at org.apache.tools.ant.AntClassLoader.findClassInComponents(AntClassLoader.java:1400)
at org.apache.tools.ant.AntClassLoader.findClass(AntClassLoader.java:1341)
at org.apache.tools.ant.AntClassLoader.loadClass(AntClassLoader.java:1088)
at java.lang.ClassLoader.loadClass(ClassLoader.java:356)
... 27 more
Total time: 0 seconds
Eclipse Installation details:
*** System properties:
eclipse.application=org.eclipse.ui.ide.workbench
eclipse.buildId=M20110909-1335
eclipse.commands=-os
linux
-ws
gtk
-arch
x86_64
-showsplash
-launcher
{home}/Development/oepe-indigo/eclipse
-name
Eclipse
--launcher.library
{home}/Development/oepe-indigo//plugins/org.eclipse.equinox.launcher.gtk.linux.x86_64_1.1.100.v20110505/eclipse_1407.so
-startup
{home}/Development/oepe-indigo//plugins/org.eclipse.equinox.launcher_1.2.0.v20110502.jar
--launcher.overrideVmargs
-exitdata
1e418010
-vm
/usr/bin/java
eclipse.home.location=file:{home}/Development/oepe-indigo/
eclipse.launcher={home}/Development/oepe-indigo/eclipse
eclipse.launcher.name=Eclipse
[email protected]/../p2/
eclipse.p2.profile=PlatformProfile
eclipse.product=org.eclipse.platform.ide
eclipse.startTime=1374623921455
eclipse.vm=/usr/bin/java
eclipse.vmargs=-Xms256m
-Xmx768m
-XX:MaxPermSize=512m
-Dsun.lang.ClassLoader.allowArraySyntax=true
-Dweblogic.home={home}/Oracle/Middleware/wlserver_10.3
-Dharvester.home={home}/Oracle/Middleware/Oracle_OSB1/harvester
-Dosb.home={home}/Oracle/Middleware/Oracle_OSB1
-Dosgi.bundlefile.limit=750
-Dosgi.nl=en_US
-Dmiddleware.home={home}/Oracle/Middleware
-jar
{home}/Development/oepe-indigo//plugins/org.eclipse.equinox.launcher_1.2.0.v20110502.jar
equinox.use.ds=true
file.encoding=UTF-8
file.encoding.pkg=sun.io
file.separator=/
guice.disable.misplaced.annotation.check=true
harvester.home={home}/Oracle/Middleware/Oracle_OSB1/harvester
http.nonProxyHosts=localhost
java.awt.graphicsenv=sun.awt.X11GraphicsEnvironment
java.awt.printerjob=sun.print.PSPrinterJob
java.class.path={home}/Development/oepe-indigo//plugins/org.eclipse.equinox.launcher_1.2.0.v20110502.jar
java.class.version=50.0
java.endorsed.dirs=/usr/lib/jvm/jdk1.6.0_45/jre/lib/endorsed
java.ext.dirs=/usr/lib/jvm/jdk1.6.0_45/jre/lib/ext:/usr/java/packages/lib/ext
java.home=/usr/lib/jvm/jdk1.6.0_45/jre
java.io.tmpdir=/tmp
java.library.path=/usr/lib/jvm/jdk1.6.0_45/jre/lib/amd64/server:/usr/lib/jvm/jdk1.6.0_45/jre/lib/amd64:/usr/lib/jvm/jdk1.6.0_45/jre/../lib/amd64:/usr/java/packages/lib/amd64:/usr/lib64:/lib64:/lib:/usr/lib
java.protocol.handler.pkgs=null|com.bea.wli.sb.resources.url|com.bea.wli.sb.resources.jca.upgrade.url|weblogic.utils|weblogic.utils|weblogic.utils|weblogic.net|weblogic.net
java.runtime.name=Java(TM) SE Runtime Environment
java.runtime.version=1.6.0_45-b06
java.specification.name=Java Platform API Specification
java.specification.vendor=Sun Microsystems Inc.
java.specification.version=1.6
java.vendor=Sun Microsystems Inc.
java.vendor.url=http://java.sun.com/
java.vendor.url.bug=http://java.sun.com/cgi-bin/bugreport.cgi
java.version=1.6.0_45
java.vm.info=mixed mode
java.vm.name=Java HotSpot(TM) 64-Bit Server VM
java.vm.specification.name=Java Virtual Machine Specification
java.vm.specification.vendor=Sun Microsystems Inc.
java.vm.specification.version=1.0
java.vm.vendor=Sun Microsystems Inc.
java.vm.version=20.45-b01
javax.rmi.CORBA.PortableRemoteObjectClass=weblogic.iiop.PortableRemoteObjectDelegateImpl
javax.rmi.CORBA.UtilClass=weblogic.iiop.UtilDelegateImpl
jna.platform.library.path=/usr/lib/x86_64-linux-gnu:/lib/x86_64-linux-gnu:/lib64:/usr/lib:/lib
line.separator=
middleware.home={home}/Oracle/Middleware
oracle.eclipse.tools.weblogic.ui.isWebLogicServer=true
org.apache.commons.logging.Log=org.apache.commons.logging.impl.NoOpLog
org.eclipse.equinox.launcher.splash.location={home}/Development/oepe-indigo/plugins/org.eclipse.platform_3.7.1.v201109091335/splash.bmp
org.eclipse.equinox.simpleconfigurator.configUrl=file:org.eclipse.equinox.simpleconfigurator/bundles.info
org.eclipse.m2e.log.dir={home}/workspace/pragma/.metadata/.plugins/org.eclipse.m2e.logback.configuration
org.eclipse.update.reconcile=false
org.omg.CORBA.ORBClass=weblogic.corba.orb.ORB
org.omg.CORBA.ORBSingletonClass=weblogic.corba.orb.ORB
org.osgi.framework.executionenvironment=OSGi/Minimum-1.0,OSGi/Minimum-1.1,OSGi/Minimum-1.2,JRE-1.1,J2SE-1.2,J2SE-1.3,J2SE-1.4,J2SE-1.5,JavaSE-1.6
org.osgi.framework.language=en
org.osgi.framework.os.name=Linux
org.osgi.framework.os.version=3.8.0
org.osgi.framework.processor=x86-64
org.osgi.framework.system.capabilities=osgi.ee; osgi.ee="OSGi/Minimum"; version:List<Version>="1.0, 1.1, 1.2",osgi.ee; osgi.ee="JavaSE"; version:List<Version>="1.0, 1.1, 1.2, 1.3, 1.4, 1.5, 1.6"
org.osgi.framework.system.packages=javax.accessibility,javax.activation,javax.activity,javax.annotation,javax.annotation.processing,javax.crypto,javax.crypto.interfaces,javax.crypto.spec,javax.imageio,javax.imageio.event,javax.imageio.metadata,javax.imageio.plugins.bmp,javax.imageio.plugins.jpeg,javax.imageio.spi,javax.imageio.stream,javax.jws,javax.jws.soap,javax.lang.model,javax.lang.model.element,javax.lang.model.type,javax.lang.model.util,javax.management,javax.management.loading,javax.management.modelmbean,javax.management.monitor,javax.management.openmbean,javax.management.relation,javax.management.remote,javax.management.remote.rmi,javax.management.timer,javax.naming,javax.naming.directory,javax.naming.event,javax.naming.ldap,javax.naming.spi,javax.net,javax.net.ssl,javax.print,javax.print.attribute,javax.print.attribute.standard,javax.print.event,javax.rmi,javax.rmi.CORBA,javax.rmi.ssl,javax.script,javax.security.auth,javax.security.auth.callback,javax.security.auth.kerberos,javax.security.auth.login,javax.security.auth.spi,javax.security.auth.x500,javax.security.cert,javax.security.sasl,javax.sound.midi,javax.sound.midi.spi,javax.sound.sampled,javax.sound.sampled.spi,javax.sql,javax.sql.rowset,javax.sql.rowset.serial,javax.sql.rowset.spi,javax.swing,javax.swing.border,javax.swing.colorchooser,javax.swing.event,javax.swing.filechooser,javax.swing.plaf,javax.swing.plaf.basic,javax.swing.plaf.metal,javax.swing.plaf.multi,javax.swing.plaf.synth,javax.swing.table,javax.swing.text,javax.swing.text.html,javax.swing.text.html.parser,javax.swing.text.rtf,javax.swing.tree,javax.swing.undo,javax.tools,javax.transaction,javax.transaction.xa,javax.xml,javax.xml.bind,javax.xml.bind.annotation,javax.xml.bind.annotation.adapters,javax.xml.bind.attachment,javax.xml.bind.helpers,javax.xml.bind.util,javax.xml.crypto,javax.xml.crypto.dom,javax.xml.crypto.dsig,javax.xml.crypto.dsig.dom,javax.xml.crypto.dsig.keyinfo,javax.xml.crypto.dsig.spec,javax.xml.datatype,javax.xml.namespace,javax.xml.parsers,javax.xml.soap,javax.xml.stream,javax.xml.stream.events,javax.xml.stream.util,javax.xml.transform,javax.xml.transform.dom,javax.xml.transform.sax,javax.xml.transform.stax,javax.xml.transform.stream,javax.xml.validation,javax.xml.ws,javax.xml.ws.handler,javax.xml.ws.handler.soap,javax.xml.ws.http,javax.xml.ws.soap,javax.xml.ws.spi,javax.xml.ws.wsaddressing,javax.xml.xpath,org.ietf.jgss,org.omg.CORBA,org.omg.CORBA_2_3,org.omg.CORBA_2_3.portable,org.omg.CORBA.DynAnyPackage,org.omg.CORBA.ORBPackage,org.omg.CORBA.portable,org.omg.CORBA.TypeCodePackage,org.omg.CosNaming,org.omg.CosNaming.NamingContextExtPackage,org.omg.CosNaming.NamingContextPackage,org.omg.Dynamic,org.omg.DynamicAny,org.omg.DynamicAny.DynAnyFactoryPackage,org.omg.DynamicAny.DynAnyPackage,org.omg.IOP,org.omg.IOP.CodecFactoryPackage,org.omg.IOP.CodecPackage,org.omg.Messaging,org.omg.PortableInterceptor,org.omg.PortableInterceptor.ORBInitInfoPackage,org.omg.PortableServer,org.omg.PortableServer.CurrentPackage,org.omg.PortableServer.POAManagerPackage,org.omg.PortableServer.POAPackage,org.omg.PortableServer.portable,org.omg.PortableServer.ServantLocatorPackage,org.omg.SendingContext,org.omg.stub.java.rmi,org.w3c.dom,org.w3c.dom.bootstrap,org.w3c.dom.css,org.w3c.dom.events,org.w3c.dom.html,org.w3c.dom.ls,org.w3c.dom.ranges,org.w3c.dom.stylesheets,org.w3c.dom.traversal,org.w3c.dom.views,org.w3c.dom.xpath,org.xml.sax,org.xml.sax.ext,org.xml.sax.helpers
org.osgi.framework.uuid=901615cd-f3f3-0012-11b6-a3bca4d97ac1
org.osgi.framework.vendor=Eclipse
org.osgi.framework.version=1.6.0
org.osgi.supports.framework.extension=true
org.osgi.supports.framework.fragment=true
org.osgi.supports.framework.requirebundle=true
os.arch=amd64
os.name=Linux
os.version=3.8.0-26-generic
osb.home={home}/Oracle/Middleware/Oracle_OSB1
osgi.arch=x86_64
osgi.bundlefile.limit=750
osgi.bundles=reference:file:javax.transaction_1.1.1.v201105210645.jar,reference:file:org.eclipse.equinox.simpleconfigurator_1.0.200.v20110502-1955.jar@1:start
osgi.bundles.defaultStartLevel=4
osgi.bundlestore={home}/Development/oepe-indigo/configuration/org.eclipse.osgi/bundles
osgi.configuration.area=file:{home}/Development/oepe-indigo/configuration/
osgi.framework=file:{home}/Development/oepe-indigo/plugins/org.eclipse.osgi_3.7.1.R37x_v20110808-1106.jar
osgi.framework.extensions=reference:file:javax.transaction_1.1.1.v201105210645.jar
osgi.framework.shape=jar
osgi.framework.version=3.7.1.R37x_v20110808-1106
osgi.frameworkClassPath=., file:{home}/Development/oepe-indigo/plugins/javax.transaction_1.1.1.v201105210645.jar
osgi.install.area=file:{home}/Development/oepe-indigo/
osgi.instance.area=file:{home}/workspace/pragma/
osgi.instance.area.default=file:{home}/workspace/
osgi.logfile={home}/workspace/pragma/.metadata/.log
osgi.manifest.cache={home}/Development/oepe-indigo/configuration/org.eclipse.osgi/manifests
osgi.nl=en_US
osgi.nl.user=en_US
osgi.os=linux
osgi.splashLocation={home}/Development/oepe-indigo/plugins/org.eclipse.platform_3.7.1.v201109091335/splash.bmp
osgi.splashPath=platform:/base/plugins/org.eclipse.platform
osgi.syspath={home}/Development/oepe-indigo/plugins
osgi.tracefile={home}/workspace/pragma/.metadata/trace.log
osgi.ws=gtk
path.separator=:
securerandom.source=file:/dev/./urandom
socksNonProxyHost=localhost
sun.arch.data.model=64
sun.boot.class.path=/usr/lib/jvm/jdk1.6.0_45/jre/lib/resources.jar:/usr/lib/jvm/jdk1.6.0_45/jre/lib/rt.jar:/usr/lib/jvm/jdk1.6.0_45/jre/lib/sunrsasign.jar:/usr/lib/jvm/jdk1.6.0_45/jre/lib/jsse.jar:/usr/lib/jvm/jdk1.6.0_45/jre/lib/jce.jar:/usr/lib/jvm/jdk1.6.0_45/jre/lib/charsets.jar:/usr/lib/jvm/jdk1.6.0_45/jre/lib/modules/jdk.boot.jar:/usr/lib/jvm/jdk1.6.0_45/jre/classes
sun.boot.library.path=/usr/lib/jvm/jdk1.6.0_45/jre/lib/amd64
sun.cpu.endian=little
sun.cpu.isalist=
sun.desktop=gnome
sun.io.unicode.encoding=UnicodeLittle
sun.java.command={home}/Development/oepe-indigo//plugins/org.eclipse.equinox.launcher_1.2.0.v20110502.jar -os linux -ws gtk -arch x86_64 -showsplash -launcher {home}/Development/oepe-indigo/eclipse -name Eclipse --launcher.library {home}/Development/oepe-indigo//plugins/org.eclipse.equinox.launcher.gtk.linux.x86_64_1.1.100.v20110505/eclipse_1407.so -startup {home}/Development/oepe-indigo//plugins/org.eclipse.equinox.launcher_1.2.0.v20110502.jar --launcher.overrideVmargs -exitdata 1e418010 -vm /usr/bin/java -vmargs -Xms256m -Xmx768m -XX:MaxPermSize=512m -Dsun.lang.ClassLoader.allowArraySyntax=true -Dweblogic.home={home}/Oracle/Middleware/wlserver_10.3 -Dharvester.home={home}/Oracle/Middleware/Oracle_OSB1/harvester -Dosb.home={home}/Oracle/Middleware/Oracle_OSB1 -Dosgi.bundlefile.limit=750 -Dosgi.nl=en_US -Dmiddleware.home={home}/Oracle/Middleware -jar {home}/Development/oepe-indigo//plugins/org.eclipse.equinox.launcher_1.2.0.v20110502.jar
sun.java.launcher=SUN_STANDARD
sun.jnu.encoding=UTF-8
sun.lang.ClassLoader.allowArraySyntax=true
sun.management.compiler=HotSpot 64-Bit Tiered Compilers
sun.os.patch.level=unknown
svnkit.http.methods=Basic
svnkit.library.gnome-keyring.enabled=false
user.country=AR
user.dir={home}/Development/oepe-indigo
user.home={home}
user.language=es
user.name={username}
user.timezone=America/Argentina/Buenos_Aires
weblogic.home={home}/Oracle/Middleware/wlserver_10.3
Thanks!!run this one in command prompt and then convert the applet using converter tool
JC_HOME = C:\java_card_kit-2_2_2\bin\
set CLASSES=%JCHOME%\lib\apduio.jar;%JC_HOME%\lib\apdutool.jar;%JC_HOME%\lib\jcwde.jar;%JC_HOME%\lib\converter.jar;%JC_HOME%\lib\scriptgen.jar;%JC_HOME%\lib\offcardverifier.jar;%JC_HOME%\lib\api.jar;%JC_HOME%\lib\installer.jar;%JC_HOME%\lib\capdump.jar;
D:\NareshPalle\jcardRE\Smart\src>java -classpath %_CLASSES% com.sun.javacard.con
verter.Converter -out EXP JCA CAP -exportpath .\exp -applet 0x0a:0x00:0x00:0x00:0x0e:0x01:0x02:
0x03:0x04:0x05:0x06 PackageName appletName 0x01:0x02:0x03:0x04:0x05:0x0
6:0x07:0x08 1.0
or
go to following directory and run the converter tool in command prompt
step 1: cd C:\java_card_kit-2_2_2\bin\
then run this command under the above directory
step 2:converter -classdir E:\Pathof Your applet class file -out EXP JCA CAP -exportpath E:\path of exp files folder -applet AID PackageName AppletName PackAID major.minor no
For more doubts mail me....
*[removed by moderator]*
Thanks and Regards
NareshPalle
Edited by: EJP on 31/03/2012 20:09: removed your email address. Unless you like spam and unless you think these forums are provided for your personal benefit only, posting an email address here serves no useful purpose whatsoever. -
How to find out which C library I am using?
On my Solaris 9 UltraSparc system,
% echo $LD_LIBRARY_PATH
/opt/gcc/3.4.4/lib:/opt/glib/2.12.1/lib:/opt/gnome/lib:/opt/openssl/0.9.7g/lib
% /usr/lib/libc.so
usage: ld.so.1 [-e option,...] dynamic-object [object args,...]
On my Solaris 10 x86 system,
% echo $LD_LIBRARY_PATH
/pkg/gcc/4.2.1/lib:/opt/gcc/current/lib:/opt/glib/2.10.1/lib:/usr/sfw/lib:/usr/lib/mps:/opt/openldap/lib:/opt/openssl/current/lib
% /usr/lib/libc.so
usage: ld.so.1 [-e option,...] dynamic-object [object args,...]
On my Linux/x86 system,
% echo $LD_LIBRARY_PATH
/opt/openssl/0.9.7g/lib:/opt/gcc/3.4.4/lib:/opt/binutils2.13/lib:/opt/glib/2.12.1/lib:/opt/java/j2sdk1.4.1_01/lib
% /lib/libc.so.6
GNU C Library stable release version 2.6.1, by Roland McGrath et al.
From the above, can one tell what C library I am linking to on the Solaris systems? If not, how can one tell? How do I know the exact location of the C library I am using?
On the Linux/x86 system, I can use gnu_get_libc_version() to find out the version of glibc I am supposedly using. But it does not work when I compiled the identical C program using gcc on the Solaris 9/UltraSparc and Solaris 10/x86 systems. If I can use gnu_get_libc_version() , does that mean for sure that my C program links to glibc? On the other hand, if the linker reports that gnu_get_libc_version() is not found, does that mean for sure that my C program is not linked to glibc?
Is there a function on the Sun libc similiar to gnu_get_libc_version()?
http://docs.sun.com/source/819-3690/Using.Libs.html says "The Solaris operating system comes with several libraries installed in /usr/lib. Most of these libraries have a C interface. Of these, the libc and libm, libraries are linked by the CC driver by default." If one wants to link to the glibc library, how to override the default? How to find out the default? Is it in some environ variable? If one changes the CC driver to gcc, does the default remain the Sun libc? And if one compiles explictly using gcc, i.e. "gcc myprog.c", is the default C library the Sun Library, or glibc?
gnu.org has a (web page for the) glibc manual but I am not able to find a Sun C Library Manual. Is there one?
Edited by: hzmonte on Jun 28, 2008 1:43 AMI'll discuss only the Sun C compiler here. For questions about gcc, look in the gcc manual, or try a gcc forum.
Run the command "ldd" on an executable file or shared library, and it will report the shared libraries that it will link to, based on any runpath in the file, and on LD_LIBRARY_PATH. Example: % echo $LD_LIBRARY_PATH
LD_LIBRARY_PATH: Undefined variable
% cc hello.c
% ldd a.out
libc.so.1 => /lib/libc.so.1
libm.so.2 => /lib/libm.so.2
/platform/SUNW,A70/lib/libc_psr.so.1 BTW, except possibly for testing, there is usually no need to set LD_LIBRARY_PATH, and setting it is usually a bad idea. For more on this topic see Rod Evans' blog:
[http://blogs.sun.com/rie/entry/tt_ld_library_path_tt]
Prefer to set a runpath in the executable so that no client needs to set LD_LIBRARY_PATH.
If you want to know what libraries the C compiler will link, based on a given command line, you can add the -v (verbose) option, which will display each subcommand. Or you can use the -### option, which shows what commands would be run. Example: % cc -### hello.c
### Note: NLSPATH = \
/opt/SUNWspro/prod/bin/../lib/locale/%L/LC_MESSAGES/%N.cat:/opt/SUNWspro/prod/bin/../../lib/locale/%L/LC_MESSAGES/%N.cat
### command line files and options (expanded):
### hello.c
/opt/SUNWspro/prod/bin/acomp -xldscope=global -i hello.c -y-fbe -y/opt/SUNWspro/prod/bin/fbe -y-xarch=generic \
-y-xmemalign=8i -y-o -yhello.o -y-verbose -y-xthreadvar=no%dynamic -y-comdat -xdbggen=no%stabs+dwarf2+usedonly \
-xdbggen=incl -y-s -m32 -fparam_ir -Qy -D__SunOS_5_10 -D__SUNPRO_C=0x590 -D__SVR4 -D__sun -D__SunOS -D__unix \
-D__sparc -D__BUILTIN_VA_ARG_INCR -D__C99FEATURES__ -Xa -D__PRAGMA_REDEFINE_EXTNAME -Dunix -Dsun \
-Dsparc -D__RESTRICT -xc99=%all,no%lib -D__FLT_EVAL_METHOD__=0 -I/opt/SUNWspro/prod/include/cc \
"-g/opt/SUNWspro/prod/bin/cc -c " -fsimple=0 -D__SUN_PREFETCH -destination_ir=yabe
### Note: LD_LIBRARY_PATH = <null>
### Note: LD_RUN_PATH = <null>
/usr/ccs/bin/ld /opt/SUNWspro/prod/lib/crti.o /opt/SUNWspro/prod/lib/crt1.o /opt/SUNWspro/prod/lib/misalign.o \
/opt/SUNWspro/prod/lib/values-xa.o hello.o -Y "P,/opt/SUNWspro/prod/lib/sparc:/opt/SUNWspro/prod/lib:/usr/ccs/lib:/lib:/usr/lib" \
-Qy -lc /opt/SUNWspro/prod/lib/crtn.oThe basic runtime support library is /lib/libc.so.1, on any version of Solaris, used by every compiler version. You can check the patch version of the library by running
showrev -p | grep <patch>
where <patch> is the patch number for the library. The patch number depends on the Solaris version. You can get more information at [http://sunsolve.sun.com].
There is no manual specifically for the C library. There is a Solaris man page for each function in the library, and you can check the C Users Guide and the Solaris Linker and Libraries Guide for additional information. -
I'm crazy!Applet and JNA Error:Library 'jnidispatch' was not found!
Hi all,
sorry to bother you, I really have no idea how to do JNA and Applet. I'm hardly mazy, man.
Every time it will throw an error to me :
Exception in thread "thread applet-JNAApplet-1" java.lang.UnsatisfiedLinkError: Library 'jnidispatch' was not found by class loader sun.plugin2.applet.JNLP2ClassLoader@291aff
at com.sun.jna.Native.getWebStartLibraryPath(Native.java:858)
at com.sun.jna.NativeLibrary.<clinit>(NativeLibrary.java:576)
at com.sun.jna.Library$Handler.<init>(Library.java:140)
at com.sun.jna.Native.loadLibrary(Native.java:372)
at com.sun.jna.Native.loadLibrary(Native.java:357)
at JNAApplet.init(JNAApplet.java:15)
at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)My program is so easy, I just want use Applet to revoke JNA and use the JNA to load a native lib.
here is the structure of my program:
Applet code :
import javax.swing.JApplet;
import javax.swing.JButton;
import javax.swing.JPanel;
import com.sun.jna.Native;
public class JNAApplet extends JApplet {
public static Kernel32 kernel32 = null;
@Override
public void init() {
createGUI();
kernel32 = (Kernel32)Native.loadLibrary("Kernel32", Kernel32.class);
if (kernel32 == null) {
System.out.println("load kernel32 fail!");
} else {
System.out.println("load kernel32 success!");
private void createGUI() {
JPanel panelCenter = new JPanel();
JButton butTest = new JButton("Test");
panelCenter.add(butTest);
setContentPane(panelCenter);
}When I run it on debug mode, it is ok! but when I deploy it , it will throw above error message to me.
My Applet html:
<html>
<head>
<title>JNA Applet</title>
</head>
<body>
<script src="deployJava.js"></script>
<script>
var attributes = { code:'JNAApplet', width:300, height:300} ;
var parameters = {jnlp_href: 'JNAApplet.jnlp'} ;
deployJava.runApplet(attributes, parameters, '1.5');
</script>
</body>
</html>File 'JNAApplet.jnlp':
<?xml version="1.0" encoding="UTF-8"?>
<jnlp spec="1.0+" codebase="" href="">
<information>
<title>JNA Applet</title>
<vendor>Steven</vendor>
</information>
<resources>
<j2se version="1.5+"
href="http://java.sun.com/products/autodl/j2se" />
<jar href="JNAApplet.jar" main="true" />
</resources>
<applet-desc
name="JNA Applet"
main-class="JNAApplet"
width="300"
height="300">
</applet-desc>
<update check="background"/>
</jnlp> I really have no idea. and I can't search any usefull infomation from Google and officer site.
Can any one help me? Thank you very much!!!!Hi AndrewThompson64:
Did you mean the JNA project? Or are you refering to JNI, or ..something else?Yes, I mean is that I wanna jna.jar to replace JNI to code with Applet. I want Applet can run native library(.dll files).
That reads like so much nonsense to me.Sorry fo that.
Was there any 'caused by' part that you trimmed? I expected to see something to do with 'Security' or 'AccessControl'.Sorry, I can't saw any 'cause by' subsentence there. This message is just gain from Applet Console.(Is there any method to gain more message?)
About 'Security' and 'AccessControl' I just modify my java.policy file to allpermission. Subsequently, I signed all jar files.
For now I have 3 jar files(all have been signed ):
--example.jar : for this little program.(code include applet and application entry)
--jna.jar
--win32-x86.jar : include kernel32.dll and jnidispatch.dll for win32 and x86.
and 2 JNLP files:
--JNAApplet.jnlp the entry is JNAApplet.class (this jnlp does not work)
--JNAApp.jnlp the entry is JNAApp.class (this jnlp works)
And for now new error message show like this:
Exception in thread "thread applet-JNAApplet-1" java.lang.UnsatisfiedLinkError: Library 'Kernel32' was not found by class loader sun.plugin2.applet.JNLP2ClassLoader@4aeb52
at com.sun.jna.Native.getWebStartLibraryPath(Native.java:858)
at com.sun.jna.NativeLibrary.loadLibrary(NativeLibrary.java:97)
at com.sun.jna.NativeLibrary.getInstance(NativeLibrary.java:228)
at com.sun.jna.Library$Handler.<init>(Library.java:140)
at com.sun.jna.Native.loadLibrary(Native.java:372)
at com.sun.jna.Native.loadLibrary(Native.java:357)
at JNAApplet.init(JNAApplet.java:12)
at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Did you mean invoke?
Revoke: To annul by withdrawing.
Invoke: To call on.Yes, you got it. Thank you.
The JNLP file is invalid. ..I was about to put my 'standard' text here, but I'm sick of saying it. Search the forum for my posts - 50% of them, at least, mention validation and how to go about it.
Also, the applet-desc requires a documentbase.Thank you, I really think I have some invalid section. But I can't find it, and you said 'Search the forum for my posts - 50% of them...' , I can read the JNLP structure on site of sun and I can to read you post too(I'm doing like this).*I only want to know about how to load "native lib like *.dll" properly*.
What 'officer site'?I mean jna project site. Sorry for ambiguity.
Please fix that sticky '!' key. One '!' indicates astonishment, while two or more typically indicates a bozo. Thanks for your advice. Because I tried to find solution do my best lasting two days. I got nothing. I'm sadness.
here post my new files:
import javax.swing.JFrame;
import com.sun.jna.Native;
public class JNAApp {
public static Kernel32 kernel32 = null;
public static void main(String[] args) {
// TODO Auto-generated method stub
kernel32 = (Kernel32)Native.loadLibrary("Kernel32", Kernel32.class);
JFrame frame = new JFrame();
frame.setSize(500, 500);
frame.setVisible(true);
import javax.swing.JApplet;
import javax.swing.JButton;
import javax.swing.JPanel;
import com.sun.jna.Native;
public class JNAApplet extends JApplet {
public static Kernel32 kernel32 = null;
public void init() {
createGUI();
kernel32 = (Kernel32)Native.loadLibrary("Kernel32", Kernel32.class);
private void createGUI() {
JPanel panelCenter = new JPanel();
JButton butTest = new JButton("Test");
panelCenter.add(butTest);
setContentPane(panelCenter);
<?xml version="1.0" encoding="UTF-8"?>
<jnlp spec="1.0+" codebase="" href="">
<information>
<title>JNA Applet</title>
<vendor>Steven</vendor>
</information>
<resources>
<j2se version="1.5+"
href="http://java.sun.com/products/autodl/j2se" />
<jar href="JNAApplet.jar" main="true"/>
<jar href="jna.jar"/>
</resources>
<resources os="Windows" arch="x86">
<nativelib href="win32-x86.jar"/>
<nativelib href="kernel32.jar"/>
</resources>
<applet-desc
documentBase=""
name = "success"
main-class="JNAApplet" width = "200" height = "200">
</applet-desc>
<update check="background"/>
<security>
<all-permissions/>
</security>
</jnlp>
<?xml version="1.0" encoding="UTF-8"?>
<jnlp spec="1.0+" codebase="" href="">
<information>
<title>JNA Applet</title>
<vendor>Steven</vendor>
</information>
<resources>
<j2se version="1.5+"
href="http://java.sun.com/products/autodl/j2se" />
<jar href="JNAApplet.jar" main="true"/>
<jar href="jna.jar"/>
</resources>
<resources os="Windows" arch="x86">
<nativelib href="win32-x86.jar"/>
<nativelib href="kernel32.jar"/>
</resources>
<application-desc
main-class="JNAApp">
</application-desc>
<update check="background"/>
<security>
<all-permissions/>
</security>
</jnlp> Thanks & Best Regards,
Su Heng -
hi;
While starting, Sun L100 library is giving an error: CHK 262F. and hanging. it's a pysical error about X -Axis. what can i do for this ?
thanks.It probably has a broken hardware component.
Contact Sun's techsupport and get repairs.
If there is coverage by a Service Contract, then it'll be taken care of.
If there isn't such coverage, then expect to pay for service.
By the way, your forum posting is slightly off-topic and outside the scope of this forum..
The L100 is a tape library.
http://sunsolve.sun.com/handbook_pub/Systems/L100/L100.html
It's a peripheral.
It's a storage peripheral.
This is a forum for servers, not for peripherals.
(There are at least two other forums where it may have been more suited.)
Maybe you are looking for
-
I have a Power Mac G4 (2004) and want to transfer all my files to a new MacBook Pro 15.4". Can this be done thru firewire cable or do I have to transfer to an external Firewire 800 hard drive first?
-
ABAP OO - Creating/copying interface
Dear, I've lots of experience in 'native' ABAP, but I'm new to OO, hence these 2, perhaps somewhat strange questions. 1. When I look at a standard SAP interface using SE24 (e.g. IF_BCM_SAVE), I see it contains some methods, but I expect to be able to
-
Installing Acrobat Pro with Creative Suite 6 Design and Web Premium
Good day. We have the license for Adobe Creative Suite 6 Design and Web Premium. Adobe Acrobat Pro is in installation. But when I installed it, Acrobat asked a license key, and did not want to work with our license key. Other apps work good. Can you
-
AWE32: installing a CD-ROM drive
I have Packard Bell PB-60 (486). I have SB AWE 32 CT3990 copyright 995. I removed the 5.25 floppy dri've. In its place, I installed CD-ROM dri've.-- Matsu**bleep**a-Kotobuki CR-563-B OCT 993-- receive power from old 5.25 floppy dri've plug-- I/O via
-
hi friends, can any1 pls tell the name of the FM which asks where to download the file. i am converting smartform to pdf and using FM convert_otf_2_pdf to convert.i want a pop-up window which will ask me where to store the