URL: https://www.opennet.ru/cgi-bin/openforum/vsluhboard.cgi
Форум: vsluhforumID1
Нить номер: 73160
[ Назад ]

Исходное сообщение
"Компиляция C-Client"

Отправлено GTHack , 28-Мрт-07 06:24 
CentOS
нужно скомпилировать c-client (для дальнейшего компилирования PHP с --with-imap)
для c-client нужен openssl который я предварительно скомпилировал

Проблема в компиляции c-client :(

даю make slx

поначалу нормально идёт, потом вываливает предупреждения и ошибки

приведу лог компиляции с момента где пошли косяки:

помогите плс - а то сам не пойму, что ей не нравится !

.
.
.
`cat CCTYPE` -c `cat CFLAGS` news.c
news.c: In function `news_open':
news.c:370: warning: passing arg 3 of `scandir' from incompatible pointer type
`cat CCTYPE` -c `cat CFLAGS` phile.c
`cat CCTYPE` -c `cat CFLAGS` mh.c
mh.c: In function `mh_ping':
mh.c:865: warning: passing arg 3 of `scandir' from incompatible pointer type
mh.c: In function `mh_append':
mh.c:1130: warning: passing arg 3 of `scandir' from incompatible pointer type
`cat CCTYPE` -c `cat CFLAGS` mx.c
mx.c: In function `mx_scan_contents':
mx.c:278: warning: passing arg 3 of `scandir' from incompatible pointer type
mx.c: In function `mx_rename':
mx.c:463: warning: passing arg 3 of `scandir' from incompatible pointer type
mx.c: In function `mx_ping':
mx.c:731: warning: passing arg 3 of `scandir' from incompatible pointer type
`cat CCTYPE` -c `cat CFLAGS` mix.c
mix.c: In function `mix_scan_contents':
mix.c:333: warning: passing arg 3 of `scandir' from incompatible pointer type
mix.c: In function `mix_rename':
mix.c:557: warning: passing arg 3 of `scandir' from incompatible pointer type
mix.c: In function `mix_expunge':
mix.c:1037: warning: passing arg 3 of `scandir' from incompatible pointer type
sh -c 'rm -rf c-client.a || true'
ar rc c-client.a osdep.o mail.o misc.o newsrc.o smanager.o utf8.o utf8aux.o siglocal.o dummy.o pseudo.o netmsg.o flstring.o fdstring.o rfc822.o nntp.o smtp.o imap4r1.o pop3.o unix.o mbx.o mmdf.o tenex.o mtx.o news.o phile.o mh.o mx.o mix.o;ranlib c-client.a
make[3]: Leaving directory `/root/distr/imap-2006f/c-client'
make[2]: Leaving directory `/root/distr/imap-2006f/c-client'
echo slx > OSTYPE
touch rebuild
sh -c 'rm -rf rebuild || true'
Building bundled tools...
cd mtest;make
make[2]: Entering directory `/root/distr/imap-2006f/mtest'
`cat ../c-client/CCTYPE` -I../c-client `cat ../c-client/CFLAGS`   -c -o mtest.o mtest.c
`cat ../c-client/CCTYPE` -I../c-client `cat ../c-client/CFLAGS` -o mtest mtest.o ../c-client/c-client.a `cat ../c-client/LDFLAGS`
../c-client/c-client.a(osdep.o)(.text+0x8970): In function `ssl_onceonlyinit':
/root/distr/imap-2006f/c-client/osdep.c:301: warning: the use of `tmpnam' is dangerous, better use `mkstemp'
mtest.o(.text+0x1680): In function `smtptest':
/root/distr/imap-2006f/mtest/mtest.c:781: warning: the `gets' function is dangerous and should not be used.
/usr/local/ssl/lib/libcrypto.a(dso_dlfcn.o)(.text+0x2f3): In function `dlfcn_bind_func':
: undefined reference to `dlsym'
/usr/local/ssl/lib/libcrypto.a(dso_dlfcn.o)(.text+0x3e6): In function `dlfcn_bind_func':
: undefined reference to `dlerror'
/usr/local/ssl/lib/libcrypto.a(dso_dlfcn.o)(.text+0x46b): In function `dlfcn_bind_var':
: undefined reference to `dlsym'
/usr/local/ssl/lib/libcrypto.a(dso_dlfcn.o)(.text+0x53c): In function `dlfcn_bind_var':
: undefined reference to `dlerror'
/usr/local/ssl/lib/libcrypto.a(dso_dlfcn.o)(.text+0x5a3): In function `dlfcn_unload':
: undefined reference to `dlclose'
/usr/local/ssl/lib/libcrypto.a(dso_dlfcn.o)(.text+0x688): In function `dlfcn_load':
: undefined reference to `dlopen'
/usr/local/ssl/lib/libcrypto.a(dso_dlfcn.o)(.text+0x6fd): In function `dlfcn_load':
: undefined reference to `dlclose'
/usr/local/ssl/lib/libcrypto.a(dso_dlfcn.o)(.text+0x744): In function `dlfcn_load':
: undefined reference to `dlerror'
collect2: ld returned 1 exit status
make[2]: *** [mtest] Error 1
make[2]: Leaving directory `/root/distr/imap-2006f/mtest'
make[1]: *** [bundled] Error 2
make[1]: Leaving directory `/root/distr/imap-2006f'
make: *** [slx] Error 2


Содержание

Сообщения в этом обсуждении
"Компиляция C-Client"
Отправлено GTHack , 28-Мрт-07 07:08 
в общем проигнорировал все варнинги эти ...
продолжил дальше по инструкции - вроде пошло ...

"Компиляция C-Client"
Отправлено lavr , 28-Мрт-07 11:13 
>в общем проигнорировал все варнинги эти ...
>продолжил дальше по инструкции - вроде пошло ...

что пошло?! класс, у него неразрешенные ссылки, а он "пошло"
там все достаточно прозрачно - внимательно почитать описания и посмотреть Makefiles
с зависимой лабудой и все соберется как надо.


"Компиляция C-Client"
Отправлено GTHack , 30-Мрт-07 09:30 
>>в общем проигнорировал все варнинги эти ...
>>продолжил дальше по инструкции - вроде пошло ...
>
>что пошло?! класс, у него неразрешенные ссылки, а он "пошло"
создался c-client.a переименовал его в libc-client.a
закинул куда надо

незнаю, что там по ссылкам, но php с поддержкой imap скомпилировался

>там все достаточно прозрачно - внимательно почитать описания и посмотреть Makefiles
>с зависимой лабудой и все соберется как надо.
да 10 раз уже смотрел его и пробовал по разному собирать - хрен