Bráulio Gergull wrote:
Hi Richard & list,
Thanx for the reply,
On 12/8/05, Richard Megginson <rmeggins(a)redhat.com> wrote:
>Bráulio Gergull wrote:
>
>
>
>>But now when I try to build ldapserver it fails with the following error:
>>
>>==== Starting LDAP Server Console ==========
>>
>>gmake BUILD_OPT=1 NO_JAVA=1 buildDirectoryConsole
>>gmake[1]: Entering directory `/mnt/hdd2/fds/ldapserver'
>>cd ldap/admin/src/java/com/netscape/xmltools; gmake BUILD_OPT=1
>>NO_JAVA=1 -w package
>>gmake[2]: Entering directory
>>`/mnt/hdd2/fds/ldapserver/ldap/admin/src/java/com/netscape/xmltools'
>>javac -deprecation -classpath
>>
>>
>>
>"/mnt/hdd2/fds/ldapserver/ldap/admin/src/java:../../../../../../../../dist/classes/ldapjdk.jar:../../../../../../../built/java/optimize/xmltools:../../../../../../../../dist/classes/crimson.jar"
>
>
>>-d ../../../../../../../built/java/optimize/xmltools DSML2LDIF.java
>>DSML2LDIF.java:44: package netscape.ldap does not exist
>>
>>
>Try this:
>cd <sources>/ldapserver/ldap/admin/src/java/com/netscape/xmltools
>ls -al ../../../../../../../../dist/classes
>
>
>
OK, I did it:
ls -al ../../../../../../../../dist/classes
/bin/ls: ../../../../../../../../dist/classes: file or folder not found
Great, than i did:
mkdir -p <source>/dist/classes
cp <source>/built/package/java/ldapjdk.jar <source>/dist/classes/
Now it passes the above error and successfully builds LDAP Server Console
But then it stops shortly after on the following error:
==== Starting LDAP Server Clients ==========
gmake BUILD_OPT=1 NO_JAVA=1 buildDirectoryClients
gmake[1]: Entering directory `/mnt/hdd2/fds/ldapserver'
cd ldap/clients; gmake BUILD_OPT=1 NO_JAVA=1 _dsmlgw
gmake[2]: Entering directory `/mnt/hdd2/fds/ldapserver/ldap/clients'
cd dsmlgw; gmake BUILD_OPT=1 NO_JAVA=1
gmake[3]: Entering directory `/mnt/hdd2/fds/ldapserver/ldap/clients/dsmlgw'
cp: unable to stat em `../../../../dist/classes//lib/axis.jar': file
or folder not found
But I could not find axis.jar in the source build tree:
find <source>/ -name axis.jar
returned empty :(
These and other jar files are needed to build the DSML gateway. If you
want to build it, you should grab the following files and put them the
<source>/dsmlgwjars directory: activation.jar axis.jar jaxrpc.jar
saaj.jar xercesImpl.jar xml-apis.jar
You can use wget like this:
wget -P <source>/dsmlgwjars
http://directory.fedora.redhat.com/download/dsmlgwjars-1.0/activation.jar
wget -P <source>/dsmlgwjars
http://directory.fedora.redhat.com/download/dsmlgwjars-1.0/axis.jar
wget -P <source>/dsmlgwjars
http://directory.fedora.redhat.com/download/dsmlgwjars-1.0/jaxrpc.jar
wget -P <source>/dsmlgwjars
http://directory.fedora.redhat.com/download/dsmlgwjars-1.0/saaj.jar
wget -P <source>/dsmlgwjars
http://directory.fedora.redhat.com/download/dsmlgwjars-1.0/xercesImpl.jar
wget -P <source>/dsmlgwjars
http://directory.fedora.redhat.com/download/dsmlgwjars-1.0/xml-apis.jar
If you just want to skip the dsmlgw (it's not required) you can edit
ldapserver/nsconfig.mk - close to the top of the file, where it says
# all of these things are on by default for internal builds
ifdef INTERNAL_BUILD
USE_ADMINSERVER:=1
USE_CONSOLE:=1
USE_DSMLGW:=1
USE_ORGCHART:=1
USE_DSGW:=1
USE_JAVATOOLS:=1
USE_SETUPUTIL:=1
else
USE_ADMINSERVER:=1
USE_CONSOLE:=1
USE_DSMLGW:=1
^^^^^^^ set this one to 0 ^^^^^^^^
USE_ORGCHART:=1
USE_DSGW:=1
USE_JAVATOOLS:=1
USE_SETUPUTIL:=1
GET_JAVA_FROM_PATH := 1
GET_ANT_FROM_PATH := 1
USE_PERL_FROM_PATH := 1
BUILD_JAVA_CODE := 1
endif
Any help is appreciated, thanx in advance,
Braulio Gergull
--
Fedora-directory-devel mailing list
Fedora-directory-devel(a)redhat.com
https://www.redhat.com/mailman/listinfo/fedora-directory-devel