Closed Bug 505687 Opened 16 years ago Closed 1 year ago

Compilation problems in MacOS in LDAP C SDK

Categories

(Directory Graveyard :: LDAP C SDK, defect)

x86
macOS
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED INCOMPLETE

People

(Reporter: u238590, Unassigned)

Details

User-Agent: Mozilla/5.0 (X11; U; SunOS sun4u; en-US; rv:1.9.0.6) Gecko/2009020413 Firefox/3.0.6 Build Identifier: Patch these diffs for Mozilla C SDK to compile on MacOS $diff -uw ./directory/c-sdk/ldap/clients/tools/convutf8.cpp.ORIGINAL ./directory/c-sdk/ldap/clients/tools/convutf8.cpp --- ./directory/c-sdk/ldap/clients/tools/convutf8.cpp.ORIGINAL 2009-07-16 18:00:40.000000000 +0530 +++ ./directory/c-sdk/ldap/clients/tools/convutf8.cpp 2009-07-16 18:04:47.000000000 +0530 @@ -232,13 +232,13 @@ * 3) Insert the closing shift sequence, if any. */ if ( (size_t)-1 == iconv( convdesc, - ( LDAPTOOL_ICONV_SRC_TYPE )0, LDAPTOOL_ICONV_UNUSED_INBYTESLEFT, + (char **)( LDAPTOOL_ICONV_SRC_TYPE )0, LDAPTOOL_ICONV_UNUSED_INBYTESLEFT, &curoutbuf, &outbytesleft ) /* initial shift seq. */ || (size_t)-1 == iconv( convdesc, - ( LDAPTOOL_ICONV_SRC_TYPE ) &src, &inbytesleft, + (char **)( LDAPTOOL_ICONV_SRC_TYPE ) &src, &inbytesleft, &curoutbuf, &outbytesleft ) /* convert our chars. */ || (size_t)-1 == iconv( convdesc, - ( LDAPTOOL_ICONV_SRC_TYPE )0, LDAPTOOL_ICONV_UNUSED_INBYTESLEFT, + (char **)( LDAPTOOL_ICONV_SRC_TYPE )0, LDAPTOOL_ICONV_UNUSED_INBYTESLEFT, &curoutbuf, &outbytesleft )) { /* closing shift seq. */ perror( "convert_to_utf8 - iconv" ); iconv_close( convdesc ); Reproducible: Always Steps to Reproduce: I downloaded DarwinPorts from http://darwinports.com/download, DarwinPorts-1.7.0-10.5-Leopard.dmg, double clicked in it to install it. And run a self update to get the latest component information $/opt/local/bin/port -d selfupdate installed NSS NSPR as shown below $sudo /opt/local/bin/port install nss Building Mozilla C LDAP SDK : $cvs -d :pserver:anonymous@cvs-mirror.mozilla.org:/cvsroot co -P -rLDAPCSDK_6_0_5_RTM DirectorySDKSourceC $cd mozilla/directory/c-sdk $./configure --with-sasl --with-nspr-inc=/opt/local/include/nspr --with-nspr-lib=/opt/local/lib/nspr --with-nss-inc=/opt/local/include/nss --with-nss-lib=/opt/local/lib/nss --with-nss --enable-clu $/usr/bin/g++ --version i686-apple-darwin9-g++-4.0.1 (GCC) 4.0.
correction install port from http://www.macports.org/
Status: UNCONFIRMED → RESOLVED
Closed: 1 year ago
Resolution: --- → INCOMPLETE
You need to log in before you can comment on or make changes to this bug.