RE: Problems Faced While Building OpenPegasus on Solaris Platform
"Danaila, Valentin" <[email protected]>
| Newsgroups | gmane.network.open-pegasus.general |
|---|---|
| Message-ID | <08B80949BA992D4F975F3CBEAEF88D6389D359B30E@GVW1118EXC.americas.hpqcorp.net> |
Hi Biswapratap, The approach looks like the right one. As long as I don't know the errors you get at compilation time, I can give you one more advice based on the fact that the default compiler that you have installed on your system is "gcc". Make sure when you use the native "cc" that you use also the native linker instead of the GNU linker (ld). Also the "FLAGS = +w -KPIC -mt -xildoff" are definitely for the "cc" compiler and if you get errors like "unrecognized option: -KPIC" then you are using a different compiler then the intended native one. Let me say that your system doesn't look so "native" to me so to say, as long as you don't have a Sun compiler by default installed on your system. Best Regards, Valentin Dănăilă From: [email protected] [mailto:[email protected]] Sent: Monday, November 21, 2011 1:34 PM To: Danaila, Valentin Cc: [email protected] Subject: RE: Problems Faced While Building OpenPegasus on Solaris Platform Hi Valentin, What I found is; the native "c" compiler for solaris is "cc" (appropriate for SOLARIS_IX86_CC), which can only be obtained from Sun/Solaris Studio. I installed the same in my solaris system (option 2) and the Pegasus makefile was able to even locate it. But the compilation still failed with errors. I guess I have followed the correct approach ! Regards, Biswapratap. [cid:[email protected]] "Education is not preparation for life; education is life itself" Let's educate someone today !! From: Danaila, Valentin [mailto:[email protected]] Sent: Monday, November 21, 2011 4:38 PM To: Biswapratap Chatterjee (WT01 - Manufacturing & Hi Tech) Cc: [email protected] Subject: RE: Problems Faced While Building OpenPegasus on Solaris Platform 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 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