On 9 Oct 2001, at 6:17, Emiliano wrote: > Richard Merryweather wrote: > > > Using midgard 1.4.2 as available on the website, upgrading my dev > > server. > > > > Partially through running ./mkall I get the message: > > > > /usr/bin/ld: cannot find -lmidgard > > collect2: ld returned 1 exit status > > In config.mv, after > > LIBS="$LIBS "`$MIDGARDCONFIG --libs` > > add > > LFLAGS="$LFLAGS -Pmgd -olex.yy.c" > > This has been fixed in CVS, but this should get you going.
I'm assuming you meant config.m4 here? 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). Still doesn't work though. Which makes me wonder if something isn't quite right on my dev pc. I can't think of any pertinent information to provide other than what I have so far, any ideas? I've included more ./mkall output before it errors out at the bottom of email. > > Does this all seem right? I had to edit midgard-config to stop it > > adding the wrong path onto header files that already specified it > > correctly (to get mod_midgard to compile), but changing it back to > > previous just in case it still breaks. > > You mean -I/usr/local/midgard/include instead of > -I/usr/local/midgard/include/midgard? That too has been addressed. > Editing it out of midgard-config is sufficient unless you reinstall > midgard-lib. Yeah :) That's what I meant in a slightly confused sort of way. Richard > > Emile > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] For > additional commands, e-mail: [EMAIL PROTECTED] > --------------------- ./mkall output ------------------------ mkdir .libs (cd . && ln -s mgd_errno.lo mgd_errno.o) (cd . && ln -s midgard.lo midgard.o) (cd . && ln -s article.lo article.o) (cd . && ln -s parameter.lo parameter.o) (cd . && ln -s attachment.lo attachment.o) (cd . && ln -s oop.lo oop.o) (cd . && ln -s topic.lo topic.o) (cd . && ln -s element.lo element.o) (cd . && ln -s mail.lo mail.o) (cd . && ln -s group.lo group.o) (cd . && ln -s file.lo file.o) (cd . && ln -s host.lo host.o) (cd . && ln -s image.lo image.o) (cd . && ln -s member.lo member.o) (cd . && ln -s calendar.lo calendar.o) (cd . && ln -s event.lo event.o) (cd . && ln -s eventmember.lo eventmember.o) (cd . && ln -s page.lo page.o) (cd . && ln -s pageelement.lo pageelement.o) (cd . && ln -s pagelink.lo pagelink.o) (cd . && ln -s person.lo person.o) (cd . && ln -s preferences.lo preferences.o) (cd . && ln -s snippet.lo snippet.o) (cd . && ln -s snippetdir.lo snippetdir.o) (cd . && ln -s style.lo style.o) (cd . && ln -s sitegroup.lo sitegroup.o) (cd . && ln -s preparser-parser.lo preparser-parser.o) (cd . && ln -s preparser-scanner.lo preparser-scanner.o) (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 collect2: ld returned 1 exit status make[1]: *** [midgard.la] Error 1 rm preparser-parser.c preparser-scanner.c make[1]: Leaving directory `/usr/src/midgard-php4-1.4.2' make: *** [all-recursive] Error 1 make[1]: Entering directory `/usr/src/midgard-php4-1.4.2' /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 rm -fr .libs/midgard.la .libs/midgard.* .libs/midgard.* 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 collect2: ld returned 1 exit status make[1]: *** [midgard.la] Error 1 make[1]: Leaving directory `/usr/src/midgard-php4-1.4.2' make: *** [install-recursive] Error 1 --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
