On 4/9/2014 6:24 PM, Sam Varshavchik wrote:
Bowie Bailey writes:
On 4/8/2014 7:51 PM, Sam Varshavchik wrote:
Bowie Bailey writes:
On 4/7/2014 7:30 PM, Sam Varshavchik wrote:
Install http://www.courier-mta.org/download.html#sysconftool
I install that. Just a note, the spec file references
sysconftool-0.17.tar.gz. I had to change tar.gz to tar.bz2 in the spec
file and re-create the archive before I could build the rpm. (or I
supposed I could have just repackaged as tar.gz and built from that.)
However, I still get the same problem when I try to build courier-authlib:
configure: error: invalid ltdl library directory: `/usr/lib'
And this time it always says '/usr/lib' even if I have
--with-ltdl-lib=/usr/lib64 specified on the %configure line (tried it
with and without).
The spec file looks like this:
%prep
%setup -q
libtoolize -f
aclocal
autoheader
automake
autoconf
PATH=/usr/bin:$PATH %configure -C --with-redhat --without-authsqlite
--without-authmysql --with-ltdl-lib=/usr/lib64
Now, remove the --with-ltdl-lib option completely.
I guess I should have specified a little more clearly. I tried with the
line shown above and tried again with no --with-ltdl-lib option at all.
Both gave the exact same result.
configure: error: invalid ltdl library directory: `/usr/lib'
You can definitely drop the --with-ltdl-lib option – this a bug in the
libtool package, it fails to install a file.
Try adding the --ltdl option to libtoolize:
libtoolize -f --ltdl
Nope. Same results.
I'm attaching the full output of the rpmbuild command in case it's useful.
--
Bowie
$ rpmbuild -tb courier-authlib-0.65.0.tar.bz2
Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.qW1hGN
+ umask 022
+ cd /home/bowieb/rpmbuild/BUILD
+ LANG=C
+ export LANG
+ unset DISPLAY
+ cd /home/bowieb/rpmbuild/BUILD
+ rm -rf courier-authlib-0.65.0
+ /usr/bin/bzip2 -dc /home/bowieb/source/courier-authlib-0.65.0.tar.bz2
+ /bin/tar -xf -
+ STATUS=0
+ '[' 0 -ne 0 ']'
+ cd courier-authlib-0.65.0
+ /bin/chmod -Rf a+rX,u+w,g-w,o-w .
+ libtoolize -f --ltdl
libtoolize: putting auxiliary files in `.'.
libtoolize: linking file `./ltmain.sh'
libtoolize: putting auxiliary files in `.'.
libtoolize: linking file `libltdl/config/compile'
libtoolize: linking file `libltdl/config/config.guess'
libtoolize: linking file `libltdl/config/config.sub'
libtoolize: linking file `libltdl/config/depcomp'
libtoolize: linking file `libltdl/config/install-sh'
libtoolize: linking file `libltdl/config/missing'
libtoolize: linking file `libltdl/config/ltmain.sh'
libtoolize: putting macros in `libltdl/m4'.
libtoolize: linking file `libltdl/m4/argz.m4'
libtoolize: linking file `libltdl/m4/libtool.m4'
libtoolize: linking file `libltdl/m4/ltdl.m4'
libtoolize: linking file `libltdl/m4/ltoptions.m4'
libtoolize: linking file `libltdl/m4/ltsugar.m4'
libtoolize: linking file `libltdl/m4/ltversion.m4'
libtoolize: linking file `libltdl/m4/lt~obsolete.m4'
libtoolize: putting libltdl files in `libltdl'.
libtoolize: linking file `libltdl/COPYING.LIB'
libtoolize: linking file `libltdl/README'
libtoolize: linking file `libltdl/Makefile.am'
libtoolize: linking file `libltdl/configure.ac'
libtoolize: copying file `libltdl/aclocal.m4'
libtoolize: linking file `libltdl/Makefile.in'
libtoolize: linking file `libltdl/config-h.in'
libtoolize: linking file `libltdl/configure'
libtoolize: linking file `libltdl/argz_.h'
libtoolize: linking file `libltdl/argz.c'
libtoolize: linking file `libltdl/loaders/dld_link.c'
libtoolize: linking file `libltdl/loaders/dlopen.c'
libtoolize: linking file `libltdl/loaders/dyld.c'
libtoolize: linking file `libltdl/loaders/load_add_on.c'
libtoolize: linking file `libltdl/loaders/loadlibrary.c'
libtoolize: linking file `libltdl/loaders/shl_load.c'
libtoolize: linking file `libltdl/lt__dirent.c'
libtoolize: linking file `libltdl/lt__strl.c'
libtoolize: linking file `libltdl/libltdl/lt__alloc.h'
libtoolize: linking file `libltdl/libltdl/lt__dirent.h'
libtoolize: linking file `libltdl/libltdl/lt__glibc.h'
libtoolize: linking file `libltdl/libltdl/lt__private.h'
libtoolize: linking file `libltdl/libltdl/lt__strl.h'
libtoolize: linking file `libltdl/libltdl/lt_dlloader.h'
libtoolize: linking file `libltdl/libltdl/lt_error.h'
libtoolize: linking file `libltdl/libltdl/lt_system.h'
libtoolize: linking file `libltdl/libltdl/slist.h'
libtoolize: linking file `libltdl/loaders/preopen.c'
libtoolize: linking file `libltdl/lt__alloc.c'
libtoolize: linking file `libltdl/lt_dlloader.c'
libtoolize: linking file `libltdl/lt_error.c'
libtoolize: linking file `libltdl/ltdl.c'
libtoolize: linking file `libltdl/ltdl.h'
libtoolize: linking file `libltdl/slist.c'
libtoolize: Remember to add `LT_CONFIG_LTDL_DIR([libltdl])' to `configure.in'.
libtoolize: Consider using `AC_CONFIG_AUX_DIR([libltdl/config])' in
configure.in.
libtoolize: Consider using `AC_CONFIG_MACRO_DIR([libltdl/m4])' in configure.in.
libtoolize: Consider adding `-I m4' to ACLOCAL_AMFLAGS in Makefile.am.
+ aclocal
+ autoheader
+ automake
+ autoconf
+ CFLAGS='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions
-fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic'
+ export CFLAGS
+ CXXFLAGS='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions
-fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic'
+ export CXXFLAGS
+ FFLAGS='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions
-fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic
-I/usr/lib64/gfortran/modules'
+ export FFLAGS
+ ./configure --build=x86_64-redhat-linux-gnu --host=x86_64-redhat-linux-gnu
--target=x86_64-redhat-linux-gnu --program-prefix= --prefix=/usr
--exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc
--datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib64
--libexecdir=/usr/libexec --localstatedir=/var --sharedstatedir=/var/lib
--mandir=/usr/share/man --infodir=/usr/share/info -C --with-redhat
--without-authsqlite --without-authmysql --with-ltdl-lib=/usr/lib
configure: creating cache config.cache
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for gawk... (cached) gawk
checking for x86_64-redhat-linux-gnu-gcc... no
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking how to run the C preprocessor... gcc -E
checking for a BSD-compatible install... /usr/bin/install -c
checking whether ln -s works... yes
checking for perl5... no
checking for perl... /usr/bin/perl
checking for sysconftool...... ././sysconftool
checking build system type... x86_64-redhat-linux-gnu
checking host system type... x86_64-redhat-linux-gnu
checking for a sed that does not truncate output... /bin/sed
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for fgrep... /bin/grep -F
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking the maximum length of command line arguments... 1966080
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
checking for /usr/bin/ld option to reload object files... -r
checking for x86_64-redhat-linux-gnu-objdump... no
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for x86_64-redhat-linux-gnu-ar... no
checking for ar... ar
checking for x86_64-redhat-linux-gnu-strip... no
checking for strip... strip
checking for x86_64-redhat-linux-gnu-ranlib... no
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for dlfcn.h... yes
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC -DPIC
checking if gcc PIC flag -fPIC -DPIC works... yes
checking if gcc static flag -static works... no
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (/usr/bin/ld -m elf_x86_64) supports shared
libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking for shl_load... no
checking for shl_load in -ldld... no
checking for dlopen... no
checking for dlopen in -ldl... yes
checking whether a program can dlopen itself... yes
checking whether a statically linked program can dlopen itself... yes
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking which extension is used for runtime loadable modules... .so
checking which variable specifies run-time module search path... LD_LIBRARY_PATH
checking for the default library search path... /lib64 /usr/lib64 /lib /usr/lib
/usr/lib64/atlas /usr/lib64/mysql /usr/lib64/qt-3.3/lib
checking for library containing dlopen... -ldl
checking for dlerror... yes
checking for shl_load... (cached) no
checking for shl_load in -ldld... (cached) no
checking for dld_link in -ldld... no
checking for _ prefix in compiled symbols... no
checking whether deplibs are loaded by dlopen... yes
checking for argz.h... yes
checking for error_t... yes
checking for argz_add... yes
checking for argz_append... yes
checking for argz_count... yes
checking for argz_create_sep... yes
checking for argz_insert... yes
checking for argz_next... yes
checking for argz_stringify... yes
checking if argz actually works... yes
checking whether libtool supports -dlopen/-dlpreopen... yes
checking for ltdl.h... yes
checking whether lt_dlinterface_register is declared... yes
checking for lt_dladvise_preload in -lltdl... yes
configure: error: invalid ltdl library directory: `/usr/lib'
error: Bad exit status from /var/tmp/rpm-tmp.qW1hGN (%prep)
RPM build errors:
Bad exit status from /var/tmp/rpm-tmp.qW1hGN (%prep)
------------------------------------------------------------------------------
Put Bad Developers to Shame
Dominate Development with Jenkins Continuous Integration
Continuously Automate Build, Test & Deployment
Start a new project now. Try Jenkins in the cloud.
http://p.sf.net/sfu/13600_Cloudbees
_______________________________________________
courier-users mailing list
courier-users@lists.sourceforge.net
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users