vala i uruchomienie skompilowanego programu

Potrzebujesz pomocy z C, C++, perl, python, itp.
szybki
Posty: 98
Rejestracja: 13 września 2014, 13:06

Post autor: szybki »

strace ./hello
execve("./hello", ["./hello"], [/* 23 vars */]) = -1 ENOENT (No such file or directory)
write(2, "strace: exec: No such file or di"..., 40strace: exec: No such file or directory
) = 40
exit_group(1) = ?
+++ exited with 1 +++

Hmm...
Awatar użytkownika
marcin1982
Moderator
Posty: 1731
Rejestracja: 05 maja 2011, 12:59
Lokalizacja: Zagłębie Dąbrowskie

Post autor: marcin1982 »

Na pewno uruchamiasz to w tym samym katalogu, w którym jest program hello?
szybki
Posty: 98
Rejestracja: 13 września 2014, 13:06

Post autor: szybki »

Tak.
Awatar użytkownika
marcin1982
Moderator
Posty: 1731
Rejestracja: 05 maja 2011, 12:59
Lokalizacja: Zagłębie Dąbrowskie

Post autor: marcin1982 »

Możesz wstawić ten plik na jakiś darmowy hosting, Dropbox, etc?
szybki
Posty: 98
Rejestracja: 13 września 2014, 13:06

Post autor: szybki »

http://przeklej.org/file/1P6sqv/hello
http://przeklej.org/file/VqKIXo/test

hello jest skompilowany teraz, na aktualnej wersji debiana z najnowszym valac
test jest to po prostu przeglądarka internetowa z tutoriala gnome https://wiki.gnome.org/Projects/Vala/WebKitSample
Awatar użytkownika
LordRuthwen
Moderator
Posty: 2324
Rejestracja: 18 września 2009, 21:45
Lokalizacja: klikash?

Post autor: LordRuthwen »

strace:

Kod: Zaznacz cały

