You are viewing a plain text version of this content. The canonical link for it is here.
Posted to apreq-dev@httpd.apache.org by Jonathan <ap...@2xlp.com> on 2006/11/26 21:47:18 UTC

freebsd upgrade problem

I'm trying to upgrade libapreq2 on freebsd

i keep running into this error:

	/usr/bin/ld: cannot find -ldb4

ldb4 is on the system via apr-svn
i've got bdb versions 4.2 .3,.4 installed off of ports

i've reinstalled all bdbs, apr-svn, and apache20-- hoping some sort  
of ldconfig cleanup would work.  no luck.

anyone have an idea how i can get this back up?


// 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
| - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -  
- - - - - - - - - - - - - - - -



Re: freebsd upgrade problem

Posted by Jonathan <ap...@2xlp.com>.
On Nov 28, 2006, at 7:49 PM, Philip M. Gollucci wrote:

> Thats um... bad.  Did you upgrade GCC and put the upgraded one in  
> your path before the system one.  on 6.1 you want gcc 3.4.4 on 6.2- 
> prerelease you want 3.4.6.  7.1-current is preparing to import 4.x.
>
> If you use any other combination it should ONLY BE FOR LOCAL TESTING.
>
> But hey if it works more power to you.
>
> you also want the one in /usr NOT /usr/local.  gcc is part of the  
> base system and ports are tested against the one in the base  
> system.  The other ports exist only to aid this testing or related  
> testing.

well that um.. sucks.

but it works now.  i'll try rebuilding after i upgrade to 6_1 ( i was  
on 6_0 )

perhaps there's a better way to handle the issue i discovered.
i see now that the GCC line made it use another gcc -- and not use  
another library dir (  which is what i had wanted to accomplish )
i was really just taking stabs at stuff i read in the man pages.

// 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
| - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -  
- - - - - - - - - - - - - - - -



Re: freebsd upgrade problem

Posted by "Philip M. Gollucci" <pg...@p6m7g8.com>.
Jonathan Vanasco wrote:
>     cd /usr/ports/www/libapreq2
>     export GCC_EXEC_PREFIX=/usr/local/lib
>     make install
Thats um... bad.  Did you upgrade GCC and put the upgraded one in your 
path before the system one.  on 6.1 you want gcc 3.4.4 on 6.2-prerelease 
you want 3.4.6.  7.1-current is preparing to import 4.x.

If you use any other combination it should ONLY BE FOR LOCAL TESTING.

But hey if it works more power to you.

you also want the one in /usr NOT /usr/local.  gcc is part of the base 
system and ports are tested against the one in the base system.  The 
other ports exist only to aid this testing or related testing.

-- 
------------------------------------------------------------------------
Philip M. Gollucci (pgollucci@p6m7g8.com) 323.219.4708
Consultant / http://p6m7g8.net/Resume/resume.shtml
Senior Software Engineer - TicketMaster - http://ticketmaster.com
1024D/A79997FA F357 0FDD 2301 6296 690F  6A47 D55A 7172 A799 97F

I never had a dream come true
'Til the day that I found you.
Even though I pretend that I've moved on
You'll always be my baby.
I never found the words to say
You're the one I think about each day
And I know no matter where life takes me to
A part of me will always be...
A part of me will always be with you.

Re: freebsd upgrade problem

Posted by Jonathan Vanasco <ap...@2xlp.com>.
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
| - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -  
- - - - - - - - - - - - - - - -



Re: freebsd upgrade problem

Posted by "Philip M. Gollucci" <pg...@p6m7g8.com>.
Seems to be a FreeBSD quark / fluke, I'll try and solve this off-list.

Jonathan wrote:
> 
> On Nov 27, 2006, at 7:31 PM, Philip M. Gollucci wrote:
> 
>> If I were you, I would build subversion with mod_dav_svn even if you 
>> are not going to use it -- you can not load it in the httpd.conf 
>> later.  During this build, let the ports system build APR and dbd for 
>> you -- WITH_APACHE2_APR=yes its something close to that switch.
> 
> already  did that.  uninstalled and reinstalled.  no luck.
> 
> i'm alternating between errors on expat and db4 now -- it seems that 
> anything that hits apr won't link to any of its libraries right.  i've 
> been trying to do libapreq off the ports and source -- no luck on either.
> 
> any port that builds against things that aren't apr -- no problem.  
> introduce apr, and it chokes on bdb or expat.
> 
>> Can you do a ldd on mod_apreq.so
> no.  i deinstalled it for the upgrade.  so now i've got one in memory, 
> and no way to build it.
> 
>> If you need to be up in a hurry, you can likely symlink a different 
>> version into place, or use /etc/libmap.conf to map it accordingly.
> i'm close to buying another box, migratoing my system on a clean 
> install, and reformatting this one.  something odd happened, and i can't 
> figure it out at all.  apr seems to be the only thing affected.  its 
> driving me crazy.
> 
> 
> // 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
> | - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
> - - - - - - - - - - - - - - -
> 


