Re: [jnc-users] LDAP with jnc
Status: Beta
Brought to you by:
soapy
From: <no...@sm...> - 2007-10-17 10:00:44
|
Marco Trudel schrieb: > Marco Trudel wrote: >> Norman Rieß wrote: >>> Marco Trudel schrieb: >>>> These are dependencies that would lead to a >>>> "ClassNotFoundException" if run into while using the library in a >>>> Sun JRE. You can avoid having to solve all reference when compiling >>>> with JNC by adding "-findirect-dispatch" as custom GCJ flag. It >>>> will then search dependencies at runtime. >>>> >>>> >>> Ok, thank you. That helped with the dependencies. Now there is an >>> error in the main compilation step. >>> >>> creating "LdapInfo" for Linux >>> - processing ldap.jar >>> - processing LdapInfo.jar >>> - main compilation step >>> /tmp/ccUywGVz.o: In function `main':ccIKMEUi.i:(.text+0x30): >>> undefined reference to `JvRunMainName' >>> collect2: ld returned 1 exit status >>> >>> failed... >>> >>> Seems like you encountered this error before. That's what google >>> said, anyway :-) >> >> Is this a clean compilation or are there some precompiled non >> indirect-dispatch objects used (from the jars)? It looks like this is >> the case here... > > Sorry, I assumed you're compiling for Windows. Now I see it's Linux ;-) > As you said already, I run into this problem before. Just follow the > discussion google shows you. It's something about editing libgcj.spec, > but I don't remember it exactly now. > > > Marco > Yes, i applied *lib: %{s-bc-abi:} -lgcj -lm -lpthread -lrt -ldl %(libgcc) %(liborig) instead of *lib: %{static-libgcj:-non_shared} %{s-bc-abi:-lgcj_bc;:-lgcj} %{static-libgcj:-call_shared} -lm -lpthread -lrt -ldl %(libgcc) %(liborig) It compiles now. Now i have to work on those dependencies. Thank you. Norman |