Go Back   ZeroC Forums > Patches

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
  #1 (permalink)  
Old 07-24-2003
ashar ashar is offline
Registered User
 
 
Join Date: Jul 2003
Location: Helsinki, Finland
Posts: 2
Compiling Ice on Debian

First of all, Ice cannot be compiled on Debian 3.0 (the latest
released version), since it lacks recent enough versions of both
Berkeley DB and Xerces-C++. You can find backport repositories for
the DB through www.apt-get.org, but Xerces you'll have to build (or
possibly backport) yourself.

The reason for build failure on development versions (testing and
unstable) is Ice's fault, at least according to my understanding (I am
not involved in Berkeley DB development nor do I use it; this is based
just on reading the sources). The Freeze library uses the txn_*
functions in the DB, which are just wrappers in versions 4.0 and up,
and if the DB is configured with with-uniquename (as Debian does),
these wrapper functions do not exist. I have attached a patch that
replaces the txn_* calls with calls to the wrapped functions for DB
versions 4.0 and up (if the calls work also in 3.3, they should just
be replaced instead of conditionally compiled).
Attached Files
File Type: txt dbi.cpp.patch.txt (1.1 KB, 228 views)
Reply With Quote
  #2 (permalink)  
Old 07-24-2003
bernard's Avatar
bernard bernard is offline
ZeroC Staff
 
Name: Bernard Normier
Organization: ZeroC, Inc.
Project: Ice
 
Join Date: Feb 2003
Location: Palm Beach Gardens, FL
Posts: 760
The latest version of Berkeley DB is 4.1.25, and is supported by all versions of Ice.
But it's true that we haven't tried to build it --with-uniquename (see http://www.sleepycat.com/docs/ref/install/multiple.html); although txn_begin() is not in the 4.1 documentation anymore, it's still there on all supported Ice platforms (http://www.zeroc.com/platforms.html). So it looks like a bug in --with-uniquename . Thanks for your patch!

Ice 1.1 also supports Xerces-C++ 2.1.0 and 2.2.0. It's true that it does not support Xerces-C++ 2.3.0 because they were released pretty much at the same time: Xerces-C++ 2.3.0 was released on May 27 and Ice 1.1 was released on May 28. Naturally the next Ice version will support Xerces-C++ 2.3.0.

Cheers,
Bernard
Reply With Quote
  #3 (permalink)  
Old 08-30-2003
gmueckl gmueckl is offline
Registered User
 
 
Join Date: Aug 2003
Posts: 8
Send a message via ICQ to gmueckl
-->
Sorry, bernard, but I think the bug *really* is in Ice. I know of a total of at least threee distributions where Ice would not compile without the above patch. These distributions are recent versions of RedHat, Debian and Gentoo.

Therefore I urge you to include the above patch in the next release of Ice. If this problem remains we will probably have to look for an alternative to Ice. This would be sad because Ice has the cleanest interface of all component frameworks around.

Regards,
Gregor
Reply With Quote
  #4 (permalink)  
Old 08-30-2003
bernard's Avatar
bernard bernard is offline
ZeroC Staff
 
Name: Bernard Normier
Organization: ZeroC, Inc.
Project: Ice
 
Join Date: Feb 2003
Location: Palm Beach Gardens, FL
Posts: 760
In the next release of Ice, Freeze will use the Berkeley DB C++ API instead of the C API, which will solve this issue.
Which recent version of RedHat are you referring to? We test on RedHat 9 and did not encounter this issue.

Thanks,
Bernard
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Is Debian or Ubuntu being the official platform in the future? flytod Comments 5 08-23-2006 08:58 PM
Debian packages for Ice 3.0.1 fmoya Help Center 1 01-24-2006 11:24 AM
Debian packages for Ice 3.0.0 and IceE 1.0.0 fmoya Help Center 0 11-20-2005 07:21 PM
Ice in debian + python2.4 Miuler Help Center 3 10-21-2005 08:19 PM
IcePack + Debian Linux + Mono + NoEndpointException kovacm Bug Reports 10 07-20-2005 06:29 AM


All times are GMT -4. The time now is 07:09 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.0.0
(c) 2008 ZeroC, Inc.