Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

aria2c: "dependency gmp was built with a different C++ standard" (10.5/G5) #394

Open
ghost opened this issue Jan 11, 2016 · 7 comments
Open

Comments

@ghost
Copy link

ghost commented Jan 11, 2016

==> Downloading https://ia902307.us.archive.org/31/items/tigerbrew/aria2-1.19.0.leopard_altivec.bottle.tar.gz

################################################################## 100.0%

==> Pouring aria2-1.19.0.leopard_altivec.bottle.tar.gz
Warning: aria2 dependency gmp was built with a different C++ standard
library (libstdc++ from gcc). This may cause problems at runtime.
==> Caveats
Bash completion has been installed to:
/usr/local/etc/bash_completion.d
==> Summary
/usr/local/Cellar/aria2/1.19.0: 21 files, 3.8M

% aria2c ~
dyld: Symbol not found: __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev
Referenced from: /usr/local/bin/aria2c
Expected in: /usr/lib/libstdc++.6.dylib

[1] 98360 trace trap aria2c

@mistydemeo
Copy link
Owner

Unfortunately, I don't have a good way to mark dependencies when a bottle was built using a different compiler. If you install the gcc formula it should work.

@ghost
Copy link
Author

ghost commented Jan 11, 2016

You mean like this?

% brew install gcc
Warning: gcc-5.2.0 already installed

@mistydemeo
Copy link
Owner

What's the output of otool -L /usr/local/bin/aria2c? I would expect it to be looking for /usr/local/lib/gcc/5/libstdc++.6.dylib, which should exist in your installed gcc 5.2.0.

@miniupnp
Copy link
Contributor

miniupnp commented Jun 6, 2017

==> Installing aria2
==> Downloading https://ia902307.us.archive.org/31/items/tigerbrew/aria2-1.19.0.leopard_altivec.bottle.tar.gz
######################################################################## 100.0%
==> Pouring aria2-1.19.0.leopard_altivec.bottle.tar.gz
Warning: aria2 dependency gmp was built with a different C++ standard
library (libstdc++ from gcc). This may cause problems at runtime.
==> Caveats
Bash completion has been installed to:
  /usr/local/etc/bash_completion.d
==> Summary
/usr/local/Cellar/aria2/1.19.0: 21 files, 3.8M

 $ aria2c 
dyld: Symbol not found: __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev
  Referenced from: /usr/local/bin/aria2c
  Expected in: /usr/lib/libstdc++.6.dylib

Trace/BPT trap

@miniupnp
Copy link
Contributor

miniupnp commented Jun 6, 2017

$ otool -L /usr/local/bin/aria2c
/usr/local/bin/aria2c:
	@@HOMEBREW_PREFIX@@/lib/libgnutls.28.dylib (compatibility version 70.0.0, current version 70.9.0)
	/usr/lib/libexpat.1.dylib (compatibility version 7.0.0, current version 7.0.0)
	/usr/lib/libz.1.dylib (compatibility version 1.0.0, current version 1.2.3)
	@@HOMEBREW_PREFIX@@/lib/gcc/5/libstdc++.6.dylib (compatibility version 7.0.0, current version 7.21.0)
	/usr/lib/libgcc_s.1.dylib (compatibility version 1.0.0, current version 1.0.0)
	@@HOMEBREW_PREFIX@@/lib/gcc/5/libgcc_s.1.dylib (compatibility version 1.0.0, current version 1.0.0)
	/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 111.1.7)

$ ll /usr/local/lib/gcc/5/libstdc++.6.dylib 
-r--r--r--  1 nanard  admin  2232164 11 sep  2015 /usr/local/lib/gcc/5/libstdc++.6.dylib

@miniupnp
Copy link
Contributor

miniupnp commented Jun 6, 2017

$ ll /usr/lib/libstdc++*
-rw-r--r--  1 root  wheel  22010976 27 jui  2008 /usr/lib/libstdc++-static.a
-rwxr-xr-x  1 root  wheel   3035296 24 sep  2007 /usr/lib/libstdc++.6.0.4.dylib
lrwxr-xr-x  1 root  wheel        21  9 sep  2015 /usr/lib/libstdc++.6.dylib -> libstdc++.6.0.4.dylib

akemin-dayo added a commit to akemin-dayo/tigerbrew that referenced this issue Oct 15, 2021
…ding on 10.5.x as well as issue mistydemeo#394.

This commit also includes some minor formula-level changes:
* Updated the homepage URL to aria2's new GitHub Pages URL (which is where the previous one now redirects to).
* Use `assert_predicate` instead of `assert` in the `test` block.
@akemin-dayo
Copy link
Contributor

akemin-dayo commented Oct 15, 2021

I've fixed this issue for both OS X 10.5.x and 10.4.x in my PR #768!

