Hello,

I reverted the changes causing the warnings with static in the header files.

The linking problem, Bron mentioned on 12.07., was is caused by (./libtool --config)'s link_all_deplibs=no .

Does anybody have an idea, when is link_all_deplibs set to no, and when to yes/unknown?

Със здраве
  Дилян

On 12.07.2012 00:48, Bron Gondwana wrote:


On Thu, Jul 12, 2012, at 12:17 AM, Дилян Палаузов wrote:
Hello,

can you please send the last lines of "make" before the crash, your
versions of automake and libtool, and the content of libcyrus_imap.la ?
   My output of make is attached.  From it can be seen, on the lines for
cyr_synclog, that libtool is invoked to link with libcyrus_imap.la, and
it expands to libcyrus_imap.so, libcyrus.so and libcyrus_min.so .

Trying it without the -j:

libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I. -I./lib -I. -I./lib 
-DHAVE_CONFIG_H -I/usr/include -fPIC -g -fPIC -W -Wall -Wextra -MT 
lib/hashu64.lo -MD -MP -MF lib/.deps/hashu64.Tpo -c lib/hashu64.c  -fPIC -DPIC 
-o lib/.libs/hashu64.o
/bin/bash ./libtool --tag=CC   --mode=link gcc -fPIC  -g -fPIC -W -Wall -Wextra 
  -o perl/libcyrus_min.la  lib/assert.lo   lib/hash.lo lib/imapopts.lo 
lib/libconfig.lo lib/lock_fcntl.lo  lib/map_shared.lo   lib/mpool.lo 
lib/retry.lo lib/strarray.lo lib/strhash.lo lib/util.lo lib/xmalloc.lo 
lib/xstrlcat.lo lib/xstrlcpy.lo lib/hashu64.lo  -ldb-4.8 -lpcre -lpcreposix -lz
libtool: link: ar cru perl/.libs/libcyrus_min.a lib/.libs/assert.o 
lib/.libs/hash.o lib/.libs/imapopts.o lib/.libs/libconfig.o 
lib/.libs/lock_fcntl.o lib/.libs/map_shared.o lib/.libs/mpool.o 
lib/.libs/retry.o lib/.libs/strarray.o lib/.libs/strhash.o lib/.libs/util.o 
lib/.libs/xmalloc.o lib/.libs/xstrlcat.o lib/.libs/xstrlcpy.o 
lib/.libs/hashu64.o
libtool: link: ranlib perl/.libs/libcyrus_min.a
libtool: link: ( cd "perl/.libs" && rm -f "libcyrus_min.la" && ln -s "../libcyrus_min.la" 
"libcyrus_min.la" )
gcc -DHAVE_CONFIG_H -I.   -I. -I./lib -I. -I./lib -DHAVE_CONFIG_H     
-I/usr/include -fPIC  -fvisibility=hidden -g -fPIC -W -Wall -Wextra -MT 
imtest/imtest_imtest-imtest.o -MD -MP -MF imtest/.deps/imtest_imtest-imtest.Tpo 
-c -o imtest/imtest_imtest-imtest.o `test -f 'imtest/imtest.c' || echo 
'./'`imtest/imtest.c
./lib/prot.h:156:12: warning: ‘prot_flush_internal’ declared ‘static’ but never 
defined [-Wunused-function]
./lib/prot.h:237:12: warning: ‘prot_setreadcallback’ declared ‘static’ but 
never defined [-Wunused-function]
./lib/prot.h:281:26: warning: ‘protgroup_copy’ declared ‘static’ but never 
defined [-Wunused-function]
mv -f imtest/.deps/imtest_imtest-imtest.Tpo imtest/.deps/imtest_imtest-imtest.Po
/bin/bash ./libtool --tag=CC   --mode=link gcc -fPIC  -fvisibility=hidden -g 
-fPIC -W -Wall -Wextra   -o imtest/imtest imtest/imtest_imtest-imtest.o 
lib/libcyrus.la lib/libcyrus_min.la -ldb-4.8 -lpcre -lpcreposix -lz -ldb-4.8 
-lpcre -lpcreposix -lz
libtool: link: gcc -fPIC -fvisibility=hidden -g -fPIC -W -Wall -Wextra -o 
imtest/.libs/imtest imtest/imtest_imtest-imtest.o  lib/.libs/libcyrus.so 
lib/.libs/libcyrus_min.so -ldb-4.8 -lpcre -lpcreposix -lz -Wl,-rpath 
-Wl,/usr/cyrus/lib
depbase=`echo imap/arbitron.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
        gcc -DHAVE_CONFIG_H -I.   -I. -I./lib -I. -I./lib -DHAVE_CONFIG_H     
-I/usr/include -fPIC  -g -fPIC -W -Wall -Wextra -MT imap/arbitron.o -MD -MP -MF 
$depbase.Tpo -c -o imap/arbitron.o imap/arbitron.c &&\
        mv -f $depbase.Tpo $depbase.Po
depbase=`echo imap/cli_fatal.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
        gcc -DHAVE_CONFIG_H -I.   -I. -I./lib -I. -I./lib -DHAVE_CONFIG_H     
-I/usr/include -fPIC  -g -fPIC -W -Wall -Wextra -MT imap/cli_fatal.o -MD -MP -MF 
$depbase.Tpo -c -o imap/cli_fatal.o imap/cli_fatal.c &&\
        mv -f $depbase.Tpo $depbase.Po
depbase=`echo imap/mutex_fake.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
        gcc -DHAVE_CONFIG_H -I.   -I. -I./lib -I. -I./lib -DHAVE_CONFIG_H     
-I/usr/include -fPIC  -g -fPIC -W -Wall -Wextra -MT imap/mutex_fake.o -MD -MP -MF 
$depbase.Tpo -c -o imap/mutex_fake.o imap/mutex_fake.c &&\
        mv -f $depbase.Tpo $depbase.Po
/bin/bash ./libtool --tag=CC   --mode=link gcc -fPIC  -g -fPIC -W -Wall -Wextra 
  -o imap/arbitron imap/arbitron.o imap/cli_fatal.o imap/mutex_fake.o 
imap/libcyrus_imap.la -ldb-4.8 -lpcre -lpcreposix -lz -ldb-4.8 -lpcre 
-lpcreposix -lz
libtool: link: gcc -fPIC -g -fPIC -W -Wall -Wextra -o imap/.libs/arbitron 
imap/arbitron.o imap/cli_fatal.o imap/mutex_fake.o  imap/.libs/libcyrus_imap.so 
-ldb-4.8 -lpcre -lpcreposix -lz -Wl,-rpath -Wl,/usr/cyrus/lib
/usr/bin/ld: imap/arbitron.o: undefined reference to symbol 'xstrdup'
/usr/bin/ld: note: 'xstrdup' is defined in DSO /usr/cyrus/lib/libcyrus_min.so.0 
so try adding it to the linker command line
/usr/cyrus/lib/libcyrus_min.so.0: could not read symbols: Invalid operation
collect2: ld returned 1 exit status
make[2]: *** [imap/arbitron] Error 1
make[2]: Leaving directory `/home/brong/src/cyrus-imapd'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/brong/src/cyrus-imapd'
make: *** [all] Error 2

<<attachment: dilyan_palauzov.vcf>>

Reply via email to