Thus spake Emiliano ([EMAIL PROTECTED]):
>
> > This code in a test page:
> >
> > <?
> > if (mgd_has_sitegroups()) {
> > print "We have sitegroups";
> > } else {
> > print "We don't have sitegroups";
> > }
> > ?>
> >
> > prints "We don't have sitegroups" :-(
>
> Does calling phpinfo list the sitegroup methods?
Here's some selected phpinfo output.
In the Midgard section:
Midgard version: Lib=1.4-beta3/SiteGroups=0.3
Supported functions: [heaps of these...]
The only specific sitegroups function listed (that I know of) is
mgd_has_sitegroups().
> I'd like to see the output of the configure you ran for mod_midgard and
> midgard-php. You can run config.status in both directories to replay what
> was done earlier.
Here's the ./configure output for mod_midgard:
$ ./configure --with-midgard=/usr/local
creating cache ./config.cache
checking for a BSD compatible install... /usr/bin/install -c
checking for apxs... apxs
checking for gcc... gcc
checking whether the C compiler (gcc -L/usr/local/lib) works... yes
checking whether the C compiler (gcc -L/usr/local/lib) is a
cross-compiler... no
checking whether we are using GNU C... yes
checking whether gcc accepts -g... yes
checking for /etc/mandrake-release... no
checking for mgd_connect in -lmidgard... yes
checking for mgd_init in -lmidgard... yes
checking for mgd_select_parser in -lmidgard... yes
checking for mgd_sitegroup in -lmidgard... yes
checking how to run the C preprocessor... gcc -E
checking for midgard.h... yes
checking for working const... yes
updating cache ./config.cache
creating ./config.status
creating Makefile
I was about to post the ./configure output for the midgard-php build, but on
examining it, I found this little gem:
[snip painfully voluptous output]
checking whether to enable Midgard support... yes
checking for Midgard SiteGroups support... checking for mgd_sitegroup in -lmidgard...
no
checking whether to enable Midgard 1.0 compatibility... no
[snip more output]
I've created some symlinks to the midgard libs in /usr/lib (they actually live
in /usr/local/lib on my system) and re-run the configure, with the result of:
checking for Midgard SiteGroups support... checking for mgd_sitegroup in -lmidgard...
yes
So, it appears this may be the problem. I'll install the new midgard-ised php
module etc and see how that goes.
Thanks very much for helping me through this.
Regards,
Nick.
>
> Emile
--
From a Sun Microsystems bug report (#4102680):
"Workaround: don't pound on the mouse like a wild monkey."
--
This is The Midgard Project's mailing list. For more information,
please visit the project's web site at http://www.midgard-project.org
To unsubscribe the list, send an empty email message to address
[EMAIL PROTECTED]