Go Back   ZeroC Forums > Help Center

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
  #1 (permalink)  
Old 07-24-2005
myer myer is offline
Registered User
 
Name: myer zh
Organization: www.xjgc.com
Project: HVDC Scada
 
Join Date: Jul 2005
Posts: 16
Question about Compiling Ice on True64 ?

hi.
When I compile Ice on True64, there comes many configure errors.
Then I try modifying the Makefile and ./config/Make.rules to avoid the errors, still no use.

Can anyone tell me It's possible that compiling Ice success on True64(ver5.1b) or not ?
And then some advice for compiling that ?

For we must use alpha workstation with true64, when I think of using Ice for distribute systembristol, the feasibility I must first to know. Any information would be greatly appreciated!

Thanks. Myer.
Reply With Quote
  #2 (permalink)  
Old 07-24-2005
bernard's Avatar
bernard bernard is online now
ZeroC Staff
 
Name: Bernard Normier
Organization: ZeroC, Inc.
Project: Ice
 
Join Date: Feb 2003
Location: Palm Beach Gardens, FL
Posts: 816
Ice is not supported on Tru64, and as far as I know, was never ported to this OS by any of our users.

If you like, you can do this port yourself; it should be reasonably easy since Ice builds with many C++ compilers, in both 32 and 64 bit mode. You'd start by writing your own <ice-root>/config/Make.rules.`uname` and edit <ice-root>/include/IceUtil/Config.h to add Tru64 conditionals.

Another possibility is to have ZeroC do this port; in this way, Tru64 could become a supported platform in the next Ice release. Please e-mail us at sales@zeroc.com if you want to discuss this option.

Best regards,
Bernard
Reply With Quote
  #3 (permalink)  
Old 07-25-2005
myer myer is offline
Registered User
 
Name: myer zh
Organization: www.xjgc.com
Project: HVDC Scada
 
Join Date: Jul 2005
Posts: 16
I try to modify "Make.rules" and "Config.h", creat a file "Make.rules.OSF1" for tru64,
then run "gmake", something like only link error:

...
cxx -shared -L../../lib -o ../../lib/libIceUtil.so.2.1.2 -h libIceUtil.so.21 Base64.o Cond.o CountDownLatch.o CtrlCHandler.o Exception.o Shared.o GC.o GCRecMutex.o GCShared.o InputUtil.o MD5.o MD5I.o Options.o OutputUtil.o RWRecMutex.o RecMutex.o StaticMutex.o StringUtil.o Thread.o ThreadException.o Time.o UUID.o Unicode.o
gmake[2]: *** [../../lib/libIceUtil.so.2.1.2] Segmentation fault
gmake[2]: Leaving directory `/usr/users/fire/OpenSource/Ice/src/IceUtil'
gmake[1]: *** [all] Error 1
gmake[1]: Leaving directory `/usr/users/fire/OpenSource/Ice/src'
gmake: *** [all] Error 1


thanks.
Reply With Quote
  #4 (permalink)  
Old 07-25-2005
bernard's Avatar
bernard bernard is online now
ZeroC Staff
 
Name: Bernard Normier
Organization: ZeroC, Inc.
Project: Ice
 
Join Date: Feb 2003
Location: Palm Beach Gardens, FL
Posts: 816
Segmentation fault when you link the library ... this looks like a bug in the linker or compiler. I am afraid we can't do much to help; you may want to contact HP support or the Tru64 support forums.

Cheers,
Bernard
Reply With Quote
  #5 (permalink)  
Old 07-25-2005
myer myer is offline
Registered User
 
Name: myer zh
Organization: www.xjgc.com
Project: HVDC Scada
 
Join Date: Jul 2005
Posts: 16
Thank you.

When I resolve it, I will go back for a conclusion.
Reply With Quote
  #6 (permalink)  
Old 08-04-2005
myer myer is offline
Registered User
 
Name: myer zh
Organization: www.xjgc.com
Project: HVDC Scada
 
Join Date: Jul 2005
Posts: 16
I changed the configure file and used gmake and gcc. And in file "IceUtil/Thread.cpp" I modified
"nanosleep(&ts, 0);"
to
"pthread_delay_np (&ts);"
to avoid the link error.

Now, it seems working.
but it is so so slow. why?
For example , with the demo "printer", it takes 2.5s for the client to connect to the server for printing a "Hello world!" message.

Help! Thanks!
Reply With Quote
  #7 (permalink)  
Old 08-04-2005
myer myer is offline
Registered User
 
Name: myer zh
Organization: www.xjgc.com
Project: HVDC Scada
 
Join Date: Jul 2005
Posts: 16
Again...

At Client, I give some "cout" info to see which statement is most slowly.
like this:
int main(...)
{
cout << "First!" << endl; //first statement;
.......
}
Run the program, after about 2.4s, message "First" is showed.

why? all this on windows is very fast.
Reply With Quote
  #8 (permalink)  
Old 08-05-2005
myer myer is offline
Registered User
 
Name: myer zh
Organization: www.xjgc.com
Project: HVDC Scada
 
Join Date: Jul 2005
Posts: 16
chang this:
OPTIMIZE = yes

then the init speed is very fast too.

On tru64, All is OK.
Thank you.
Reply With Quote
  #9 (permalink)  
Old 08-09-2005
bernard's Avatar
bernard bernard is online now
ZeroC Staff
 
Name: Bernard Normier
Organization: ZeroC, Inc.
Project: Ice
 
Join Date: Feb 2003
Location: Palm Beach Gardens, FL
Posts: 816
Congratulations for completing this port so quickly!

If you like, you could post a patch on the "Patches" forum with your changes: I am sure other Tru64 users would appreciate.

Thanks,
Bernard
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
HELP compiling !! akdess Help Center 1 04-07-2005 09:37 AM
Ice-1.5.1 for C++ compiling err on Redhat9.0 v2004 Help Center 2 10-04-2004 09:40 AM
Compiling Ice 1.2.0 on RH 9.0 Jan_Holst Help Center 2 02-02-2004 12:38 PM
Compiling ICE 1.2.0 catalin Help Center 7 01-16-2004 06:40 AM
Compiling ICE with VC 6.0 jpm Help Center 2 05-30-2003 06:51 PM


All times are GMT -4. The time now is 10:02 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.0.0
(c) 2008 ZeroC, Inc.