* Debian libc6 upgrade
@ 2004-01-27 20:40 Michael Scondo
2004-01-27 21:34 ` caszonyi
0 siblings, 1 reply; 7+ messages in thread
From: Michael Scondo @ 2004-01-27 20:40 UTC (permalink / raw)
To: linux-newbie
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 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] 7+ messages in thread
* Re: Debian libc6 upgrade
2004-01-27 20:40 Debian libc6 upgrade Michael Scondo
@ 2004-01-27 21:34 ` caszonyi
2004-01-27 22:16 ` Ray Olszewski
0 siblings, 1 reply; 7+ messages in thread
From: caszonyi @ 2004-01-27 21:34 UTC (permalink / raw)
To: Michael Scondo; +Cc: linux-newbie
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
> 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$
>
> ?:-(
>
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 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
>
--
"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 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] 7+ messages in thread
* Re: Debian libc6 upgrade
2004-01-27 21:34 ` caszonyi
@ 2004-01-27 22:16 ` Ray Olszewski
2004-01-28 15:52 ` Micha
0 siblings, 1 reply; 7+ messages in thread
From: Ray Olszewski @ 2004-01-27 22:16 UTC (permalink / raw)
To: linux-newbie
At 11:34 PM 1/27/2004 +0200, caszonyi@rdslink.ro wrote:
>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 :
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.
[...]
> > 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 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] 7+ messages in thread
* Re: Debian libc6 upgrade
2004-01-27 22:16 ` Ray Olszewski
@ 2004-01-28 15:52 ` Micha
2004-01-28 21:27 ` Michael Scondo
0 siblings, 1 reply; 7+ messages in thread
From: Micha @ 2004-01-28 15:52 UTC (permalink / raw)
To: linux-newbie
> > > 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.
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 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] 7+ messages in thread
* Re: Debian libc6 upgrade
2004-01-28 15:52 ` Micha
@ 2004-01-28 21:27 ` Michael Scondo
2004-01-28 22:24 ` Michael Scondo
2004-01-28 22:30 ` Ray Olszewski
0 siblings, 2 replies; 7+ messages in thread
From: Michael Scondo @ 2004-01-28 21:27 UTC (permalink / raw)
To: linux-newbie
> > > > 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 :
> 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 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] 7+ messages in thread
* Re: Debian libc6 upgrade
2004-01-28 21:27 ` Michael Scondo
@ 2004-01-28 22:24 ` Michael Scondo
2004-01-28 22:30 ` Ray Olszewski
1 sibling, 0 replies; 7+ messages in thread
From: Michael Scondo @ 2004-01-28 22:24 UTC (permalink / raw)
To: linux-newbie
Ok, sorry for my confusion.
Everything compiles good so far.
Seems to me that I will have to upgrade all other librarys, which I need for
compiling, too.
Thanks for the help
Micha
-
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] 7+ messages in thread
* Re: Debian libc6 upgrade
2004-01-28 21:27 ` Michael Scondo
2004-01-28 22:24 ` Michael Scondo
@ 2004-01-28 22:30 ` Ray Olszewski
1 sibling, 0 replies; 7+ messages in thread
From: Ray Olszewski @ 2004-01-28 22:30 UTC (permalink / raw)
To: michael.scondo, linux-newbie
At 10:27 PM 1/28/2004 +0100, 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 :
>
> > 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 ?
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 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] 7+ messages in thread
end of thread, other threads:[~2004-01-28 22:30 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-01-27 20:40 Debian libc6 upgrade Michael Scondo
2004-01-27 21:34 ` caszonyi
2004-01-27 22:16 ` Ray Olszewski
2004-01-28 15:52 ` Micha
2004-01-28 21:27 ` Michael Scondo
2004-01-28 22:24 ` Michael Scondo
2004-01-28 22:30 ` Ray Olszewski
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox