Red Hat ENTERPRISE LINUX 3 - DEVELOPER TOOLS GUIDE Especificações

Consulte online ou descarregue Especificações para Sistemas operativos Red Hat ENTERPRISE LINUX 3 - DEVELOPER TOOLS GUIDE. Red Hat ENTERPRISE LINUX 3 - DEVELOPER TOOLS GUIDE Specifications Manual do Utilizador

An Oracle Technical White Paper
July 2012
Red Hat Enterprise Linux to Oracle Solaris
Porting Guide

Ficheiro PDF · ·

Imprimir

Imprimir documento

Partilha

Resumo do Conteúdo

Página 1 - Porting Guide

An Oracle Technical White Paper July 2012 Red Hat Enterprise Linux to Oracle Solaris Porting Guide

Página 2

What’s New in Oracle Solaris 11? 4 Oracle Portability and Compatibility Guarantee 5 Similarities and Differences Between Oracle Solaris and Linux 5…

Página 3

GNU Compiler Collection (GCC) Versus Oracle Solaris Studio Compiler Option Mapping 31 Dynamic Linking Using Hardware-Specific Performance Libraries 35…

Página 4

Resource Limits on Oracle Solaris 11 72 Migrating Scripts 72 Equivalent Commands, Options, and Alternatives on Oracle Solaris 11 72 Managing Services…

Página 5 - Chapter 1 Introduction

Chapter 1 Introduction The purpose of this document is to enable developers to resolve issues faced during the migration of Red Hat Enterprise Linux…

Página 6

Figure 1-1. Oracle Solaris is designed to meet the security, performance, and scalability requirements of cloud-based deployments. Oracle Portability…

Página 7

RHEL conforms to the Linux Standard Base 4.0 (LSB 4.0) specification. The LSB is based on the POSIX specification, the SUS, and several other open…

Página 8

GNU Compiler Collection (GCC) and other GNU tools are also available on both RHEL and Oracle Solaris 11. Availability of Open Source Software on the…

Página 9

Oracle's commitment for long-term investments End-to-end 24 x 7 support from Oracle (a single vender) for hardware to applications

Página 10 - Recommended Strategy

Chapter 2 The Porting Process Recommended Strategy Due to both operating systems’ conformance to standards and the availability of tools to aid…

Página 11 - Limiting the Scope

packages on top of the default installation. Hence, you will have to carefully set the PATH environment in your development and deployment…

Página 12 - Classification of Code

Hence, for a large application, understanding which files within the source distribution are actually getting used to build the application for the…

Página 13

systems. Oracle Solaris Studio 12.x is available on both RHEL and Oracle Solaris (SPARC as well as x64). It is much easier to transition from RHEL to…

Página 14 - Data Portability

Data Portability Data Migration Considerations Data migration is one of the most challenging tasks in the porting process. Data migration activity is…

Página 15 - • Proprietary databases

Applications storing data that is shared between platforms can handle the endianness issues in one of the following two ways: Store data in an…

Página 16 - Application Verification

POPULAR PROPRIETARY DATABASES Oracle 11gR2 DB2 9.7.x Sybase 15.7.x Informix 11.7.x Though it is challenging to move data between proprietary…

Página 17 - Memory Leak Detection

uncover a.out.uc A GUI will then appear for viewing coverage data. Memory Leak Detection One of the most powerful tools that is bundled with Oracle…

Página 18 - Storage Order and Alignment

Chapter 3 Operating System Considerations Supported Processor Architectures (Linux Versus Oracle Solaris) Many factors have resulted in increased use…

Página 19 - Data Structures and Sizes

The processor will have to issue two different read instructions to read the complete integer. Thus, it takes twice as long to read a misaligned…

Página 20

Figure 3-3. Visual representation of how struct mydata would be padded to align with 4-byte boundaries. Compiler Options and Portability of Code The…

Página 21 - Byte Ordering

type—and even the size of the type itself—can differ. And this is exactly what happens if the data corresponding to mystruct is moved between an…

Página 22 - System APIs

The story is little different for member data in a structure, union, or class objects. The struct member variables must be aligned to the highest…

Página 23

available on Oracle Solaris, either as system calls or library functions (APIs). There are some minor differences in system call implementation on the…

Página 24

TABLE 3-1. EQUIVALENT SYSTEM CALLS, ALTERNATIVE SYSTEM CALLS, AND WORKAROUNDS API SYNOPSIS ON LINUX FOR ORACLE SOLARIS 11 AT_* constants */ #include…

Página 25

