Results 1 to 8 of 8

Thread: Working on FreeBSD-CURRENT port

  1. #1
    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 Attached Files
    --
    Craig Rodrigues

  2. #2
    marlowa is offline Registered User
    Join Date
    Feb 2003
    Location
    London
    Posts
    64

    Re: Working on FreeBSD-CURRENT port

    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.

  3. #3
    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 Attached Files
    --
    Craig Rodrigues

  4. #4
    marc's Avatar
    marc is offline ZeroC Staff
    Name: Marc Laukien
    Organization: ZeroC, Inc.
    Project: The Internet Communications Engine
    Join Date
    Feb 2003
    Location
    Florida
    Posts
    1,860
    Thanks, we applied the changes to Config.h. They will be available in Ice-1.0.1.

  5. #5
    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 Attached Files
    --
    Craig Rodrigues

  6. #6
    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 Attached Files
    --
    Craig Rodrigues

  7. #7
    marlowa is offline Registered User
    Join Date
    Feb 2003
    Location
    London
    Posts
    64
    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.

  8. #8
    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

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 1
    Last Post: 04-16-2009, 05:09 AM
  2. icegrid servers current path
    By paolo in forum Help Center
    Replies: 1
    Last Post: 09-10-2007, 10:32 AM
  3. Number of connection in current thread
    By Dmitriy in forum Help Center
    Replies: 1
    Last Post: 06-29-2004, 09:17 AM
  4. Current ICE documentation
    By johnstv3 in forum Help Center
    Replies: 6
    Last Post: 04-22-2004, 07:22 AM
  5. OpenSSLPluginI.cpp problem on FreeBSD-CURRENT
    By rodrigc in forum Bug Reports
    Replies: 2
    Last Post: 05-30-2003, 08:54 AM

Posting Permissions

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