RE: Problems Faced While Building OpenPegasus on Solaris Platform
"Danaila, Valentin" <[email protected]>
| Newsgroups | gmane.network.open-pegasus.general |
|---|---|
| Message-ID | <08B80949BA992D4F975F3CBEAEF88D6389D359B227@GVW1118EXC.americas.hpqcorp.net> |
Hi Chatterjee, You are mixing the PEGASUS PLATFORM = SOLARIS_IX86_CC which is intended to be used with the native compiler "cc" togheter with the GNU compiler (gcc) which you said that you use it from "/usr/sfw/bin/gcc". The only SOLARIS platform that supports GNU compiler (gcc) is Solaris Sparc: PEGASUS PLATFORM=SOLARIS_SPARC_GNU For Solaris x86 you just have the native compilation platform choice (SOLARIS_IX86_CC and SOLARIS_X86_64_CC) so you should install a native compiler or point to it if it's already installed. Best Regards, Valentin Dănăilă From: [email protected] [mailto:[email protected]] Sent: Monday, November 21, 2011 10:44 AM To: [email protected] Cc: [email protected] Subject: RE: Problems Faced While Building OpenPegasus on Solaris Platform Hi Srini, Thanks a lot for the reply. Actually in our option 2 we have already used the sun studio's cc compiler. But the linker was not able to identify lot of libraries, plus the FLAGS += +w -KPIC -mt -xildoff; were still not identifiable by the compiler. Regards, Biswapratap. [cid:[email protected]] "Education is not preparation for life; education is life itself" Let's educate someone today !! From: srinivasarao javvadi [mailto:[email protected]] Sent: Monday, November 21, 2011 2:16 PM To: Biswapratap Chatterjee (WT01 - Manufacturing & Hi Tech) Cc: [email protected] Subject: Re: Problems Faced While Building OpenPegasus on Solaris Platform I am not sure about open-pegasus compile issues. But on Solaris preferred compiler is Sun Studio. On Mon, Nov 21, 2011 at 1:19 PM, <[email protected]<mailto:[email protected]>> wrote: Hi, We are facing some problems while compiling open-pegasus on Solaris platform. The following are the 2 ways that we tried : OPTION 1 Compiler Options 1. Open-Pegasus version : 2.10 2. Compiler : /usr/sfw/bin/gcc 3. Make : /usr/sfw/bin/gmake 4. PEGASUS_PLATFORM : SOLARIS_IX86_CC Problems faced 1. Had to re-map CXX = cc to CXX = gcc; from "platform_SOLARIS_CC.mak" 2. Had to remove compiler flags : FLAGS += +w -KPIC -mt -xildoff; from "platform_SOLARIS_CC.mak" 3. Had to re-map CC to gcc in "pegasus/src/utils/chksrc". 4. The compilation triggered fine; continued till some files but then reported the following errors : HTTPAcceptor.cpp: In member function `void Pegasus::HTTPAcceptor::_bind()': HTTPAcceptor.cpp:453: error: invalid conversion from `SocketLength*' to `socklen_t*' HTTPAcceptor.cpp:453: error: initializing argument 3 of `int getsockname(int, sockaddr*, socklen_t*)' HTTPAcceptor.cpp: In member function `void Pegasus::HTTPAcceptor::_acceptConnection()': HTTPAcceptor.cpp:744: error: invalid conversion from `SocketLength*' to `socklen_t*' HTTPAcceptor.cpp:744: error: initializing argument 3 of `int accept(int, sockaddr*, socklen_t*)' OPTION 2 Compiler Options 1. Open-Pegasus version : 2.10 2. Compiler : ucbcc (from Solaris Studio) soft linked to the "cc" compiler 3. Make : /usr/sfw/bin/gmake 4. PEGASUS_PLATFORM : SOLARIS_IX86_CC Problems faced 1. Had to remove compiler flags : FLAGS += +w -KPIC -mt -xildoff; from "platform_SOLARIS_CC.mak" 2. The compilation did not go through as lot of shared object libraries were reported as unidentified by ucb-cc/cc. Is this a known issue or am I doing anything wrong? Kindly suggest. Regards, Biswapratap. [cid:[email protected]] "Education is not preparation for life; education is life itself" Let's educate someone today !! Please do not print this email unless it is absolutely necessary. The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments. WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email. www.wipro.com<http://www.wipro.com> -- Srinivas Please do not print this email unless it is absolutely necessary. The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments. WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email. www.wipro.com
image001.jpg
(image/jpeg, 2.6 KB) - not displayed