On Nov 28, 2006, at 1:58 AM, Philip M. Gollucci wrote:

Seems to be a FreeBSD quark / fluke, I'll try and solve this off-list.

Argh.. I finally got it.

Thanks a ton to Philip for some offlist pointers.

error:
        cd /usr/ports/www/libapreq2
        make install
        ....
cc -shared .libs/util.o .libs/version.o .libs/cookie.o .libs/ param.o .libs/parser.o .libs/parser_urlencoded.o .libs/ parser_header.o .libs/parser_multipart.o .libs/module.o .libs/ module_custom.o .libs/module_cgi.o .libs/error.o -Wl,--rpath -Wl,/ usr/local/lib/apache2 -Wl,--rpath -Wl,/usr/local/lib/apache2 /usr/ local/lib/apache2/libapr-0.so /usr/local/lib/apache2/libaprutil-0.so - ldb-4.2 -lexpat -liconv -lm -lcrypt -L/usr/local -Wl,-soname - Wl,libapreq2.so.8 -o .libs/libapreq2.so.8
/usr/bin/ld: cannot find -ldb-4.2
        gmake[2]: *** [libapreq2.la] Error 1

fix:

        cd /usr/ports/www/libapreq2
        export GCC_EXEC_PREFIX=/usr/local/lib
        make install

I think this might actually be indicative of a ports problem/quirk, so i'm posting it here:

        the apache20 port installs the various libs in /usr/local/lib/apache2
when libapreq2 builds against that, it sets the base lib to /usr/ local/lib/apache2 (this is the libapreq ports and source) i think the apache22 port and the apache source will automatically install into /usr/local/lib instead -- and not cause this issue to occur if you install the apr lib on its own (not the bundled 0.9 branch in apache20 ) you get a 1.0 branch in /usr/local/lib -- i think there's a way to build that first and have apache20 link against that, but i'm not sure.

i could be wrong - and this is all some sort of box specific issue. i'm not all that familiar with gcc and ld. but this is what the problem looks to be from my vantage.

in any event, there you go. so the next person to have this nightmare won't have this issue.

// Jonathan Vanasco

| - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
| FindMeOn.com - The cure for Multiple Web Personality Disorder
| Web Identity Management and 3D Social Networking
| - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
| RoadSound.com - Tools For Bands, Stuff For Fans
| Collaborative Online Management And Syndication Tools
| - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -


Reply via email to