Начало Вход/Регистрация Помощ Tazi stranica s latinski bukwi
Области
 Новини
 Актуална тема
 Linux портали
 Какво е Линукс?
 Въпроси-отговори
 Форуми
   •Трудова борса
   •Конкурс
 Статии
 Дистрибуции
   •Поръчка на CD
 Made In BG
 Файлове
 Връзки
 Галерия
 Конференции
Настройки
 Външен вид
 Предложения
 Направи си сам
И още ...
 За нас
 Линукс за българи ЕООД
 Линк към нас
 Предложения

Подкрепяно от:
TelePoint - Място за хора със свободни идеи

SiteGround

initLab

Adsys Group

SAP Bulgaria

Въпроси отговори
Въпрос: clamav 0.90.2 compile problem
[Търси: ]

ВНИМАНИЕ: Използвайте форумите на сайта за дa зададете вашите въпроси.

Към началото |Добави въпрос |Отговори
 
Въпрос
От: TOI Дата: 04/26/2007
Zdraveite,
 Ne moga da resha problema s compilaciqta ve4e nqkolko dni i
 reshih ve4e tuk da pisha..ako nqkoi moje da pomogne..gledah
 po razni forumi iz neta, no ne stava..pri make dava
slednoto:

 /usr/local/src/clamav-0.90.2/clamd/session.c:125: undefined
reference to `pthread_mutex_lock'
 /usr/local/src/clamav-0.90.2/clamd/session.c:127: undefined
reference to `pthread_mutex_unlock'
thrmgr.o: In function `thrmgr_destroy':
 /usr/local/src/clamav-0.90.2/clamd/thrmgr.c:102: undefined
reference to `pthread_mutex_lock'
 /usr/local/src/clamav-0.90.2/clamd/thrmgr.c:114: undefined
reference to `pthread_cond_broadcast'
 /usr/local/src/clamav-0.90.2/clamd/thrmgr.c:119: undefined
reference to `pthread_cond_wait'
 /usr/local/src/clamav-0.90.2/clamd/thrmgr.c:121: undefined
reference to `pthread_mutex_unlock'
 /usr/local/src/clamav-0.90.2/clamd/thrmgr.c:117: undefined
reference to `pthread_mutex_unlock'
 /usr/local/src/clamav-0.90.2/clamd/thrmgr.c:126: undefined
reference to `pthread_mutex_destroy'
 /usr/local/src/clamav-0.90.2/clamd/thrmgr.c:127: undefined
reference to `pthread_cond_destroy'
 /usr/local/src/clamav-0.90.2/clamd/thrmgr.c:128: undefined
reference to `pthread_attr_destroy'
thrmgr.o: In function `thrmgr_new':
 /usr/local/src/clamav-0.90.2/clamd/thrmgr.c:161: undefined
reference to `pthread_mutex_init'
 /usr/local/src/clamav-0.90.2/clamd/thrmgr.c:168: undefined
reference to `pthread_cond_init'
 /usr/local/src/clamav-0.90.2/clamd/thrmgr.c:169: undefined
reference to `pthread_attr_init'
 /usr/local/src/clamav-0.90.2/clamd/thrmgr.c:170: undefined
reference to `pthread_cond_destroy'
 /usr/local/src/clamav-0.90.2/clamd/thrmgr.c:171: undefined
reference to `pthread_mutex_destroy'
 /usr/local/src/clamav-0.90.2/clamd/thrmgr.c:192: undefined
reference to `pthread_attr_setdetachstate'
 /usr/local/src/clamav-0.90.2/clamd/thrmgr.c:178: undefined
reference to `pthread_attr_destroy'
 /usr/local/src/clamav-0.90.2/clamd/thrmgr.c:179: undefined
reference to `pthread_cond_destroy'
 /usr/local/src/clamav-0.90.2/clamd/thrmgr.c:180: undefined
reference to `pthread_mutex_destroy'
thrmgr.o: In function `thrmgr_worker':
 /usr/local/src/clamav-0.90.2/clamd/thrmgr.c:208: undefined
reference to `pthread_mutex_lock'
 /usr/local/src/clamav-0.90.2/clamd/thrmgr.c:219: undefined
reference to `pthread_cond_timedwait'
 /usr/local/src/clamav-0.90.2/clamd/thrmgr.c:231: undefined
reference to `pthread_mutex_unlock'
 /usr/local/src/clamav-0.90.2/clamd/thrmgr.c:242: undefined
reference to `pthread_mutex_lock'
 /usr/local/src/clamav-0.90.2/clamd/thrmgr.c:249: undefined
reference to `pthread_cond_broadcast'
 /usr/local/src/clamav-0.90.2/clamd/thrmgr.c:252: undefined
reference to `pthread_mutex_unlock'
thrmgr.o: In function `thrmgr_dispatch':
 /usr/local/src/clamav-0.90.2/clamd/thrmgr.c:268: undefined
reference to `pthread_mutex_lock'
 /usr/local/src/clamav-0.90.2/clamd/thrmgr.c:277: undefined
reference to `pthread_mutex_unlock'
 /usr/local/src/clamav-0.90.2/clamd/thrmgr.c:284: undefined
reference to `pthread_mutex_unlock'
 /usr/local/src/clamav-0.90.2/clamd/thrmgr.c:292: undefined
reference to `pthread_create'
 /usr/local/src/clamav-0.90.2/clamd/thrmgr.c:299: undefined
reference to `pthread_cond_signal'
 /usr/local/src/clamav-0.90.2/clamd/thrmgr.c:303: undefined
reference to `pthread_mutex_unlock'
server-th.o: In function `scanner_thread':
 /usr/local/src/clamav-0.90.2/clamd/server-th.c:100:
undefined reference to `pthread_sigmask'
 /usr/local/src/clamav-0.90.2/clamd/server-th.c:113:
undefined reference to `pthread_mutex_lock'
 /usr/local/src/clamav-0.90.2/clamd/server-th.c:119:
undefined reference to `pthread_mutex_unlock'
 /usr/local/src/clamav-0.90.2/clamd/server-th.c:123:
undefined reference to `pthread_mutex_lock'
 /usr/local/src/clamav-0.90.2/clamd/server-th.c:125:
undefined reference to `pthread_mutex_unlock'
 /usr/local/src/clamav-0.90.2/clamd/server-th.c:137:
undefined reference to `pthread_mutex_lock'
 /usr/local/src/clamav-0.90.2/clamd/server-th.c:141:
undefined reference to `pthread_mutex_unlock'
 /usr/local/src/clamav-0.90.2/clamd/server-th.c:142:
undefined reference to `pthread_mutex_lock'
 /usr/local/src/clamav-0.90.2/clamd/server-th.c:146:
undefined reference to `pthread_mutex_unlock'
server-th.o: In function `acceptloop_th':
 /usr/local/src/clamav-0.90.2/clamd/server-th.c:519:
undefined reference to `pthread_mutex_init'
 /usr/local/src/clamav-0.90.2/clamd/server-th.c:521:
undefined reference to `pthread_mutex_init'
 /usr/local/src/clamav-0.90.2/clamd/server-th.c:598:
undefined reference to `pthread_mutex_lock'
 /usr/local/src/clamav-0.90.2/clamd/server-th.c:603:
undefined reference to `pthread_mutex_unlock'
 /usr/local/src/clamav-0.90.2/clamd/server-th.c:607:
undefined reference to `pthread_mutex_unlock'
 /usr/local/src/clamav-0.90.2/clamd/server-th.c:612:
undefined reference to `pthread_mutex_lock'
 /usr/local/src/clamav-0.90.2/clamd/server-th.c:614:
undefined reference to `pthread_mutex_unlock'
 /usr/local/src/clamav-0.90.2/clamd/server-th.c:620:
undefined reference to `pthread_mutex_lock'
 /usr/local/src/clamav-0.90.2/clamd/server-th.c:627:
undefined reference to `pthread_mutex_unlock'
 /usr/local/src/clamav-0.90.2/clamd/server-th.c:635:
undefined reference to `pthread_mutex_lock'
 /usr/local/src/clamav-0.90.2/clamd/server-th.c:649:
undefined reference to `pthread_mutex_unlock'
scanner.o: In function `multiscanfile':
 /usr/local/src/clamav-0.90.2/clamd/scanner.c:275: undefined
reference to `pthread_sigmask'
*** Error code 1

Stop in /usr/local/src/clamav-0.90.2/clamd.
*** Error code 1

Stop in /usr/local/src/clamav-0.90.2.
*** Error code 1

Stop in /usr/local/src/clamav-0.90.2.



Отговор #1
От: braun100 Дата: 04/26/2007
 ами проблема може да е на много места, най-вероятно грешка в
 самата програма. възможно е обаче да не е инсталирана някоя
 библиотека в която са дефинирани pthread_mutex_lock,
 pthread_mutex_unlock итн, или пък да имаш грешна версия на
 хедърите (*.h). на мене наскоро ми излизаха подобни
 "undefined reference to" съобщения и накрая се оказа, че
една библиотека не е инсталирана правилно:
обикновено имаш библиотеката 
library.so.3.2.1
и линк към нея
library.so

 обаче при мене тоя линк сочеше към друга несъществуваща
версия на същата библиотека  
library.so.3.1.1 !
(/usr/lib/... )



<< port redirect (3 ) | Read - Only file system (0 ) >>

 
© 2011-... Асоциация "Линукс за българи"
© 2007-2010 Линукс за българи ЕООД
© 1999-2006 Slavej Karadjov
Ако искате да препечатате или цитирате информация от този сайт прочетете първо това
Външния вид е направен от MOMCHE
Code Version: 1.0.8 H (Revision: 23-09-2011)
 
Изпълнението отне: 0 wallclock secs ( 0.08 usr + 0.00 sys = 0.08 CPU)