Skip to contentSkip to conversation

Debian libc6 upgrade

DISCUSSION Michael Scondo 4 participants 7 messages Jan 27, 2004 – Jan 28, 2004

lore
Share & tools
lore
#0 lore raw

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

micha@betageuze:~/prog/test/t2$ ./hallo
bash: ./hallo: Permission denied
micha@betageuze:~/prog/test/t2$ chmod a+x ./hallo
micha@betageuze:~/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;'
micha@betageuze:~/prog/test/t2$

?:-(

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

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

#1 lore raw
Quoted 37 lines · Michael Scondo

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

micha@betageuze:~/prog/test/t2$ ./hallo
bash: ./hallo: Permission denied
micha@betageuze:~/prog/test/t2$ chmod a+x ./hallo
micha@betageuze:~/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;'
micha@betageuze:~/prog/test/t2$
Quoted 2 lines

?:-(

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

Quoted 6 lines

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 ?

Quoted 12 lines

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

#2 lore raw
Quoted 6 lines · At 11:34 PM 1/27/2004 +0200, [email protected] wrote:
Quoted 4 lines · Michael Scondo

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 :

Sorry I missed this the first time through. Let me ask the basic question: when you upgraded libc6, did you also upgrade libc6-dev (the .deb with the header files) to match?

I run Sid here, so offhand I do not know what libc6 is "current" for Woody ... so I can't deduce from what you posted if you did your libc6 upgrade through Debian package management or if it is part of what makes this what you call a "mixed" system.

[...]

Quoted 4 lines
Quoted 4 lines

cpp -o hallo hallo.cpp

micha@betageuze:~/prog/test/t2$ ./hallo
bash: ./hallo: Permission denied
micha@betageuze:~/prog/test/t2$ chmod a+x ./hallo

[remainder deleted]

This part is just a plain mistake --- cpp does not yield executable code; it is just a preprocessor tha outputs source. The errors you got occur because the system is trying to process the text as a seris of shell commands.

You want to use gcc to compile and link C code, as you did later (omitted here). The error from that is probably a header mismatch.

-
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

#3 lore raw
Quoted 5 lines
Quoted 4 lines
Quoted 4 lines

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 :

Quoted 8 lines

Sorry I missed this the first time through. Let me ask the basic question:
when you upgraded libc6, did you also upgrade libc6-dev (the .deb with the header files) to match?

I run Sid here, so offhand I do not know what libc6 is "current" for Woody ... so I can't deduce from what you posted if you did your libc6 upgrade through Debian package management or if it is part of what makes this what you call a "mixed" system.

The current version of libc6 for woody is 2.2.5-11.5, mixed system, because I already upgraded libc6 and a few other packages.
However, I had first an woody testing system. Then I upgraded the libc6 from 2.2.4-7 to 2.3.1-16 via aptitude, this was the testing release this time. But everything run fine, beside the fact, using the praeprocessor for compiling a program didn't succeed.. :-)
But the compiler did his job.
Now I did again this upgrade of libc6, also of libc6-dev and linux-kernel-headers using aptitude.
Maybe, I've got the wrong version of gcc (2.95.4-9 now ) ?

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

#4 lore raw
Quoted 5 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines

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 :

Quoted 11 lines

The current version of libc6 for woody is 2.2.5-11.5, mixed system, because I already upgraded libc6 and a few other packages.
However, I had first an woody testing system. Then I upgraded the libc6 from 2.2.4-7 to 2.3.1-16 via aptitude, this was the testing release this time. But everything run fine, beside the fact, using the praeprocessor for compiling a program didn't succeed.. :-)
But the compiler did his job.
Now I did again this upgrade of libc6, also of libc6-dev and linux-kernel-headers using aptitude.
Maybe, I've got the wrong version of gcc (2.95.4-9 now ) ?

It drives me crazy - I upgraded now gcc and g++ and the depending librarys - gcc compiles fine, but the praeprocessor still doesn't make his job at least it seems to me to be the praeprocessor.

micha@betageuze:~/prog/test/t2$ gcc -o hallo hallo.c
micha@betageuze:~/prog/test/t2$ ./hallo
Hallo !
micha@betageuze:~/prog/test/t2$ gcc -o hallo hallo.cpp
/tmp/ccUmthd6.o(.eh_frame+0x11): undefined reference to `__gxx_personality_v0'
collect2: ld returned 1 exit status
micha@betageuze:~/prog/test/t2$ 

Anyone has a tip ?
-
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

#6 lore raw
In reply to Michael Scondo
Quoted 29 lines · Michael Scondo
Quoted 5 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines

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 :

Quoted 11 lines

The current version of libc6 for woody is 2.2.5-11.5, mixed system, because I already upgraded libc6 and a few other packages.
However, I had first an woody testing system. Then I upgraded the libc6 from 2.2.4-7 to 2.3.1-16 via aptitude, this was the testing release this time. But everything run fine, beside the fact, using the praeprocessor for compiling a program didn't succeed.. :-)
But the compiler did his job.
Now I did again this upgrade of libc6, also of libc6-dev and linux-kernel-headers using aptitude.
Maybe, I've got the wrong version of gcc (2.95.4-9 now ) ?

It drives me crazy - I upgraded now gcc and g++ and the depending librarys - gcc compiles fine, but the praeprocessor still doesn't make his job at least it seems to me to be the praeprocessor.

micha@betageuze:~/prog/test/t2$ gcc -o hallo hallo.c
micha@betageuze:~/prog/test/t2$ ./hallo
Hallo !
micha@betageuze:~/prog/test/t2$ gcc -o hallo hallo.cpp
/tmp/ccUmthd6.o(.eh_frame+0x11): undefined reference to `__gxx_personality_v0'
collect2: ld returned 1 exit status
micha@betageuze:~/prog/test/t2$
Quoted 1 line

Anyone has a tip ?

I can only find references to this label in newer C++ libraries, the ones intended for use with gcc 3.2.x and 3.3.x . So I'd suspect a version mismatch involving libstdc++ ... certainly a risk when you do fragmentary upgrading of the sort you do ... especially with gcc and related stuff, where the move from 2.9.5 to the various 3.*.* versions involved major changes, particularly to the C++ components of the compiler suite.

Hard to say for certai, though, since Iyou do not say what versions of any of the rest of this stuff (cpp, libstdc++, the associated -dev package, and a few other odds and ends) you are using. Your best bet, I suspect, is to do a proper apt-get undate/upgrade and let the package-management system wort everything out for you ... if that is a possible solution for you.

-
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