solaris

Unable to include cmath using GCC 5.5 on Solaris 10

风流意气都作罢 提交于 2019-12-23 14:57:08
问题 I am trying to run the following test program on my Solaris 10 sparc machine using gcc 5.5.0 #include <iostream> #include <cmath> int main() { std::cout << "exp2(4) = " << std::exp2(4) << '\n' << "exp2(0.5) = " << std::exp2(0.5) << '\n' << "exp2(-4) = " << std::exp2(-4) << '\n'; return 0; } Here are the OS details, ~$ uname -a SunOS sovms577 5.10 Generic_147147-26 sun4v sparc SUNW,SPARC-Enterprise-T5220 ~$ cat /etc/release Oracle Solaris 10 1/13 s10s_u11wos_24a SPARC Copyright (c) 1983, 2013,

Writing a command line shell with C; trying to use ncurses/C for the first time

守給你的承諾、 提交于 2019-12-23 04:22:56
问题 I'm working on a class project in which I must write a command line shell with the following requirements: The shell must able to read buffered input Buffer should be 64 characters Error conditions should be handled Exceeded buffer size Interruptions (when a signal arrives) – see the man page for read() Invalid input (unparsable characters, blank lines, etc) Any other error that may be encountered. Shell must have a history of at least 20 items, and the history must not be of a static size.

Instruct CMake to use CXX and CXXFLAGS when driving link?

浪尽此生 提交于 2019-12-23 03:33:07
问题 We are catching link errors on Solaris with makefiles generated by CMake 3.6.2. In the testing below, we are using GCC and not SunCC. From the looks of it, CMake is applying our options inconsistently: Typical compile command [ 2%] Building CXX object CMakeFiles/cryptopp-object.dir/cpu.cpp.o /bin/c++ -fPIC -march=native -m64 -Wa,--divide -o CMakeFiles/cryptopp-object.dir/cryptlib.cpp.o -c /export/home/jwalton/cryptopp/cpu.cpp Abbreviated link command /bin/c++ CMakeFiles/cryptest.dir/bench1

How to compile C in both Linux and Solaris?

人盡茶涼 提交于 2019-12-22 13:59:52
问题 I want to make a Makefile to can compile both in Linux and in Solaris. I know how to do so individually, but how can I combine both and be able to detect what kind of OS I am using? I am trying to do this for just a simple C file - but it is the name of the compiler that changes. 回答1: GNU Autoconf was designed to solve this very problem: Autoconf is an extensible package of M4 macros that produce shell scripts to automatically configure software source code packages. These scripts can adapt

TSA方法

白昼怎懂夜的黑 提交于 2019-12-22 13:40:32
【推荐】2019 Java 开发者跳槽指南.pdf(吐血整理) >>> 来源 有两种基本的性能分析方法可以应对大部分性能问题。一是面向资源的USE方法,它提供了识别常见瓶颈和错误的检查清单。二是面向线程的TSA方法,用于识别线程性能不佳的原因。我在今年(译者注:时为2014年)Velocity会议的《Stop The Guessing》演讲上总结出了TSA方法。这一方法同时也在我《系统性能》一书的《应用程序》章节里进行了介绍。 作为USE方法的补充,TSA方法具有不同的视角:线程而非资源。TSA提供了分析工作的出发点,并将调查范围缩小到了错误周边。TSA方法可以应用到任何操作系统,它从一个我们想要回答的问题的答案发展而来:每个线程的时间都用到哪里了? 我在近期的系统性能课程上教授了这个方法,课程帮助了我的学生——大多是系统管理员——快速解决一些列性能问题。我使用了这种方法很多年,在企业和云生产环境下,解决了数不清的性能问题。 总结 TSA(Thread State Analysis)方法可以总结为: 对每个重要线程,度量不同状态下线程花费的总时间。 使用适当的工具,按频率从高到底逐一分析线程状态。 我使用“线程”这一词汇来表示操作系统运行实体,它可以是线程、任务或进程。重要线程可以是应用线程或内核线程。 线程时间被分割为几个互斥状态。下列6个状态基于通用操作系统内核

Why can't I build Perl modules that load Socket.so on Solaris 10?

筅森魡賤 提交于 2019-12-22 12:29:42
问题 I am trying to build Convert::ASN1 module but I get an error in the process. I am using Perl 5.12.0 on Solaris 10. perl Makefile.PL runs without trouble, same for make , but 'make test' throws this error: MOST CRUCIAL PART OF IT IMO: t/00prim.t ....... Can't load '/usr/local/lib/perl5/5.12.0/sun4-solari +s/auto/Socket /Socket.so' for module Socket: ld.so.1: perl5.12.0: fata +l: relocation error: file /usr/local/lib/perl5/5.12.0/sun4-solaris/au +to/Socket/Socket.so: symbol inet_aton:

Building Boost on Solaris

我的梦境 提交于 2019-12-22 07:48:10
问题 Will Boost build in entirety on Solaris? I'd like to know if anyone has success with this (specifically Proto/Spirit) before I go and pay for a support contract to patch Sun Studio 12.2 to the latest. I get a few errors and some look to have been resolved in patches, but it's not cheap to pay Oracle for support so I'd rather some hope that it will work before I do. Right now, I'm just trying to use cpp-netlib on Solaris and decode some JSON fetched over HTTP using Boost Property Tree. It

How to install R on Solaris on a VirtualBox virtual machine?

北战南征 提交于 2019-12-22 04:31:30
问题 This Q&A is a response to this comment. The answer to the question in the comment is not trivial, is too big for a comment, and not suitable as an answer to the question in that thread (answering my own question is officially encouraged). If you have a better answer please post it! The question is: How to install R on Solaris on a VirtualBox virtual machine? 回答1: Start by downloading and installing Oracle VM VirtualBox. Then download and unzip the Oracle Solaris 11.1 VirtualBox Template.

Export an application using Sparc architecture to intel x86

拈花ヽ惹草 提交于 2019-12-22 01:34:22
问题 I'm using an application developed in Sun Solaris 8 and it depends of the architecture SPARC ( the application using some librairies of the system Solaris 8) . Is it possible to export that application from SPARC to intel x86 ? Can i export also in another OS like Ubuntu, Windows or other ? I hope that was clear and if you need more information i'll try to clarify. Thanks. 回答1: I'm assuming we're talking about a native application here (a machine code binary). Short answer: No to both

CORBA ORB runtime define local IP interface usage

佐手、 提交于 2019-12-21 23:11:42
问题 We have an existing application which has set up a CORBA ORB runtime environment as client. At the moment we don't specify any local interface (IP/Ethernet) to use and the runtime seems to get some default interface on our local machine. The machine used is Oracle with Solaris operating system. The ORB runtime environment used here is Java 7 JDK built-in ORB. Is there any way to explicitly indicate that a certain local IP interface should be used via some property to ORB.init(...) ? 回答1: For