Re: Compiler error: C compiler cannot create executables

2003-01-21 Thread Rob Weir
On Sun, Jan 19, 2003 at 05:02:31PM +0100, Achton N. Netherclift wrote:
 Isildur:/home/public/incoming# dpkg -i libc6-dev_2.2.5-11.2_i386.deb
 Selecting previously deselected package libc6-dev.
 (Reading database ... 22250 files and directories currently installed.)
 Unpacking libc6-dev (from libc6-dev_2.2.5-11.2_i386.deb) ...
 dpkg: dependency problems prevent configuration of libc6-dev:
  libc6-dev depends on libc6 (= 2.2.5-11.2); however:
   Version of libc6 on system is 2.3.1-9.
 dpkg: error processing libc6-dev (--install):
  dependency problems - leaving unconfigured
 Errors were encountered while processing:
  libc6-dev
 ===
 
 Uh-oh ..
 
 I have libc6 2.3.1-9 on my system. Thats from the unstable dist...
 how the h*ck? Well, now what? Can I downgrade libc6 somehow?
 Or can I somehow get the thing to allow me to compile programs with
 the current libc6 library? (And will they work?)

Ahhh, there we go.  As long as you don't have too much other sid stuff
installed, try using dpkg to install the correct stable version of libc
(the one that libc6-dev depends on).  You might need to use the
--force-downgrade option...Of course, the sid stuff that origiinally
pulled libc 2.3 down in the first place will have to be removed.  If you
really need them though, go read up on using 'deb-src' lines and 'apt-get
source' to rebuild the sid package from source, using your existing
libraries.

-rob



msg25308/pgp0.pgp
Description: PGP signature


Re: Compiler error: C compiler cannot create executables

2003-01-19 Thread Achton N. Netherclift

At 17:45 18-01-2003 -0500, Stephen Gran wrote:


Are you, by any chance, running a mixture of testing and unstable?  It
seems like you have sources for one version, and another version
installed.  Explicitly tell apt which version you want to install (or
download and dpkg -i the right version).  man apt-get for details -
look for the -t switch, but do some general reading while you're there -
there's a lot of useful stuff in it.


I can't completely rule out that there may be packages from testing
installed, but I have not fiddled with the compiler package at other
times than during install.

This is what I have tried:

