Page 1 of 2 1 2 LastLast
Results 1 to 15 of 21

Thread: Unable to compile Ice

  1. #1
    YuGiOhJCJ's Avatar
    YuGiOhJCJ is offline Registered User
    Name: Chris REDFIELD
    Organization: YuGiOhJCJ
    Project: mumble
    Join Date
    Jan 2009
    Location
    France
    Posts
    11

    Angry Unable to compile Ice

    Hello,
    I am on Slackware 12.1 operating system and Ice isn't include in this distro.
    In order to compile Ice, I have installed :
    • mcpp-2.7.2
    • jdk-6u6
    • apache-ant-1.7.1
    I try to compile Ice-3.3.0, but there is an error :
    Code:
    ...
    Buildfile: build.xml
    
    config-init-warn:
    
    config-init:
    
    tasks:
    
    task-init:
    
    generate:
    skipping BuiltinSequences.ice
    skipping Communicator.ice
    skipping Connection.ice
    skipping Current.ice
    skipping Endpoint.ice
    skipping FacetMap.ice
    skipping Identity.ice
    skipping ImplicitContext.ice
    skipping LocalException.ice
    skipping Locator.ice
    skipping Logger.ice
    skipping ObjectAdapter.ice
    skipping ObjectFactory.ice
    skipping Plugin.ice
    skipping Process.ice
    skipping Properties.ice
    skipping Router.ice
    skipping ServantLocator.ice
    skipping SliceChecksumDict.ice
    skipping Stats.ice
    skipping Communicator.ice
    skipping Connection.ice
    skipping Current.ice
    skipping Endpoint.ice
    skipping FacetMap.ice
    skipping Identity.ice
    skipping ImplicitContext.ice
    skipping LocalException.ice
    skipping Locator.ice
    skipping Logger.ice
    skipping ObjectAdapter.ice
    skipping ObjectFactory.ice
    skipping Plugin.ice
    skipping Process.ice
    skipping Properties.ice
    skipping Router.ice
    skipping ServantLocator.ice
    skipping SliceChecksumDict.ice
    skipping Stats.ice
    skipping BackgroundSaveEvictor.ice
    skipping CatalogData.ice
    skipping Connection.ice
    skipping DB.ice
    skipping Evictor.ice
    skipping EvictorStorage.ice
    skipping Exception.ice
    skipping Transaction.ice
    skipping TransactionalEvictor.ice
    skipping Communicator.ice
    skipping Connection.ice
    skipping Current.ice
    skipping Endpoint.ice
    skipping FacetMap.ice
    skipping Identity.ice
    skipping ImplicitContext.ice
    skipping LocalException.ice
    skipping Locator.ice
    skipping Logger.ice
    skipping ObjectAdapter.ice
    skipping ObjectFactory.ice
    skipping Plugin.ice
    skipping Process.ice
    skipping Properties.ice
    skipping Router.ice
    skipping ServantLocator.ice
    skipping SliceChecksumDict.ice
    skipping Stats.ice
    skipping BackgroundSaveEvictor.ice
    skipping CatalogData.ice
    skipping Connection.ice
    skipping DB.ice
    skipping Evictor.ice
    skipping EvictorStorage.ice
    skipping Exception.ice
    skipping Transaction.ice
    skipping TransactionalEvictor.ice
    skipping PingObject.ice
    /home/yugiohjcj/Ice-3.3.0/java/../cpp/bin/slice2freezej  --output-dir /home/yugiohjcj/Ice-3.3.0/java/generated -I/home/yugiohjcj/Ice-3.3.0/slice --dict Freeze.Catalog,string,Freeze::CatalogData /home/yugiohjcj/Ice-3.3.0/slice/Freeze/CatalogData.ice
    /home/yugiohjcj/Ice-3.3.0/slice/Freeze/CatalogData.ice:0: warning: Unknown encoding: fr_FR@euro
        
    make[1]: quittant le r?pertoire ? /home/yugiohjcj/Ice-3.3.0/java ?
    BUILD FAILED
    java.lang.ArrayIndexOutOfBoundsException: 0
            at SliceTask.parseDependencies(Unknown Source)
            at Slice2FreezeJTask.execute(Unknown Source)
            at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
            at sun.reflect.GeneratedMethodAccessor1.invoke(Unknown Source)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:597)
            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)
    
    Total time: 2 seconds
    Do you know what is the problem?
    Thank you.
    Last edited by YuGiOhJCJ; 01-13-2009 at 03:06 PM. Reason: apache-ant-1.7.1 forgot

  2. #2
    dwayne's Avatar
    dwayne is offline ZeroC Staff
    Name: Dwayne Boone
    Organization: ZeroC, Inc.
    Project: Internet Communications Engine
    Join Date
    Jan 2005
    Location
    St. John's, Newfoundland
    Posts
    397
    I believe the cause of this issue might be a bug in mcpp 2.7.2. Could you try applying the attached patch to mcpp 2.7.2

    Code:
    $ cd mcpp-2.7.2
    $ patch -p0 < mcpp-2.7.2.patch.txt
    and then rebuild mcpp and Ice. Please let us know if this solves your problem.
    Attached Files Attached Files

  3. #3
    YuGiOhJCJ's Avatar
    YuGiOhJCJ is offline Registered User
    Name: Chris REDFIELD
    Organization: YuGiOhJCJ
    Project: mumble
    Join Date
    Jan 2009
    Location
    France
    Posts
    11

    Unhappy With the patch

    Thanks for the patch.
    With this mcpp patch, the mcpp & Ice rebuild : the problem is not resolved.
    I think it's the same error :
    Code:
    Buildfile: build.xml
    
    config-init-warn:
    
    config-init:
    
    tasks:
    Created dir: /home/yugiohjcj/Ice-3.3.0/java/lib/ant
    Compiling 5 source files to /home/yugiohjcj/Ice-3.3.0/java/lib/ant
    Note: Some input files use unchecked or unsafe operations.
    Note: Recompile with -Xlint:unchecked for details.
    Building jar: /home/yugiohjcj/Ice-3.3.0/java/lib/ant-ice.jar
    
    task-init:
    
    generate:
    Created dir: /home/yugiohjcj/Ice-3.3.0/java/generated
    /home/yugiohjcj/Ice-3.3.0/java/../cpp/bin/slice2java  --output-dir /home/yugiohjcj/Ice-3.3.0/java/generated -I/home/yugiohjcj/Ice-3.3.0/slice --stream --ice /home/yugiohjcj/Ice-3.3.0/slice/Ice/BuiltinSequences.ice
    /home/yugiohjcj/Ice-3.3.0/slice/Ice/BuiltinSequences.ice:0: warning: Unknown encoding: fr_FR@euro
        
    /home/yugiohjcj/Ice-3.3.0/java/../cpp/bin/slice2java  --output-dir /home/yugiohjcj/Ice-3.3.0/java/generated -I/home/yugiohjcj/Ice-3.3.0/slice --ice /home/yugiohjcj/Ice-3.3.0/slice/Ice/Communicator.ice /home/yugiohjcj/Ice-3.3.0/slice/Ice/Connection.ice /home/yugiohjcj/Ice-3.3.0/slice/Ice/Current.ice /home/yugiohjcj/Ice-3.3.0/slice/Ice/Endpoint.ice /home/yugiohjcj/Ice-3.3.0/slice/Ice/FacetMap.ice /home/yugiohjcj/Ice-3.3.0/slice/Ice/Identity.ice /home/yugiohjcj/Ice-3.3.0/slice/Ice/ImplicitContext.ice /home/yugiohjcj/Ice-3.3.0/slice/Ice/LocalException.ice /home/yugiohjcj/Ice-3.3.0/slice/Ice/Locator.ice /home/yugiohjcj/Ice-3.3.0/slice/Ice/Logger.ice /home/yugiohjcj/Ice-3.3.0/slice/Ice/ObjectAdapter.ice /home/yugiohjcj/Ice-3.3.0/slice/Ice/ObjectFactory.ice /home/yugiohjcj/Ice-3.3.0/slice/Ice/Plugin.ice /home/yugiohjcj/Ice-3.3.0/slice/Ice/Process.ice /home/yugiohjcj/Ice-3.3.0/slice/Ice/Properties.ice /home/yugiohjcj/Ice-3.3.0/slice/Ice/Router.ice /home/yugiohjcj/Ice-3.3.0/slice/Ice/ServantLocator.ice /home/yugiohjcj/Ice-3.3.0/slice/Ice/SliceChecksumDict.ice /home/yugiohjcj/Ice-3.3.0/slice/Ice/Stats.ice /home/yugiohjcj/Ice-3.3.0/slice/Freeze/BackgroundSaveEvictor.ice /home/yugiohjcj/Ice-3.3.0/slice/Freeze/CatalogData.ice /home/yugiohjcj/Ice-3.3.0/slice/Freeze/Connection.ice /home/yugiohjcj/Ice-3.3.0/slice/Freeze/DB.ice /home/yugiohjcj/Ice-3.3.0/slice/Freeze/Evictor.ice /home/yugiohjcj/Ice-3.3.0/slice/Freeze/EvictorStorage.ice /home/yugiohjcj/Ice-3.3.0/slice/Freeze/Exception.ice /home/yugiohjcj/Ice-3.3.0/slice/Freeze/Transaction.ice /home/yugiohjcj/Ice-3.3.0/slice/Freeze/TransactionalEvictor.ice /home/yugiohjcj/Ice-3.3.0/java/src/Freeze/PingObject.ice
    /home/yugiohjcj/Ice-3.3.0/slice/Ice/Communicator.ice:0: warning: Unknown encoding: fr_FR@euro
        /home/yugiohjcj/Ice-3.3.0/slice/Ice/Connection.ice:0: warning: Unknown encoding: fr_FR@euro
        /home/yugiohjcj/Ice-3.3.0/slice/Ice/Current.ice:0: warning: Unknown encoding: fr_FR@euro
        /home/yugiohjcj/Ice-3.3.0/slice/Ice/Endpoint.ice:0: warning: Unknown encoding: fr_FR@euro
        /home/yugiohjcj/Ice-3.3.0/slice/Ice/FacetMap.ice:0: warning: Unknown encoding: fr_FR@euro
        /home/yugiohjcj/Ice-3.3.0/slice/Ice/Identity.ice:0: warning: Unknown encoding: fr_FR@euro
        /home/yugiohjcj/Ice-3.3.0/slice/Ice/ImplicitContext.ice:0: warning: Unknown encoding: fr_FR@euro
        /home/yugiohjcj/Ice-3.3.0/slice/Ice/LocalException.ice:0: warning: Unknown encoding: fr_FR@euro
        /home/yugiohjcj/Ice-3.3.0/slice/Ice/Locator.ice:0: warning: Unknown encoding: fr_FR@euro
        /home/yugiohjcj/Ice-3.3.0/slice/Ice/Logger.ice:0: warning: Unknown encoding: fr_FR@euro
        /home/yugiohjcj/Ice-3.3.0/slice/Ice/ObjectAdapter.ice:0: warning: Unknown encoding: fr_FR@euro
        /home/yugiohjcj/Ice-3.3.0/slice/Ice/ObjectFactory.ice:0: warning: Unknown encoding: fr_FR@euro
        /home/yugiohjcj/Ice-3.3.0/slice/Ice/Plugin.ice:0: warning: Unknown encoding: fr_FR@euro
        /home/yugiohjcj/Ice-3.3.0/slice/Ice/Process.ice:0: warning: Unknown encoding: fr_FR@euro
        /home/yugiohjcj/Ice-3.3.0/slice/Ice/Properties.ice:0: warning: Unknown encoding: fr_FR@euro
        /home/yugiohjcj/Ice-3.3.0/slice/Ice/Router.ice:0: warning: Unknown encoding: fr_FR@euro
        /home/yugiohjcj/Ice-3.3.0/slice/Ice/ServantLocator.ice:0: warning: Unknown encoding: fr_FR@euro
        /home/yugiohjcj/Ice-3.3.0/slice/Ice/SliceChecksumDict.ice:0: warning: Unknown encoding: fr_FR@euro
        /home/yugiohjcj/Ice-3.3.0/slice/Ice/Stats.ice:0: warning: Unknown encoding: fr_FR@euro
        /home/yugiohjcj/Ice-3.3.0/slice/Freeze/BackgroundSaveEvictor.ice:0: warning: Unknown encoding: fr_FR@euro
        /home/yugiohjcj/Ice-3.3.0/slice/Freeze/CatalogData.ice:0: warning: Unknown encoding: fr_FR@euro
        /home/yugiohjcj/Ice-3.3.0/slice/Freeze/Connection.ice:0: warning: Unknown encoding: fr_FR@euro
        /home/yugiohjcj/Ice-3.3.0/slice/Freeze/DB.ice:0: warning: Unknown encoding: fr_FR@euro
        /home/yugiohjcj/Ice-3.3.0/slice/Freeze/Evictor.ice:0: warning: Unknown encoding: fr_FR@euro
        /home/yugiohjcj/Ice-3.3.0/slice/Freeze/EvictorStorage.ice:0: warning: Unknown encoding: fr_FR@euro
        /home/yugiohjcj/Ice-3.3.0/slice/Freeze/Exception.ice:0: warning: Unknown encoding: fr_FR@euro
        /home/yugiohjcj/Ice-3.3.0/slice/Freeze/Transaction.ice:0: warning: Unknown encoding: fr_FR@euro
        /home/yugiohjcj/Ice-3.3.0/slice/Freeze/TransactionalEvictor.ice:0: warning: Unknown encoding: fr_FR@euro
        /home/yugiohjcj/Ice-3.3.0/java/src/Freeze/PingObject.ice:0: warning: Unknown encoding: fr_FR@euro
        
    /home/yugiohjcj/Ice-3.3.0/java/../cpp/bin/slice2freezej  --output-dir /home/yugiohjcj/Ice-3.3.0/java/generated -I/home/yugiohjcj/Ice-3.3.0/slice --dict Freeze.Catalog,string,Freeze::CatalogData /home/yugiohjcj/Ice-3.3.0/slice/Freeze/CatalogData.ice
    /home/yugiohjcj/Ice-3.3.0/slice/Freeze/CatalogData.ice:0: warning: Unknown encoding: fr_FR@euro
        
    
    BUILD FAILED
    java.lang.ArrayIndexOutOfBoundsException: 0
            at SliceTask.parseDependencies(Unknown Source)
            at Slice2FreezeJTask.execute(Unknown Source)
            at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:597)
            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)
    
    Total time: 9 seconds
    make[1]: *** [all] Erreur 1
    make[1]: quittant le r?pertoire ? /home/yugiohjcj/Ice-3.3.0/java ?
    make: *** [all] Erreur 1

  4. #4
    dwayne's Avatar
    dwayne is offline ZeroC Staff
    Name: Dwayne Boone
    Organization: ZeroC, Inc.
    Project: Internet Communications Engine
    Join Date
    Jan 2005
    Location
    St. John's, Newfoundland
    Posts
    397
    Here is another patch for you to try, this time to be applied to Ice-3.3.0 source distribution:

    Code:
    $ cd Ice-3.3.0
    $ patch -p0 < patch.utf8.txt
    Again please let us know if this change helps.
    Attached Files Attached Files

  5. #5
    YuGiOhJCJ's Avatar
    YuGiOhJCJ is offline Registered User
    Name: Chris REDFIELD
    Organization: YuGiOhJCJ
    Project: mumble
    Join Date
    Jan 2009
    Location
    France
    Posts
    11

    patch on Ice

    Thanks for this new patch.
    Now I have :
    Code:
    Buildfile: build.xml
    
    config-init-warn:
    
    config-init:
    
    tasks:
    
    task-init:
    
    generate:
    skipping BuiltinSequences.ice
    skipping Communicator.ice
    skipping Connection.ice
    skipping Current.ice
    skipping Endpoint.ice
    skipping FacetMap.ice
    skipping Identity.ice
    skipping ImplicitContext.ice
    skipping LocalException.ice
    skipping Locator.ice
    skipping Logger.ice
    skipping ObjectAdapter.ice
    skipping ObjectFactory.ice
    skipping Plugin.ice
    skipping Process.ice
    skipping Properties.ice
    skipping Router.ice
    skipping ServantLocator.ice
    skipping SliceChecksumDict.ice
    skipping Stats.ice
    skipping Communicator.ice
    skipping Connection.ice
    skipping Current.ice
    skipping Endpoint.ice
    skipping FacetMap.ice
    skipping Identity.ice
    skipping ImplicitContext.ice
    skipping LocalException.ice
    skipping Locator.ice
    skipping Logger.ice
    skipping ObjectAdapter.ice
    skipping ObjectFactory.ice
    skipping Plugin.ice
    skipping Process.ice
    skipping Properties.ice
    skipping Router.ice
    skipping ServantLocator.ice
    skipping SliceChecksumDict.ice
    skipping Stats.ice
    skipping BackgroundSaveEvictor.ice
    skipping CatalogData.ice
    skipping Connection.ice
    skipping DB.ice
    skipping Evictor.ice
    skipping EvictorStorage.ice
    skipping Exception.ice
    skipping Transaction.ice
    skipping TransactionalEvictor.ice
    skipping Communicator.ice
    skipping Connection.ice
    skipping Current.ice
    skipping Endpoint.ice
    skipping FacetMap.ice
    skipping Identity.ice
    skipping ImplicitContext.ice
    skipping LocalException.ice
    skipping Locator.ice
    skipping Logger.ice
    skipping ObjectAdapter.ice
    skipping ObjectFactory.ice
    skipping Plugin.ice
    skipping Process.ice
    skipping Properties.ice
    skipping Router.ice
    skipping ServantLocator.ice
    skipping SliceChecksumDict.ice
    skipping Stats.ice
    skipping BackgroundSaveEvictor.ice
    skipping CatalogData.ice
    skipping Connection.ice
    skipping DB.ice
    skipping Evictor.ice
    skipping EvictorStorage.ice
    skipping Exception.ice
    skipping Transaction.ice
    skipping TransactionalEvictor.ice
    skipping PingObject.ice
    /home/yugiohjcj/Ice-3.3.0/java/../cpp/bin/slice2freezej  --output-dir /home/yugiohjcj/Ice-3.3.0/java/generated -I/home/yugiohjcj/Ice-3.3.0/slice --dict Freeze.Catalog,string,Freeze::CatalogData /home/yugiohjcj/Ice-3.3.0/slice/Freeze/CatalogData.ice
    /home/yugiohjcj/Ice-3.3.0/java/../cpp/bin/slice2freezej  --ice --output-dir /home/yugiohjcj/Ice-3.3.0/java/generated -I/home/yugiohjcj/Ice-3.3.0/slice --dict Freeze.CatalogIndexList,string,Ice::StringSeq /home/yugiohjcj/Ice-3.3.0/slice/Ice/BuiltinSequences.ice
    /home/yugiohjcj/Ice-3.3.0/java/../cpp/bin/slice2java  --output-dir /home/yugiohjcj/Ice-3.3.0/java/generated -I/home/yugiohjcj/Ice-3.3.0/slice --checksum Glacier2.SliceChecksums --ice /home/yugiohjcj/Ice-3.3.0/slice/Glacier2/PermissionsVerifier.ice /home/yugiohjcj/Ice-3.3.0/slice/Glacier2/Router.ice /home/yugiohjcj/Ice-3.3.0/slice/Glacier2/SSLInfo.ice /home/yugiohjcj/Ice-3.3.0/slice/Glacier2/Session.ice
    /home/yugiohjcj/Ice-3.3.0/java/../cpp/bin/slice2java  --output-dir /home/yugiohjcj/Ice-3.3.0/java/generated -I/home/yugiohjcj/Ice-3.3.0/slice --checksum IceBox.SliceChecksums --ice /home/yugiohjcj/Ice-3.3.0/slice/IceBox/IceBox.ice
    /home/yugiohjcj/Ice-3.3.0/java/../cpp/bin/slice2java  --output-dir /home/yugiohjcj/Ice-3.3.0/java/generated -I/home/yugiohjcj/Ice-3.3.0/slice --checksum IceGrid.SliceChecksums --ice /home/yugiohjcj/Ice-3.3.0/slice/IceGrid/Admin.ice /home/yugiohjcj/Ice-3.3.0/slice/IceGrid/Descriptor.ice /home/yugiohjcj/Ice-3.3.0/slice/IceGrid/Exception.ice /home/yugiohjcj/Ice-3.3.0/slice/IceGrid/FileParser.ice /home/yugiohjcj/Ice-3.3.0/slice/IceGrid/Locator.ice /home/yugiohjcj/Ice-3.3.0/slice/IceGrid/Observer.ice /home/yugiohjcj/Ice-3.3.0/slice/IceGrid/Query.ice /home/yugiohjcj/Ice-3.3.0/slice/IceGrid/Registry.ice /home/yugiohjcj/Ice-3.3.0/slice/IceGrid/Session.ice /home/yugiohjcj/Ice-3.3.0/slice/IceGrid/UserAccountMapper.ice
    /home/yugiohjcj/Ice-3.3.0/java/../cpp/bin/slice2java  --output-dir /home/yugiohjcj/Ice-3.3.0/java/generated -I/home/yugiohjcj/Ice-3.3.0/slice --checksum IceStorm.SliceChecksums --ice /home/yugiohjcj/Ice-3.3.0/slice/IceStorm/IceStorm.ice
    
    ice-compile:
    Created dir: /home/yugiohjcj/Ice-3.3.0/java/depcache
    Compiling 1069 source files to /home/yugiohjcj/Ice-3.3.0/java/lib
    /home/yugiohjcj/Ice-3.3.0/java/src/Freeze/Map.java:1385: package com.sleepycat.db does not exist
            implements com.sleepycat.db.SecondaryKeyCreator, java.util.Comparator, KeyCodec
                                       ^
    /home/yugiohjcj/Ice-3.3.0/java/src/Freeze/Map.java:1044: package com.sleepycat.db does not exist
        getFirstOrLastKey(com.sleepycat.db.Database db, String dbName, byte[] key, boolean first)
                                          ^
    /home/yugiohjcj/Ice-3.3.0/java/src/Freeze/Map.java:1165: package com.sleepycat.db does not exist
        getImpl(com.sleepycat.db.DatabaseEntry dbKey)
                                ^
    /home/yugiohjcj/Ice-3.3.0/java/src/Freeze/Map.java:1230: package com.sleepycat.db does not exist
        putImpl(com.sleepycat.db.DatabaseEntry dbKey, Object value)
                                ^
    /home/yugiohjcj/Ice-3.3.0/java/src/Freeze/Map.java:1294: package com.sleepycat.db does not exist
        removeImpl(com.sleepycat.db.DatabaseEntry dbKey)
                                   ^
    /home/yugiohjcj/Ice-3.3.0/java/src/Freeze/Map.java:1391: package com.sleepycat.db does not exist
            createSecondaryKey(com.sleepycat.db.SecondaryDatabase secondary,
                                               ^
    /home/yugiohjcj/Ice-3.3.0/java/src/Freeze/Map.java:1392: package com.sleepycat.db does not exist
                               com.sleepycat.db.DatabaseEntry key,
                                               ^
    ...
    /home/yugiohjcj/Ice-3.3.0/java/src/Freeze/Map.java:885: package com.sleepycat.db does not exist
                    com.sleepycat.db.Transaction txn = _connection.dbTxn();
                                    ^
    /home/yugiohjcj/Ice-3.3.0/java/src/Freeze/Map.java:923: package com.sleepycat.db does not exist
                catch(com.sleepycat.db.DeadlockException dx)
                                      ^
    /home/yugiohjcj/Ice-3.3.0/java/src/Freeze/Map.java:935: package com.sleepycat.db does not exist
                catch(com.sleepycat.db.DatabaseException dx)
                                      ^
    /home/yugiohjcj/Ice-3.3.0/java/src/Freeze/Map.java:1058: package com.sleepycat.db does not exist
            com.sleepycat.db.DatabaseEntry dbKey = key == null ?
                            ^
    /home/yugiohjcj/Ice-3.3.0/java/generated/Glacier2/_RouterDisp.java:246: warning: [deprecation] ___addProxy(Ice.Router,IceInternal.Incoming,Ice.Current) in Ice._RouterDisp has been deprecated
                    return Ice._RouterDisp.___addProxy(this, in, __current);
                                          ^
    Note: Some input files use unchecked or unsafe operations.
    Note: Recompile with -Xlint:unchecked for details.
    100 errors
    1 warning
    
    BUILD FAILED
    /home/yugiohjcj/Ice-3.3.0/java/build.xml:180: Compile failed; see the compiler error output for details.
    
    Total time: 25 seconds
    make[1]: *** [all] Erreur 1
    make[1]: quittant le r?pertoire ? /home/yugiohjcj/Ice-3.3.0/java ?
    make: *** [all] Erreur 1
    New patch?

  6. #6
    bernard's Avatar
    bernard is offline ZeroC Staff
    Name: Bernard Normier
    Organization: ZeroC, Inc.
    Project: Ice
    Join Date
    Feb 2003
    Location
    Palm Beach Gardens, FL
    Posts
    1,294
    This one does not require a patch .

    You just need to put db.jar or db-4.6.21.jar in your CLASSPATH. Since Ice 3.3.0 is tested with Berkeley DB 4.6.21, I recommend using this version as well.

    Cheers,
    Bernard
    Bernard Normier
    ZeroC, Inc.

  7. #7
    YuGiOhJCJ's Avatar
    YuGiOhJCJ is offline Registered User
    Name: Chris REDFIELD
    Organization: YuGiOhJCJ
    Project: mumble
    Join Date
    Jan 2009
    Location
    France
    Posts
    11
    OK. On :
    Oracle Berkeley DB Downloads I think I must take Berkeley DB Java Edition, because the file requiered is db-4.6.21.jar and this is a java file.

    I have the choice between :
    Berkeley DB Java Edition, Berkeley DB and Berkeley DB XML.

    But the problem is that the last version Berkeley DB Java Edition is 3.3.75.

    So I can't get 4.6.21 version...

    1)Should I take the Berkeley DB instead of Berkeley DB Java Edition?

    With the Berkeley DB if I do :
    Code:
    ../dist/configure
    make
    I don't get je db.jar file.

    If I do :
    Code:
    ../dist/configure --prefix=/usr --enable-java
    I can't do a 'make' because no Makefile created.

    In fact there is an error :
    Code:
    checking if java works... configure: error: The Java VM java failed (see config.log, check the CLASSPATH?)
    2)How to compile Berkeley DB in order to get db.jar file?
    Last edited by YuGiOhJCJ; 01-14-2009 at 08:45 AM.

  8. #8
    bernard's Avatar
    bernard is offline ZeroC Staff
    Name: Bernard Normier
    Organization: ZeroC, Inc.
    Project: Ice
    Join Date
    Feb 2003
    Location
    Palm Beach Gardens, FL
    Posts
    1,294
    You need the non-Java version that also contains Java code.

    The simplest is to download the third-party source package from our download page:
    http://www.zeroc.com/download.html#src_third_party

    The .tar.gz also contains the build instructions for Linux/Unix/Mac OS.

    Cheers,
    Bernard
    Bernard Normier
    ZeroC, Inc.

  9. #9
    YuGiOhJCJ's Avatar
    YuGiOhJCJ is offline Registered User
    Name: Chris REDFIELD
    Organization: YuGiOhJCJ
    Project: mumble
    Join Date
    Jan 2009
    Location
    France
    Posts
    11

    the package

    Thank you for this package.
    It includes db, mcpp, and others things.
    There is a README.
    When I do :
    Code:
    ../dist/configure --enable-cxx --prefix=/usr --enable-java
    I get the error :
    Code:
    checking for javac... javac
    checking if javac works... yes
    checking for jar... jar
    checking for java... java
    checking for uudecode... yes
    checking if uudecode can decode base 64 file... yes
    checking if java works... configure: error: The Java VM java failed (see config.log, check the CLASSPATH?)
    I think this is my CLASSPATH variable and my java which are the problem :
    Code:
    echo $CLASSPATH
    The variable is empty.
    But java is correctly installed :
    Code:
    $which java
    /usr/lib/java/bin/java
    $ /usr/lib/java/bin/java -version
    java version "1.6.0_06"
    Java(TM) SE Runtime Environment (build 1.6.0_06-b02)
    Java HotSpot(TM) Client VM (build 10.0-b22, mixed mode, sharing)
    I hope this version is compatible with Ice.

    How to resolve this problem please?

  10. #10
    bernard's Avatar
    bernard is offline ZeroC Staff
    Name: Bernard Normier
    Organization: ZeroC, Inc.
    Project: Ice
    Join Date
    Feb 2003
    Location
    Palm Beach Gardens, FL
    Posts
    1,294
    Ice supports Java6, and I don't see any reason for DB 4.6.21 to not build properly with Java6 (could of course be a bug in configure). You don't need to have anything in your CLASSPATH for this build.

    It's also possible that you don't care that much about Berkeley DB here: you only need Berkeley DB if your application uses Freeze (our persistence service). If your application doesn't use Freeze, then you could simply extract db.jar from one of the binary .tar.gz distribution on our download page (e.g. the Solaris or MacOS distribution), and use this db.jar to build Ice.jar on your platform. Or even simpler, you could take the Ice.jar from one of these distributions.

    Cheers,
    Bernard
    Bernard Normier
    ZeroC, Inc.

  11. #11
    YuGiOhJCJ's Avatar
    YuGiOhJCJ is offline Registered User
    Name: Chris REDFIELD
    Organization: YuGiOhJCJ
    Project: mumble
    Join Date
    Jan 2009
    Location
    France
    Posts
    11
    The only thing I need is IcePHP.so
    to use it with Mumble.

  12. #12
    YuGiOhJCJ's Avatar
    YuGiOhJCJ is offline Registered User
    Name: Chris REDFIELD
    Organization: YuGiOhJCJ
    Project: mumble
    Join Date
    Jan 2009
    Location
    France
    Posts
    11
    I get the Ice-3.3.0-rhel4-i386-rpm.tar.gz and I extract it.
    I copy some files :
    • /usr/lib/php/extensions/IcePHP.so
    • /usr/lib/libIce.so.33
    • /usr/lib/libIceUtil.so.33
    • /usr/lib/libSlice.so.33
    Finally I edit my php.ini file :
    Code:
    extension=IcePHP.so
    And I restart my web server :
    Code:
    apachectl restart
    But there is an error in Apache log :
    Code:
    PHP Warning:  PHP Startup: ice: Unable to initialize module\nModule compiled with module API=20050922, debug=0, thread-safety=0\nPHP    compiled with module API=20060613, debug=0, thread-safety=0\nThese options need to match\n in Unknown on line 0
    Do you know what it means and how to resolve this problem?

  13. #13
    bernard's Avatar
    bernard is offline ZeroC Staff
    Name: Bernard Normier
    Organization: ZeroC, Inc.
    Project: Ice
    Join Date
    Feb 2003
    Location
    Palm Beach Gardens, FL
    Posts
    1,294
    For PHP, you should build IcePHP on your system.

    Overall, you just need to build Ice for C++ and Ice for PHP. Don't forget to set OPTIMIZE=yes to get an optimized build.

    For Ice C++, assuming you don't need any Ice service, you can stop the build after the Ice SSL library (libIceSSL.so.33) is built.

    Cheers,
    Bernard
    Bernard Normier
    ZeroC, Inc.

  14. #14
    YuGiOhJCJ's Avatar
    YuGiOhJCJ is offline Registered User
    Name: Chris REDFIELD
    Organization: YuGiOhJCJ
    Project: mumble
    Join Date
    Jan 2009
    Location
    France
    Posts
    11
    OK.
    So I am tring compiling Ice 3.3.0 for cpp first.
    With 'make', no problem but with 'make test', there is an error after a while :
    Code:
    ...
    *** running tests 18/61 in /home/yugiohjcj/Ice-3.3.0/cpp/test/Ice/adapterDeactivation
    *** configuration: Default 
    *** test started: 01/15/09 15:08:03
    starting server... ok
    starting client... ok
    testing stringToProxy... ok
    testing checked cast... ok
    creating/destroying/recreating object adapter... /home/yugiohjcj/Ice-3.3.0/cpp/test/Ice/adapterDeactivation/client: Network.cpp:1081: Ice::SocketException:
    socket exception: Address already in use
    sh: line 1: 17140 Processus arr?t?        /home/yugiohjcj/Ice-3.3.0/cpp/test/Ice/adapterDeactivation/server --Ice.NullHandleAbort=1 --Ice.Warn.Connections=1 --Ice.ThreadPool.Server.Size=1 --Ice.ThreadPool.Server.SizeMax=3 --Ice.ThreadPool.Server.SizeWarn=0 --Ice.PrintProcessId=1 --Ice.PrintAdapterReady=1 --Ice.ServerIdleTime=30 --Ice.Default.Host=127.0.0.1 2>&1
    ('test in /home/yugiohjcj/Ice-3.3.0/cpp/test/Ice/adapterDeactivation failed with exit status', 256)
    What should I do now?

  15. #15
    benoit's Avatar
    benoit is offline ZeroC Staff
    Name: Benoit Foucher
    Organization: ZeroC, Inc.
    Project: Ice
    Join Date
    Feb 2003
    Location
    Rennes, France
    Posts
    2,196
    Hi,

    The test creates two object adapters, one listens on port 9999 and the other on port 9998. Do you have by any chance a process already listening on one of these ports?

    You can check it out with the following command:
    Code:
    $ netstat -an | grep 999[8-9]
    If you can't stop this process, you can fix the test by editing the cpp/test/Ice/adapterDeactivation/AllTests.cpp file and change the port numbers specified on line 35 and line 49 (you can change them to any value, 19999 and 19998 for example).

    Cheers,
    Benoit.

Page 1 of 2 1 2 LastLast

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Unable to start ice module
    By cooldreng13 in forum Help Center
    Replies: 0
    Last Post: 02-25-2010, 01:35 PM
  2. Slice compilers unable to parse demo .ice files?
    By asynchronos in forum Help Center
    Replies: 14
    Last Post: 07-17-2008, 07:41 AM
  3. Replies: 1
    Last Post: 05-07-2008, 05:56 PM
  4. Replies: 1
    Last Post: 01-04-2007, 03:20 PM
  5. Unable to compile Ice-2.0.0 on RH ES Linux
    By vsonnathi in forum Bug Reports
    Replies: 2
    Last Post: 11-23-2004, 01:26 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •