[CDRIVER-333] Unable to compile C driver in Solaris Created: 03/Apr/14 Updated: 11/Sep/19 Resolved: 16/Apr/14 |
|
| Status: | Closed |
| Project: | C Driver |
| Component/s: | None |
| Affects Version/s: | 0.8.1 |
| Fix Version/s: | None |
| Type: | Task | Priority: | Major - P3 |
| Reporter: | Jyothi Kommajosyula | Assignee: | Unassigned |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
Solaris |
||
| Issue Links: |
|
||||
| Description |
|
Trying to build the driver in Solaris using make and gcc. During the ‘make’ step, we are facing issues with the underlying C driver components and we are getting errors like the below. sun4-cross: make -f Makefile.am |
| Comments |
| Comment by Christian Hergert [ 16/Apr/14 ] | |||
|
mongo-c-driver 0.94.2 supports Solaris 10 SPARC using both the SunStudio compiler and GCC. We have pre-built binaries available (although without SSL or Kerberos support) on the releases page which can be found at https://github.com/mongodb/mongo-c-driver/releases/tag/0.94.2 If you have any issues compiling, don't hesitate to re-open this with output from ./configure or make. | |||
| Comment by Edouard Servan-Schreiber [ 16/Apr/14 ] | |||
|
sounds fair to me. | |||
| Comment by Jyothi Kommajosyula [ 04/Apr/14 ] | |||
|
GCC is not available in Solaris env, checking for ways to get GCC installed | |||
| Comment by Edouard Servan-Schreiber [ 04/Apr/14 ] | |||
|
Description of environment from email: bash-3.2$ cat /etc/release Solaris 10 10/08 s10s_u6wos_07b SPARC bash-3.2$ uname –a SunOS cpbswpoue1 5.10 Generic_150400-02 sun4u sparc SUNW,Sun-Fire-V490 | |||
| Comment by Richard Kreuter (Inactive) [ 04/Apr/14 ] | |||
|
Hi Jyothi, I am not very expert at modern Solaris, but I believe something like the following ought to suffice to get you a recent version of GCC:
Of course there might be permissions prerequisites on your system. What version of Solaris are you using? Regards, | |||
| Comment by Jyothi Kommajosyula [ 04/Apr/14 ] | |||
|
Thanks Richard. I was using source files earlier, now I took the .tar version. Now it builds fine, but I have some gcc issue on my Solaris machine, trying to get gcc now. Thanks for your help. sun4-cross: ./configure Regards | |||
| Comment by Richard Kreuter (Inactive) [ 04/Apr/14 ] | |||
|
Hi Jyothi, Are you getting the official release tar file, or cloning from github? The git repositories do not include the configure script, but rather the configure.ac file, which is an input to the "autotools" suite (the Makefile.am file you tried to use yesterday is another input to autotools). Please obtain the release tar file from here: https://github.com/mongodb/mongo-c-driver/releases and try the following steps:
Regards, | |||
| Comment by Jyothi Kommajosyula [ 04/Apr/14 ] | |||
|
Hi Richard I tried the below steps, but I get a different error sun4-cross: pwd Regards | |||
| Comment by Richard Kreuter (Inactive) [ 03/Apr/14 ] | |||
|
Hi Jyothi, It looks like you're running "make" on a file that isn't a Makefile, but rather an input to the "automake" component of the "autotools" suite. It also seems you're trying an old version of the driver; the latest release is 0.92.2, available here: https://github.com/mongodb/mongo-c-driver/releases The releases follow the convention of including a "configure" script that generates a Makefile, so the build instructions should be as simple as
Please let us know if you find these steps don't work out. Regards, |