Opened 10 years ago

Closed 10 years ago

#42927 closed defect (worksforme)

libapreq2 not working, can't start apache2

Reported by: jul_bsd@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc:
Port: p5-libapreq2

Description

When starting apache2 w this module

httpd: Syntax error on line 495 of /opt/local/apache2/conf/httpd.conf: Syntax error on line 4 of /opt/local/apache2/conf/extra/apache-cif.conf: Cannot load /opt/local/apache2/modules/mod_apreq2.so into server: dlopen(/opt/local/apache2/modules/mod_apreq2.so, 10): Library not loaded: /opt/local/lib/libexpat.1.dylib\n  Referenced from: /opt/local/apache2/modules/mod_apreq2.so\n  Reason: Incompatible library version: mod_apreq2.so requires version 8.0.0 or later, but libexpat.1.dylib provides version 7.0.0
$ otool -L /opt/local/apache2/modules/mod_apreq2.so
/opt/local/apache2/modules/mod_apreq2.so:
        /opt/local/lib/libapreq2.3.dylib (compatibility version 12.0.0, current version 12.0.0)
        /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1197.1.1)
        /opt/local/lib/libexpat.1.dylib (compatibility version 8.0.0, current version 8.0.0)
        /opt/local/lib/libiconv.2.dylib (compatibility version 8.0.0, current version 8.1.0)
        /opt/local/lib/libapr-1.0.dylib (compatibility version 6.0.0, current version 6.0.0)
        /opt/local/lib/libaprutil-1.0.dylib (compatibility version 6.0.0, current version 6.3.0)
$ otool -L /opt/local/apache2/modules/mod_perl.so
/opt/local/apache2/modules/mod_perl.so:
        /opt/local/lib/perl5/5.16.1/darwin-thread-multi-2level/CORE/libperl.dylib (compatibility version 5.16.0, current version 5.16.1)
        /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1197.1.1)
        /usr/lib/libutil.dylib (compatibility version 1.0.0, current version 1.0.0)
        /usr/lib/libgcc_s.1.dylib (compatibility version 1.0.0, current version 2577.0.0)
$ locate libexpat.1.dylib
/Applications/Extra/Print/GIMP.app/Contents/Resources/lib/libexpat.1.dylib
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk/usr/lib/libexpat.1.dylib
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/usr/lib/libexpat.1.dylib
/Developer/SDKs/MacOSX10.5.sdk/usr/lib/libexpat.1.dylib
/Developer/SDKs/MacOSX10.6.sdk/usr/lib/libexpat.1.dylib
/Volumes/Data/opt.old2/local/lib/libexpat.1.dylib
/opt/local/lib/libexpat.1.dylib
/usr/lib/libexpat.1.dylib
$ otool -L /usr/lib/libexpat.1.dylib 
/usr/lib/libexpat.1.dylib:
        /usr/lib/libexpat.1.dylib (compatibility version 7.0.0, current version 7.2.0)
        /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1197.1.1)
$ port installed |egrep '(apreq|mod_perl|apache)'
  apache2 @2.2.26_0+preforkmpm (active)
  mod_perl2 @2.0.7_1 (active)
  p5.16-apache2-rest @0.70.0_0 (active)
  p5.16-libapreq2 @2.130.0_3 (active)

Change History (4)

comment:1 in reply to:  description Changed 10 years ago by ryandesign (Ryan Carsten Schmidt)

Replying to jul_bsd@…:

Library not loaded: /opt/local/lib/libexpat.1.dylib
  Referenced from: /opt/local/apache2/modules/mod_apreq2.so
  Reason: Incompatible library version: mod_apreq2.so requires version 8.0.0 or later, but libexpat.1.dylib provides version 7.0.0

This sounds very similar to ProblemHotlist#libiconv-version (except with libexpat instead of libiconv). Does the explanation there help you?

comment:2 Changed 10 years ago by jul_bsd@…

The system was effectively upgraded to Maverick but since, I fully reinstalled macports (everything in /opt/local) and it was the same hardware/arch all time. did

sudo port -n upgrade --force expat

but no change

DYLD_LIBRARY_PATH is empty in my shells (user or root) but can't sure for script environment

comment:3 Changed 10 years ago by jul_bsd@…

Currently the problem seems to have disappeared. macports 2.3.1, apache2.2.27, libapreq2 2.130.0

comment:4 Changed 10 years ago by mf2k (Frank Schima)

Resolution: worksforme
Status: newclosed
Note: See TracTickets for help on using tickets.