Sponsored Content
Top Forums Programming I can't compile (gcc) in Solaris 11.3 non global zone Post 303005518 by sugar222 on Wednesday 18th of October 2017 11:28:24 PM
Old 10-19-2017
This is what I am getting:

file /export/home/aldo/OpenIPMI-2.0.24/lib/.libs/libOpenIPMI.so
Code:
/export/home/aldo/OpenIPMI-2.0.24/lib/.libs/libOpenIPMI.so:     ELF 32-bit LSB dynamic lib 80386 Version 1, dynamically linked, not stripped


gcc -o hw hw.c (no warnings at all)
./hw
Code:
Hello World

file ./hw
Code:
./hw:           ELF 32-bit LSB executable 80386 Version 1, dynamically linked, not stripped, no debugging information available


am I doing something wrong?
Should I compile with like a 64 bit flag or something?


by the way, here my system's information (from global zone):

isalist
Code:
amd64 pentium_pro+mmx pentium_pro pentium+mmx pentium i486 i386 i86

isainfo -v
Code:
64-bit amd64 applications
        pclmulqdq aes sse4.2 sse4.1 ssse3 popcnt tscp ahf cx16 sse3 sse2 sse
        fxsr mmx cmov amd_sysc cx8 tsc fpu
32-bit i386 applications
        pclmulqdq aes sse4.2 sse4.1 ssse3 popcnt tscp ahf cx16 sse3 sse2 sse
        fxsr mmx cmov sep cx8 tsc fpu


prtdiag -l
Code:
System Configuration: Oracle Corporation SUN FIRE X4270 M2 SERVER
BIOS Configuration: American Megatrends Inc. 08120103 03/27/2012
BMC Configuration: IPMI 1.5 (KCS: Keyboard Controller Style)

==== Processor Sockets ====================================

Version                          Location Tag
-------------------------------- --------------------------
Intel(R) Xeon(R) CPU           X5690  @ 3.47GHz CPU 0
Intel(R) Xeon(R) CPU           X5690  @ 3.47GHz CPU 1

==== Memory Device Sockets ================================

Type        Status Set Device Locator      Bank Locator
----------- ------ --- ------------------- ----------------
DDR3        in use 0   D2                  /SYS/MB/P0
DDR3        in use 0   D1                  /SYS/MB/P0
DDR3        in use 0   D0                  /SYS/MB/P0
DDR3        in use 0   D5                  /SYS/MB/P0
DDR3        in use 0   D4                  /SYS/MB/P0
DDR3        in use 0   D3                  /SYS/MB/P0
DDR3        in use 0   D8                  /SYS/MB/P0
DDR3        in use 0   D7                  /SYS/MB/P0
DDR3        in use 0   D6                  /SYS/MB/P0
DDR3        in use 0   D2                  /SYS/MB/P1
DDR3        in use 0   D1                  /SYS/MB/P1
DDR3        in use 0   D0                  /SYS/MB/P1
DDR3        in use 0   D5                  /SYS/MB/P1
DDR3        in use 0   D4                  /SYS/MB/P1
DDR3        in use 0   D3                  /SYS/MB/P1
DDR3        in use 0   D8                  /SYS/MB/P1
DDR3        in use 0   D7                  /SYS/MB/P1
DDR3        in use 0   D6                  /SYS/MB/P1
FLASH       in use 0

==== On-Board Devices =====================================
 Intel 82576 Ethernet Controller.
 Intel 82576 Ethernet Controller.
 Intel 82576 Ethernet Controller.
 Intel 82576 Ethernet Controller.
ICH10R SATA Controller.

==== Upgradeable Slots ====================================

ID  Status    Type             Description
--- --------- ---------------- ----------------------------
1   available PCI Express      PCIE0
2   available PCI Express      PCIE1
3   available PCI Express      PCIE2
4   in use    PCI Express      PCIE3
5   in use    PCI Express      PCIE4
6   available PCI Express      PCIE5


prtconf
Code:
System Configuration:  Oracle Corporation  i86pc
Memory size: 73720 Megabytes
System Peripherals (Software Nodes):

i86pc
    scsi_vhci, instance #0
    pci, instance #0
        pci108e,484c (driver not attached)
        pci8086,3408, instance #0
            pci108e,484c, instance #0
            pci108e,484c, instance #1
        pci8086,3409, instance #1
            pci108e,484c, instance #2
            pci108e,484c, instance #3
        pci8086,340a, instance #2
            pci1000,9263, instance #0
                sd, instance #0
                sd, instance #1
        pci8086,340c (driver not attached)
        pci8086,340e, instance #4
            pci111d,806e, instance #6
                pci111d,806e, instance #7
                    pci1077,171, instance #0
                        fp, instance #2
                    pci1077,171, instance #1
                        fp, instance #0
                pci111d,806e, instance #8
        pci8086,3410, instance #5
            pci111d,806e, instance #9
                pci111d,806e, instance #10
                pci111d,806e, instance #11
        pci8086,342d (driver not attached)
        pci8086,342e (driver not attached)
        pci8086,3422 (driver not attached)
        pci8086,3423, instance #0
        pci8086,3438 (driver not attached)
        pci108e,484c (driver not attached)
        pci108e,484c (driver not attached)
        pci108e,484c (driver not attached)
        pci108e,484c (driver not attached)
        pci108e,484c (driver not attached)
        pci108e,484c (driver not attached)
        pci108e,484c (driver not attached)
        pci108e,484c (driver not attached)
        pci108e,484c, instance #0
        pci108e,484c, instance #1
        pci108e,484c, instance #2
            device, instance #1
                keyboard, instance #2
                mouse, instance #3
        pci108e,484c, instance #0
            hub, instance #0
                communications, instance #0
        pci108e,484c, instance #3
        pci108e,484c, instance #4
        pci108e,484c, instance #5
        pci108e,484c, instance #1
            hub, instance #1
        pci8086,244e, instance #0
            display, instance #0
        isa, instance #0
            motherboard (driver not attached)
            asy, instance #0
            motherboard (driver not attached)
            pit_beep, instance #0
        pci108e,484c, instance #0
        pci108e,484c (driver not attached)
    ioapics (driver not attached)
        ioapic, instance #0 (driver not attached)
    fw, instance #0
        cpu, instance #0
        cpu, instance #1
        cpu, instance #2
        cpu, instance #3
        cpu, instance #4
        cpu, instance #5
        cpu, instance #6
        cpu, instance #7
        cpu, instance #8
        cpu, instance #9
        cpu, instance #10
        cpu, instance #11
        cpu, instance #12
        cpu, instance #13
        cpu, instance #14
        cpu, instance #15
        cpu, instance #16
        cpu, instance #17
        cpu, instance #18
        cpu, instance #19
        cpu, instance #20
        cpu, instance #21
        cpu, instance #22
        cpu, instance #23
        sb, instance #1
    used-resources (driver not attached)
    fcoe, instance #0
    iscsi, instance #0
    options, instance #0
    pseudo, instance #0
    vga_arbiter, instance #0
    xsvc, instance #0
    intel-iommu, instance #0

---------- Post updated at 08:28 PM ---------- Previous update was at 07:59 PM ----------

Note: Here the output of the hello world code compiled with the 64 flag:

Code:
root@zabbix:/export/home/aldo/compiler-test# gcc -m64 -o hw64 hw.c
root@zabbix:/export/home/aldo/compiler-test# ./hw64
Hello World
root@zabbix:/export/home/aldo/compiler-test# file hw64
hw64:           ELF 64-bit LSB executable AMD64 Version 1, dynamically linked, not stripped, no debugging information available

 

9 More Discussions You Might Find Interesting

1. Solaris

Solaris Zone : Non global Zone check failed

Hi All , I try to install some packages in my global zone... On the execution of the installion of the script it quits by saying the error "Non global zone check failed" Kindly help me in this regard Thanks in advance, jeganr (7 Replies)
Discussion started by: jegaraman
7 Replies

2. Solaris

[b]How to mount a folder from global zone to non global zone??

Hi All There is one folder in global zone I just want to share the same folder innon global zone. How can i do it? pls send me script for this. (2 Replies)
Discussion started by: vijaysachin
2 Replies

3. Solaris

Solaris 10 local zone on Solaris 11 global zone

Hi, A quick question: Can Solaris 10 local zones be moved to a Solaris 11 global zone and work well? Thank you in advance! (5 Replies)
Discussion started by: aixlover
5 Replies

4. Solaris

Not able to start non global zone on Solaris 11

I have configured three zones on Solaris-11. These are non-global zones contain Solaris-11 only. One of the zone is not booting up, complaining about IP address in use, while it is not. root@tdpdmsp02 # zoneadm list -icv ID NAME STATUS PATH BRAND IP... (3 Replies)
Discussion started by: solaris_1977
3 Replies

5. Solaris

Solaris non-global zone network vlan

Have 2 nics on physical system net0 phys 1500 up -- net1 phys 1500 up -- 1. I want to create a link aggregation with LACP enabled with above 2 nics 2. Create port-group(Like we create on ESXi) with VLAN-ID 2141 3. And assign this... (0 Replies)
Discussion started by: Shirishlnx
0 Replies

6. Solaris

Solaris 11 global zone timezone

Am new on Solaris If I compare with ESXi default timezone is UTC and we have to set BIOS timezone to UTC too . What we follow and best practice in Solaris Sparc servers . Thanks in advance . (2 Replies)
Discussion started by: Shirishlnx
2 Replies

7. Solaris

Solaris non-global zone cpu pinning

Am new on solaris :):confused: Have below questions for dedicated-cpu cores 1. For licensing I want to assign 2 core per non-global zone one from each processor. Am using below but seems it's not supported . root@solaris-test:~# psrinfo 0 on-line since 04/25/2016... (3 Replies)
Discussion started by: Shirishlnx
3 Replies

8. Solaris

Solaris 11 Global zone patching having Solaris 10 branded zone

I am planning to do solaris 11 global zone patching having solaris 10 branded zone. I have a doubts on step 8 specially Can someone clear my step 8 doubts or if anything wrong between step 1 to step 9 please correct that also as I have pretty good idea about Step 10 mean patching in solaris 10... (2 Replies)
Discussion started by: amity
2 Replies

9. Solaris

Solaris 11 zone has no external network access (except to Global Zone)

Hi, hoping someone can help, its been a while since I used Solaris. After creating a NGZ (non global zone), the NGZ can access the GZ (Global Zone) and the GZ can access the NGZ (using ssh, zlogin) However, the NGZ cannot access any other netwqork devices, it can't even see the default router ... (2 Replies)
Discussion started by: GazinLincoln
2 Replies
All times are GMT -4. The time now is 07:55 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy