03-08-2004
gcc problems
I downloaded and installed the gcc binaries recently. I am now trying to compile openssh, but I get bad compiler issues when I try this.
in the openssh directory, I run:
./configure
(mind you, I have usr/local/bin/gcc in my PATH)
but the output says checking for gcc... no
Why can't it find my gcc to compile this?
When I run the evn command to view my PATH is see:
PATH=/usr/bin:/usr/sbin:/bin:/usr/local/bin/gcc:/usr/ucb:/usr/apps/matrix/scripts:/usr/oracle/app/bin:usr/local/bin:/usr/ccs/bin:/usr/ucb:/etc:.:/usr/dt/bin:/usr/openwin/bin
When I run the whereis gcc and which gcc commands I get conflicting output:
bash-2.05# whereis gcc
gcc: /usr/local/bin/gcc
bash-2.05# which gcc
no gcc in /usr/bin /usr/sbin /bin /usr/local/bin/gcc /usr/ucb /usr/apps/matrix/scripts /usr/oracle/app/bin usr/local/bin /usr/ccs/bin /usr/ucb /etc . /usr/dt/bin /usr/openwin/bin
whereis finds gcc, but which cannot?
Also, how can I set gcc as my default compiler?
I am running Solaris9 on SPARC FYI. thanks and please help asap. I've spent too much time on this already.--thanks--AJ
Last edited by AJA; 03-08-2004 at 02:15 PM..
10 More Discussions You Might Find Interesting
1. Programming
Dear all,
Any body please guide, i require a C which will run in Linux environment. Its urgent please.
warm regards,
Senthil K (1 Reply)
Discussion started by: Senthil
1 Replies
2. SCO
Hy everone!
I have an old SCO 5.x machine on which I want to install openssh. Since there was no GCC compiler installed I had to install that too. I'm not a programmer and not so familiar with SCO, so I have a couple of questions.
I did everything "by the book" as it says here:
Where can I... (1 Reply)
Discussion started by: veccinho
1 Replies
3. Solaris
AIM- Install Oracle 11g on Solaris using VMWare
Steps
1.Logged on as root
2.Created subfolders à /usr/local/bin & /usr/local/bin/gcc
3.Downloaded gcc & libiconv & unzipped them on my harddrive & burnt them on CD
4.Copied files from CD to /usr/local/bin/gcc
5.Terminal (root) à pkgadd -d... (8 Replies)
Discussion started by: Ackers
8 Replies
4. UNIX for Dummies Questions & Answers
Hi, I seem to be getting errors in relation to GCC it seems as I cant upgrade alot of pkgs until I can upgrade or use a later version of GCC.
The error I get is along the lines of ( cc1: error: unrecognized command line option "-Wno-pointer-sign"
*** Error code 1 )
Anyway I was wondering if... (2 Replies)
Discussion started by: Browser
2 Replies
5. AIX
I just installed gcc on AIX 4.33, and I am having some problems with compiling a simple hello world program. See output below for the issue. The "standards.h" file is not on my system and I don't know where to get it.
Thanks in advance for your help!
# gcc -v
Reading specs from... (2 Replies)
Discussion started by: jhall
2 Replies
6. UNIX for Advanced & Expert Users
Hello, dont know much about C, or gcc, but I am trying to compile a program that built fine in gcc3, but is outputting errors in gcc4,
int load_REs(char *, char ); #this line is causing the error
DB_Query.h:22: error: array type has incomplete element type
any help would be appreciated. (3 Replies)
Discussion started by: mike171562
3 Replies
7. UNIX for Dummies Questions & Answers
Hi, I have recently got a job in unix, now training is going on and we have been practicing on telnet, so to practice at home I have installed vmware(virtual machine) and planning to download ubuntu. So my doubt is that whether I can write c and cpp progs in vi editor and can I run them by default... (5 Replies)
Discussion started by: vishal.973s
5 Replies
8. Linux
Hello
I'm not able to install gcc.
My platform is
# uname -a
Linux localhost 2.6.18-194.el5 #1 SMP Fri Apr 2 14:58:14 EDT 2010 x86_64 x86_64 x86_64 GNU/Linux
#yum install gcc
I got the following error
---> Package libgfortran44.x86_64 0:4.4.4-13.el5 set to be updated
---> Package... (2 Replies)
Discussion started by: My Style
2 Replies
9. Programming
I need a lot of help with c programming.
I have the source code.
Running configure, I got one error message about a missing library.
I downloaded and successfully compiled it in another dir.
Do I throw all the new files into my source dir and run configure again ?
Thanks. (3 Replies)
Discussion started by: drew77
3 Replies
10. AIX
We need gcc 7.2 on AIX 7.2 and so I tried to install the rpm package from IBM (<https://www-03.ibm.com/systems/power/software/aix/linux/toolbox/alpha.html>)
The steps were as follows (I downloaded all packages from the given IBM toolbox page):
# :-)rpm -ihv gcc-7.2.0-1.aix7.2.ppc.rpm
error:... (2 Replies)
Discussion started by: BuSchu
2 Replies
LEARN ABOUT DEBIAN
hardened-cc
HARDENED-CC(1) Debian GNU/Linux HARDENED-CC(1)
NAME
hardened-cc - gcc wrapper to enforce hardening toolchain improvements
SYNOPSIS
export DEB_BUILD_HARDENING=1
gcc ...
DESCRIPTION
The hardened-cc wrapper is normally used by calling gcc as usual when DEB_BUILD_HARDENING is set to 1. It will configure the necessary
toolchain hardening features. By default, all features are enabled. If a given feature does not work correctly and needs to be disabled,
the corresponding environment variables mentioned below can be set to 0.
ENVIRONMENT
DEB_BUILD_HARDENING=1
Enable hardening features.
DEB_BUILD_HARDENING_DEBUG=1
Print the full resulting gcc command line to STDERR before calling gcc.
DEB_BUILD_HARDENING_STACKPROTECTOR=0
Disable stack overflow protection. See README.Debian for details.
DEB_BUILD_HARDENING_RELRO=0
Disable read-only linker sections. See README.Debian for details.
DEB_BUILD_HARDENING_FORTIFY=0
Don't fortify several standard functions. See README.Debian for details.
DEB_BUILD_HARDENING_PIE=0
Don't build position independent executables. See README.Debian for details.
DEB_BUILD_HARDENING_FORMAT=0
Disable unsafe format string usage errors. See README.Debian for details.
NOTES
System-wide settings can be added to /etc/hardening-wrapper.conf, one per line.
The real gcc symlinks are renamed gcc.real, and a diversion is registered with dpkg-divert(1). Thus hardened-cc's idea of the default gcc
is dictated by whatever package installed /usr/bin/gcc.
SEE ALSO
hardened-ld(1) gcc(1)
Debian Project 2008-01-08 HARDENED-CC(1)