* C Compiler
@ 2003-12-27 8:20 Peter
2003-12-27 10:18 ` Amin
` (3 more replies)
0 siblings, 4 replies; 11+ messages in thread
From: Peter @ 2003-12-27 8:20 UTC (permalink / raw)
To: linux-newbie
Season Greetings!
Trying to install a program I get:
checking for C compiler default output... configure: error: C compiler cannot
create executables
when doing ./configure in RH9.
How do I correct this error?
Thanks & regards
--
Peter
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs
^ permalink raw reply [flat|nested] 11+ messages in thread* Re: C Compiler 2003-12-27 8:20 C Compiler Peter @ 2003-12-27 10:18 ` Amin 2003-12-27 11:10 ` John Kelly ` (2 subsequent siblings) 3 siblings, 0 replies; 11+ messages in thread From: Amin @ 2003-12-27 10:18 UTC (permalink / raw) To: linux-newbie On Saturday 27 Dec 2003 14:20, Peter wrote: > checking for C compiler default output... configure: error: C > compiler cannot create executables Try searching for this exact phrase, with quotation marks surrounding it, on Google. HTH, Yawar Amin - To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.linux-learn.org/faqs ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: C Compiler 2003-12-27 8:20 C Compiler Peter 2003-12-27 10:18 ` Amin @ 2003-12-27 11:10 ` John Kelly 2003-12-27 17:46 ` caszonyi 2003-12-28 4:21 ` joy 3 siblings, 0 replies; 11+ messages in thread From: John Kelly @ 2003-12-27 11:10 UTC (permalink / raw) To: linux-newbie On Sat, 27 Dec 2003 16:20:40 +0800 Peter wrote: > > Trying to install a program I get: > > checking for C compiler default output... configure: error: C compiler cannot > create executables > > when doing ./configure in RH9. > > How do I correct this error? I can't be of much help here since I stopped using RedHat at version 7.3. However it sounds like your C compiler may be broken. What do you get from the following commands: rpm -qa | grep gcc gcc --version Can you write a hello world program and compile it by hand? If gcc is installed and working, perhaps the configure script is not finding it. Try ./configure --help. You can usually pass ./configure an option to force it to use your gcc. Hth. John - To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.linux-learn.org/faqs ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: C Compiler 2003-12-27 8:20 C Compiler Peter 2003-12-27 10:18 ` Amin 2003-12-27 11:10 ` John Kelly @ 2003-12-27 17:46 ` caszonyi 2003-12-28 4:21 ` joy 3 siblings, 0 replies; 11+ messages in thread From: caszonyi @ 2003-12-27 17:46 UTC (permalink / raw) To: Peter; +Cc: linux-newbie On Sat, 27 Dec 2003, Peter wrote: > Season Greetings! > > Trying to install a program I get: > > checking for C compiler default output... configure: error: C compiler cannot > create executables > > when doing ./configure in RH9. > > How do I correct this error? > you *must* install gcc and development packages for gcc and glibc > Thanks & regards > -- > Peter > - To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.linux-learn.org/faqs ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: C Compiler 2003-12-27 8:20 C Compiler Peter ` (2 preceding siblings ...) 2003-12-27 17:46 ` caszonyi @ 2003-12-28 4:21 ` joy 2003-12-29 12:51 ` setgid: Operation not permitted chuck gelm net 3 siblings, 1 reply; 11+ messages in thread From: joy @ 2003-12-28 4:21 UTC (permalink / raw) To: Peter; +Cc: linux-newbie Peter wrote: >Season Greetings! > >Trying to install a program I get: > >checking for C compiler default output... configure: error: C compiler cannot >create executables > >when doing ./configure in RH9. > >How do I correct this error? > >Thanks & regards > > I used to get the same message on my Deb system. I had not installed glibc ( I was trying to do everything manually :-) and some other packages related to gcc. reinstall gcc from scratch and you are done. - To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.linux-learn.org/faqs ^ permalink raw reply [flat|nested] 11+ messages in thread
* setgid: Operation not permitted 2003-12-28 4:21 ` joy @ 2003-12-29 12:51 ` chuck gelm net 2003-12-29 16:26 ` Ray Olszewski 2003-12-29 20:44 ` caszonyi 0 siblings, 2 replies; 11+ messages in thread From: chuck gelm net @ 2003-12-29 12:51 UTC (permalink / raw) To: linux-newbie Howdy: I broke something on my file server and now I can no longer 'su' (root) remotely. When I try I get this error: setgid: Operation not permitted Often I logged on remotely and issued su cd /hde3 chmod -R 775 * chgrp -R users So that I could 'rw' the files in that directory from any of my Windows workstations. OBTW, ("/hde3" is /dev/hde3). What might I have done and how do I fix it? The system is an old amd-k6-266 running Slackware-8.0 kernel 2.4.19 configured as a file server using nfs and samba. Happy holidays and new year, Chuck - To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.linux-learn.org/faqs ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: setgid: Operation not permitted 2003-12-29 12:51 ` setgid: Operation not permitted chuck gelm net @ 2003-12-29 16:26 ` Ray Olszewski 2003-12-29 18:41 ` chuck gelm net 2003-12-30 0:40 ` chuck gelm net 2003-12-29 20:44 ` caszonyi 1 sibling, 2 replies; 11+ messages in thread From: Ray Olszewski @ 2003-12-29 16:26 UTC (permalink / raw) To: linux-newbie At 07:51 AM 12/29/2003 -0500, chuck gelm net wrote: >Howdy: > > I broke something on my file server and now I can no longer >'su' (root) remotely. When I try I get this error: > >setgid: Operation not permitted > > Often I logged on remotely and issued > >su >cd /hde3 >chmod -R 775 * >chgrp -R users > >So that I could 'rw' the files in that directory >from any of my Windows workstations. >OBTW, ("/hde3" is /dev/hde3). > > What might I have done and how do I fix it? > > The system is an old amd-k6-266 running >Slackware-8.0 kernel 2.4.19 configured as a file server >using nfs and samba. "What might I have done" is always a tough question to answer. I'm assuming a couple of details that you left out, namely that (a) the message you quote occurs right after you enter the root password, with nothing in between, and (b) the su then fails, leaving you at whatever userid you were at before entering the "su" command. Also that the exact command you enter is "su" (not, for example, "su -") and that it is entered at a normal-looking command prompt. I'd check these things: 1. In /etc/passwd, is root still group 0? 2. In /etc/group, is group 0 present and named "root"? 3. Are any relevant filesystems misset to be read-only? (If your system even has an hde drive, it is unusual in some respect.) 4. Did anything odd get changed in /etc/login.defs? 5. Did anything odd get added to root's profile (/root/.profile, I think)? 6. Did you do any update to the system recently that might have introduced a library mismatch with su? (I'm not sure which library has the setgid() call, but glibc is likely.) Finally, have you tried a console login and su? If not, you should, to detemine if the problem is connected with the remote aspect of the process. If it is, you need to provide more detail about it ... telnet, ssh, rsh, or what, for example? Might there be restrictions on what the system will permit that login method to do? You mention that the system runs nfs and samba ... do they play any obvious role in what you are doing (e.g., is either relevant home directory an nfs share)? - To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.linux-learn.org/faqs ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: setgid: Operation not permitted 2003-12-29 16:26 ` Ray Olszewski @ 2003-12-29 18:41 ` chuck gelm net 2003-12-30 18:26 ` Jos Lemmerling 2003-12-30 0:40 ` chuck gelm net 1 sibling, 1 reply; 11+ messages in thread From: chuck gelm net @ 2003-12-29 18:41 UTC (permalink / raw) To: Ray Olszewski; +Cc: linux-newbie Thanks, Ray: I'll fill in some of the details that I left out. * 'su' on the console works normally. See session below. I am not familiar with 'su -'. :-| It is a telnet session from a windows workstation: ------------------------------------------------- server login: gelmce Password: Linux 2.4.19. Last login: Mon Dec 29 14:02:26 -0500 2003 on pts/0 from web. No mail. Pause for storage relocation. gelmce@server:~$ su root Password: setgid: Operation not permitted gelmce@server:~$ whoami gelmce ------------------------------------------------- I've not noticed that "Pause for storage relocation." message before. I wonder what it means. > 3. Are any relevant filesystems misset to be read-only? (If your system > even has an hde drive, it is unusual in some respect.) Yes. I have a Maxtor (Promise) ATA-U100 add on IDE card. It controls /dev/hde,f,g,h. /dev/hda1 is mounted as '/' /dev/hda3 is mounted as '/usr' These are the only 'system' mounts, so /home/gelmce is on /dev/hda1. > (e.g., is > either relevant home directory an nfs share)? No. All (both) shares are separate file systems and are mounted from rc.local. This is all I can answer so far. I'll try your suggestions and return. Many thanks, Chuck > Ray Olszewski wrote: > > At 07:51 AM 12/29/2003 -0500, chuck gelm net wrote: > >Howdy: > > > > I broke something on my file server and now I can no longer > >'su' (root) remotely. When I try I get this error: > > > >setgid: Operation not permitted > > > > Often I logged on remotely and issued > > > >su > >cd /hde3 > >chmod -R 775 * > >chgrp -R users > > > >So that I could 'rw' the files in that directory > >from any of my Windows workstations. > >OBTW, ("/hde3" is /dev/hde3). > > > > What might I have done and how do I fix it? > > > > The system is an old amd-k6-266 running > >Slackware-8.0 kernel 2.4.19 configured as a file server > >using nfs and samba. > > "What might I have done" is always a tough question to answer. I'm assuming > a couple of details that you left out, namely that (a) the message you > quote occurs right after you enter the root password, with nothing in > between, and (b) the su then fails, leaving you at whatever userid you were > at before entering the "su" command. Also that the exact command you enter > is "su" (not, for example, "su -") and that it is entered at a > normal-looking command prompt. > > I'd check these things: > > 1. In /etc/passwd, is root still group 0? > 2. In /etc/group, is group 0 present and named "root"? > 3. Are any relevant filesystems misset to be read-only? (If your system > even has an hde drive, it is unusual in some respect.) > 4. Did anything odd get changed in /etc/login.defs? > 5. Did anything odd get added to root's profile (/root/.profile, I think)? > 6. Did you do any update to the system recently that might have introduced > a library mismatch with su? (I'm not sure which library has the setgid() > call, but glibc is likely.) > > Finally, have you tried a console login and su? If not, you should, to > detemine if the problem is connected with the remote aspect of the process. > If it is, you need to provide more detail about it ... telnet, ssh, rsh, or > what, for example? Might there be restrictions on what the system will > permit that login method to do? You mention that the system runs nfs and > samba ... do they play any obvious role in what you are doing (e.g., is > either relevant home directory an nfs share)? - To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.linux-learn.org/faqs ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: setgid: Operation not permitted 2003-12-29 18:41 ` chuck gelm net @ 2003-12-30 18:26 ` Jos Lemmerling 0 siblings, 0 replies; 11+ messages in thread From: Jos Lemmerling @ 2003-12-30 18:26 UTC (permalink / raw) To: linux-newbie; +Cc: chuck gelm net On Mon, 29 Dec 2003, chuck gelm net wrote: > I am not familiar with 'su -'. :-| From the manpage of "su": If the first argument to su is a dash (-), the environment will be changed to what would be expected if the user actually logged in as the specified user. Otherwise, the environment is passed along, with the exception of $PATH, which is controlled by PATH and SUPATH in /etc/default/su. Additionally, the user's project ID is set if the dash argument is present. See settaskid(2). In most cases it's better to use the little dash... :) grtz -- Jos Lemmerling on Debian GNU/Linux jos(@)lemmerling(.nl) - To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.linux-learn.org/faqs ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: setgid: Operation not permitted 2003-12-29 16:26 ` Ray Olszewski 2003-12-29 18:41 ` chuck gelm net @ 2003-12-30 0:40 ` chuck gelm net 1 sibling, 0 replies; 11+ messages in thread From: chuck gelm net @ 2003-12-30 0:40 UTC (permalink / raw) To: linux-newbie We found it. Thanks, Ray & caszonyi. I think I accidentally issued this command chmod -R 775 * while in the directory /bin instead of in the directory /hde3, because 'ls -l su' returned -rwxrwxr-x root root su on the file server, while I get -rws--x--x root root su on the web server (kernel-2.2.19). I then cd'd to /bin and issued chmod 4711 su Now 'ls -l su' returns -rws--x--x root root su and I can now logon remotely and 'su root'. :-) Now, I suppose that I have many files in /bin incorrectly set to -rwxrwxr-x instead of -rws--x--x or whatever they should be. :-| Regards, Chuck Ray Olszewski wrote: > > At 07:51 AM 12/29/2003 -0500, chuck gelm net wrote: > >Howdy: > > > > I broke something on my file server and now I can no longer > >'su' (root) remotely. When I try I get this error: > > > >setgid: Operation not permitted > > > > Often I logged on remotely and issued > > > >su > >cd /hde3 > >chmod -R 775 * > >chgrp -R users <snip> - To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.linux-learn.org/faqs ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: setgid: Operation not permitted 2003-12-29 12:51 ` setgid: Operation not permitted chuck gelm net 2003-12-29 16:26 ` Ray Olszewski @ 2003-12-29 20:44 ` caszonyi 1 sibling, 0 replies; 11+ messages in thread From: caszonyi @ 2003-12-29 20:44 UTC (permalink / raw) To: chuck gelm net; +Cc: linux-newbie On Mon, 29 Dec 2003, chuck gelm net wrote: > Howdy: > > I broke something on my file server and now I can no longer > 'su' (root) remotely. When I try I get this error: > > setgid: Operation not permitted > su must be setuid root to operate you must issue the following command as root: chmod 4755 /bin/su - To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.linux-learn.org/faqs ^ permalink raw reply [flat|nested] 11+ messages in thread
end of thread, other threads:[~2003-12-30 18:26 UTC | newest] Thread overview: 11+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2003-12-27 8:20 C Compiler Peter 2003-12-27 10:18 ` Amin 2003-12-27 11:10 ` John Kelly 2003-12-27 17:46 ` caszonyi 2003-12-28 4:21 ` joy 2003-12-29 12:51 ` setgid: Operation not permitted chuck gelm net 2003-12-29 16:26 ` Ray Olszewski 2003-12-29 18:41 ` chuck gelm net 2003-12-30 18:26 ` Jos Lemmerling 2003-12-30 0:40 ` chuck gelm net 2003-12-29 20:44 ` caszonyi
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox