Sam DWH
2012-Dec-01 00:34 UTC
[Dovecot] 回复: 2.1.12 - Pigeonhole 0.3.3 build failed: /usr/bin/ld: cannot find -lssl -lcrypto
Did you installed openssh? Tobias Hachmer <lists at kokelnet.de>???>Hello list, > >Although timos bugfix release this morning I can't build pigeonhole 0.3.3 for >dovecot 2.1.12 successfully. I don't know if it is a new bug or if I do >something wrong but with dovecot 2.1.10 all worked fine, with the same configure >options. > >configure options (out of debian/rules for building debian package): > >./configure --with-dovecot=/usr/lib/dovecot \ > --host=$(DEB_HOST_GNU_TYPE) \ > --build=$(DEB_BUILD_GNU_TYPE) \ > --prefix=/usr \ > --sysconfdir=/etc \ > --libexecdir=\$${prefix}/lib \ > --localstatedir=/var \ > --mandir=\$${prefix}/share/man \ > --infodir=\$${prefix}/share/info \ > --with-moduledir=\$${prefix}/lib/dovecot/modules > > >buildlogextraction with error, the full log is available here: >https://launchpadlibrarian.net/124478979/buildlog_ubuntu-precise- >amd64.dovecot-2.1-pigeonhole_0.3.3-7~kokelnet~precise_FAILEDTOBUILD.txt.gz > >Thanks in advance for any help, >Tobias Hachmer > >Making all in lib-sieve-tool >make[4]: Entering directory `/build/buildd/dovecot-2.1- >pigeonhole-0.3.3/src/lib-sieve-tool' >/bin/bash ../../libtool --tag=CC --mode=compile x86_64-linux-gnu-gcc - >DHAVE_CONFIG_H -I. -I../.. -I../../src/lib-sieve -I/usr/include/dovecot - >D_FORTIFY_SOURCE=2 -std=gnu99 -g -O2 -fstack-protector --param=ssp-buffer- >size=4 -Wformat -Wformat-security -Wall -W -Wmissing-prototypes -Wmissing- >declarations -Wpointer-arith -Wchar-subscripts -Wformat=2 -Wbad-function-cast >-fno-builtin-strftime -Wstrict-aliasing=2 -MT sieve-tool.lo -MD -MP -MF >.deps/sieve-tool.Tpo -c -o sieve-tool.lo sieve-tool.c >libtool: compile: x86_64-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I../.. - >I../../src/lib-sieve -I/usr/include/dovecot -D_FORTIFY_SOURCE=2 -std=gnu99 -g >-O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security - >Wall -W -Wmissing-prototypes -Wmissing-declarations -Wpointer-arith -Wchar- >subscripts -Wformat=2 -Wbad-function-cast -fno-builtin-strftime -Wstrict- >aliasing=2 -MT sieve-tool.lo -MD -MP -MF .deps/sieve-tool.Tpo -c sieve-tool.c >-fPIC -DPIC -o .libs/sieve-tool.o >libtool: compile: x86_64-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I../.. - >I../../src/lib-sieve -I/usr/include/dovecot -D_FORTIFY_SOURCE=2 -std=gnu99 -g >-O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security - >Wall -W -Wmissing-prototypes -Wmissing-declarations -Wpointer-arith -Wchar- >subscripts -Wformat=2 -Wbad-function-cast -fno-builtin-strftime -Wstrict- >aliasing=2 -MT sieve-tool.lo -MD -MP -MF .deps/sieve-tool.Tpo -c sieve-tool.c >-o sieve-tool.o >/dev/null 2>&1 >mv -f .deps/sieve-tool.Tpo .deps/sieve-tool.Plo >/bin/bash ../../libtool --tag=CC --mode=compile x86_64-linux-gnu-gcc - >DHAVE_CONFIG_H -I. -I../.. -I../../src/lib-sieve -I/usr/include/dovecot - >D_FORTIFY_SOURCE=2 -std=gnu99 -g -O2 -fstack-protector --param=ssp-buffer- >size=4 -Wformat -Wformat-security -Wall -W -Wmissing-prototypes -Wmissing- >declarations -Wpointer-arith -Wchar-subscripts -Wformat=2 -Wbad-function-cast >-fno-builtin-strftime -Wstrict-aliasing=2 -MT mail-raw.lo -MD -MP -MF >.deps/mail-raw.Tpo -c -o mail-raw.lo mail-raw.c >libtool: compile: x86_64-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I../.. - >I../../src/lib-sieve -I/usr/include/dovecot -D_FORTIFY_SOURCE=2 -std=gnu99 -g >-O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security - >Wall -W -Wmissing-prototypes -Wmissing-declarations -Wpointer-arith -Wchar- >subscripts -Wformat=2 -Wbad-function-cast -fno-builtin-strftime -Wstrict- >aliasing=2 -MT mail-raw.lo -MD -MP -MF .deps/mail-raw.Tpo -c mail-raw.c -fPIC >-DPIC -o .libs/mail-raw.o >libtool: compile: x86_64-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I../.. - >I../../src/lib-sieve -I/usr/include/dovecot -D_FORTIFY_SOURCE=2 -std=gnu99 -g >-O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security - >Wall -W -Wmissing-prototypes -Wmissing-declarations -Wpointer-arith -Wchar- >subscripts -Wformat=2 -Wbad-function-cast -fno-builtin-strftime -Wstrict- >aliasing=2 -MT mail-raw.lo -MD -MP -MF .deps/mail-raw.Tpo -c mail-raw.c -o >mail-raw.o >/dev/null 2>&1 >mv -f .deps/mail-raw.Tpo .deps/mail-raw.Plo >/bin/bash ../../libtool --tag=CC --mode=link x86_64-linux-gnu-gcc - >std=gnu99 -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat- >security -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wpointer-arith >-Wchar-subscripts -Wformat=2 -Wbad-function-cast -fno-builtin-strftime - >Wstrict-aliasing=2 -Wl,-Bsymbolic-functions -Wl,-z,relro -o libsieve-tool.la >sieve-tool.lo mail-raw.lo -lrt >libtool: link: ar cru .libs/libsieve-tool.a .libs/sieve-tool.o .libs/mail- >raw.o >libtool: link: ranlib .libs/libsieve-tool.a >libtool: link: ( cd ".libs" && rm -f "libsieve-tool.la" && ln -s "../libsieve- >tool.la" "libsieve-tool.la" ) >make[4]: Leaving directory `/build/buildd/dovecot-2.1- >pigeonhole-0.3.3/src/lib-sieve-tool' >Making all in sieve-tools >make[4]: Entering directory `/build/buildd/dovecot-2.1- >pigeonhole-0.3.3/src/sieve-tools' >x86_64-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I../.. -I../../src/lib-sieve - >I../../src/lib-sieve-tool -I./debug -I/usr/include/dovecot - >D_FORTIFY_SOURCE=2 -std=gnu99 -g -O2 -fstack-protector --param=ssp-buffer- >size=4 -Wformat -Wformat-security -Wall -W -Wmissing-prototypes -Wmissing- >declarations -Wpointer-arith -Wchar-subscripts -Wformat=2 -Wbad-function-cast >-fno-builtin-strftime -Wstrict-aliasing=2 -MT sievec.o -MD -MP -MF >.deps/sievec.Tpo -c -o sievec.o sievec.c >mv -f .deps/sievec.Tpo .deps/sievec.Po >/bin/bash ../../libtool --tag=CC --mode=link x86_64-linux-gnu-gcc - >std=gnu99 -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat- >security -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wpointer-arith >-Wchar-subscripts -Wformat=2 -Wbad-function-cast -fno-builtin-strftime - >Wstrict-aliasing=2 -export-dynamic -Wl,-Bsymbolic-functions -Wl,-z,relro -o >sievec sievec.o ../../src/lib-sieve/libdovecot-sieve.la ../../src/lib-sieve- >tool/libsieve-tool.la -ldovecot-storage -lssl -lcrypto -ldovecot-lda - >L/usr/lib/dovecot -ldovecot -lrt >libtool: link: x86_64-linux-gnu-gcc -std=gnu99 -g -O2 -fstack-protector -- >param=ssp-buffer-size=4 -Wformat -Wformat-security -Wall -W -Wmissing- >prototypes -Wmissing-declarations -Wpointer-arith -Wchar-subscripts -Wformat=2 >-Wbad-function-cast -fno-builtin-strftime -Wstrict-aliasing=2 -Wl,-Bsymbolic- >functions -Wl,-z -Wl,relro -o .libs/sievec sievec.o -Wl,--export-dynamic >../../src/lib-sieve/.libs/libdovecot-sieve.so ../../src/lib-sieve- >tool/.libs/libsieve-tool.a /usr/lib/dovecot/libdovecot-storage.so -lssl - >lcrypto /usr/lib/dovecot/libdovecot-lda.so -L/usr/lib/dovecot >/usr/lib/dovecot/libdovecot.so -lrt -Wl,-rpath -Wl,/usr/lib/dovecot >/usr/bin/ld: cannot find -lssl >/usr/bin/ld: cannot find -lcrypto >collect2: ld returned 1 exit status >make[4]: *** [sievec] Error 1 >make[4]: Leaving directory `/build/buildd/dovecot-2.1- >pigeonhole-0.3.3/src/sieve-tools' >make[3]: *** [all-recursive] Error 1 >make[3]: Leaving directory `/build/buildd/dovecot-2.1-pigeonhole-0.3.3/src' >make[2]: *** [all-recursive] Error 1 >make[2]: Leaving directory `/build/buildd/dovecot-2.1-pigeonhole-0.3.3' >make[1]: *** [all] Error 2 >make[1]: Leaving directory `/build/buildd/dovecot-2.1-pigeonhole-0.3.3' >make: *** [build-stamp] Error 2
Tobias Hachmer
2012-Dec-01 10:48 UTC
[Dovecot] 回复: 2.1.12 - Pigeonhole 0.3.3 build failed: /usr/bin/ld: cannot find -lssl -lcrypto
On Saturday 01 December 2012 08:34:09 Sam DWH wrote:> Did you installed openssh?Well, no, I have installed libssl-dev (Ubuntu Precise). What I have really done is to add the libssl-dev to the dependencies of my dovecot-dev package. This dovecot-dev package is a dependency of my pigeonhole package. Regards, Tobias
Maybe Matching Threads
- 2.1.12 - Pigeonhole 0.3.3 build failed: /usr/bin/ld: cannot find -lssl -lcrypto
- Error compiling pigeonhole managesieve 0.4.24
- Error compiling pigeonhole managesieve 0.4.24
- cmd-vacation.c:4:17: fatal error: lib.h: No such file or directory && ./configure: line 11410: -lssl: command not found
- dovecot-sieve-1.0 (hg) does not build