Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 9 Jan 2014 01:45:17 GMT
From:      Julian Stecklina <js@alien8.de>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   misc/185594: ejabberd does not build due to expat
Message-ID:  <201401090145.s091jHat016297@oldred.freebsd.org>
Resent-Message-ID: <201401090150.s091o0xu055059@freefall.freebsd.org>

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

>Number:         185594
>Category:       misc
>Synopsis:       ejabberd does not build due to expat
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Jan 09 01:50:00 UTC 2014
>Closed-Date:
>Last-Modified:
>Originator:     Julian Stecklina
>Release:        10.0-RC4
>Organization:
>Environment:
FreeBSD xxx 10.0-RC4 FreeBSD 10.0-RC4 #0 r260130: Tue Dec 31 17:10:01 UTC 2013     root@snap.freebsd.org:/usr/obj/usr/src/sys/GENERIC  amd64
>Description:
net-im/ejabberd is not building because configure phase fails:

[...]
checking for XML_ParserCreate in -lexpat... no
configure: error: Could not find development files of Expat library
===>  Script "configure" failed unexpectedly.
Please report the problem to ashish@FreeBSD.org [maintainer] and attach the
"/usr/ports/net-im/ejabberd/work/ejabberd-2.1.13/src/config.log" including
the output of the failure of your make command. Also, it might be a good idea
to provide an overview of all packages installed on your system (e.g. a
/usr/local/sbin/pkg-static info -g -Ea).

Even though /usr/local/lib/libexpat.so is available, judging from config.log the test cannot link to libexpat for some reason:

configure:3876: checking for XML_ParserCreate in -lexpat
configure:3901: cc -o conftest -O2 -pipe -fno-strict-aliasing -Wall   -Wl,-rpath=/usr/lib:/usr/local/lib conftest.c -lexpat   >&5
/usr/bin/ld: cannot find -lexpat
cc: error: linker command failed with exit code 1 (use -v to see invocation)
configure:3901: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "ejabberd"
| #define PACKAGE_TARNAME "ejabberd"
| #define PACKAGE_VERSION "2.1.12"
| #define PACKAGE_STRING "ejabberd 2.1.12"
| #define PACKAGE_BUGREPORT "ejabberd@process-one.net"
| #define PACKAGE_URL ""
| #define HAVE_ICONV 1
| #define ICONV_CONST const
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| /* end confdefs.h.  */
|
| /* Override any GCC internal prototype to avoid an error.
|    Use char because int might match the return type of a GCC
|    builtin and then its argument prototype would still apply.  */
| #ifdef __cplusplus
| extern "C"
| #endif
| char XML_ParserCreate ();
| int
| main ()
| {
| return XML_ParserCreate ();
|   ;
|   return 0;
| }
configure:3910: result: no 
configure:3920: error: Could not find development files of Expat library

>How-To-Repeat:
portinstall ejabberd
>Fix:


>Release-Note:
>Audit-Trail:
>Unformatted:



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