On Tue, 27 Jan 2004, Michael Scondo wrote:

> Hi to all,
> I'm running a mixed Debian Woody, with a few backports and libc6 2.3.1-16.
> Now I would like to upgrade to libc6 2.3.2.ds1-10.
> Anything runs fine - until I try to compile a program :
>
> e.g.
> ____
> #include <stdio.h>
>
> int main()
> {
>     printf("Hallo !\n");
> }
> ____
>
> cpp -o hallo hallo.cpp
> [EMAIL PROTECTED]:~/prog/test/t2$ ./hallo
> bash: ./hallo: Permission denied
> [EMAIL PROTECTED]:~/prog/test/t2$ chmod a+x ./hallo
> [EMAIL PROTECTED]:~/prog/test/t2$ ./hallo
> ./hallo: extern: command not found
> ./hallo: typedef: command not found
> ./hallo: typedef: command not found
> ./hallo: typedef: command not found
> ./hallo: typedef: command not found
> ./hallo: typedef: command not found
> ./hallo: typedef: command not found
> ./hallo: typedef: command not found
> ./hallo: typedef: command not found
> ./hallo: typedef: command not found
> ./hallo: typedef: command not found
> ./hallo: typedef: command not found
> ./hallo: typedef: command not found
> ./hallo: line 972: syntax error near unexpected token `;'
> ./hallo: line 972: `} __quad_t;'
> [EMAIL PROTECTED]:~/prog/test/t2$
>
> ?:-(
>

cpp is the c preprocessor :-)
to compile a c program use gcc

> gcc -o hallo hallo.cpp
> /usr/lib/crt1.o: In function `_start':
> ../sysdeps/i386/elf/start.S:92: undefined reference to `__libc_csu_fini'
> ../sysdeps/i386/elf/start.S:93: undefined reference to `__libc_csu_init'
> collect2: ld returned 1 exit status
>

installing libc is a very tricky task.
You could make your system unusable if something goes wrong.
Did you use optimisation flags when compiling glibc ?
How did you installed glibc ? make install ? wasn't any error when you
installed glibc ?



> I don't have any idea, what is going wrong.
> Maybe I should say, before the upgrade this example program compiled fine.
>
> Thanks for any help..
> Micha
>
> -
> To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
> the body of a message to [EMAIL PROTECTED]
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at http://www.linux-learn.org/faqs
>

--
"A mouse is a device used to point at
the xterm you want to type in".
Kim Alm on a.s.r.
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs

Reply via email to