Results 1 to 5 of 5

Thread: Compile Error on OS X 10.4.2

  1. #1
    jbruni is offline Registered User
    Name: Joseph Bruni
    Organization: Joseph Bruni
    Project: none
    Join Date
    Aug 2005
    Location
    Avondale, AZ
    Posts
    7

    Unhappy Compile Error on OS X 10.4.2

    Hi all,

    I'm trying to build Ice 2.1.2 on OS X 10.4.2 and I receive the following error message. I have openssl 0.9.7g installed. I'm using the GCC 4.0.1 compiler. Any ideas? I looked at the code and it seems to be barfing on a macro expansion of PEM_write_bio_SSL_SESSION().

    Regards,

    Code:
    making all in IceSSL
    c++ -c -I.. -I../../include  -DICE_SSL_API_EXPORTS  -I/usr/kerberos/include -g -ftemplate-depth-128 -Wall -D_REENTRANT SslTransceiver.cpp
    SslTransceiver.cpp: In member function 'void IceSSL::SslTransceiver::showSessionInfo(BIO*)':
    SslTransceiver.cpp:992: error: invalid conversion from 'int (*)()' to 'int (*)(...)'
    SslTransceiver.cpp:992: error:   initializing argument 1 of 'int PEM_ASN1_write_bio(int (*)(...), const char*, BIO*, char*, const EVP_CIPHER*, unsigned char*, int, int (*)(char*, int, int, void*), void*)'
    make[2]: *** [SslTransceiver.o] Error 1
    make[1]: *** [all] Error 1
    make: *** [all] Error 1
    Joseph Bruni
    Systems Architect
    Best Western International, Inc.

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

    Sorry to hear you're having trouble to compile Ice. Note that we didn't try GCC 4.0.1 on Mac OS X. We only support GCC 3.3 included with the operating system. Did you build GCC 4.0.1 from the sources? AFAIK, the latest Apple developper tools still include GCC 4.0.0.

    In any case, I suggest that you simply comment out the body of the SslTransceiver::showSessionInfo method. It's only used for debugging.

    Benoit.

  3. #3
    jbruni is offline Registered User
    Name: Joseph Bruni
    Organization: Joseph Bruni
    Project: none
    Join Date
    Aug 2005
    Location
    Avondale, AZ
    Posts
    7

    Gcc 4.0.1

    GCC 3.3 is the default compiler on 10.3, but GCC 4.0 is the default for 10.4. GCC 4.0.1 is part of the (pre-release) Xcode 2.2.

    I'll comment out that bit of code and try again.

    BTW, using "gcc_select" and switching to the older gcc-3.3, I was able to get it to compile. Odd. I'm guessing not all the kinks haven been worked out of GCC 4.
    Joseph Bruni
    Systems Architect
    Best Western International, Inc.

  4. #4
    jbruni is offline Registered User
    Name: Joseph Bruni
    Organization: Joseph Bruni
    Project: none
    Join Date
    Aug 2005
    Location
    Avondale, AZ
    Posts
    7

    Red face

    Commenting-out the offending line of code allowed the whole project to compile successfully. Thanks for the info.

    I'll look into this particular bug a bit closer when I have some time. It might be a bad declaration in the OpenSSL code. I know they've tightened up some of the declarations a bit in 0.9.8, however. They might have already addressed this.
    Joseph Bruni
    Systems Architect
    Best Western International, Inc.

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

    Right, Ice compiles fine with GCC 3.3. Here's what I found about this error: http://mail-index.netbsd.org/tech-us...9/06/0002.html. It looks like an OpenSSL bug. We'll support GCC 4.0.1 as soon as it's available publicly!

    Benoit.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Ice binary distribution for OS X 10.6?
    By slypete in forum Help Center
    Replies: 17
    Last Post: 09-05-2010, 07:03 PM
  2. Compile Error on Solaris 10
    By crozzfire in forum Bug Reports
    Replies: 5
    Last Post: 12-16-2009, 03:13 PM
  3. Ice 3.0.0 / Mac OS X 10.4.3, GCC 4.0.1
    By lindholm in forum Bug Reports
    Replies: 3
    Last Post: 11-21-2005, 04:54 AM
  4. Compiling demos on Mac OS X 10.4.2
    By CAS in forum Help Center
    Replies: 4
    Last Post: 09-30-2005, 07:33 PM
  5. Ice-2.1.2 on OS X 10.4.2/gcc 4.0
    By jbruni in forum Help Center
    Replies: 2
    Last Post: 08-05-2005, 09:12 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
  •