TABLE 3-1. EQUIVALENT SYSTEM CALLS, ALTERNATIVE SYSTEM CALLS, AND WORKAROUNDS API SYNOPSIS ON LINUX FOR ORACLE SOLARIS 11 int ioctl(int d, int…

Página 26

TABLE 3-1. EQUIVALENT SYSTEM CALLS, ALTERNATIVE SYSTEM CALLS, AND WORKAROUNDS API SYNOPSIS ON LINUX FOR ORACLE SOLARIS 11 #include <fcntl.h> /*…

Página 27

TABLE 3-1. EQUIVALENT SYSTEM CALLS, ALTERNATIVE SYSTEM CALLS, AND WORKAROUNDS API SYNOPSIS ON LINUX FOR ORACLE SOLARIS 11 profil #include <unistd.h>…

Página 28

TABLE 3-1. EQUIVALENT SYSTEM CALLS, ALTERNATIVE SYSTEM CALLS, AND WORKAROUNDS API SYNOPSIS ON LINUX FOR ORACLE SOLARIS 11 int shmctl(int shmid, int…

Página 29

TABLE 3-1. EQUIVALENT SYSTEM CALLS, ALTERNATIVE SYSTEM CALLS, AND WORKAROUNDS API SYNOPSIS ON LINUX FOR ORACLE SOLARIS 11 time #include <time.h>…

Página 30 - Oracle Solaris Studio

Chapter 4 Application Development Environment Reducing Migration Costs Oracle Solaris 11 provides a very large set of native (Oracle proprietary) and…

Mostrar as 110 páginas
Página 31 - Useful Tools

C, C++, and Fortran compilers for compiling code at the command line or through the IDE. The compilers are engineered to work well with the Oracle…

Página 32 - Mapping

Discover is a tool used by software developers to detect programming errors related to the allocation and use of program memory at runtime. It can…

Página 33

TABLE 4-1. EQUIVALENT COMPILER FLAGS AND WORKAROUNDS GCC 4.4.5 OPTIONS ORACLE SOLARIS STUDIO 12.3 OPTIONS DESCRIPTION (environment variable) -Yc…

Página 34

TABLE 4-1. EQUIVALENT COMPILER FLAGS AND WORKAROUNDS GCC 4.4.5 OPTIONS ORACLE SOLARIS STUDIO 12.3 OPTIONS DESCRIPTION -ffloat-store -[ no] fstore…

Página 35

TABLE 4-1. EQUIVALENT COMPILER FLAGS AND WORKAROUNDS GCC 4.4.5 OPTIONS ORACLE SOLARIS STUDIO 12.3 OPTIONS DESCRIPTION files. -nostdlib -xnolib Does…

Página 36

TABLE 4-1. EQUIVALENT COMPILER FLAGS AND WORKAROUNDS GCC 4.4.5 OPTIONS ORACLE SOLARIS STUDIO 12.3 OPTIONS DESCRIPTION -ffast-math -xlibmopt Enables…

Página 37

applications can have a dramatic impact on the overall performance of an application on Oracle Solaris. Open Source Software Libraries Most of the…

Página 38

TABLE 4-2. GNU COMMANDS MAPPING AND AVAILABILITY COMMAND VERSION ON RHEL LOCATION ON ORACLE SOLARIS 11 VERSION ON ORACLE SOLARIS 11 PACKAGE NAME ON…

Página 39

TABLE 4-2. GNU COMMANDS MAPPING AND AVAILABILITY COMMAND VERSION ON RHEL LOCATION ON ORACLE SOLARIS 11 VERSION ON ORACLE SOLARIS 11 PACKAGE NAME ON…

Página 40

TABLE 4-2. GNU COMMANDS MAPPING AND AVAILABILITY COMMAND VERSION ON RHEL LOCATION ON ORACLE SOLARIS 11 VERSION ON ORACLE SOLARIS 11 PACKAGE NAME ON…

Página 41

TABLE 4-2. GNU COMMANDS MAPPING AND AVAILABILITY COMMAND VERSION ON RHEL LOCATION ON ORACLE SOLARIS 11 VERSION ON ORACLE SOLARIS 11 PACKAGE NAME ON…

Página 42

TABLE 4-2. GNU COMMANDS MAPPING AND AVAILABILITY COMMAND VERSION ON RHEL LOCATION ON ORACLE SOLARIS 11 VERSION ON ORACLE SOLARIS 11 PACKAGE NAME ON…

Página 43

TABLE 4-2. GNU COMMANDS MAPPING AND AVAILABILITY COMMAND VERSION ON RHEL LOCATION ON ORACLE SOLARIS 11 VERSION ON ORACLE SOLARIS 11 PACKAGE NAME ON…

Página 44

TABLE 4-2. GNU COMMANDS MAPPING AND AVAILABILITY COMMAND VERSION ON RHEL LOCATION ON ORACLE SOLARIS 11 VERSION ON ORACLE SOLARIS 11 PACKAGE NAME ON…

Página 45

TABLE 4-2. GNU COMMANDS MAPPING AND AVAILABILITY COMMAND VERSION ON RHEL LOCATION ON ORACLE SOLARIS 11 VERSION ON ORACLE SOLARIS 11 PACKAGE NAME ON…

Página 46

TABLE 4-2. GNU COMMANDS MAPPING AND AVAILABILITY COMMAND VERSION ON RHEL LOCATION ON ORACLE SOLARIS 11 VERSION ON ORACLE SOLARIS 11 PACKAGE NAME ON…

Página 47

TABLE 4-2. GNU COMMANDS MAPPING AND AVAILABILITY COMMAND VERSION ON RHEL LOCATION ON ORACLE SOLARIS 11 VERSION ON ORACLE SOLARIS 11 PACKAGE NAME ON…

Página 48 - Debugging Applications

Debugging Applications Many powerful tools are available on Oracle Solaris 11 for debugging software. These debugging tools can be broadly categorized…

Página 49

and recompile a native source file and continue executing without rebuilding the entire program. You can resume running from the code fix location.…

Página 50

plockstat, which is a tool implemented using DTrace to print user-level lock statistics. This tool is very useful for analyzing and zeroing on lock…

Página 51 - Linux Threading Model

Chapter 5 Threads and Multiprocessing POSIX Compliance The standard POSIX.1c threads extensions (IEEE Std 1003.1c-1995) defines APIs for creating and…

Página 52

bash$ $( LD_ASSUME_KERNEL=2.12 ldd /bin/ls | grep libc.so |awk '{print $3}' ) | egrep -i 'threads|ntpl' Oracle Solaris Threading Model Before the…

Página 53

take into account some minor differences in the interface, which are largely due to edge cases left unspecified by the standard or by permitted…

Página 54

TABLE 5-1. IMPLEMENTATION-LEVEL DIFFERENCES FUNCTION RHEL ORACLE SOLARIS 11 int pthread_cancel(pthread_t thread); On Linux, cancellation is…

Página 55

Signals in Threaded Applications The RHEL POSIX thread implementation is process-centric. On RHEL, as far as signals are concerned, each thread is…

Página 56 - OpenMP Support

applications. The number of simultaneous threads that can be accommodated is quite large. Oracle Solaris 11 provides specific features that take…

Página 57 - Using Thread Analyzer

developer to specify how. Within legacy code, execution loops, in particular, often represent opportunities for optimization where previously…

Página 58 - % collect -r race app params

% collect -r race app params % collect -r deadlock app params Finally, the results of the experiment are loaded into the Thread Analyzer to identify…

Página 59 - RHEL ORACLE SOLARIS 11

Chapter 6 Migrating the Device Drivers and Kernel Device driver software is tightly coupled to the operating system it is running on. In order to…

Página 60

TABLE 6-2. ENTRY POINTS AND IMPLEMENTATION DIFFERENCES RHEL ORACLE SOLARIS 11 The kernel module daemon kmod execs modprobe. The kernel searches the…

Página 61

Device Driver Interface and Driver-Kernel Interface The following table lists the differences in data structures used by kernel modules on the two…

Página 62

init_module() in Linux initializes a loadable module entry. In Oracle Solaris, _init() initializes a loadable module. Within an _init() call, you need…

Página 63

Best Practices for Porting Device Drivers and Kernel Modules The porting of device drivers from one platform to the other might not be an easy job…

Página 64 - Chapter 7 Security

Chapter 7 Security Interfaces for Developers For data centers hosting enterprise applications, security is of utmost importance. In most enterprises…

Página 65 - Ensure Strong Defenses

The least privilege model includes nearly 50 fine-grained privileges as well as the basic privilege set. With the help of process privileges, system…

Página 66

A kernel cryptographic framework for kernel-level modules Note that consumers that are connected to the framework need not have any specific knowledge…

Página 67

TABLE 7-1. API AND IMPLEMENTATION DIFFERENCES RHEL ORACLE SOLARIS 11 int MD5_Final(unsigned char *md, MD5_CTX *c); void MD5Final(unsigned char…

Página 68

TABLE 7-1. API AND IMPLEMENTATION DIFFERENCES RHEL ORACLE SOLARIS 11 Blowfish Arcfour or RC4 Table 7-2 shows the differences in names and locations of…

Página 69

The hardware-assisted encryption can be used to enhance Oracle Database performance with Transparent Data Encryption (TDE) for column-level and…

Página 70

Chapter 8 Runtime Environment Though RHEL and Oracle Solaris are UNIX-based operating systems, there are some fundamental differences in their runtime…

Página 71

with the least privilege model to more securely run daemons such as httpd, which need to bind to privileged ports. Many such programs do not actually…

Página 72 - Resource Limits on RHEL

Resource Controls and Runtime Limits When moving from RHEL to Oracle Solaris 11, one reason an application might face problems is a difference in the…

Página 73 - Migrating Scripts

On RHEL, after reboot, the rc.sysinit initialization script reads the /etc/sysctl.conf file automatically. Resource Limits on Oracle Solaris 11 On…

Página 74

TABLE 8-1. COMMAND DIFFERENCES RHEL LEGACY COMMANDS ON ORACLE SOLARIS 11 INCOMPATIBLE OPTIONS WITH LEGACY COMMAND EQUIVALENT GNU UTILITY ON ORACLE…

Página 75

TABLE 8-1. COMMAND DIFFERENCES RHEL LEGACY COMMANDS ON ORACLE SOLARIS 11 INCOMPATIBLE OPTIONS WITH LEGACY COMMAND EQUIVALENT GNU UTILITY ON ORACLE…

Página 76

TABLE 8-1. COMMAND DIFFERENCES RHEL LEGACY COMMANDS ON ORACLE SOLARIS 11 INCOMPATIBLE OPTIONS WITH LEGACY COMMAND EQUIVALENT GNU UTILITY ON ORACLE…

Página 77

TABLE 8-1. COMMAND DIFFERENCES RHEL LEGACY COMMANDS ON ORACLE SOLARIS 11 INCOMPATIBLE OPTIONS WITH LEGACY COMMAND EQUIVALENT GNU UTILITY ON ORACLE…

Página 78

TABLE 8-1. COMMAND DIFFERENCES RHEL LEGACY COMMANDS ON ORACLE SOLARIS 11 INCOMPATIBLE OPTIONS WITH LEGACY COMMAND EQUIVALENT GNU UTILITY ON ORACLE…

Página 79

TABLE 8-1. COMMAND DIFFERENCES RHEL LEGACY COMMANDS ON ORACLE SOLARIS 11 INCOMPATIBLE OPTIONS WITH LEGACY COMMAND EQUIVALENT GNU UTILITY ON ORACLE…

Página 80 - RHEL Service Management

/etc/rcN.d/ directories. With this arrangement, now it is possible to have centralized commands such as chkconfig and /sbin/services manage all…

Página 81

#/sbin/chkconfig --list crond crond 0:off 1:off 2:on 3:on 4:on 5:on 6:off # /sbin/chkconfig crond --level 234 off # /sbin/chkconfig --list crond crond…

Página 82

intervention is required, system administrators can quickly identify the root cause of the service's failure and significantly reduce system down…

Página 83 - Migrating to SMF

You can disable a service with the following command, where service name is the name of the service that you want to disable: #svcadm disable service…

Página 84

Leveraging SMF Facilities in Oracle Solaris 11 The Oracle Solaris 11 SMF facility can be leveraged to do many new administrative tasks. For example…

Página 85

Chapter 9 Infrastructure Differences Most enterprise applications have a great deal in common—no matter what the application does or who uses it.…

Página 86

PAM Configuration and Differences The following table lists the PAM-related system administration command differences on the two platforms. TABLE 9-1.…

Página 87

TABLE 9-2. SEQUENCE OF FUNCTION CALLS DURING PAM INVOCATION STEP-BY-STEP SEQUENCE ACTUAL SEQUENCE OF FUNCTION CALLS The application initializes the…

Página 88

TABLE 9-2. SEQUENCE OF FUNCTION CALLS DURING PAM INVOCATION STEP-BY-STEP SEQUENCE ACTUAL SEQUENCE OF FUNCTION CALLS Modules of account-management type…

Página 89

Differences in PAM Data Structures and Function Calls The following table lists the differences in data structures used by PAM on the two platforms.…

Página 90 - # gcc -fPIC -c pam_module.c

Necessary Compiler Option, Linker Options, and Linked Libraries TABLE 9-4. COMPILATION STEPS AND MAKEFILE CHANGES RHEL ORACLE SOLARIS 11 # gcc -fPIC…

Página 91 - Applications

Chapter 10 Packaging and Distributing Applications With increasing trends towards consolidation using virtualization, system administrators are…

Página 92 - Categories of RPM Packages

Signature: The signature contains size, checksums, and other such package signatures. Tagged data: Tags are grouped together at the top of the file in…

Página 93

Packaging on Oracle Solaris 11 takes a new approach to package management that greatly simplifies the process of managing patches and updates to help…

Página 94 - • Package dependencies:

installation in order to refresh the system configuration. They can also specify actions such as creating users and groups as part of the package…

Página 95 - Upgrades

Implementation Differences for Packaging The following table lists out the basic infrastructure-level differences for packaging on both the platforms.…

Página 96

TABLE 10-2. SYSTEM ADMINISTRATION RHEL ORACLE SOLARIS 11 To install or upgrade a package, use the -U command-line option: #rpm -U filename.rpm The…

Página 97

TABLE 10-3. CREATING A PACKAGE RHEL ORACLE SOLARIS 11 On RHEL, consider that a tar file of the source is created and put in the /path name/dir-name…

Página 98

TABLE 10-3. CREATING A PACKAGE RHEL ORACLE SOLARIS 11 Step 4—Specify package contents Use the command pkgsend generate to parse through proto area…

Página 99

TABLE 10-4. PUBLISHING A PACKAGE RHEL ORACLE SOLARIS 11 Once the package is ready, it can be published on a Web server so it can be downloaded by end…

Página 100 - PRIVILEGE NAME DESCRIPTION

Appendix A Security and Privileges The Oracle Solaris 11 security privileges are defined in Table A-1. TABLE A-1. ORACLE SOLARIS 11 SECURITY…

Página 101

TABLE A-1. ORACLE SOLARIS 11 SECURITY PRIVILEGES PRIVILEGE NAME DESCRIPTION PRIV_FILE_DAC_SEARCH Allow a process to search a directory whose…

Página 102

TABLE A-1. ORACLE SOLARIS 11 SECURITY PRIVILEGES PRIVILEGE NAME DESCRIPTION PRIV_IPC_DAC_READ Allow a process to read a System V IPC message queue…

Página 103

TABLE A-1. ORACLE SOLARIS 11 SECURITY PRIVILEGES PRIVILEGE NAME DESCRIPTION PRIV_PROC_CHROOT Allow a process to change its root directory.…

Página 104

TABLE A-1. ORACLE SOLARIS 11 SECURITY PRIVILEGES PRIVILEGE NAME DESCRIPTION PRIV_SYS_AUDIT Allow a process to start the (kernel) audit daemon. Allow a…

Página 105

TABLE A-1. ORACLE SOLARIS 11 SECURITY PRIVILEGES PRIVILEGE NAME DESCRIPTION PRIV_SYS_RES_CONFIG Allow a process to create and delete processor sets…

Página 106

TABLE A-1. ORACLE SOLARIS 11 SECURITY PRIVILEGES PRIVILEGE NAME DESCRIPTION PRIV_WIN_DAC_READ Allow a process to read from a window resource that it…

Página 107

TABLE A-1. ORACLE SOLARIS 11 SECURITY PRIVILEGES PRIVILEGE NAME DESCRIPTION PRIV_WIN_MAC_WRITE Allow a process to create a window resource whose…

Página 108 - Flag Mapping

Appendix B GCC to Oracle Solaris Studio Compiler Flag Mapping The compiler flags shown in Table B-1 remain the same for both GCC and Oracle Solaris…

Página 109

TABLE B-1. COMPILER FLAGS THAT REMAIN THE SAME GCC OPTION ORACLE SOLARIS STUDIO 12.3 OPTION DESCRIPTION -O[ n] -xO[ n] Selects the optimization level.

Página 110

Red Hat Enterprise Linux to Oracle Solaris Porting Guide July 2012, Version 1.0 Oracle Corporation World Headquarters 500 Oracle Parkway Redwood…

Mais documentos para Sistemas operativos Red Hat ENTERPRISE LINUX 3 - DEVELOPER TOOLS GUIDE

Perguntas sobre Red Hat ENTERPRISE LINUX 3 - DEVELOPER TOOLS GUIDE

Ainda não há perguntas sobre este manual. Faça a primeira.

Fazer uma pergunta

Respondemos a partir do manual e indicamos a página. A pergunta é publicada no site depois de verificada.

Todas as perguntas e respostas ›

Manuais e produtos relacionados com Sistemas operativos Red Hat ENTERPRISE LINUX 3 - DEVELOPER TOOLS GUIDE