Last Comment Bug 293042 - Cannot build LDAP C SDK on Solaris with gcc
: Cannot build LDAP C SDK on Solaris with gcc
Status: RESOLVED FIXED
:
Product: Directory
Classification: Components
Component: LDAP C SDK (show other bugs)
: other
: Other Other
: -- normal (vote)
: ---
Assigned To: Rich Megginson
:
:
Mentors:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2005-05-05 11:39 PDT by Rich Megginson
Modified: 2005-05-10 13:14 PDT (History)
2 users (show)
See Also:
Crash Signature:
(edit)
QA Whiteboard:
Iteration: ---
Points: ---


Attachments
Allow use of gcc on Solaris (7.01 KB, text/plain)
2005-05-05 11:43 PDT, Rich Megginson
no flags Details
clean up of previous diff (5.58 KB, text/plain)
2005-05-05 12:44 PDT, Rich Megginson
no flags Details

Description Rich Megginson 2005-05-05 11:39:51 PDT
User-Agent:       Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.2) Gecko/20040805 Netscape/7.2
Build Identifier: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.2) Gecko/20040805 Netscape/7.2

There are a couple of problems.  NSPR/NSS use _gcc in the OBJDIR name which
causes those files not to be found when using the "external" build method (i.e.
configure --with-nss then build).  In addition, for 64 bit platforms, the -m64
flag needs to be passed to the compiler.

Reproducible: Always
Comment 1 Rich Megginson 2005-05-05 11:43:58 PDT
Created attachment 182696 [details]
Allow use of gcc on Solaris

This is the minimal work required to make it work at all.  Note that you have
to pass in CC=gcc CXX=g++ CCC=g++ to the configure command environment in order
for the build to use gcc, and you have to define NS_USE_GCC=1 in the gmake
command.
Comment 2 Rich Megginson 2005-05-05 12:44:22 PDT
Created attachment 182711 [details]
clean up of previous diff
Comment 3 Rich Megginson 2005-05-10 13:14:03 PDT
Checking in mozilla/directory/c-sdk/build.mk;
/cvsroot/mozilla/directory/c-sdk/build.mk,v  <--  build.mk
new revision: 5.17; previous revision: 5.16
done
Checking in mozilla/directory/c-sdk/configure;
/cvsroot/mozilla/directory/c-sdk/configure,v  <--  configure
new revision: 5.26; previous revision: 5.25
done
Checking in mozilla/directory/c-sdk/configure.in;
/cvsroot/mozilla/directory/c-sdk/configure.in,v  <--  configure.in
new revision: 5.27; previous revision: 5.26
done
Checking in mozilla/directory/c-sdk/config/SunOS5.mk;
/cvsroot/mozilla/directory/c-sdk/config/SunOS5.mk,v  <--  SunOS5.mk
new revision: 5.4; previous revision: 5.3
done

Note You need to log in before you can comment on or make changes to this bug.