View previous topic :: View next topic |
Author |
Message |
chalimar n00b

Joined: 16 Aug 2004 Posts: 65 Location: Germany
|
Posted: Mon Oct 11, 2004 3:06 pm Post subject: Compilen von Non-Portage Sourcen |
|
|
Hi
Irgendwie habe ich Probleme beim compilen von Sourcen, die ich irgendwo runtergeladen habe.
Portage funktioniert aber einwandfrei.
Beispiel: FreeCiv 2.0.0 Beta
Ausgabe von configure:
Code: | checking build system type... bootstrap/config.guess: line 933: ./dummy-15085: Permission denied
i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking for a BSD-compatible install... /bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking for gawk... (cached) gawk
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... configure: error: cannot run C compiled programs.
If you meant to cross compile, use `--host'.
See `config.log' for more details.
|
Hab da echt keine Ahnung, was mein PC von mir will.
Hoffe mir kann da einer helfen. |
|
Back to top |
|
 |
Deever Veteran


Joined: 06 Jul 2002 Posts: 1354 Location: Zürich / Switzerland
|
Posted: Mon Oct 11, 2004 3:36 pm Post subject: |
|
|
Was steht denn in der config.log? |
|
Back to top |
|
 |
chalimar n00b

Joined: 16 Aug 2004 Posts: 65 Location: Germany
|
Posted: Mon Oct 11, 2004 4:44 pm Post subject: |
|
|
Denke mal, dass das hier der relevante Ausschnitt aus der Logdatei ist.
Code: | ## ----------- ##
## Core tests. ##
## ----------- ##
configure:1397: checking build system type
configure:1415: result: i686-pc-linux-gnu
configure:1423: checking host system type
configure:1437: result: i686-pc-linux-gnu
configure:1445: checking target system type
configure:1459: result: i686-pc-linux-gnu
configure:1560: checking for a BSD-compatible install
configure:1615: result: /bin/install -c
configure:1626: checking whether build environment is sane
configure:1669: result: yes
configure:1734: checking for gawk
configure:1750: found /bin/gawk
configure:1760: result: gawk
configure:1770: checking whether make sets $(MAKE)
configure:1790: result: yes
configure:1959: checking whether to enable maintainer-specific portions of Makefiles
configure:1968: result: no
configure:2185: checking for gawk
configure:2211: result: gawk
configure:2267: checking for gcc
configure:2293: result: gcc
configure:2537: checking for C compiler version
configure:2540: gcc --version </dev/null >&5
gcc (GCC) 3.4.1 20040803 (Gentoo Linux 3.4.1-r3, ssp-3.4-2, pie-8.7.6.5)
Copyright (C) 2004 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
configure:2543: $? = 0
configure:2545: gcc -v </dev/null >&5
Reading specs from /usr/lib/gcc/i686-pc-linux-gnu/3.4.1/specs
Configured with: /var/tmp/portage/gcc-3.4.1-r3/work/gcc-3.4.1/configure --prefix=/usr --bindir=/usr/i686-pc-linux-gnu/gcc-bin/3.4 --includedir=/usr/lib/gcc/i686-pc-linux-gnu/3.4.1/include --datadir=/usr/share/gcc-data/i686-pc-linux-gnu/3.4 --mandir=/usr/share/gcc-data/i686-pc-linux-gnu/3.4/man --infodir=/usr/share/gcc-data/i686-pc-linux-gnu/3.4/info --enable-shared --host=i686-pc-linux-gnu --target=i686-pc-linux-gnu --with-system-zlib --enable-languages=c,c++ --enable-threads=posix --enable-long-long --disable-checking --disable-libunwind-exceptions --enable-cstdio=stdio --enable-version-specific-runtime-libs --with-gxx-include-dir=/usr/lib/gcc/i686-pc-linux-gnu/3.4.1/include/g++-v3 --with-local-prefix=/usr/local --disable-werror --enable-shared --enable-nls --without-included-gettext --disable-multilib --enable-__cxa_atexit --enable-clocale=gnu
Thread model: posix
gcc version 3.4.1 20040803 (Gentoo Linux 3.4.1-r3, ssp-3.4-2, pie-8.7.6.5)
configure:2548: $? = 0
configure:2550: gcc -V </dev/null >&5
gcc: `-V' option must have argument
configure:2553: $? = 1
configure:2576: checking for C compiler default output file name
configure:2579: gcc conftest.c >&5
configure:2582: $? = 0
configure:2628: result: a.out
configure:2633: checking whether the C compiler works
configure:2639: ./a.out
configure: line 2640: ./a.out: Permission denied
configure:2642: $? = 126
configure:2651: error: cannot run C compiled programs.
If you meant to cross compile, use `--host'.
See `config.log' for more details.
|
|
|
Back to top |
|
 |
sirro Veteran


Joined: 20 Jul 2003 Posts: 1472 Location: aachen.nrw.de.eu
|
Posted: Mon Oct 11, 2004 4:47 pm Post subject: |
|
|
Compilierst du vielleicht auf einer Partition, die noexec gemountet ist?
Guck dir doch mal die Rechte der ./a.out an, falls sie noch nicht geloescht ist. |
|
Back to top |
|
 |
chalimar n00b

Joined: 16 Aug 2004 Posts: 65 Location: Germany
|
Posted: Mon Oct 11, 2004 5:01 pm Post subject: |
|
|
a.out find ich nirgends.
Und in der fstab steht auch nix von noexec.
Mir ist allerdings auch schon aufgefallen, dass ich auf meiner /home Partition mit ./bla nix ausführen kann - sowohl als User als auch als Root.
Habe jetzt allerdings herausgefunden, dass, wenn ich die Dateien auf meine / Partition verschiebe und dann als Root ./configure mache alles funktioniert. |
|
Back to top |
|
 |
andix Apprentice


Joined: 10 Jul 2004 Posts: 263 Location: Eisenstadt, Austria
|
Posted: Mon Oct 11, 2004 10:20 pm Post subject: |
|
|
Was für ein Dateisystem ist deine Home-Partition? Schick uns vielleicht doch einmal dir /etc/fstab. Vielleicht wissen wir dann mehr. |
|
Back to top |
|
 |
chalimar n00b

Joined: 16 Aug 2004 Posts: 65 Location: Germany
|
Posted: Tue Oct 12, 2004 5:00 am Post subject: |
|
|
Code: | 9 # <fs> <mountpoint> <type> <opts> <dump/pass>
10
11 # NOTE: If your BOOT partition is ReiserFS, add the notail option to opts.
12 /dev/hda2 /boot ext3 noauto,noatime 1 1
13 /dev/hda4 / reiserfs noatime 0 0
14 /dev/hda3 none swap sw 0 0
15 /dev/hdb1 /home reiserfs user,noatime 0 0
16 /dev/hdc /mnt/dvd iso9660 noauto,ro,user 0 0
17 /dev/hdd /mnt/cdrom iso9660 noauto,ro,user 0 0
18 #/dev/fd0 /mnt/floppy auto noauto 0 0
19
20 # NOTE: The next line is critical for boot!
21 none /proc proc defaults 0 0
22
23 # glibc 2.2 and above expects tmpfs to be mounted at /dev/shm for
24 # POSIX shared memory (shm_open, shm_unlink).
25 # (tmpfs is a dynamically expandable/shrinkable ramdisk, and will
26 # use almost no memory if not populated with files)
27 # Adding the following line to /etc/fstab should take care of this:
28
29 none /dev/shm tmpfs defaults 0 0
|
Btw: Kann gut sein, dass da auch Einträge sind, die null bewirken... damit meine ich "user" bei den cdrom Laufwerken und bei der /home Partition. Ich glaube ich habe das da mal eingetragen, damit der normale User da auch drauf zugreifen darf bzw. mounten. Hat damit aber eher weniger zu tun oder?
Ihn einfach in die richtige Group stecken sollte wohl ausreichen. |
|
Back to top |
|
 |
sirro Veteran


Joined: 20 Jul 2003 Posts: 1472 Location: aachen.nrw.de.eu
|
Posted: Tue Oct 12, 2004 6:29 am Post subject: |
|
|
Mach das user mal da raus. Das gehoert da 100%ig nicht hin. user ist dafuer gedacht, dass man auch als user die Partition mounten/unmounten kann, also fuer Wechseldatentraeger wie CD-Rom, Diskettenlaufwerke etc.
Bei mir wird user beim mounten in "noexec,nosuid,nodev" umgewandelt, also wird es daran liegen. (output von mount zeigt sowas an)
Last edited by sirro on Tue Oct 12, 2004 6:36 am; edited 2 times in total |
|
Back to top |
|
 |
tycho1983 Tux's lil' helper


Joined: 09 Aug 2004 Posts: 141 Location: Speyer/Germany
|
Posted: Tue Oct 12, 2004 6:31 am Post subject: |
|
|
chalimar wrote: | Code: | /dev/hdb1 /home reiserfs user,noatime 0 0 |
|
Das sieht doch gut aus ... also das mounten kann es nicht sein! |
|
Back to top |
|
 |
sirro Veteran


Joined: 20 Jul 2003 Posts: 1472 Location: aachen.nrw.de.eu
|
Posted: Tue Oct 12, 2004 6:34 am Post subject: |
|
|
tycho1983 wrote: | Das sieht doch gut aus ... also das mounten kann es nicht sein! |
Ne, das sieht schlecht aus, siehe mein Posting oben. Hier nochmal der einfache Nachweis:
Code: | # mount /dev/sda7 test/
# mount|grep test
/dev/sda7 on /root/test type ext3 (rw)
# umount test/
# mount -o user /dev/sda7 test/
# mount|grep test
/dev/sda7 on /root/test type ext3 (rw,noexec,nosuid,nodev)
# umount test/ |
EDIT: ich sehe gerade, dass du recht kurz nach mir geantwortet hast, konntest also noch nix von meinem Posting wissen  |
|
Back to top |
|
 |
tycho1983 Tux's lil' helper


Joined: 09 Aug 2004 Posts: 141 Location: Speyer/Germany
|
Posted: Tue Oct 12, 2004 7:35 am Post subject: |
|
|
Ahhhhhhhh!
OK, wieder was gelernt  |
|
Back to top |
|
 |
chalimar n00b

Joined: 16 Aug 2004 Posts: 65 Location: Germany
|
Posted: Tue Oct 12, 2004 11:44 am Post subject: |
|
|
Ok, vielen Dank!
Hab's jetzt noch nicht ausprobiert, weil ich erst nen Torrent zuende laufen lassen will, der auf meine /home zugreift, aber ich denke mal das wird's wohl gewesen sein!
Auch danke für die Aufklärung, was "user" genau macht. Ich hab's mir schon gedacht, dass ich das nur für's mounten brauche und sonst nix, aber jetzt weiß ich's sicher
Ich liebe diese hilfbereite Community    |
|
Back to top |
|
 |
|