Thanks! That worked. make succeeds, but now make install fails: make[8]: Entering directory `/usr/src/packages/BUILD/nox/src/nox/lib' test -z "/usr/local/bin/nox/lib" || /bin/mkdir -p "/usr/src/packages/BUILDROOT/nox-git.20100704-1.i386/usr/local/bin/nox/lib" /bin/sh ../../../libtool --mode=install /usr/bin/install -c _openflow.la _config.la '/usr/src/packages/BUILDROOT/nox-git.20100704-1.i386/usr/local/bin/nox/lib' libtool: install: /usr/bin/install -c .libs/_openflow.so.0.0.0 /usr/src/packages/BUILDROOT/nox-git.20100704-1.i386/usr/local/bin/nox/lib/_openflow.so.0.0.0 libtool: install: (cd /usr/src/packages/BUILDROOT/nox-git.20100704-1.i386/usr/local/bin/nox/lib && { ln -s -f _openflow.so.0.0.0 _openflow.so.0 || { rm -f _openflow.so.0 && ln -s _openflow.so.0.0.0 _openflow.so.0; }; }) libtool: install: (cd /usr/src/packages/BUILDROOT/nox-git.20100704-1.i386/usr/local/bin/nox/lib && { ln -s -f _openflow.so.0.0.0 _openflow.so || { rm -f _openflow.so && ln -s _openflow.so.0.0.0 _openflow.so; }; }) libtool: install: /usr/bin/install -c .libs/_openflow.lai /usr/src/packages/BUILDROOT/nox-git.20100704-1.i386/usr/local/bin/nox/lib/_openflow.la libtool: install: /usr/bin/install -c .libs/_config.so.0.0.0 /usr/src/packages/BUILDROOT/nox-git.20100704-1.i386/usr/local/bin/nox/lib/_config.so.0.0.0 libtool: install: (cd /usr/src/packages/BUILDROOT/nox-git.20100704-1.i386/usr/local/bin/nox/lib && { ln -s -f _config.so.0.0.0 _config.so.0 || { rm -f _config.so.0 && ln -s _config.so.0.0.0 _config.so.0; }; }) libtool: install: (cd /usr/src/packages/BUILDROOT/nox-git.20100704-1.i386/usr/local/bin/nox/lib && { ln -s -f _config.so.0.0.0 _config.so || { rm -f _config.so && ln -s _config.so.0.0.0 _config.so; }; }) libtool: install: /usr/bin/install -c .libs/_config.lai /usr/src/packages/BUILDROOT/nox-git.20100704-1.i386/usr/local/bin/nox/lib/_config.la libtool: install: warning: remember to run `libtool --finish /usr/local/bin/nox/lib' test -z "/usr/local/bin/nox/lib" || /bin/mkdir -p "/usr/src/packages/BUILDROOT/nox-git.20100704-1.i386/usr/local/bin/nox/lib" /usr/bin/install -c core.py __init__.py openflow.py config.py util.py token_bucket.py directory.py directory_factory.py registries.py utf8_string.i openflow.py config.py '/usr/src/packages/BUILDROOT/nox-git.20100704-1.i386/usr/local/bin/nox/lib' /usr/bin/install: will not overwrite just-created `/usr/src/packages/BUILDROOT/nox-git.20100704-1.i386/usr/local/bin/nox/lib/openflow.py' with `openflow.py' /usr/bin/install: will not overwrite just-created `/usr/src/packages/BUILDROOT/nox-git.20100704-1.i386/usr/local/bin/nox/lib/config.py' with `config.py' make[8]: *** [install-pkglibSCRIPTS] Error 1 make[8]: Leaving directory `/usr/src/packages/BUILD/nox/src/nox/lib' make[7]: *** [install-am] Error 2 make[7]: Leaving directory `/usr/src/packages/BUILD/nox/src/nox/lib' make[6]: *** [install-recursive] Error 1 make[6]: Leaving directory `/usr/src/packages/BUILD/nox/src/nox/lib' make[5]: *** [install] Error 2 make[5]: Leaving directory `/usr/src/packages/BUILD/nox/src/nox/lib' make[4]: *** [install-recursive] Error 1 make[4]: Leaving directory `/usr/src/packages/BUILD/nox/src/nox' make[3]: *** [install] Error 2 make[3]: Leaving directory `/usr/src/packages/BUILD/nox/src/nox' make[2]: *** [install-recursive] Error 1 make[2]: Leaving directory `/usr/src/packages/BUILD/nox/src' make[1]: *** [install] Error 2 make[1]: Leaving directory `/usr/src/packages/BUILD/nox/src' make: *** [install-recursive] Error 1 error: Bad exit status from /var/tmp/rpm-tmp.7ZBfCM (%install)
On Sun, Jul 4, 2010 at 12:07 PM, James "Murphy" McCauley <jam...@nau.edu> wrote: > I'd try skipping the check for MD5_Init, explicitly linking with > libcrypto, and hoping for the best. > > If you're building from git, that'd be editing config/ax_ssl.m4 to > replace the "AC_CHECK_LIB(ssl, MD5_Init," line and the two lines after > it with: SSL_LIBS="-lssl -lcrypto"; AC_SUBST(SSL_LIBS) > > Then ./boot.sh ; ./configure . It might break when it links. > > -- Murphy > > On Sun, 2010-07-04 at 11:20 -0700, Jad Naous wrote: >> Interesting. So -lcrypto works, but not -lssl. >> If I chroot into /var/tmp/build-root and I try gcc'ing the text/c, >> both work however. >> >> They are symlinks to .so files in the same directory. >> >> Jad. >> >> On Sun, Jul 4, 2010 at 5:19 AM, James "Murphy" McCauley <jam...@nau.edu> >> wrote: >> > What do you get if you try to link it using -lcrypto instead of -lssl? >> > >> > And are those actual files in /var/tmp/build-root/usr/lib, or are they >> > (possibly broken) symlinks? On my system, /usr/lib/libcrypto.so* >> > and /usr/lib/libssl.so* are all symlinks into /lib. >> > >> > -- Murphy >> > >> > On Sun, 2010-07-04 at 04:35 -0700, Jad Naous wrote: >> >> A little background: I'm using a chrooted environment that is cleaned >> >> on every build to build the rpm. >> >> >> >> Here're the relevant lines from the .spec file: >> >> >> >> echo "int main () { MD5_Init(); }" > test.c >> >> gcc test.c -lssl >> >> >> >> Here's the output: >> >> >> >> /tmp/ccCpLzVg.o: In function `main': >> >> test.c:(.text+0x7): undefined reference to `MD5_Init' >> >> collect2: ld returned 1 exit status >> >> >> >> So it appears the linker is not finding the lib even though it's there: >> >> >> >> $ ls /var/tmp/build-root/usr/lib/libcrypto* >> >> /var/tmp/build-root/usr/lib/libcrypto.a >> >> /var/tmp/build-root/usr/lib/libcrypto.so >> >> /var/tmp/build-root/usr/lib/libcrypto.so.0.9.8 >> >> >> >> where /var/tmp/build-root is the chroot root dir. Adding -L/usr/lib to >> >> the gcc options didn't work either. >> >> >> >> Any other ideas? >> >> >> >> Thanks, >> >> Jad. >> >> >> >> On Sun, Jul 4, 2010 at 3:14 AM, James "Murphy" McCauley <jam...@nau.edu> >> >> wrote: >> >> > That error message isn't actually indicative of the problem. >> >> > >> >> > My first guess is that there's a problem with your libcrypto (possibly a >> >> > bad symlink?). >> >> > >> >> > Can you check that /usr/lib/libcrypto.so (or some versioned filename) >> >> > exists, and that any/all libcrypto symlinks are okay? >> >> > >> >> > You could also just try compiling the following test program: >> >> > int main () { MD5_Init(); } >> >> > >> >> > See if either "gcc test.c -lssl" or "gcc test.c -lcrypto" does anything >> >> > interesting. They *should* both just work, but hopefully they'll give >> >> > some linker error message for you. >> >> > >> >> > -- Murphy >> >> > >> >> > On Sun, 2010-07-04 at 02:01 -0700, Jad Naous wrote: >> >> >> Hi, >> >> >> >> >> >> I'm having issues building an opensuse 11.2 rpm package for nox. I've >> >> >> installed libopenssl-devel but configure complains as follows: >> >> >> >> >> >> >> >> >> checking if Xerces C++ Parser version is >= 2.7.0... yes >> >> >> checking pcap.h usability... yes >> >> >> checking pcap.h presence... yes >> >> >> checking for pcap.h... yes >> >> >> checking openssl/md5.h usability... yes >> >> >> checking openssl/md5.h presence... yes >> >> >> checking for openssl/md5.h... yes >> >> >> checking for MD5_Init in -lssl... no >> >> >> configure: error: openssl/md5.h not found. NOX requires OpenSSL >> >> >> error: Bad exit status from /var/tmp/rpm-tmp.ijg11O (%prep) >> >> >> >> >> >> >> >> >> Indeed, /usr/include/ssl/md5.h exists and a prototype for MD5_Init is >> >> >> defined there. Any thoughts? >> >> >> >> >> >> Thanks, >> >> >> Jad. >> >> >> >> >> >> _______________________________________________ >> >> >> nox-dev mailing list >> >> >> nox-dev@noxrepo.org >> >> >> http://noxrepo.org/mailman/listinfo/nox-dev_noxrepo.org >> >> > >> >> > >> >> > >> >> > _______________________________________________ >> >> > nox-dev mailing list >> >> > nox-dev@noxrepo.org >> >> > http://noxrepo.org/mailman/listinfo/nox-dev_noxrepo.org >> >> > >> > >> > >> > > > > _______________________________________________ nox-dev mailing list nox-dev@noxrepo.org http://noxrepo.org/mailman/listinfo/nox-dev_noxrepo.org