-
Compilation problems under HDD install of Knoppix
Right - I'm always very careful to search before I ask, and I've done so as best I can, so I'm sorry if this has been answered before.
Basically I've had to re-write my sources.list file to try to get apt-get working, and I can't install anything because I have dependancy problems - Ie the mirrors I've managed to get working (Not many!) Don't have the packages I'm after. For example - I've been trying for days to get MPlayer installed. I can't apt-get install it because it tells me there are packages that I can't install. libavcodecs is one of these packages that I can't find anywhere. OK I say, I'll try and find it myself. So off I go to find MPlayer, and come across a Gzip archive. I extract it into a folder using gzip and tar, and run ./configure.
Everything seems to configure fine. I try to run a make, and it all goes boobs up.
It tells me that it can't find linux/errno.h in errno.h. :\
I look in the errno.h source in /usr/include/bits/errno.h and sure enough, there is a line that says #include <linux/errno.h>. I'm not a complete stranger to c, so know bits and pieces, and can't see why it would need to include itself. Is this to do with symbolic links? Do I need to create one? Also, I've used apt-setup to configure my sources.list file, but of course uk.debian.org doesn't have the above library packages!
Also while I'm thinking about it, knoppix will only let me view resolutions up to 1024x768. Is there a way I can increase this to let me view in 1280x1024? I've seen a number of solutions, but I was wondering if there was a definative config file that I can edit, perhaps in etc/X11?
Can anybody give me a hint on the above? If I can be helped with this little issue I'll be well on my way!
Thanks
Karl.
-
Sources.list file I use to grab many multimedia apps, of which I highly rate kaffiene.
Code:
# Security updates for "stable"
deb http://security.debian.org stable/updates main contrib non-free
deb http://security.debian.org testing/updates main contrib non-free
# Stable
deb http://ftp.de.debian.org/pub/debian stable main contrib non-free
deb http://ftp.de.debian.org/pub/debian-non-US stable/non-US main contrib non-free
# Stable Sources
deb-src http://ftp.de.debian.org/pub/debian stable main contrib non-free
deb-src http://ftp.de.debian.org/pub/debian-non-US stable/non-US main contrib non-free
# Testing
deb http://ftp.de.debian.org/pub/debian testing main contrib non-free
deb http://ftp.de.debian.org/pub/debian-non-US testing/non-US main contrib non-free
# Testing Sources
deb-src http://ftp.de.debian.org/pub/debian testing main contrib non-free
deb-src http://ftp.de.debian.org/pub/debian-non-US testing/non-US main contrib non-free
# Unstable
deb http://ftp.de.debian.org/debian unstable main contrib non-free
deb http://ftp.de.debian.org/debian-non-US unstable/non-US main contrib non-free
# Unstable Sources
deb-src http://ftp.de.debian.org/debian unstable main contrib non-free
deb-src http://ftp.de.debian.org/debian-non-US unstable/non-US main contrib non-free
##RAREWARES MAIN (libvorbis, lame, lame-ha, lame-cvs, lamip, cue2toc, shntool)
deb http://www.rarewares.org/debian/packages/unstable ./
##RAREWARES AAC/MP4 (faad2, faac, aac/mp4 playback plugins)
deb http://pessoal.onda.com.br/rjamorim/debian/ ./
# OpenOfice.org Debian Repository
deb http://ftp.freenet.de/pub/debian-openoffice/ unstable main contrib
# MARILLAT (lame, transcode, mplayer, w32codecs, etc.)
# deb ftp://ftp.nerim.net/debian-marillat/ stable main
deb ftp://ftp.nerim.net/debian-marillat/ testing main
deb ftp://ftp.nerim.net/debian-marillat/ unstable main
deb-src http://perso.wanadoo.fr/debian/ unstable main
# giFT
deb http://apt.cerkinfo.be/ unstable main non-free
deb-src http://apt.cerkinfo.be/ unstable main non-free
/etc/X11/XF86Config-4 is the file that holds the answers to your display question. But be warned, know what you are changing before you do.
-
Senior Member
registered user
This file doesn't include itself:
/usr/include/bits/errno.h
linux/errno.h
linux/errno.h should be the errno.h of your kernel, which is normally in:
Code:
/usr/src/linux-2.x.y/include/linux/errno.h
Try
Code:
locate linux/errno.h
to find out, where your kernel-sources are.
Perhaps you installed without kernel-sources, or the configuration-script didn't find them. If you're familar with gcc, you may tell 'configure' where to look for additional Include-dirs. './configure --help' shows possible options.
-
Thanks guys, that's really helpful. Somehow I've lost the symbolic link to my kernel source. Next job is to work out how to re-create it. I'll let you know how I get on, and if this fixes the problem. ![Smile](images/smilies/icon_smile.gif)
Karl.
-
Senior Member
registered user
Code:
ln -s /usr/src/linux-2.6.5 /usr/src/linux
i.e.
-
OK thanks to "User unknown
" I've re-established a correct symbolic link. I am now faced with the error below when I run a configure.
configure: error: C preprocessor "/lib/cpp" fails sanity check
I look in the config.log and find:
configure:2923: gcc -c -g -O2 conftest.c >&5
conftest.c:2: error: parse error before "me"
configure: failed program was:
| #ifndef __cplusplus
| choke me
| #endif
configure:3037: checking dependency style of gcc
configure:3120: result: gcc3
configure:3139: checking for strerror in -lcposix
configure:3170: gcc -o conftest -g -O2 conftest.c -lcposix >&5
/usr/bin/ld: cannot find -lcposix
collect2: ld returned 1 exit status
configure:3173: $? = 1
configure: failed program was:
| #line 3146 "configure"
| /* confdefs.h. */
|
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define XINE_MAJOR 1
| #define XINE_MINOR 0
| #define XINE_SUB 0
| #define PACKAGE "xine-lib"
| #define VERSION "1-rc4a"
| /* end confdefs.h. */
|
| /* Override any gcc2 internal prototype to avoid an error. */
| #ifdef __cplusplus
| extern "C"
| #endif
| /* We use char because int might match the return type of a gcc2
| builtin and then its argument prototype would still apply. */
| char strerror ();
| int
| main ()
| {
| strerror ();
| ;
| return 0;
| }
I think the rest buggered up as a result of the above.
-
Senior Member
registered user
Well, when I run:
Code:
cat choke.c
#ifndef __cplusplus
choke me
#endif
gcc -c choke.c
parse error before 'me'
//but when I run
g++ -c choke.c
everything is fine.
Hm.
I guess 'configure' should know whether you shall compile with 'g++' or 'gcc', and '*.c' normally indicates gcc, while g++ uses '*.cc'-files.
Did you manipulate some globale CC-Variables?
/lib/cpp is a symbolic link again on my system, to -> /usr/bin/cpp-3.3
and
/lib/cpp --version says:
cpp (GCC) 3.3.2 (Debian)
Hm.
-
I reckon I've buggered something up, so I might back up onto my larger hdd and start again. It'll only take about half an hour, but it means that things will be a bit easier to see. I've stuck a few unstable sources in my list file which might be why, mplayer crashes on startup and so on. Thanks for all the help guys, I tend to break things and learn from my mistakes.
Similar Threads
-
By asearle in forum Hdd Install / Debian / Apt
Replies: 0
Last Post: 05-18-2005, 01:04 PM
-
By pc3 in forum General Support
Replies: 1
Last Post: 08-03-2004, 10:44 PM
-
By knoppy in forum Hdd Install / Debian / Apt
Replies: 5
Last Post: 02-19-2004, 09:34 PM
-
By Li0nheart in forum General Support
Replies: 0
Last Post: 11-19-2003, 12:42 AM
-
By mordor in forum Hdd Install / Debian / Apt
Replies: 3
Last Post: 03-26-2003, 03:40 PM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
![Gigabyte Z370P D3 ATX Z370 LGA1151 Motherboard (Support Intel 6/7th 8th 9th) picture](/store/img/g/QrkAAOSwMGNmLxf0/s-l225/Gigabyte-Z370P-D3-ATX-Z370-LGA1151-Motherboard-Sup.jpg)
Gigabyte Z370P D3 ATX Z370 LGA1151 Motherboard (Support Intel 6/7th 8th 9th)
$59.99
![ASRock B550M Pro SE AM4 DDR4 SATA 6Gb/s 1 PCIe 4.0 x16 Micro ATX Motherboard picture](/store/img/g/oXIAAOSwCn1k30lD/s-l225/ASRock-B550M-Pro-SE-AM4-DDR4-SATA-6Gb-s-1-PCIe-4-0.jpg)
ASRock B550M Pro SE AM4 DDR4 SATA 6Gb/s 1 PCIe 4.0 x16 Micro ATX Motherboard
$84.99
![ASUS H110M-R Motherboard Intel 6th/7th Gen LGA1151 DDR4 Micro-ATX i/o shield picture](/store/img/g/FhQAAOSwzL9iDqc3/s-l225/ASUS-H110M-R-Motherboard-Intel-6th-7th-Gen-LGA1151.jpg)
ASUS H110M-R Motherboard Intel 6th/7th Gen LGA1151 DDR4 Micro-ATX i/o shield
$42.00
![MSI H110M pro-vd 6th/7th Gen Intel DDR4 MATX Motherboard NO I/O SHIELD picture](/store/img/g/jNYAAOSwCJdmeF7y/s-l225/MSI-H110M-pro-vd-6th-7th-Gen-Intel-DDR4-MATX-Mothe.jpg)
MSI H110M pro-vd 6th/7th Gen Intel DDR4 MATX Motherboard NO I/O SHIELD
$35.00
![Asus H81M-C Intel LGA1150 DDR3 Desktop Motherboard MicroATX Socket H3 picture](/store/img/g/CZ4AAOSwg8pmYirU/s-l225/Asus-H81M-C-Intel-LGA1150-DDR3-Desktop-Motherboard.jpg)
Asus H81M-C Intel LGA1150 DDR3 Desktop Motherboard MicroATX Socket H3
$23.99
![Asus Prime H310M-A R2.0 Intel LGA 1151 DDR4 Desktop Motherboard picture](/store/img/g/ld0AAOSw7q5mV2ql/s-l225/Asus-Prime-H310M-A-R2-0-Intel-LGA-1151-DDR4-Deskto.jpg)
Asus Prime H310M-A R2.0 Intel LGA 1151 DDR4 Desktop Motherboard
$54.99
![MSI H81I LGA1150 MINI-ITX DDR3 Desktop Motherboard With I/O Shield picture](/store/img/g/TGIAAOSwpzNiJ8-i/s-l225/MSI-H81I-LGA1150-MINI-ITX-DDR3-Desktop-Motherboard.jpg)
MSI H81I LGA1150 MINI-ITX DDR3 Desktop Motherboard With I/O Shield
$32.99
![GIGABYTE GA-X99-UD4P MOTHERBOARD, M.2 SATA3, LGA2011-3, DDR4, & I/O Shield picture](/store/img/g/ZI0AAOSwKLBmV33e/s-l225/GIGABYTE-GA-X99-UD4P-MOTHERBOARD-M-2-SATA3-LGA2011.jpg)
GIGABYTE GA-X99-UD4P MOTHERBOARD, M.2 SATA3, LGA2011-3, DDR4, & I/O Shield
$69.99
![Gigabyte M-ATX motherboard with Intel Core i3 8100 CPU and 8GB DDR4 RAM picture](/store/img/g/CCsAAOSw9mtkQuoe/s-l225/Gigabyte-M-ATX-motherboard-with-Intel-Core-i3-8100.jpg)
Gigabyte M-ATX motherboard with Intel Core i3 8100 CPU and 8GB DDR4 RAM
$84.00
![ASUS PRIME Z270-P Motherboard || Kit with/ Intel G3900 and 4 GB RAM picture](/store/img/g/D0AAAOSw5qVmcdTF/s-l225/ASUS-PRIME-Z270-P-Motherboard-Kit-with-Intel-G3900.jpg)
ASUS PRIME Z270-P Motherboard || Kit with/ Intel G3900 and 4 GB RAM
$36.59