Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 5 Jul 2003 02:07:37 +0100
From:      lewiz <purple@lewiz.info>
To:        FreeBSD-questions <freebsd-questions@freebsd.org>
Subject:   Compile fails (-lexpat).
Message-ID:  <20030705010737.GA85687@lewiz.org>

next in thread | raw e-mail | index | archive | help

--ew6BAiZeqk4r7MaW
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

Hi,

  I'm trying to compile a programme called ``Dasher'' from source, which
requires Expat (which I do have installed according to pkg_info and
ldconfig -rv).  However, it fails when I configure it:

sh configure --prefix=3D/usr/local --exec-prefix=3D/usr/local

with:

checking for XML_Parse in -lexpat... no
configure: error: Expat library not found.

the config.log shows:

configure:6789: cc -o conftest -O2 -pipe -march=3Dpentiumpro
conftest.c -l        expat   >&5
/usr/bin/ld: cannot find -lexpat
configure:6792: $? =3D 1
configure: failed program was:
#line 6764 "configure"
#include "confdefs.h"

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.

char XML_Parse ();
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
{
XML_Parse ();
  ;
  return 0;
}
configure:6809: result: no
configure:6819: error: Expat library not found.

  I hope somebody might be able to help with this problem :)  Sorry if
it's something really silly (I have never fully understood ld, ldconfig
and libraries).  Thanks very much,

-lewiz.

--=20
Don't cook tonight -- starve a rat today!
------------------------------------------------------------------------
-| msn:purple@lewiz.net | jab:lewiz@jabber.org | url:http://lewiz.net |-

--ew6BAiZeqk4r7MaW
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (FreeBSD)

iD8DBQE/BiTZItq0KFQv7T8RAnqvAJ4hEY32EhSEnE6KugGmXz7PV48f2wCffuq1
WAccurxCOycdbsZXAN/1+As=
=jaio
-----END PGP SIGNATURE-----

--ew6BAiZeqk4r7MaW--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030705010737.GA85687>