> Не страдайте фигней, копайте утилиту wx-config --libs --cxxflags --static=yes
> она что то не так отрабатывает, все должно подставлсяться автоматически.От undefined reference избавился.
Линукется, но вот с такими варнингами...
/usr/local/lib/libwx_gtk2u-2.8.a(monolib_dlunix.o): In function `wxDynamicLibrary::RawLoad(wxString const&, int)':
dlunix.cpp:(.text+0x195): warning: Using 'dlopen' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
/usr/local/lib/libgio-2.0.a(glocalfileinfo.o): In function `lookup_gid_name':
(.text+0x206c): warning: Using 'getgrgid_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
/usr/local/lib/libwx_gtk2u-2.8.a(monolib_utilsunx.o): In function `wxGetUserHome(wxString const&)':
utilsunx.cpp:(.text+0x69b): warning: Using 'getpwnam' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
/usr/local/lib/libwx_gtk2u-2.8.a(monolib_utilsunx.o): In function `wxGetUserId(wchar_t*, int)':
utilsunx.cpp:(.text+0x539): warning: Using 'getpwuid' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
/usr/local/lib/libglib-2.0.a(gutils.o): In function `g_get_any_init_do':
(.text+0x11c4): warning: Using 'setpwent' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
/usr/local/lib/libglib-2.0.a(gutils.o): In function `g_get_any_init_do':
(.text+0x11d9): warning: Using 'endpwent' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
/usr/local/lib/libglib-2.0.a(gutils.o): In function `g_get_any_init_do':
(.text+0xedd): warning: Using 'getpwnam_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
/usr/local/lib/libgio-2.0.a(glocalfileinfo.o): In function `lookup_uid_data':
(.text+0x1efc): warning: Using 'getpwuid_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
/usr/local/lib/libX11.a(xim_trans.o): In function `_XimXTransSocketUNIXConnect':
(.text+0xcda): warning: Using 'getaddrinfo' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
/usr/local/lib/libICE.a(icetrans.o): In function `_IceTransGetPeerNetworkId':
(.text+0x1c86): warning: Using 'gethostbyaddr' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
/usr/local/lib/libwx_gtk2u-2.8.a(monolib_utilsunx.o): In function `wxGetFullHostName(wchar_t*, int)':
utilsunx.cpp:(.text+0xd41): warning: Using 'gethostbyname' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
/usr/local/lib/libICE.a(icetrans.o): In function `_IceTransSocketINETCreateListener':
(.text+0x187c): warning: Using 'getservbyname' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
Done
В итоге, запускается в Segmentation fault :)
gdb) run
Starting program: /usr/src/gui/gui_sys/gui_main
[Thread debugging using libthread_db enabled]Program received signal SIGSEGV, Segmentation fault.
0x00000000 in ?? ()
(gdb) where
#0 0x00000000 in ?? ()
#1 0xb72e5e48 in _init () from /lib/libpthread.so.0
#2 0x088972fe in call_init ()
#3 0x088974ad in _dl_init ()
#4 0x0888639b in dl_open_worker ()
#5 0x088848ca in _dl_catch_error ()
#6 0x08885c0d in _dl_open ()
#7 0x08848938 in dlopen_doit ()
#8 0x088848ca in _dl_catch_error ()
#9 0x08848be1 in _dlerror_run ()
#10 0x088488a5 in __dlopen ()
#11 0x0860d67f in dlopen ()
#12 0x0855a0a4 in g_module_open ()
#13 0x082e99b2 in load_modules ()
#14 0x082e9e4b in _gtk_modules_init ()
#15 0x082d34b0 in post_parse_hook ()
#16 0x0858c704 in g_option_context_parse ()
#17 0x082d30fc in gtk_parse_args ()
#18 0x082d3168 in gtk_init_check ()
#19 0x0811e6d2 in wxApp::Initialize(int&, wchar_t**) ()
#20 0x080ee90f in wxEntryStart(int&, wchar_t**) ()
#21 0x080eead7 in wxInitialize(int, wchar_t**) ()
#22 0x080eeb2c in wxEntry(int&, wchar_t**) ()
#23 0x0804963b in main (argc=1, argv=0xbffff4e4) at image.cpp:263
# strace -ff ./gui_man
...
...
access("/etc/ld.so.nohwcap", F_OK) = 0
open("/usr/lib/libXdmcp.so.6", O_RDONLY) = 5
read(5, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\300\17\0\0004\0\0\0"..., 512) = 512
fstat64(5, {st_mode=S_IFREG|0644, st_size=16972, ...}) = 0
mmap2(NULL, 19804, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 5, 0) = 0xb67ff000
mmap2(0xb6803000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 5, 0x3) = 0xb6803000
close(5) = 0
mprotect(0xb6846000, 4096, PROT_READ) = 0
mprotect(0xb6858000, 4096, PROT_READ) = 0
mprotect(0xb6aa5000, 4096, PROT_READ) = 0
mprotect(0xb6acd000, 4096, PROT_READ) = 0
mprotect(0xb6ad1000, 4096, PROT_READ) = 0
mprotect(0xb6bfe000, 4096, PROT_READ) = 0
set_tid_address(0x8c018c8) = 7836
set_robust_list(0x8c018d0, 0xc) = 0
futex(0xbfc1b944, FUTEX_WAKE_PRIVATE, 1) = 0
futex(0xbfc1b944, FUTEX_WAIT_BITSET_PRIVATE|FUTEX_CLOCK_REALTIME, 1, NULL, bfc1b954) = -1 EAGAIN (Resource temporarily unavailable)
rt_sigaction(SIGRTMIN, {0xb6a943b0, [], SA_RESTORER|SA_SIGINFO, 0xb6a9de60}, NULL, 8) = 0
rt_sigaction(SIGRT_1, {0xb6a94840, [], SA_RESTORER|SA_RESTART|SA_SIGINFO, 0xb6a9de60}, NULL, 8) = 0
rt_sigprocmask(SIG_UNBLOCK, [RTMIN RT_1], NULL, 8) = 0
getrlimit(RLIMIT_STACK, {rlim_cur=8192*1024, rlim_max=RLIM_INFINITY}) = 0
--- SIGSEGV (Segmentation fault) @ 0 (0) ---
+++ killed by SIGSEGV +++
# ulimit -s крутил всякий разный - не помогает.