[Comm] Ошибки a340gc (was:Ошибка ли указ ывать библиотеку -lGL 2 раза?)
Slava Dubrovskiy
=?iso-8859-1?q?slava_=CE=C1_elan=2Ecom=2Eua?=
Вт Апр 12 15:57:25 MSD 2005
Alexey Rusakov пишет:
>> configure:1686: checking for working libGC
>> configure:1706: gcc -o conftest -g -O2 conftest.c -lGC -lSDL
>> -lpthread -lGL -L/usr/X11R6/lib 1>&
>> /usr/local/lib/libGC.so: undefined reference to `operator delete(void*)'
>> /usr/local/lib/libGC.so: undefined reference to `__gxx_personality_v0'
>> /usr/local/lib/libGC.so: undefined reference to `__cxa_pure_virtual'
>> /usr/local/lib/libGC.so: undefined reference to `vtable for
>> __cxxabiv1::__class_type_info'
>> /usr/local/lib/libGC.so: undefined reference to `operator
>> new(unsigned int)'
>> collect2: ld returned 1 exit status
>
> Теперь добавьте -lstdc++
Помогло :-)
>> Это я пытаюсь a340gc (http://a340gc.iradis.org) собрать.
>> Но чувствую, что с моим знанием С я не потяну. :-(
>
> Судя по ошибкам линкера, это уже не C, а C++.
Хрен редьки не слаще.
Все собралось, установилось, но не работает.
$ ./a340gc
Failed to initialize Data Input Output Module:
Failed to load DIOM-DL
/usr/local/share/libGC/▒.so: cannot open shared object file: No such
file or directory
Причем имя файла так и написано: - "▒.so" Прикол. Откуда оно взялось?
Вот часть strace
munmap(0x40c85000, 4096) = 0
open("/etc/ld.so.cache", O_RDONLY) = 8
fstat64(8, {st_mode=S_IFREG|0644, st_size=81101, ...}) = 0
mmap2(NULL, 81101, PROT_READ, MAP_PRIVATE, 8, 0) = 0x40ca7000
close(8) = 0
open("/lib/i686/rddp", O_RDONLY) = -1 ENOENT (No such file or
directory)
open("/lib/rddp", O_RDONLY) = -1 ENOENT (No such file or
directory)
open("/usr/lib/rddp", O_RDONLY) = -1 ENOENT (No such file or
directory)
munmap(0x40ca7000, 81101) = 0
open("/etc/ld.so.cache", O_RDONLY) = 8
fstat64(8, {st_mode=S_IFREG|0644, st_size=81101, ...}) = 0
mmap2(NULL, 81101, PROT_READ, MAP_PRIVATE, 8, 0) = 0x40ca7000
close(8) = 0
open("/lib/i686/rddp.so", O_RDONLY) = -1 ENOENT (No such file or
directory)
open("/lib/rddp.so", O_RDONLY) = -1 ENOENT (No such file or
directory)
open("/usr/lib/rddp.so", O_RDONLY) = -1 ENOENT (No such file or
directory)
munmap(0x40ca7000, 81101) = 0
open("/usr/lib/rddp", O_RDONLY) = -1 ENOENT (No such file or
directory)
open("/usr/lib/rddp.so", O_RDONLY) = -1 ENOENT (No such file or
directory)
open("/lib/rddp", O_RDONLY) = -1 ENOENT (No such file or
directory)
open("/lib/rddp.so", O_RDONLY) = -1 ENOENT (No such file or
directory)
open("/usr/local/share/a340gc/rddp", O_RDONLY) = -1 ENOENT (No such file
or directory)
open("/usr/local/share/a340gc/rddp.so", O_RDONLY) = -1 ENOENT (No such
file or directory)
open("/usr/local/lib/▒", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/local/lib/▒.so", O_RDONLY) = -1 ENOENT (No such file or
directory)
open("/usr/local/share/libGC/▒", O_RDONLY) = -1 ENOENT (No such file or
directory)
open("/usr/local/share/libGC/▒.so", O_RDONLY) = -1 ENOENT (No such file
or directory)
fstat64(1, {st_mode=S_IFCHR|0620, st_rdev=makedev(136, 7), ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
0) = 0x40ca7000
write(1, "Failed to initialize Data Input "..., 47Failed to initialize
Data Input Output Module:
) = 47
write(1, " Failed to load DIOM-DL\n", 24 Failed to load DIOM-DL
) = 24
write(1, " /usr/local/share/libGC/\30r\7\10.so:"..., 91
/usr/local/share/libGC/▒.so: cannot open shared object file: No such
file or directory
) = 91
write(4, "_\1\2\0\v\0 \3+\0\1\0", 12) = 12
read(4, 0xbffff650, 32) = -1 EAGAIN (Resource
temporarily unavailable)
select(5, [4], NULL, NULL, NULL) = 1 (in [4])
read(4, "\1\1:\0\0\0\0\0\204\0\240\2\0\0\0\0\0\0\0\0\5\0\0\0\10"..., 32)
= 32
write(6, "+\0\1\0", 4) = 4
read(6, 0xbffff680, 32) = -1 EAGAIN (Resource
temporarily unavailable)
select(7, [6], NULL, NULL, NULL) = 1 (in [6])
read(6, "\1\1\7\0\0\0\0\0\204\0\240\2\0\0\0\0\1\0\0\0\6\0\0\0H\226"...,
32) = 32
write(4, "\n\1\2\0\3\0 \3O\0\2\0\1\0 \3_\1\2\0\7\0 \3+\0\1\0", 28) = 28
read(4, 0xbffff660, 32) = -1 EAGAIN (Resource
temporarily unavailable)
select(5, [4], NULL, NULL, NULL) = 1 (in [4])
read(4, "\1\1>\0\0\0\0\0\204\0\240\2\0\0\0\0\0\0\0\0\5\0\0\0\10"..., 32)
= 32
write(6, "<\0\2\0\0\0@\3+\0\1\0", 12) = 12
read(6, 0xbffff660, 32) = -1 EAGAIN (Resource
temporarily unavailable)
select(7, [6], NULL, NULL, NULL) = 1 (in [6])
read(6, "\1\1\t\0\0\0\0\0\204\0\240\2\0\0\0\0\0\0\0\0\6\0\0\0H\226"...,
32) = 32
shutdown(6, 2 /* send and receive */) = 0
close(6) = 0
write(4, "<\1\2\0\0\0 \3+\0\1\0", 12) = 12
read(4, 0xbffff660, 32) = -1 EAGAIN (Resource
temporarily unavailable)
select(5, [4], NULL, NULL, NULL) = 1 (in [4])
read(4, "\1\1@\0\0\0\0\0\204\0\240\2\0\0\0\0\0\0\0\0\5\0\0\0\10"..., 32)
= 32
shutdown(4, 2 /* send and receive */) = 0
close(4) = 0
rt_sigaction(SIGSEGV, NULL, {0x400bae50, [], 0}, 8) = 0
rt_sigaction(SIGSEGV, {SIG_DFL}, NULL, 8) = 0
rt_sigaction(SIGBUS, NULL, {0x400bae50, [], 0}, 8) = 0
rt_sigaction(SIGBUS, {SIG_DFL}, NULL, 8) = 0
rt_sigaction(SIGFPE, NULL, {0x400bae50, [], 0}, 8) = 0
rt_sigaction(SIGFPE, {SIG_DFL}, NULL, 8) = 0
rt_sigaction(SIGQUIT, NULL, {0x400bae50, [], 0}, 8) = 0
rt_sigaction(SIGQUIT, {SIG_DFL}, NULL, 8) = 0
getpid() = 21947
getpid() = 21947
getpid() = 21947
getpid() = 21947
munmap(0x40bea000, 622592) = 0
munmap(0x40014000, 8192) = 0
munmap(0x40ca7000, 4096) = 0
exit_group(1) = ?
--
С уважением,
Дубровский Вячеслав.
Подробная информация о списке рассылки community