execve("./hello", ["./hello"], [/* 24 vars */]) = 0brk(0)                                  = 0xa9b000
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fd498b45000
access("/etc/ld.so.preload", R_OK)      = -1 ENOENT (No such file or directory)
open("/etc/ld.so.cache", O_RDONLY)      = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=16421, ...}) = 0
mmap(NULL, 16421, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7fd498b40000
close(3)                                = 0
open("/lib64/libgobject-2.0.so.0", O_RDONLY) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0000\231\0\0\0\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0755, st_size=308848, ...}) = 0
mmap(NULL, 2407336, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7fd4986db000
mprotect(0x7fd498725000, 2093056, PROT_NONE) = 0
mmap(0x7fd498924000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x49000) = 0x7fd498924000
mmap(0x7fd498926000, 2984, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7fd498926000
close(3)                                = 0
open("/lib64/libglib-2.0.so.0", O_RDONLY) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\300l\1\0\0\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0755, st_size=1140496, ...}) = 0
mmap(NULL, 3237912, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7fd4983c4000
mprotect(0x7fd4984d9000, 2097152, PROT_NONE) = 0
mmap(0x7fd4986d9000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x115000) = 0x7fd4986d9000
mmap(0x7fd4986da000, 2072, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7fd4986da000
close(3)                                = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fd498b3f000
open("/lib64/libc.so.6", O_RDONLY)      = 3
read(3, "\177ELF\2\1\1\3\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0p\356\1\0\0\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0755, st_size=1920936, ...}) = 0
mmap(NULL, 3750152, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7fd498030000
mprotect(0x7fd4981ba000, 2097152, PROT_NONE) = 0
mmap(0x7fd4983ba000, 20480, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x18a000) = 0x7fd4983ba000
mmap(0x7fd4983bf000, 18696, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7fd4983bf000
close(3)                                = 0
open("/lib64/libgthread-2.0.so.0", O_RDONLY) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0`\25\0\0\0\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0755, st_size=17536, ...}) = 0
mmap(NULL, 2112760, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7fd497e2c000
mprotect(0x7fd497e30000, 2093056, PROT_NONE) = 0
mmap(0x7fd49802f000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x3000) = 0x7fd49802f000
close(3)                                = 0
open("/lib64/libpthread.so.0", O_RDONLY) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\340]\0\0\0\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0755, st_size=142640, ...}) = 0
mmap(NULL, 2212848, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7fd497c0f000
mprotect(0x7fd497c26000, 2097152, PROT_NONE) = 0
mmap(0x7fd497e26000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x17000) = 0x7fd497e26000
mmap(0x7fd497e28000, 13296, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7fd497e28000
close(3)                                = 0
open("/lib64/librt.so.1", O_RDONLY)     = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0@!\0\0\0\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0755, st_size=43880, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fd498b3e000
mmap(NULL, 2128816, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7fd497a07000
mprotect(0x7fd497a0e000, 2093056, PROT_NONE) = 0
mmap(0x7fd497c0d000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x6000) = 0x7fd497c0d000
close(3)                                = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fd498b3d000
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fd498b3c000
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fd498b3b000
arch_prctl(ARCH_SET_FS, 0x7fd498b3c700) = 0
mprotect(0x7fd497c0d000, 4096, PROT_READ) = 0
mprotect(0x7fd497e26000, 4096, PROT_READ) = 0
mprotect(0x7fd4983ba000, 16384, PROT_READ) = 0
mprotect(0x7fd498b46000, 4096, PROT_READ) = 0
munmap(0x7fd498b40000, 16421)           = 0
set_tid_address(0x7fd498b3c9d0)         = 1461
set_robust_list(0x7fd498b3c9e0, 24)     = 0
futex(0x7fffbd4fc43c, FUTEX_WAKE_PRIVATE, 1) = 0
futex(0x7fffbd4fc43c, FUTEX_WAIT_BITSET_PRIVATE|FUTEX_CLOCK_REALTIME, 1, NULL, 7fd498b3c700) = -1 EAGAIN (Resource temporarily unavailable)
rt_sigaction(SIGRTMIN, {0x7fd497c14c60, [], SA_RESTORER|SA_SIGINFO, 0x7fd497c1e790}, NULL, 8) = 0
rt_sigaction(SIGRT_1, {0x7fd497c14cf0, [], SA_RESTORER|SA_RESTART|SA_SIGINFO, 0x7fd497c1e790}, NULL, 8) = 0
rt_sigprocmask(SIG_UNBLOCK, [RTMIN RT_1], NULL, 8) = 0
getrlimit(RLIMIT_STACK, {rlim_cur=10240*1024, rlim_max=RLIM64_INFINITY}) = 0
brk(0)                                  = 0xa9b000
brk(0xabc000)                           = 0xabc000
gettimeofday({1447407634, 547483}, NULL) = 0
open("/usr/lib64/charset.alias", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/lib64/gconv/gconv-modules.cache", O_RDONLY) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=26060, ...}) = 0
mmap(NULL, 26060, PROT_READ, MAP_SHARED, 3, 0) = 0x7fd498b34000
close(3)                                = 0
futex(0x7fd4983bef88, FUTEX_WAKE_PRIVATE, 2147483647) = 0
fstat(1, {st_mode=S_IFCHR|0620, st_rdev=makedev(136, 0), ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fd498b44000
write(1, "Hello, World\n", 13Hello, World
)          = 13
exit_group(0)                           = ?
+++ exited with 0 +++
Uruchomione na czyściutkim Centosie 6 bez niczego (moja wirtualka do testów)
Aplikacja działa poprawnie.
szybki
Posty: 98
Rejestracja: 13 września 2014, 13:06

Post autor: szybki »

Ok, a ten drugi plik?
Awatar użytkownika
LordRuthwen
Moderator
Posty: 2324
Rejestracja: 18 września 2009, 21:45
Lokalizacja: klikash?

Post autor: LordRuthwen »

A wymaga X-ów?
Sorry, ale u siebie na kompie tego nie uruchomię :P
szybki
Posty: 98
Rejestracja: 13 września 2014, 13:06

Post autor: szybki »

Tak, GTK w wersji 2 ;)
ODPOWIEDZ