View previous topic :: View next topic |
Author |
Message |
pknzeta n00b
Joined: 22 Sep 2008 Posts: 22
|
Posted: Sun Oct 19, 2008 5:22 pm Post subject: [GCC] Me sort des progammes pas executable du tout. (résolu) |
|
|
Bonjour a tous,
Alors voila j'ai sacré problème avec gcc, il me sort des programmes qui ne marchent pas
exemple:
Code: |
// hello.c
#include <iostream>
int main (int argc, char *argv[]){
std::cout << "HelloWorld\n";
return 0;
}
|
# g++ -Wall -o hello hello.c
là OK ça roule... mais ensuite
#./hello
bash: ./hello: Permission denied
peu importe qui essaye de lancer hello. (même root)
pourtant emerge marche bien. je comprend vraiment pas. je suis pas un grand expert en programmation mais je sais que ça devrais marcher ça pourtant.
même des programmes que j'avais fait avant (sur une autre install) et qui marchais merdouille comme ça.
mon emerge --info:
Code: |
Portage 2.2_rc12 (default/linux/amd64/2008.0, gcc-4.3.2, glibc-2.8_p20080602-r0, 2.6.26-gentoo-r1 x86_64)
=================================================================
System uname: Linux-2.6.26-gentoo-r1-x86_64-AMD_Athlon-tm-_64_Processor_3500+-with-glibc2.2.5
Timestamp of tree: Sun, 19 Oct 2008 01:17:01 +0000
app-shells/bash: 3.2_p39
dev-java/java-config: 1.3.7, 2.1.6-r1
dev-lang/python: 2.5.2-r8
dev-util/cmake: 2.6.1
sys-apps/baselayout: 2.0.0
sys-apps/openrc: 0.3.0-r1
sys-apps/sandbox: 1.2.18.1-r3
sys-devel/autoconf: 2.13, 2.63
sys-devel/automake: 1.5, 1.7.9-r1, 1.9.6-r2, 1.10.1-r1
sys-devel/binutils: 2.18-r3
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool: 2.2.6a
virtual/os-headers: 2.6.26
ACCEPT_KEYWORDS="amd64 ~amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=athlon64 -O3 -pipe -DPIC -s -fomit-frame-pointer "
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-march=athlon64 -O3 -pipe -DPIC -s -fomit-frame-pointer "
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks parallel-fetch preserve-libs protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org ftp.tiscali.nl/pub/mirror/gentoo/distfiles/ ftp.uoi.gr/mirror/OS/gentoo/distfiles/ http://de-mirror.org/distro/gentoo/distfiles/ http://gentoo.mirrors.tds.net/gentoo/distfiles/ ftp://gentoo.imj.fr/pub/gentoo/distfiles"
LDFLAGS="-Wl,-O1"
LINGUAS="eng"
MAKEOPTS="-j2 -s"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="7zip X a52 aac aalib acl aften alsa amd64 amr ao app-office/openoffice avahi berkdb bzip2 cairo cdda cddb cdio cdparanoia cdr cdrom cli cracklib crypt cups cursors custom-optimization cvs cxx dbus devil dga dhcp divx doc dri dts dv dvd dvdr dvdread dvi dynamic editor encode equalizer examples fastbuild ffmpeg firefox flac flash fortran ftp gcj gd gdbm gif gimp glade glut gnome gnutls gpm gstreamer gtk gzip-el hal hardcoded-tables hardened iconv id3 id3tag image imagemagick imlib infowidget ipv6 isdnlog jabber javascript joystick jpeg jpeg2k lame ldap libcaca libnotify logviewer lvm lzo mad matroska md5sum mdnsresponder-compat menu-plugin midi mikmod mime mmx modplug mp2 mp3 mp3rtp mp4 mp4live mpeg mpeg2 mplayer msn mudflap multilib musepack ncurses net network nls nocd nptl nptlonly ogg openal opengl openmp pam pci pcre pdf perl plugins png pppd python qt-dbus qt4 quicktime rar readline reflection samba scanfolder sdl sdl-image sdl-sound search session speech speex spell spl sse sse2 ssl stats subversion svg sysfs tcpd theora threads truetype unicode upnp vorbis wav x264 xchatdccserver xfce xml xorg xosd xulrunner xv xvid yahoo zeroconf zip zlib" ALSA_CARDS="cmipci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="eng" USERLAND="GNU" VIDEO_CARDS="fbdev nv vesa vga"
Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
|
s'il vous plaît aidez moi...
Last edited by pknzeta on Sun Oct 19, 2008 5:53 pm; edited 1 time in total |
|
Back to top |
|
|
guilc Bodhisattva
Joined: 15 Nov 2003 Posts: 3326 Location: Paris - France
|
Posted: Sun Oct 19, 2008 5:34 pm Post subject: |
|
|
Une idée comme ça : ton programme qui ne s'exécute pas, il est où ? Dans ton home ? dans /tmp ?
Et quelles sont les options de montage de la partition en question ? je parie que y a un noexec qui traîne _________________ Merci de respecter les règles du forum.
Mon site perso : https://www.xwing.info
Mon PORTDIR_OVERLAY : https://gentoo.xwing.info ou layman -a xwing |
|
Back to top |
|
|
pknzeta n00b
Joined: 22 Sep 2008 Posts: 22
|
Posted: Sun Oct 19, 2008 5:40 pm Post subject: |
|
|
le programme en question n'est ni dans mon home ni dans /tmp...
voici mon fstab:
Code: |
# <fs> <mountpoint> <type> <opts> <dump/pass>
/dev/disk/by-id/scsi-SATA_WDC_WD1600JD-00WD-WMAES3261030-part1 / ext3 noatime 0 0
/dev/disk/by-id/scsi-SATA_WDC_WD1600JD-00WD-WMAES3261030-part3 none swap sw 0 0
/dev/cdrom /mnt/cdrom auto noauto,ro,users 0 0
# PTI DIMENSION !
/dev/disk/by-id/scsi-SATA_WDC_WD1600JD-00WD-WMAES3261030-part2 /mnt/pti ext3 auto,rw,users 0 0
# GRO TORTURE ROOM !
/dev/disk/by-id/scsi-SATA_SAMSUNG_HD501LJS0MUJ1MP747756-part1 /mnt/gro ext3 auto,rw,users 0 0
# glibc 2.2 and above expects tmpfs to be mounted at /dev/shm for
# POSIX shared memory (shm_open, shm_unlink).
# (tmpfs is a dynamically expandable/shrinkable ramdisk, and will
# use almost no memory if not populated with files)
shm /dev/shm tmpfs nodev,nosuid,noexec 0 0
|
la partoche en question c'est pti
donc pas de noexec qui traine. |
|
Back to top |
|
|
gglaboussole l33t
Joined: 17 May 2005 Posts: 641 Location: Monbalen (47),France
|
Posted: Sun Oct 19, 2008 5:47 pm Post subject: |
|
|
Guilc a raison, ton problème vient de noexec...en effet ta partoche est montée avec l'option users et celle ci implique noexec.... cf man mount :
Code: |
users Allow every user to mount and unmount the file system. This option implies
the options noexec, nosuid, and nodev (unless overridden by subsequent
options, as in the option line users,exec,dev,suid).
|
donc rajoutes exec.... _________________ On m'a dit que la terre tourne, alors j'attends que ma maison passe par ici... |
|
Back to top |
|
|
pknzeta n00b
Joined: 22 Sep 2008 Posts: 22
|
Posted: Sun Oct 19, 2008 5:53 pm Post subject: |
|
|
cool, tout beigne maintenant.
merci a vous. |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|