Re: compile problem on older program

2017-10-29 Thread tomas
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Sun, Oct 29, 2017 at 11:53:22AM +0100, Thomas Schmitt wrote: > Hi, > > to...@tuxteam.de wrote: > > https://gcc.gnu.org/onlinedocs/gcc/Nested-Functions.html > > But my example code has no nested functions. > The two functions are disjoint. The

Re: compile problem on older program

2017-10-29 Thread Thomas Schmitt
Hi, to...@tuxteam.de wrote: > https://gcc.gnu.org/onlinedocs/gcc/Nested-Functions.html But my example code has no nested functions. The two functions are disjoint. The main() function only contains a type declaration by function prototype, not the function body. I can change the code to plain K

Re: compile problem on older program

2017-10-29 Thread tomas
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Sat, Oct 28, 2017 at 11:35:59PM +0200, Thomas Schmitt wrote: > Hi, > > it seems that gcc just hates a static function declaration inside a function. > > This code (without any include) > > static int bla(int x) > { >return (x != 1); >

Re: compile problem on older program

2017-10-28 Thread Fred
On 10/28/2017 02:30 PM, Roberto C. Sánchez wrote: On Sat, Oct 28, 2017 at 01:55:54PM -0700, Fred wrote: Hi, The source is at https://www.pastebin.com/X4a4p9U2 There are many similar lines with static keyword which the compiler didn't complain about. Except that every other line with the

Re: compile problem on older program

2017-10-28 Thread Thomas Schmitt
Hi, it seems that gcc just hates a static function declaration inside a function. This code (without any include) static int bla(int x) { return (x != 1); } int main() { static int bla(int x); return(bla(0)); } yields t.c: In function ‘main’: t.c:19:13: error: invalid

Re: compile problem on older program

2017-10-28 Thread Roberto C . Sánchez
On Sat, Oct 28, 2017 at 01:55:54PM -0700, Fred wrote: > Hi, > The source is at https://www.pastebin.com/X4a4p9U2 > > There are many similar lines with static keyword which the compiler didn't > complain about. > Except that every other line with the static keyword in that file is a proper

Re: compile problem on older program

2017-10-28 Thread Fred
On 10/28/2017 09:50 AM, Roberto C. Sánchez wrote: On Sat, Oct 28, 2017 at 09:29:16AM -0700, Fred wrote: Hello, I need to compile an older program and have a compile error. How can I resolve this? Unfortunately I am not a C programmer although I do assembler programming. Here is the output

Re: compile problem on older program

2017-10-28 Thread Roberto C . Sánchez
On Sat, Oct 28, 2017 at 09:29:16AM -0700, Fred wrote: > Hello, > > I need to compile an older program and have a compile error. How can I > resolve this? Unfortunately I am not a C programmer although I do assembler > programming. > > Here is the output of make: > > making all in ./src... >

Re: compile problem

2004-09-09 Thread Wesley J Landaker
On Thursday, 09 September 2004 11:55, Paul Akkermans wrote: Hi everyone, I am trying to compile the following program. But from the output I get the feeling that not all links are made. I believe this is due to the fact that not all libraries are included during the compilation. [ ... ]

Re: compile problem

2004-09-09 Thread s. keeling
Incoming from Wesley J Landaker: On Thursday, 09 September 2004 11:55, Paul Akkermans wrote: Hi everyone, I am trying to compile the following program. But from the output I get the feeling that not all links are made. I believe this is due to the fact that not all libraries are

Re: compile problem

2004-09-09 Thread Sergio Basurto
If you are compiling a program like the following: #include stdio.h int main() { printf(Hello Linux Adicts); } It will send you the error because you are declaring that the main will return and int and you are not returning anythig so the correct program should be: #include stdio.h int

Re: Compile problem for 2.4.26

2001-12-17 Thread Steve Kieu
drivers/sound/sounddrivers.o(.data+0x274): undefined references to 'local symbols in discarded section .text.exit' make:*** [vmlinux] Error 1 I got this problem when compiling the kernel 2.4.17-rc1 as well as 2.4.16. I asked one time in the list and got not-useful info yet. By the way I

Re: Compile problem for 2.4.26

2001-12-17 Thread k l u r t
On Mon, 17 Dec 2001, Steve Kieu wrote: drivers/sound/sounddrivers.o(.data+0x274): undefined references to 'local symbols in discarded section .text.exit' make:*** [vmlinux] Error 1 I got this problem when compiling the kernel 2.4.17-rc1 as well as 2.4.16. I asked one time in

Re: Compile problem for 2.4.26

2001-12-17 Thread Hans Ekbrand
On Sun, Dec 16, 2001 at 08:00:07PM -0600, [EMAIL PROTECTED] wrote: I'm trying to compile 2.4.16 for my laptop. I do all the drivers/sound/sounddrivers.o(.data+0x274): undefined references to 'local symbols in discarded section .text.exit' make:*** [vmlinux] Error 1 What's going on?

Re: Compile problem for 2.4.26-Solved for now!

2001-12-17 Thread techlists
First I tried compiling the 2.5.1 kernel, it compiled fine, but I got alot of lock-ups when I rebooted. So I downgraded my binutils, and compiled the 2.4.16, and am doing fine. Thanks for the help. John Hans Ekbrand [EMAIL PROTECTED] wrote .. On Sun, Dec 16, 2001 at 08:00:07PM -0600,

Re: Compile problem for 2.4.26

2001-12-16 Thread Marc Britten
make dep before making bzlilo also what version of gcc are you using? gcc --version On Sun, 2001-12-16 at 21:00, [EMAIL PROTECTED] wrote: I'm trying to compile 2.4.16 for my laptop. I do all the make clean make mrproper make menuconfig all work fine, but when I do make bzImage, I get

Re: Compile problem for 2.4.16

2001-12-16 Thread techlists
make dep before making bzlilo I did do make dep, after the make menuconfig. also what version of gcc are you using? gcc --version 2.95.4 I'm running woody, I have done kernel compiles on this machine before. Right now it's running 2.4.3 John Marc Britten [EMAIL PROTECTED] wrote ..

Re: Compile problem for 2.4.26

2001-12-16 Thread Stephen Gran
Thus spake Marc Britten: make dep before making bzlilo also what version of gcc are you using? gcc --version On Sun, 2001-12-16 at 21:00, [EMAIL PROTECTED] wrote: I'm trying to compile 2.4.16 for my laptop. I do all the make clean make mrproper make menuconfig all work fine,

Re: compile problem

1997-03-19 Thread joost witteveen
Hi all, When I try to compile a program with -l*(anything from /usr/X11R6/lib), I get no such a file or directory error. Usually, the options are: gcc -L/usr/X11R6/lib -lX11 -lXaw -l. I have /usr/X11R6/lib in my /etc/ld.so.conf, Those are for run-time linking, not for compile

Re: compile problem

1997-03-19 Thread Dale Scheetz
On Mon, 17 Mar 1997, David Puryear wrote: Hi all, When I try to compile a program with -l*(anything from /usr/X11R6/lib), I get no such a file or directory error. I have /usr/X11R6/lib in my /etc/ld.so.conf, and I have ran ldconfig -v. I'm out of ideas as to what I need to do in order