Need gcc binary for a SPARC machine


 
Thread Tools Search this Thread
Operating Systems Solaris Need gcc binary for a SPARC machine
# 15  
Old 09-11-2011
Quote:
Originally Posted by steve701
Jilliagre: regarding you dubting that gcc is all I need, then can you explain my question in this post:

Why is gcc missing from </usr/sfw/bin>
It would have helped if you have stayed in the original thread instead of starting new ones while still investigating the same issue.
Anyway, did you check is the SFWgcc package is reported to be installed by the OS ?
Quote:
why would sysadmin go ahead and remove the gcc out of there?
You do not provide evidence gcc has been removed from there.
# 16  
Old 09-11-2011
DukeNUke2: I am very close! I got the gcc tar package and unloaded it locally, then gcc complained about libiconv.so.2:

...which I know is a dependency, so I brought over:
libiconv-1.14-sol10-sparc-local

but that only has "libiconv.so.2.5.1" in it!!

even if I rename that to libiconv.so.2, how do I make gcc point to it? LD_LIBRARY_PATH does not work.... -L flag also did not do it on gcc...
# 17  
Old 09-11-2011
Quote:
Originally Posted by kermit
Steve, there are various reasons why the sysadmin would remove a compiler binary, not least of which is for security purposes. Not all systems need a compiler installed, and if not then there is no reason to leave one on in order to give tools to miscreants who want to build their own versions of system utilities etc. If you want a compiler on your system, you are going to have to talk to your sysadmin.
Hah! I hope all the security "experts" out there are also completely removing all forms of Perl from their machines.

And that's just one way to get around someone who thinks "I can make a system more secure by deleting compilers".

No you can't. Because you're not really changing what any user can actually DO.
# 18  
Old 09-11-2011
All: I am DONE!! finitto! I threw in a sym link from
libiconv.so.2 to libiconv.so.2.5.1. Then include 2 other directories in the lib path using LD_LIBRARY_PATH
-SMCliconv/reloc/lib
-SMCgcc/reloc/lib
and the damn code compiled and linked.
..And I am home free

And concluded that one can indeed install the entire gcc locally without root access and it does still work like normal.

Thanks for all your help!
Login or Register to Ask a Question

Previous Thread | Next Thread

8 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

Start /SYS on SUN SPARC does not start machine [SUN SPARC ENTERPRISE T-5240]

-> start /SYS Are you sure you want to start /SYS (y/n)? y Starting /SYS ]-> show HOST /HOST Targets: bootmode diag domain Properties: autorestart = reset autorunonerror = false bootfailrecovery = poweroff ... (29 Replies)
Discussion started by: z_haseeb
29 Replies

2. Solaris

Solaris virtual machine SPARC?

Hello, please, can somebody tell me if can i virtualize Solaris 11 SPARC architecture in a x86 PC? Virtualbox allows doing that? i need to run Solaris 11 SPARC to make a lab, and dont have any SUN machine to do on it. Thanks in advance! (9 Replies)
Discussion started by: MuziKizuM
9 Replies

3. Solaris

Newly Compiled GCC 4.4.4 on Solaris sparc gives problem with -m32/-m64 flags

Hello experts, This issue has kept me busy all day long. It started off with openssl compilation which was giving linking error with following message: /usr/local/bin/ld: target elf32-sparc not found collect2: ld returned 1 exit status I tried every step possible thing that I could think... (2 Replies)
Discussion started by: d_shanke
2 Replies

4. Programming

Header file compilation using gcc in Sparc Solaris

I am facing problem while migrating the c++ code from Linux to Solaris. In linux the code is absolutly compiled fine with GCC compiler but when i am using the same in Solaris it coomplains bash-3.1$ gcc LibSip.h gcc: Compilation of header file requested The same command is working fine in... (2 Replies)
Discussion started by: mrupesh74
2 Replies

5. UNIX for Dummies Questions & Answers

Booting SPARC 5 Machine 's CD-ROM

Hi, I have inherited a Ultra 5 SPARC machine that I need to boot from its CD-ROM. WHen I turn on the machine it just boots to its hard drive. How do I get it to boot from the CD-ROM. I am a Solaris newbie.... (1 Reply)
Discussion started by: mojoman
1 Replies

6. Solaris

Installing gcc on SPARC 5.9

Hi, I am trying to install gcc on SPARC 5.9 pkgadd -d gcc-3.4.2-sol9-sparc-local i get the below error pkgadd: ERROR: attempt to process datastream failed - open of <gcc-3.4.2-sol9-sparc-local> failed, errno=2 pkgadd: ERROR: could not process datastream from... (3 Replies)
Discussion started by: saharookiedba
3 Replies

7. Solaris

gcc 4.2.0 from SUN binary gccfss

Hi All I have installed the above version of gcc from the SUN binaries and recieved the following linker error when trying to compile and link a hello world test program written in C++. ld: fatal: option -z has illegal argument `ld32=-S/export/home/sources/gcc_SUN_b... (2 Replies)
Discussion started by: C3000
2 Replies

8. Solaris

Where to buy used Sparc machine

Hello, I plan to take the SCSA exam. I think if I have a Sparc machine that will be very helpful, though I could run VMWare on Win system. So could anyone know where I can buy a used workstaion. I am not dare going to eBay :) , (I am not sure the source is reliable). I live in up NY state. And... (1 Reply)
Discussion started by: billshu
1 Replies
Login or Register to Ask a Question