On Mon, Jul 13, 2009 at 10:34:01PM -0400, George Woltman wrote:
> I went to build the 25.11 executables with libcurl staticly linked in using
> -Wl,-Bstatic -lcurl.
> Debian linux 64-bit - no problems.  FreeBSD - no problems.  Debian linux
> 32-bit - no luck.

I'm a bit surprised it works fine with 64-bit, really, given that libcurl
needs lots of static dependencies to work fine in static linking. Basically,
on Linux static libraries don't have dependency information, you'll need to
get that from an external source:

  fugl:~> curl-config --static-libs
  /usr/lib/libcurl.a -lidn -llber -lldap -lrt -lgssapi_krb5 -lgssapi_krb5 -lz 
-lgnutls -lgcrypt

Normally pkg-config could also be used for this, but for some reason
libcurl's pkg-config file appears to be broken. Also, for good measure,
something(TM) caused libgssapi_krb5 to no longer be available as a static
library at some point, which is causing a headache.

> I can dynamic link just fine.  64-bit Linux uses libcurl 7.15 package.
> 32-bit linux uses libcurl 7.18.

This is also weird. Debian's version numbers are almost always in sync
between 32- and 64-bit, so it sounds like your 64-bit install is an older
version of Debian; probably etch (4.0, IIRC). If you're only after a quick
temporary solution, and it works for you on 64-bit, you could try
reinstalling etch on the 32-bit partition as well.

> I tried downloading the latest libcurl sources (7.19) and things got even
> worse.  I tried configuring
> without ssl, ssh2, etc.  No luck - I'm not much of a linux expert.

This is probably the best anyway, if you don't want to get stuck in license
problems with SSL libraries. I tried it, and it was relatively painless for
me. What error messages did you get? (If you have problems with missing
libraries etc., the simplest thing is probably to ask apt to replicate the
build dependencies of the Debian package with “apt-get build-dep curl”.)

You can get the binary I built at
http://home.samfundet.no/~sesse/sprime2511.gz, but I assume you'd rather want
to build your own to get in the security code stuff :-)

/* Steinar */
-- 
Homepage: http://www.sesse.net/
_______________________________________________
Prime mailing list
Prime@hogranch.com
http://hogranch.com/mailman/listinfo/prime

Reply via email to