-- 
------------------------------------------------------------------------
Philip M. Gollucci (pgollucci@p6m7g8.com) 323.219.4708
Consultant / http://p6m7g8.net/Resume/resume.shtml
Senior Software Engineer - TicketMaster - http://ticketmaster.com
1024D/A79997FA F357 0FDD 2301 6296 690F  6A47 D55A 7172 A799 97F

I never had a dream come true
'Til the day that I found you.
Even though I pretend that I've moved on
You'll always be my baby.
I never found the words to say
You're the one I think about each day
And I know no matter where life takes me to
A part of me will always be...
A part of me will always be with you.

Re: freebsd upgrade problem

Posted by Jonathan <ap...@2xlp.com>.
On Nov 27, 2006, at 7:31 PM, Philip M. Gollucci wrote:

> If I were you, I would build subversion with mod_dav_svn even if  
> you are not going to use it -- you can not load it in the  
> httpd.conf later.  During this build, let the ports system build  
> APR and dbd for you -- WITH_APACHE2_APR=yes its something close to  
> that switch.

already  did that.  uninstalled and reinstalled.  no luck.

i'm alternating between errors on expat and db4 now -- it seems that  
anything that hits apr won't link to any of its libraries right.   
i've been trying to do libapreq off the ports and source -- no luck  
on either.

any port that builds against things that aren't apr -- no problem.   
introduce apr, and it chokes on bdb or expat.

> Can you do a ldd on mod_apreq.so
no.  i deinstalled it for the upgrade.  so now i've got one in  
memory, and no way to build it.

> If you need to be up in a hurry, you can likely symlink a different  
> version into place, or use /etc/libmap.conf to map it accordingly.
i'm close to buying another box, migratoing my system on a clean  
install, and reformatting this one.  something odd happened, and i  
can't figure it out at all.  apr seems to be the only thing  
affected.  its driving me crazy.


// 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
| - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -  
- - - - - - - - - - - - - - - -



Re: freebsd upgrade problem

Posted by "Philip M. Gollucci" <pg...@p6m7g8.com>.
Jonathan wrote:
> 
> I'm trying to upgrade libapreq2 on freebsd
> 
> i keep running into this error:
> 
>     /usr/bin/ld: cannot find -ldb4
> 
> ldb4 is on the system via apr-svn
> i've got bdb versions 4.2 .3,.4 installed off of ports
> 
> i've reinstalled all bdbs, apr-svn, and apache20-- hoping some sort of 
> ldconfig cleanup would work.  no luck.
> 
> anyone have an idea how i can get this back up?
If I were you, I would build subversion with mod_dav_svn even if you are 
not going to use it -- you can not load it
in the httpd.conf later.  During this build, let the ports system build 
APR and dbd for you -- WITH_APACHE2_APR=yes its something close to that 
switch.  Of course, you can pass a monster list of make switches to 
libapreq2 port having it build close to 60 ports for you in a "clean" 
install.


Can you do a ldd on mod_apreq.so
pgollucci@vegeta.p6m7g8.net /usr/local/libexec/apache22 8 0>ldd 
./mod_apreq2.so
./mod_apreq2.so:
         libdb4.so.0 => /usr/local/lib/libdb4.so.0 (0x281aa000)
[snipped]

If you need to be up in a hurry, you can likely symlink a different 
version into place, or use /etc/libmap.conf to map it accordingly.



> 
> // 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
> | - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
> - - - - - - - - - - - - - - -
> 


-- 
------------------------------------------------------------------------
Philip M. Gollucci (pgollucci@p6m7g8.com) 323.219.4708
Consultant / http://p6m7g8.net/Resume/resume.shtml
Senior Software Engineer - TicketMaster - http://ticketmaster.com
1024D/A79997FA F357 0FDD 2301 6296 690F  6A47 D55A 7172 A799 97F

I never had a dream come true
'Til the day that I found you.
Even though I pretend that I've moved on
You'll always be my baby.
I never found the words to say
You're the one I think about each day
And I know no matter where life takes me to
A part of me will always be...
A part of me will always be with you.