===
Isildur:/home/public/incoming# apt-get install libc6-dev/stable
Reading Package Lists... Done
Building Dependency Tree... Done
Selected version 2.2.5-11.2 (Debian:3.0r1a/stable, 
Debian-Security:3.0/stable) for libc6-dev
Sorry, libc6-dev is already the newest version.
You might want to run `apt-get -f install' to correct these:
Sorry, but the following packages have unmet dependencies:
  libc6-dev: Depends: libc6 (= 2.2.5-11.2) but 2.3.1-9 is to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or 
specify a solution).
===

Oh, so let's do what it says:

===
Isildur:/home/public/incoming# apt-get -f install
Reading Package Lists... Done
Building Dependency Tree... Done
Correcting dependencies... Done
The following packages will be REMOVED:
  libc6-dev
0 packages upgraded, 0 newly installed, 1 to remove and 0  not upgraded.
1 packages not fully installed or removed.
Need to get 0B of archives. After unpacking 11.9MB will be freed.
Do you want to continue? [Y/n]
(Reading database ... 23430 files and directories currently installed.)
Removing libc6-dev ...
Isildur:/home/public/incoming#
===

Good, the queued packages were removed.
So now the dependency problem should be corrected, right? Let's try the 
install again:

===
Isildur:/home/public/incoming# apt-get install libc6-dev/stable
Reading Package Lists... Done
Building Dependency Tree... Done
Selected version 2.2.5-11.2 (Debian:3.0r1a/stable, 
Debian-Security:3.0/stable) for libc6-dev
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.

Since you only requested a single operation it is extremely likely that
the package is simply not installable and a bug report against
that package should be filed.
The following information may help to resolve the situation:

Sorry, but the following packages have unmet dependencies:
  libc6-dev: Depends: libc6 (= 2.2.5-11.2) but 2.3.1-9 is to be installed
Isildur:/home/public/incoming#
===

Absolutely no change there. What about dpkg?

===
Isildur:/home/public/incoming# dpkg -i libc6-dev_2.2.5-11.2_i386.deb
Selecting previously deselected package libc6-dev.
(Reading database ... 22250 files and directories currently installed.)
Unpacking libc6-dev (from libc6-dev_2.2.5-11.2_i386.deb) ...
dpkg: dependency problems prevent configuration of libc6-dev:
 libc6-dev depends on libc6 (= 2.2.5-11.2); however:
  Version of libc6 on system is 2.3.1-9.
dpkg: error processing libc6-dev (--install):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 libc6-dev
===

Uh-oh ..

I have libc6 2.3.1-9 on my system. Thats from the unstable dist...
how the h*ck? Well, now what? Can I downgrade libc6 somehow?
Or can I somehow get the thing to allow me to compile programs with
the current libc6 library? (And will they work?)

/geddeth


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: Compiler error: C compiler cannot create executables

2003-01-18 Thread Eric G. Miller
On Sat, Jan 18, 2003 at 12:07:24PM +0100, Achton N. Netherclift wrote:
[snip]
 According to packages.debian.org, the file that is missing according to
 the config.logs (crt1.o) is contained in the libc6-dev package. The file is
 missing on my system, so I attempt to install it:

AFAIK crt1.o would be a temporary file created from the combination of
conftest.c and some gcc parts when compiling the C file directly to
an executable.  Your installation is incomplete because you don't have
libc6-dev installed.  All that stuff about gcc not being able to produce
an executable...  GCC needs some of the things provided by libc6-dev.

 Isildur:/# apt-get install libc6-dev
 ...
 Sorry, but the following packages have unmet dependencies:
   libc6-dev: Depends: libc6 (= 2.2.5-11.2) but 2.3.1-9 is to be installed
 E: Sorry, broken packages
 
 The above message confuses me, though. Does that mean that I have 2.2.5 
 installed
 and need 2.3.1, or is it the other way around? And why can't I find the 
 file crt1.o?

It means, it sees a libc6-dev that depends on libc6 v. 2.2.5-11.2, but
apt has v. 2.3.1-9 scheduled for install.  Try running apt-get update
again before proceeding.

-- 
echo gra.fcw@2ztr eryyvZ .T pveR | rot13 | reverse


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]




Re: Compiler error: C compiler cannot create executables

2003-01-18 Thread Richard Cobbe
Lo, on Saturday, January 18, Eric G. Miller did write:

 On Sat, Jan 18, 2003 at 12:07:24PM +0100, Achton N. Netherclift wrote:
 [snip]
  According to packages.debian.org, the file that is missing according to
  the config.logs (crt1.o) is contained in the libc6-dev package. The file is
  missing on my system, so I attempt to install it:
 
 AFAIK crt1.o would be a temporary file created from the combination of
 conftest.c and some gcc parts when compiling the C file directly to
 an executable.  Your installation is incomplete because you don't have
 libc6-dev installed.  All that stuff about gcc not being able to produce
 an executable...  GCC needs some of the things provided by libc6-dev.

About half-right:

[nanny-ogg:~]$ locate crt1.o
/usr/lib/crt1.o
/usr/lib/gcrt1.o
/usr/lib/Mcrt1.o
[nanny-ogg:~]$ dpkg -S /usr/lib/crt1.o
libc6-dev: /usr/lib/crt1.o

crt1.o is, I think, an object file containing a big chunk of the C/C++
runtime.  In particular, it contains the startup code that does a bunch
of initialization, then calls main().  After main() returns, it does a
bunch of OS-specific cleanup, like taking main's return code and putting
in the place where the OS expects to find the process's exit code.  It's
essentially part of the compiler/library infrastructure.


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]




Re: Compiler error: C compiler cannot create executables

2003-01-18 Thread Achton N. Netherclift
At 10:45 18-01-2003 -0500, Richard Cobbe wrote:


crt1.o is, I think, an object file containing a big chunk of the C/C++
runtime.  In particular, it contains the startup code that does a bunch
of initialization, then calls main().  After main() returns, it does a
bunch of OS-specific cleanup, like taking main's return code and putting
in the place where the OS expects to find the process's exit code.  It's
essentially part of the compiler/library infrastructure.


But when I get the error already when ./configure is run, could that mean
that I am missing certain libraries? How do I figure out which ones?

I've run apt-get update and apt-get dist-upgrade several times and from
different mirrors, but everything seems up-to-date. Only problem is this
one dependency fault that I get when trying to install libc6-dev.

Baffled regards,
Achton.


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: Compiler error: C compiler cannot create executables

2003-01-18 Thread Stephen Gran
This one time, at band camp, Achton N. Netherclift said:
 But when I get the error already when ./configure is run, could that mean
 that I am missing certain libraries? How do I figure out which ones?

Yes, probably libc6-dev.

 I've run apt-get update and apt-get dist-upgrade several times and from
 different mirrors, but everything seems up-to-date. Only problem is this
 one dependency fault that I get when trying to install libc6-dev.

Are you, by any chance, running a mixture of testing and unstable?  It
seems like you have sources for one version, and another version
installed.  Explicitly tell apt which version you want to install (or
download and dpkg -i the right version).  man apt-get for details -
look for the -t switch, but do some general reading while you're there -
there's a lot of useful stuff in it.

HTH,
-- 
 --
|  Stephen Gran  | A man may be so much of everything that |
|  [EMAIL PROTECTED] | he is nothing of anything.   -- Samuel  |
|  http://www.lobefin.net/~steve | Johnson |
 --



msg24841/pgp0.pgp
Description: PGP signature