SFTP and browser cookie support are still missing for the time being (more details as to why can be found in the above PR's post), but pretty much everything else is functional now.

OS X 10.5.8 (PowerPC):

Karen002ppc-osx105:~ karen$ brew install aria2
==> Downloading https://github.com/aria2/aria2/releases/download/release-1.36.0/aria2-1.36.0.tar.xz
Already downloaded: /Users/karen/Library/Caches/Homebrew/aria2-1.36.0.tar.xz
==> ./configure --prefix=/usr/local/Cellar/aria2/1.36.0 --without-gnutls --without-libgmp --without-libnettle --without-libgcrypt --with-openssl --without-appletls
==> make install
==> Caveats
Bash completion has been installed to:
  /usr/local/etc/bash_completion.d
==> Summary
/usr/local/Cellar/aria2/1.36.0: 21 files, 5.2M, built in 328.0 minutes
Karen002ppc-osx105:~ karen$ aria2c -v
aria2 version 1.36.0
Copyright (C) 2006, 2019 Tatsuhiro Tsujikawa

This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

** Configuration **
Enabled Features: BitTorrent, GZip, HTTPS, Message Digest, Metalink, XML-RPC
Hash Algorithms: sha-1, sha-224, sha-256, sha-384, sha-512, md5, adler32
Libraries: zlib/1.2.3 expat/2.1.0 OpenSSL/1.0.2j
Compiler: gcc 7.3.0
  built by  powerpc-apple-darwin9.8.0
  on        Oct 15 2021 16:14:58
System: Darwin 9.8.0 Darwin Kernel Version 9.8.0: Wed Jul 15 16:57:01 PDT 2009; root:xnu-1228.15.4~1/RELEASE_PPC Power Macintosh

Report bugs to https://github.com/aria2/aria2/issues
Visit https://aria2.github.io/

OS X 10.4.11 (PowerPC):

karen002ppc-osx104:~ karen$ brew install aria2
==> Downloading https://github.com/aria2/aria2/releases/download/release-1.36.0/aria2-1.36.0.tar.xz
Already downloaded: /Users/karen/Library/Caches/Homebrew/aria2-1.36.0.tar.xz
==> ./configure --prefix=/usr/local/Cellar/aria2/1.36.0 --without-gnutls --without-libgmp --without-libnettle --without-libgcrypt --with-openssl --without-appletls
==> make install
==> Caveats
Bash completion has been installed to:
  /usr/local/etc/bash_completion.d
==> Summary
/usr/local/Cellar/aria2/1.36.0: 21 files, 4.7M, built in 154.5 minutes
karen002ppc-osx104:~ karen$ aria2c -v
aria2 version 1.36.0
Copyright (C) 2006, 2019 Tatsuhiro Tsujikawa

This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

** Configuration **
Enabled Features: BitTorrent, GZip, HTTPS, Message Digest, Metalink, XML-RPC
Hash Algorithms: sha-1, sha-224, sha-256, sha-384, sha-512, md5, adler32
Libraries: zlib/1.2.3 expat/2.1.0 OpenSSL/1.0.2j
Compiler: gcc 7.3.0
  built by  powerpc-apple-darwin8.11.0
  on        Oct 15 2021 04:25:18
System: Darwin 8.11.0 Darwin Kernel Version 8.11.0: Wed Oct 10 18:26:00 PDT 2007; root:xnu-792.24.17~1/RELEASE_PPC Power Macintosh

Report bugs to https://github.com/aria2/aria2/issues
Visit https://aria2.github.io/

akemin-dayo added a commit to akemin-dayo/tigerbrew that referenced this issue Oct 15, 2021
…ding on 10.5.x as well as issue mistydemeo#394. Switched SSL library from GnuTLS to OpenSSL due to some hanging issues with the former.

This commit also includes some minor formula-level changes:
* Updated the homepage URL to aria2's new GitHub Pages URL (which is where the previous one now redirects to).
* Use `assert_predicate` instead of `assert` in the `test` block.
akemin-dayo added a commit to akemin-dayo/tigerbrew that referenced this issue Oct 16, 2021
…ding on 10.5.x as well as issue mistydemeo#394. Switched SSL library from GnuTLS to OpenSSL due to some process hanging issues with the former. Added `expat` for XML support.

This commit also includes some minor formula-level changes:
* Updated the homepage URL to aria2's new GitHub Pages URL (which is where the previous one now redirects to).
* Use `assert_predicate` instead of `assert` in the `test` block.
akemin-dayo added a commit to akemin-dayo/tigerbrew that referenced this issue Dec 29, 2022
* aria2-update-and-build-fixes:
  aria2: Updated to 1.36.0. Added OS X 10.4.x build support. Fixed building on 10.5.x as well as issue mistydemeo#394. Switched SSL library from GnuTLS to OpenSSL due to some process hanging issues with the former. Added `expat` for XML support.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants