Go Back   ZeroC Forums > Patches

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
  #1 (permalink)  
Old 02-21-2003
rodrigc rodrigc is offline
Registered User
 
 
Join Date: Feb 2003
Location: Boston, MA, U.S.A.
Posts: 27
Cool Working on FreeBSD-CURRENT port

Hi,

I am working on a FreeBSD-CURRENT port of Ice, because
Ice looks pretty interesting. I've found some problems in the FreeBSD header
files, and am working with the FreeBSD developer's to fix them.

To make your code more portable, you could include
<stdint.h> and define __STDC_LIMIT_MACROS to 1, as allowed by the C99
standard, for compatibility with C++.

I'm not sure if this is the best forum to post patches, but Michi
told me to post it here, so here goes.
Attached Files
File Type: txt config.h.patch.txt (849 Bytes, 196 views)
__________________
--
Craig Rodrigues
Reply With Quote
  #2 (permalink)  
Old 02-21-2003
marlowa marlowa is offline
Registered User
 
 
Join Date: Feb 2003
Location: London
Posts: 64
Re: Working on FreeBSD-CURRENT port

Quote:
Originally posted by rodrigc
Hi,

To make your code more portable, you could include
<stdint.h> and define __STDC_LIMIT_MACROS to 1, as allowed by the C99
standard, for compatibility with C++.

It's quite ironic that this is NOT portable. I agree that it should be and perhaps sometime in the next ten years it will be, but sadly , some commercial compilers such as Solaris Forte 6.2 do not have this header at the moment.

Regards,

Andrew.
__________________
You are in a maze of twisty little passages, all different.
Reply With Quote
  #3 (permalink)  
Old 02-21-2003
rodrigc rodrigc is offline
Registered User
 
 
Join Date: Feb 2003
Location: Boston, MA, U.S.A.
Posts: 27
Thanks for the feedback.

I checked the following boxes which I have access to:

FreeBSD-CURRENT
Red Hat Linux 7.3
MacOS X 10.2.2
Solaris 2.7

All of them had <stdint.h> except for Solaris.
All of them (including Solaris) had <inttypes.h>

One FreeSBD, MacOS x, and Linux, <inttypes.h> includes <stdint.h>

So I think this new patch is good.

I also introduce a macro HAVE_INTTYPES_H, so if
an autoconf style test is written to detect the presence of this header,
then it can be used.
Attached Files
File Type: txt config.h.patch.txt (1.0 KB, 160 views)
__________________
--
Craig Rodrigues
Reply With Quote
  #4 (permalink)  
Old 02-22-2003
marc's Avatar
marc marc is offline
ZeroC Staff
 
Name: Marc Laukien
Organization: ZeroC, Inc.
Project: The Internet Communications Engine
 
Join Date: Feb 2003
Location: Florida
Posts: 1,781
Thanks, we applied the changes to Config.h. They will be available in Ice-1.0.1.
Reply With Quote
  #5 (permalink)  
Old 02-22-2003
rodrigc rodrigc is offline
Registered User
 
 
Join Date: Feb 2003
Location: Boston, MA, U.S.A.
Posts: 27
Hi,

I have successfully compiled all of ICE on FreeBSD-CURRENT 5.0
after patching ICE. I am attaching my patches.

Note: some patches to FreeBSD are required. I am working with the
FreeBSD developers to integrate these patches.
FreeBSD patches are:


http://groups.google.com/groups?oe=U...k%40ifi.uio.no

I am attaching my ICE patches. They are based on feedback from
Marc and Andrew.

Now I am going to read the ICE documentation and try it out.
Attached Files
File Type: txt freebsd-patches.txt (4.9 KB, 178 views)
__________________
--
Craig Rodrigues
Reply With Quote
  #6 (permalink)  
Old 02-23-2003
rodrigc rodrigc is offline
Registered User
 
 
Join Date: Feb 2003
Location: Boston, MA, U.S.A.
Posts: 27
Cool

Here is my patch for the Make.rules file for
Make.rules. It does minor stuff like
adding -I/usr/local/include to the CPPFLAGS, adding
-pthread to the compiler flags to get the correct
stuff linked in for pthreads, and other minor
fixes for getting the right paths to Xerces, and Berkeley db.

I don't think it should be integrated in the main source tree,
but I am posting to show that it can be done without too much
pain.

An autoconf kind of system could probably catch all this
stuff in a generic way, but writing autoconf is a pain.
Attached Files
File Type: txt make.rules.patch.txt (1.2 KB, 170 views)
__________________
--
Craig Rodrigues
Reply With Quote
  #7 (permalink)  
Old 02-23-2003
marlowa marlowa is offline
Registered User
 
 
Join Date: Feb 2003
Location: London
Posts: 64
Quote:
Originally posted by rodrigc
Here is my patch for the Make.rules file for
Make.rules. It does minor stuff like
adding -I/usr/local/include to the CPPFLAGS, adding
-pthread to the compiler flags to get the correct
stuff linked in for pthreads, and other minor
fixes for getting the right paths to Xerces, and Berkeley db.

An autoconf kind of system could probably catch all this
stuff in a generic way, but writing autoconf is a pain.
Another patch I found to be necessary was using ncurses instead of curses. This is because Suse 8.1 only has ncurses. It is quite conceivable that ncurses will be installed even on systems that have curses. There are several reasons for this. There is a large termcap database, some open source systems have a heavier dependency on ncurses etc.

I suggested autoconf a while ago but this does not seem popular. I am currently thinking about another approach that would also allow .dsw files to be generated for a Windoze build using Visual C++.

Regards,

Andrew M.
__________________
You are in a maze of twisty little passages, all different.
Reply With Quote
  #8 (permalink)  
Old 02-23-2003
rodrigc rodrigc is offline
Registered User
 
 
Join Date: Feb 2003
Location: Boston, MA, U.S.A.
Posts: 27
Some more information about my FreeBSD efforts. I needed the
following 3rd party packages (known as FreeBSD ports) to get things to
work with Ice:

databases/db4 (for Berkeley DB)
textproc/xerces-c2 (for Xerces C++)
sysutils/e2fsprogs (for uuid.h)

If you install those ports, then they pull in the necessary dependent
ports.

I should probably write this info up.
__________________
--
Craig Rodrigues
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
IcePy 3.1.0 and 3.1.1 have problem working with python 2.4.3 eagle Bug Reports 1 11-12-2006 09:54 AM
Question on working with the IceGridAdmin tool stephan Help Center 9 01-18-2006 08:37 AM
Cannot get helloworld working on my machine ruister Help Center 2 12-31-2004 12:15 AM
Current ICE documentation johnstv3 Help Center 6 04-22-2004 08:22 AM
OpenSSLPluginI.cpp problem on FreeBSD-CURRENT rodrigc Bug Reports 2 05-30-2003 09:54 AM


All times are GMT -4. The time now is 06:26 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.