Richard Merryweather wrote:

> I'm assuming you meant config.m4 here?

Yes, typo.

> It seems to already have 
> that change in it. This is from the release 1.4.2 from the midgard 
> site (I haven't touched CVS versions).

OK.

> (cd . && ln -s preparser.lo preparser.o)
> (cd . && ln -s preparse.lo preparse.o)
> gcc -shared  mgd_errno.lo midgard.lo article.lo parameter.lo 
> attachment.lo oop.lo topic.lo element.lo mail.lo group.lo file.lo 
> host.lo image.lo member.lo calendar.lo event.lo eventmember.lo 
> page.lo pageelement.lo pagelink.lo person.lo preferences.lo 
> snippet.lo snippetdir.lo style.lo sitegroup.lo preparser-parser.lo 
> preparser-scanner.lo preparser.lo preparse.lo  -lmidgard -lc  -Wl,-
> soname -Wl,midgard.so -o .libs/midgard.so
> /usr/bin/ld: cannot find -lmidgard

There's the -L options missing here. In fact, I think all of
'midgard-config --libs' is missing in this line.

> /bin/sh /usr/src/midgard-php4-1.4.2/libtool --mode=link gcc  -I. -
> I/usr/src/midgard-php4-1.4.2/ -I/usr/src/midgard-php4-1.4.2/main -
> I/usr/src/midgard-php4-1.4.2 -I/usr/local/include/php -
> I/usr/local/include/php/main -I/usr/local/include/php/Zend -
> I/usr/local/include/php/TSRM  -DHAVE_CONFIG_H -g -O2 -
> I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/include/mysql -
> I/usr/local/include -I/usr/local/midgard/include -I/www/include -ggdb -
> Wall `/usr/local/midgard/bin/midgard-config --cppflags`  -o 
> midgard.la -avoid-version -module -rpath /usr/src/midgard-php4-
> 1.4.2/modules  mgd_errno.lo midgard.lo article.lo parameter.lo 
> attachment.lo oop.lo topic.lo element.lo mail.lo group.lo file.lo 
> host.lo image.lo member.lo calendar.lo event.lo eventmember.lo 
> page.lo pageelement.lo pagelink.lo person.lo preferences.lo 
> snippet.lo snippetdir.lo style.lo sitegroup.lo preparser-parser.lo 
> preparser-scanner.lo preparser.lo preparse.lo  -lmidgard

There must be something different here. For me, there's
'`midgard-config --libs`' here instead of '-lmidgard'.

Could you try with the attached config.m4?

Emile
dnl $Id: config.m4,v 1.13 2001/09/04 16:17:31 emile Exp $

dnl  Copyright (C) 1999 Jukka Zitting <[EMAIL PROTECTED]>
dnl  Copyright (C) 2000 The Midgard Project ry
dnl  Copyright (C) 2000 Emile Heyns, Aurora SA <[EMAIL PROTECTED]>
dnl 
dnl  This program is free software; you can redistribute it and/or modify it
dnl  under the terms of the GNU Lesser General Public License as published
dnl  by the Free Software Foundation; either version 2 of the License, or
dnl  (at your option) any later version.
dnl 
dnl  This program is distributed in the hope that it will be useful,
dnl  but WITHOUT ANY WARRANTY; without even the implied warranty of
dnl  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
dnl  GNU General Public License for more details.
dnl 
dnl  You should have received a copy of the GNU General Public License
dnl  along with this program; if not, write to the Free Software
dnl  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA

AC_PROG_YACC
AC_DECL_YYTEXT
AC_PROG_LEX

PHP_ARG_WITH(midgard, for midgard support,
[  --with-midgard          Include midgard 1.4 support])

if test "$PHP_MIDGARD" != "no"; then
  if test "$PHP_MIDGARD" != "yes"; then
    AC_ADD_LIBRARY_WITH_PATH(midgard, "$PHP_MIDGARD/lib", MIDGARD_SHARED_LIBADD)
    AC_ADD_INCLUDE("$PHP_MIDGARD/include")
  else
    AC_ADD_LIBRARY(midgard)
    MIDGARD_SHARED_LIBADD="-lmidgard"
  fi

dnl EEH/TODO: Add checks for apache-static compilation
  AC_PATH_PROG(APXS, apxs)
  if test "$APXS" = "" ; then
    AC_MSG_ERROR(apxs not found.)
  fi
  APACHE_INCLUDES=`$APXS -q INCLUDEDIR`
  AC_ADD_INCLUDE($APACHE_INCLUDES)
  
  AC_PATH_PROG(MIDGARDCONFIG, midgard-config)
  if test "$MIDGARDCONFIG" = "" ; then
    AC_MSG_ERROR(midgard-config not found. Did you install midgard-lib?)
  fi

  CFLAGS="$CFLAGS "`$MIDGARDCONFIG --cppflags`" -I"$APACHE_INCLUDES
  LIBS="$LIBS "`$MIDGARDCONFIG --libs`
  LFLAGS="$LFLAGS -Pmgd -olex.yy.c"
  
  PHP_SUBST(MIDGARDCONFIG)

  PHP_SUBST(MIDGARD_SHARED_LIBADD)

  AC_MSG_CHECKING([for new preparser (experimental)])
  AC_ARG_ENABLE(mgd-preparser, 
  [  --enable-mgd-preparser          Enable new preparser (mod2)], 
PHP_MIDGARD_PREPARSER=[$]enableval, PHP_MIDGARD_PREPARSER="no")
  echo "$PHP_MIDGARD_PREPARSER";
  if test "$PHP_MIDGARD_PREPARSER" != "no"; then
    AC_DEFINE(MIDGARD_PREPARSER, 1, [ ])
  fi

  AC_MSG_CHECKING(for midgard experimental functions support)
  AC_ARG_ENABLE(mgd-experimental, 
  [  --enable-mgd-experimental          Enable midgard 1.4.1 experimental functions 
support], PHP_MIDGARD_EXPERIMENTAL=[$]enableval, PHP_MIDGARD_EXPERIMENTAL="no")
  echo "$PHP_MIDGARD_EXPERIMENTAL";
  if test "$PHP_MIDGARD_EXPERIMENTAL" != "no"; then
    AC_DEFINE(YOU_WANT_TO_TEST, 1, [ ])
  fi
  
  if test "$php_always_shared" = "yes"; then
    AC_DEFINE(MGD_INCLUDE_PHP_CONFIG, 1, [ ])
  fi
  AC_DEFINE(HAVE_MIDGARD, 1, [ ])
  PHP_EXTENSION(midgard, $ext_shared)
fi
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to