|
|
|
|||||
|
Problems with compailing autogenerated files Printer on Solaris
Hello,
I'm just starting with Ice and I have problems with compailing the sample Printer file from demo folder. When I executed the command c++ -I. -I/usr/Ice-3.2.0/include -c Printer.cpp Server.cpp I keep getting error: /opt/Ice-3.2.0/include/IceUtil/Exception.h:19: `exception' is not a class or nam espace /opt/Ice-3.2.0/include/IceUtil/Exception.h:19: confused by earlier errors, baili ng out. Line number 19 in Exception.h is "class ICE_UTIL_API IllegalArgumentException : public Exception". Also, when I tried with make command, I got error: "make: Fatal error in reader: Makefile, line 34: Unexpected end of line seen". Line 34 in Makefile is "CPPFLAGS := -I. $(CPPFLAGS)" Can someone help me with this? Thanks in advance, Maja |
|
||||||
|
As can be seen on http://www.zeroc.com/platforms.html this combination is not officially supported and therefore may or may work. Unfortunately for you it appears that it does not work.
Since you are using /opt I guess you are using some binary distribution you downloaded from us? If so, this cannot and will not work since its for use with Sun C++ 5.8 (part of Sun Studio 11). So, first you must build Ice with gcc, and that appears to have some problem. What you could try is editing include/IceUtil/Exception.h and adding #include <exception> to the top of the file. That may get you further along in the compilation process. Your problem with make is likely because you are not using GNU make. This is required to build Ice, as stated in INSTALL.SOLARIS: Code:
GNU Make 3.80 ------------- GNU Make 3.80 is required to build Ice on SPARC/Solaris. GNU make is distributed on the "Solaris 10 OS Companion Software DVD": http://www.sun.com/software/solaris/freeware/ |
|
|||||
|
I installed Sun Studio 11 and I'm using Sun C++, but I still have problems.
I got error : "Fatal error in reader: ../../../config/Make.rules, line 119: Unexpected end of line seen". Can you help me with that? |
|
||||||
|
Sorry, it's difficult to help if you don't provide more information.
From which directory are you running gmake? Are you trying to compile the Ice source distribution? Or did you install the Ice binary distribution in /opt/Ice-3.2.0 and now try to compile the demos? Cheers, Benoit. |
|
||||||
|
Hi Maja,
Quote:
Best regards, Bernard |
|
|||||
|
gmake --recon returns:
"rm -f Printer.cpp Printer.h /opt/Ice-3.2.0/bin/slice2cpp Printer.ice rm -f Printer.cpp Printer.h /opt/Ice-3.2.0/bin/slice2cpp Printer.ice CC -c -I. -I/opt/Ice-3.2.0/include -mt +p -features=tmplife -xldscope=hidden +w -erroff=hidef,wvarhidenmem,wvarhidemem -KPIC -g Printer.cpp CC -c -I. -I/opt/Ice-3.2.0/include -mt +p -features=tmplife -xldscope=hidden +w -erroff=hidef,wvarhidenmem,wvarhidemem -KPIC -g Client.cpp rm -f client CC -mt +p -features=tmplife -xldscope=hidden +w -erroff=hidef,wvarhidenmem,wvarhidemem -KPIC -g -R /opt/Ice-3.2/lib:/usr/sfw/lib -z text -mt +p -features=tmplife -xldscope=hidden +w -erroff=hidef,wvarhidenmem,wvarhidemem -KPIC -g -L/opt/Ice-3.2.0/lib -o client Printer.o Client.o -lIce -lIceUtil -lpthread CC -c -I. -I/opt/Ice-3.2.0/include -mt +p -features=tmplife -xldscope=hidden +w -erroff=hidef,wvarhidenmem,wvarhidemem -KPIC -g Server.cpp rm -f server CC -mt +p -features=tmplife -xldscope=hidden +w -erroff=hidef,wvarhidenmem,wvarhidemem -KPIC -g -R /opt/Ice-3.2/lib:/usr/sfw/lib -z text -mt +p -features=tmplife -xldscope=hidden +w -erroff=hidef,wvarhidenmem,wvarhidemem -KPIC -g -L/opt/Ice-3.2.0/lib -o server Printer.o Server.o -lIce -lIceUtil -lpthread " Slice2cpp, icecpp have execute premission. I install Ice binary distribution in /opt/Ice-3.2.0 and sample programs for binary archivesand I try to compile the demos. |
|
||||||
|
Hi Maja,
From the printer demo directory, could try running the following and see if it works? /opt/Ice-3.2.0/bin/slice2cpp Printer.ice On which architecture do you run Solaris 10, SPARC or x86? The Ice-3.2.0 Solaris 10 binary installer was compiled for the SPARC architecture. So if you use a x86 platform it won't work and most likely result in the gmake error you're getting. To use Ice with Solaris 10 on an Intel/AMD platform, you'll need to compile Ice from the source distribution. You can download the Ice source distribution from our download page. Follow the instructions from the INSTALL.SOLARIS file at the top level of the source distribution to compile Ice. Cheers, Benoit. |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Can't figure out why the Printer autogenerated files are not compiling | caos1234 | Help Center | 7 | 05-31-2007 05:55 PM |
| Unknow exception in "Printer" sample code | wangh705 | Help Center | 6 | 10-26-2006 01:01 PM |
| I can use the Ice on Solaris 8 and Solaris 10? | tjl02040 | Help Center | 1 | 09-07-2006 10:06 AM |
| slice2cpp Printer.ice error? | ificanfly | Help Center | 1 | 07-31-2006 09:26 AM |
| More solaris template problems | marlowa | Bug Reports | 7 | 03-05-2003 04:46 AM |