apache2 fails to install

Geert De Deckere geertdd at gmail.com
Sun Jan 25 01:01:27 PST 2009


2009/1/25 Ryan Schmidt <ryandesign at macports.org>

> On Jan 24, 2009, at 10:19, Geert De Deckere wrote:
>
>  I'm completely stuck installing apache2. No idea what exactly is going
>> wrong. It's a clean macports install (1.700). I even ran a manual
>> selfupdate. Installing git-core went flawless, it's just apache2 that is
>> causing problems. Thanks for helping me out.
>>
>> $ sudo port install apache2
>> Password:
>> --->  Building db46
>> Error: Target org.macports.build returned: shell command " cd
>> "/opt/local/var/macports/
>> build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_databases_db46/work/db-4.6.21/build_unix"
>> && make all " returned error 2
>> Command output: /bin/sh ./libtool --mode=compile /usr/bin/gcc-4.0 -c -O2
>>  -I../dist/.. -I/opt/local/include ../dist/../db_dump185/db_dump185.c
>>  /usr/bin/gcc-4.0 -c -O2 -I../dist/.. -I/opt/local/include
>> ../dist/../db_dump185/db_dump185.c  -fno-common -DPIC -o .libs/db_dump185.o
>> ../dist/../db_dump185/db_dump185.c: In function 'main':
>> ../dist/../db_dump185/db_dump185.c:211: warning: assignment makes pointer
>> from integer without a cast
>> ../dist/../db_dump185/db_dump185.c:213: warning: assignment makes pointer
>> from integer without a cast
>> ../dist/../db_dump185/db_dump185.c:228: error: 'struct __db' has no member
>> named 'seq'
>> ../dist/../db_dump185/db_dump185.c:228: error: 'R_NEXT' undeclared (first
>> use in this function)
>> ../dist/../db_dump185/db_dump185.c:228: error: (Each undeclared identifier
>> is reported only once
>> ../dist/../db_dump185/db_dump185.c:228: error: for each function it
>> appears in.)
>> ../dist/../db_dump185/db_dump185.c:233: error: 'struct __db' has no member
>> named 'seq'
>> ../dist/../db_dump185/db_dump185.c: In function 'db_hash':
>> ../dist/../db_dump185/db_dump185.c:261: error: 'struct __db' has no member
>> named 'internal'
>> ../dist/../db_dump185/db_dump185.c:263: error: 'struct __db' has no member
>> named 'internal'
>> ../dist/../db_dump185/db_dump185.c: In function 'db_btree':
>> ../dist/../db_dump185/db_dump185.c:288: error: 'struct __db' has no member
>> named 'internal'
>> make: *** [db_dump185.lo] Error 1
>>
>> Error: The following dependencies failed to build: apr-util db46 sqlite3
>> readline pcre
>> Error: Status 1 encountered during processing.
>>
>
> I believe you have an old version of readline in /usr/local/lib interfering
> with the db46 build process. Please see this ticket where the same problem
> was reported against db44:
>
> http://trac.macports.org/ticket/12040
>
> Because software in /usr/local often interferes with MacPorts ports, it's a
> good idea to not have anything in /usr/local when using MacPorts.
>
> For now, you can rename /usr/local to /usr/local-off:
>
> sudo mv /usr/local /usr/local-off
>
> Then clean db46 and try again:
>
> sudo port clean db46
> sudo port install apache2
>
> If that works, you'll know that your software in /usr/local had interfered
> before. I recommend you look through everything you have in /usr/local-off,
> decide whether you still need it, and if you do, install the corresponding
> port with MacPorts.
>
>
Thanks so much, Ryan. Moving /usr/local to /usr/local-off did the trick.
I'll move the stuff I still need from /usr/local-off over to /opt/local.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-users/attachments/20090125/ab1b382e/attachment.html>


More information about the macports-users mailing list