Opened 11 years ago
Closed 11 years ago
#39908 closed defect (invalid)
Incompatible library version: libfontconfig.1.dylib requires version 8.0.0 or later, but libexpat.1.dylib provides version 7.0.0
Reported by: | Patrick.M.Roanhouse@… | Owned by: | ryandesign (Ryan Carsten Schmidt) |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.2.0 |
Keywords: | Cc: | ||
Port: |
Description
I first get the general build fail error of
Building pango Error: org.macports.build for port pango returned: command execution failed Please see the log file for port pango for details: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_x11_pango/pango/main.log Error: Unable to upgrade port: 1 To report a bug, follow the instructions in the guide: http://guide.macports.org/#project.tickets
I then get this whole mess of syntax errors in the logs during the build
:notice:build ---> Building pango :debug:build Executing org.macports.build (pango) :debug:build Environment: CPATH='/opt/local/include' CC_PRINT_OPTIONS_FILE='/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_x11_pango/pango/work/.CC_PRINT_OPTIONS' LIBRARY_PATH='/opt/local/lib' CC_PRINT_OPTIONS='YES' MACOSX_DEPLOYMENT_TARGET='10.8' :debug:build Assembled command: 'cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_x11_pango/pango/work/pango-1.34.1" && /usr/bin/make -j8 -w all CC="/usr/bin/clang -arch x86_64"' :debug:build Executing command line: cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_x11_pango/pango/work/pango-1.34.1" && /usr/bin/make -j8 -w all CC="/usr/bin/clang -arch x86_64" :info:build make: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_x11_pango/pango/work/pango-1.34.1' :info:build /usr/bin/make all-recursive :info:build make[1]: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_x11_pango/pango/work/pango-1.34.1' :info:build Making all in pango :info:build make[2]: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_x11_pango/pango/work/pango-1.34.1/pango' :info:build /usr/bin/make all-recursive :info:build make[3]: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_x11_pango/pango/work/pango-1.34.1/pango' :info:build Making all in mini-fribidi :info:build make[4]: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_x11_pango/pango/work/pango-1.34.1/pango/mini-fribidi' :info:build make[4]: Nothing to be done for `all'. :info:build make[4]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_x11_pango/pango/work/pango-1.34.1/pango/mini-fribidi' :info:build make[4]: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_x11_pango/pango/work/pango-1.34.1/pango' :info:build /opt/local/bin/g-ir-scanner --warn-all --add-include-path=. --add-include-path=. --namespace=Pango --nsversion=1.0 --libtool="/bin/sh ../libtool" --pkg=gobject-2.0 --pkg=cairo --pkg=glib-2.0 --pkg=freetype2 --include=GObject-2.0 --include=cairo-1.0 --pkg-export=pango --library=libpango-1.0.la --c-include "pango/pango.h" --cflags-begin -I.. -I.. --cflags-end break.c ellipsize.c fonts.c glyphstring.c modules.c pango-attributes.c pango-bidi-type.c pango-color.c pango-context.c pango-coverage.c pango-engine.c pango-fontmap.c pango-fontset.c pango-glyph-item.c pango-gravity.c pango-impl-utils.h pango-item.c pango-language.c pango-language-sample-table.h pango-layout.c pango-markup.c pango-matrix.c pango-renderer.c pango-script.c pango-script-lang-table.h pango-tabs.c pango-utils.c reorder-items.c shape.c pango-enum-types.c module-defs-lang.c pango.h pango-attributes.h pango-bidi-type.h pango-break.h pango-context.h pango-coverage.h pango-engine.h pango-font.h pango-fontmap.h pango-fontset.h pango-glyph.h pango-glyph-item.h pango-gravity.h pango-item.h pango-language.h pango-layout.h pango-matrix.h pango-modules.h pango-renderer.h pango-script.h pango-tabs.h pango-types.h pango-utils.h pango-enum-types.h libpango-1.0.la --output Pango-1.0.gir :info:build /usr/lib/clang/4.2/include/stddef.h:31: syntax error, unexpected '(' in 'typedef __typeof__(((int*)0)-((int*)0)) ptrdiff_t;' at '(' :info:build /usr/lib/clang/4.2/include/stddef.h:35: syntax error, unexpected SIZEOF in 'typedef __typeof__(sizeof(int)) size_t;' at 'sizeof' :info:build /usr/include/time.h:131: syntax error, unexpected identifier in 'size_t strftime(char * restrict, size_t, const char * restrict, const struct tm * restrict) __asm("_" "strftime" );' at 'size_t' :info:build /usr/include/time.h:131: syntax error, unexpected ',', expecting identifier or '(' in 'size_t strftime(char * restrict, size_t, const char * restrict, const struct tm * restrict) __asm("_" "strftime" );' at ',' :info:build /usr/include/time.h:131: syntax error, unexpected ',', expecting identifier or '(' in 'size_t strftime(char * restrict, size_t, const char * restrict, const struct tm * restrict) __asm("_" "strftime" );' at ',' :info:build /usr/include/time.h:131: syntax error, unexpected ')', expecting identifier or '(' in 'size_t strftime(char * restrict, size_t, const char * restrict, const struct tm * restrict) __asm("_" "strftime" );' at ')' :info:build /usr/include/pthread.h:256: syntax error, unexpected identifier in ' size_t * restrict);' at 'size_t' :info:build /usr/include/pthread.h:265: syntax error, unexpected identifier in ' void ** restrict, size_t * restrict);' at 'size_t' :info:build /usr/include/pthread.h:269: syntax error, unexpected identifier in ' size_t * restrict);' at 'size_t' :info:build /usr/include/pthread.h:273: syntax error, unexpected identifier in 'int pthread_attr_setguardsize(pthread_attr_t *, size_t );' at 'size_t' :info:build /usr/include/pthread.h:282: syntax error, unexpected identifier in ' void *, size_t );' at 'size_t' :info:build /usr/include/pthread.h:285: syntax error, unexpected identifier in 'int pthread_attr_setstacksize(pthread_attr_t *, size_t );' at 'size_t' :info:build /usr/include/pthread.h:377: syntax error, unexpected identifier in 'int pthread_getname_np(pthread_t,char*,size_t) __attribute__((availability(macosx,introduced=10.6)));' at 'size_t' :info:build /usr/include/pthread.h:384: syntax error, unexpected identifier in 'size_t pthread_get_stacksize_np(pthread_t);' at 'size_t' :info:build /usr/include/stdio.h:255: syntax error, unexpected identifier in 'size_t fread(void * restrict, size_t, size_t, FILE * restrict);' at 'size_t' :info:build /usr/include/stdio.h:255: syntax error, unexpected ',', expecting identifier or '(' in 'size_t fread(void * restrict, size_t, size_t, FILE * restrict);' at ',' :info:build /usr/include/stdio.h:255: syntax error, unexpected ')', expecting identifier or '(' in 'size_t fread(void * restrict, size_t, size_t, FILE * restrict);' at ')' :info:build /usr/include/stdio.h:262: syntax error, unexpected identifier in 'size_t fwrite(const void * restrict, size_t, size_t, FILE * restrict) __asm("_" "fwrite" );' at 'size_t' :info:build /usr/include/stdio.h:262: syntax error, unexpected ',', expecting identifier or '(' in 'size_t fwrite(const void * restrict, size_t, size_t, FILE * restrict) __asm("_" "fwrite" );' at ',' :info:build /usr/include/stdio.h:262: syntax error, unexpected ')', expecting identifier or '(' in 'size_t fwrite(const void * restrict, size_t, size_t, FILE * restrict) __asm("_" "fwrite" );' at ')' :info:build /usr/include/stdio.h:276: syntax error, unexpected identifier in 'int setvbuf(FILE * restrict, char * restrict, int, size_t);' at 'size_t' :info:build /usr/include/stdio.h:425: syntax error, unexpected identifier in 'int snprintf(char * restrict, size_t, const char * restrict, ...) __attribute__((__format__ (__printf__, 3, 4)));' at 'size_t' :info:build /usr/include/stdio.h:425: syntax error, unexpected ',', expecting identifier or '(' in 'int snprintf(char * restrict, size_t, const char * restrict, ...) __attribute__((__format__ (__printf__, 3, 4)));' at ',' :info:build /usr/include/stdio.h:428: syntax error, unexpected identifier in 'int vsnprintf(char * restrict, size_t, const char * restrict, va_list) __attribute__((__format__ (__printf__, 3, 0)));' at 'size_t' :info:build /usr/include/stdio.h:428: syntax error, unexpected ',', expecting identifier or '(' in 'int vsnprintf(char * restrict, size_t, const char * restrict, va_list) __attribute__((__format__ (__printf__, 3, 0)));' at ',' :info:build /usr/include/stdio.h:448: syntax error, unexpected identifier in 'ssize_t getdelim(char ** restrict, size_t * restrict, int, FILE * restrict) __attribute__((availability(macosx,introduced=10.7)));' at 'size_t' :info:build /usr/include/stdio.h:448: syntax error, unexpected ')', expecting identifier or '(' in 'ssize_t getdelim(char ** restrict, size_t * restrict, int, FILE * restrict) __attribute__((availability(macosx,introduced=10.7)));' at ')' :info:build /usr/include/stdio.h:449: syntax error, unexpected identifier in 'ssize_t getline(char ** restrict, size_t * restrict, FILE * restrict) __attribute__((availability(macosx,introduced=10.7)));' at 'size_t' :info:build /usr/include/stdio.h:449: syntax error, unexpected ')', expecting identifier or '(' in 'ssize_t getline(char ** restrict, size_t * restrict, FILE * restrict) __attribute__((availability(macosx,introduced=10.7)));' at ')' :info:build /usr/include/stdio.h:464: syntax error, unexpected identifier in 'char *fgetln(FILE *, size_t *);' at 'size_t' :info:build /usr/include/secure/_stdio.h:45: syntax error, unexpected identifier in 'extern int __sprintf_chk (char * restrict, int, size_t,' at 'size_t' :info:build /usr/include/secure/_stdio.h:46: syntax error, unexpected ',', expecting identifier or '(' in ' const char * restrict, ...);' at ',' :info:build /usr/include/secure/_stdio.h:51: syntax error, unexpected identifier in 'extern int __snprintf_chk (char * restrict, size_t, int, size_t,' at 'size_t' :info:build /usr/include/secure/_stdio.h:52: syntax error, unexpected ',', expecting identifier or '(' in ' const char * restrict, ...);' at ',' :info:build /usr/include/secure/_stdio.h:58: syntax error, unexpected identifier in 'extern int __vsprintf_chk (char * restrict, int, size_t,' at 'size_t' :info:build /usr/include/secure/_stdio.h:59: syntax error, unexpected ',', expecting identifier or '(' in ' const char * restrict, va_list);' at ',' :info:build /usr/include/secure/_stdio.h:64: syntax error, unexpected identifier in 'extern int __vsnprintf_chk (char * restrict, size_t, int, size_t,' at 'size_t' :info:build /usr/include/secure/_stdio.h:65: syntax error, unexpected ',', expecting identifier or '(' in ' const char * restrict, va_list);' at ',' :info:build g-ir-scanner: compile: /usr/bin/clang -arch x86_64 -Wno-deprecated-declarations -D_REENTRANT -I/opt/local/include/cairo -I/opt/local/include/pixman-1 -I/opt/local/include -I/opt/local/include/libpng15 -I/opt/local/include -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include -I/opt/local/include -I/opt/local/include/freetype2 -I/opt/local/include -I/opt/local/include/cairo -I/opt/local/include/pixman-1 -I/opt/local/include -I/opt/local/include/freetype2 -I/opt/local/include -I/opt/local/include/libpng15 -I/opt/local/include -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include -I/opt/local/include -c -o /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_x11_pango/pango/work/pango-1.34.1/pango/tmp-introspectAv2O3B/Pango-1.0.o /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_x11_pango/pango/work/pango-1.34.1/pango/tmp-introspectAv2O3B/Pango-1.0.c :info:build g-ir-scanner: link: /bin/sh ../libtool --mode=link --tag=CC /usr/bin/clang -arch x86_64 -o /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_x11_pango/pango/work/pango-1.34.1/pango/tmp-introspectAv2O3B/Pango-1.0 -export-dynamic /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_x11_pango/pango/work/pango-1.34.1/pango/tmp-introspectAv2O3B/Pango-1.0.o -L. libpango-1.0.la -L/opt/local/lib -lgio-2.0 -lgmodule-2.0 -lgobject-2.0 -lcairo -lglib-2.0 -lintl -lfreetype :info:build libtool: link: /usr/bin/clang -arch x86_64 -o /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_x11_pango/pango/work/pango-1.34.1/pango/tmp-introspectAv2O3B/.libs/Pango-1.0 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_x11_pango/pango/work/pango-1.34.1/pango/tmp-introspectAv2O3B/Pango-1.0.o -L. ./.libs/libpango-1.0.dylib -L/opt/local/lib /opt/local/lib/libgthread-2.0.dylib /opt/local/lib/libgio-2.0.dylib /opt/local/lib/libgmodule-2.0.dylib /opt/local/lib/libgobject-2.0.dylib /opt/local/lib/libffi.dylib /opt/local/lib/libcairo.dylib /opt/local/lib/libpixman-1.dylib -lm /opt/local/lib/libfontconfig.dylib /opt/local/lib/libexpat.dylib /opt/local/lib/libxcb-shm.dylib /opt/local/lib/libX11-xcb.dylib /opt/local/lib/libxcb-render.dylib /opt/local/lib/libXrender.dylib /opt/local/lib/libXext.dylib /opt/local/lib/libX11.dylib /opt/local/lib/libxcb.dylib /opt/local/lib/libXau.dylib /opt/local/lib/libXdmcp.dylib /opt/local/lib/libglib-2.0.dylib -lresolv /opt/local/lib/libintl.dylib /opt/local/lib/libiconv.dylib -lc /opt/local/lib/libfreetype.dylib -lbz2 /opt/local/lib/libpng15.dylib -lz -pthread :info:build clang: warning: argument unused during compilation: '-pthread' :info:build dyld: Library not loaded: /opt/local/lib/libexpat.1.dylib :info:build Referenced from: /opt/local/lib/libfontconfig.1.dylib :info:build Reason: Incompatible library version: libfontconfig.1.dylib requires version 8.0.0 or later, but libexpat.1.dylib provides version 7.0.0 :info:build Command '['/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_x11_pango/pango/work/pango-1.34.1/pango/tmp-introspectAv2O3B/Pango-1.0', '--introspect-dump=/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_x11_pango/pango/work/pango-1.34.1/pango/tmp-introspectAv2O3B/functions.txt,/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_x11_pango/pango/work/pango-1.34.1/pango/tmp-introspectAv2O3B/dump.xml']' returned non-zero exit status -5 :info:build make[4]: *** [Pango-1.0.gir] Error 1 :info:build make[4]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_x11_pango/pango/work/pango-1.34.1/pango' :info:build make[3]: *** [all-recursive] Error 1 :info:build make[3]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_x11_pango/pango/work/pango-1.34.1/pango' :info:build make[2]: *** [all] Error 2 :info:build make[2]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_x11_pango/pango/work/pango-1.34.1/pango' :info:build make[1]: *** [all-recursive] Error 1 :info:build make[1]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_x11_pango/pango/work/pango-1.34.1' :info:build make: *** [all] Error 2 :info:build make: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_x11_pango/pango/work/pango-1.34.1' :info:build Command failed: cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_x11_pango/pango/work/pango-1.34.1" && /usr/bin/make -j8 -w all CC="/usr/bin/clang -arch x86_64" :info:build Exit code: 2 :error:build org.macports.build for port pango returned: command execution failed :debug:build Error code: CHILDSTATUS 29208 2 :debug:build Backtrace: command execution failed while executing "system -nice 0 $fullcmdstring" ("eval" body line 1) invoked from within "eval system $notty $nice \$fullcmdstring" invoked from within "command_exec build" (procedure "portbuild::build_main" line 8) invoked from within "$procedure $targetname" :info:build Warning: targets not executed for pango: org.macports.install org.macports.build org.macports.destroot :notice:build Please see the log file for port pango for details: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_x11_pango/pango/main.log
Attachments (1)
Change History (11)
comment:1 Changed 11 years ago by Patrick.M.Roanhouse@…
Cc: | Patrick.M.Roanhouse@… added |
---|
comment:2 Changed 11 years ago by mf2k (Frank Schima)
Cc: | Patrick.M.Roanhouse@… removed |
---|---|
Keywords: | build fail removed |
Owner: | changed from macports-tickets@… to ryandesign@… |
Summary: | Panga fails to install / build → Pango fails to install / build |
Type: | request → defect |
In the future, please Cc the port maintainer(s) but not yourself since the reporter is automatically Cc'ed.
This looks like your fontconfig port needs to be updated.
comment:3 Changed 11 years ago by cooljeanius (Eric Gallager)
Yeah, fontconfig
already has an explicit library dependency on expat
...
Changed 11 years ago by cooljeanius (Eric Gallager)
Attachment: | port-depcheck_fontconfing.log added |
---|
checking the dependencies of fontconfig (libtool overlinks it to zlib and bzip2)
comment:4 Changed 11 years ago by ryandesign (Ryan Carsten Schmidt)
Port: | pango removed |
---|---|
Summary: | Pango fails to install / build → Incompatible library version: libfontconfig.1.dylib requires version 8.0.0 or later, but libexpat.1.dylib provides version 7.0.0 |
Replying to Patrick.M.Roanhouse@…:
:info:build dyld: Library not loaded: /opt/local/lib/libexpat.1.dylib :info:build Referenced from: /opt/local/lib/libfontconfig.1.dylib :info:build Reason: Incompatible library version: libfontconfig.1.dylib requires version 8.0.0 or later, but libexpat.1.dylib provides version 7.0.0
This usually means /opt/local/lib/libexpat.1.dylib and /opt/local/lib/libfontconfig.1.dylib are not built for the same architecture, and therefore the loader tries to use /usr/lib/libexpat.1.dylib in place of /opt/local/lib/libexpat.1.dylib, but /usr/lib/libexpat.1.dylib is library version 7 and /opt/local/lib/libexpat.1.dylib is library version 8. It is the same problem as described in ProblemHotlist#libiconv-version for a different library.
The solution is to build everything for the same architecture. MacPorts should do this automatically so something must have gone wrong on your system.
Did you migrate from a previous OS version? If so, you must follow the wiki:Migration instructions.
Please show us what architectures fontconfig and expat are actually installed for, and what architectures MacPorts thinks they're installed for, by running these commands:
lipo -info /opt/local/lib/libfontconfig.1.dylib /opt/local/lib/libexpat.1.dylib port -v installed fontconfig expat
comment:5 Changed 11 years ago by Patrick.M.Roanhouse@…
No i didn't migrate this was a recent fresh install about 4 months ago. I have made sure that it updates with chron jobs during the night to make sure its up to date.
Non-fat file: /opt/local/lib/libfontconfig.1.dylib is architecture: x86_64 Non-fat file: /opt/local/lib/libexpat.1.dylib is architecture: x86_64
The following ports are currently installed: expat @2.1.0_0 (active) platform='darwin 12' archs='x86_64' fontconfig @2.10.2_0 platform='darwin 12' archs='x86_64' fontconfig @2.10.93_0 (active) platform='darwin 12' archs='x86_64'
comment:6 Changed 11 years ago by ryandesign (Ryan Carsten Schmidt)
Hmm, curious. That output looks fine. Could you also show me the otool output:
otool -L /opt/local/lib/libfontconfig.1.dylib /opt/local/lib/libexpat.1.dylib
comment:7 Changed 11 years ago by Patrick.M.Roanhouse@…
/opt/local/lib/libfontconfig.1.dylib: /opt/local/lib/libfontconfig.1.dylib (compatibility version 9.0.0, current version 9.0.0) /opt/local/lib/libfreetype.6.dylib (compatibility version 17.0.0, current version 17.1.0) /opt/local/lib/libz.1.dylib (compatibility version 1.0.0, current version 1.2.8) /opt/local/lib/libbz2.1.0.dylib (compatibility version 1.0.0, current version 1.0.6) /opt/local/lib/libexpat.1.dylib (compatibility version 8.0.0, current version 8.0.0) /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 169.3.0)
/opt/local/lib/libexpat.1.dylib: /opt/local/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 159.1.0)
comment:8 Changed 11 years ago by ryandesign (Ryan Carsten Schmidt)
Ok, that's clear enough. Your MacPorts expat library version is 7. It should be 8. expat needs to be reinstalled.
But this should never have happened in normal use, so who knows if expat is the only affected port. The only way I can think of for this to have happened is if you installed some third-party software which was itself packaged using libraries installed by MacPorts, and it overwrote your newer MacPorts libraries. See ProblemHotlist#xmlwf for more on this type of problem, some common culprits, and how to address it.
comment:9 Changed 11 years ago by Patrick.M.Roanhouse@…
Thanks. I figured the rest of it out now. It seems the expat install wasn't the only thing. Quartz had been installed with +x11 and not with +quartz +no_x11 which then also caused gtk2 install to fubar. That was what was required to then build pango which then also required expat. So now that is all solved i can finally get back to building Textmate 2 from source. Thanks again Ryan.
comment:10 Changed 11 years ago by ryandesign (Ryan Carsten Schmidt)
Resolution: | → invalid |
---|---|
Status: | new → closed |
Glad you got it working.
Cc Me!