Skip to content
This repository has been archived by the owner on Jul 4, 2023. It is now read-only.

NZBGet Fails to build on 10.8.2 #16216

Closed
exiva opened this issue Nov 24, 2012 · 10 comments
Closed

NZBGet Fails to build on 10.8.2 #16216

exiva opened this issue Nov 24, 2012 · 10 comments

Comments

@exiva
Copy link
Contributor

exiva commented Nov 24, 2012

$ brew install nzbget
==> Downloading http://downloads.sourceforge.net/project/nzbget/nzbget-stable/0.8.0/nzbget-0.8.0.tar.gz
Already downloaded: /Library/Caches/Homebrew/nzbget-0.8.0.tar.gz
==> ./configure --prefix=/usr/local/Cellar/nzbget/0.8.0
==> make install
  "_sk_value", referenced from:
      tls_check_cert(tls_t*, char const*, int, char**)in TLS.o
ld: symbol(s) not found for architecture x86_64
collect2: ld returned 1 exit status
make: *** [nzbget] Error 1

READ THIS: https://github.com/mxcl/homebrew/wiki/troubleshooting

brew doctor output

$ brew doctor
Your system is raring to brew.

Log files

https://gist.github.com/4141804

@adamv
Copy link
Contributor

adamv commented Nov 25, 2012

You seem to have a 32-bit gnutls installed...

@exiva
Copy link
Contributor Author

exiva commented Nov 25, 2012

removed and reinstalled gnutls from homebrew with

brew install gnutls

same error. I assume it'd build 64bit from homebrew?

@terabyte
Copy link

terabyte commented Dec 9, 2012

Getting the same error, macbook air running 10.8.2

Tried this:
(23:37:31):cmyers@cmyers-mba:1] file /usr/local/Cellar/gnutls/3.1.5/bin/srptool
/usr/local/Cellar/gnutls/3.1.5/bin/srptool: Mach-O 64-bit executable x86_64

Looks like it is 64-bit to me...

@terabyte
Copy link

terabyte commented Dec 9, 2012

running make from the source tree, I get this:

(23:54:40):cmyers@cmyers-mba:3] make
/usr/local/Library/ENV/4.3/make all-am
g++ -g -O2 -lxml2 -L/usr/lib -L/usr/local/Cellar/libsigc++/2.2.10/lib -lsigc-2.0 -L/usr/lib -L/usr/lib -L/usr/lib -o nzbget ArticleDownloader.o BinRpc.o ColoredFrontend.o Connection.o Decoder.o DiskState.o DownloadInfo.o Frontend.o Log.o LoggableFrontend.o NCursesFrontend.o NNTPConnection.o NZBFile.o NetAddress.o NewsServer.o Observer.o Options.o ParChecker.o PrePostProcessor.o QueueCoordinator.o QueueEditor.o RemoteClient.o RemoteServer.o Scanner.o Scheduler.o ScriptController.o ServerPool.o svn_version.o TLS.o Thread.o Util.o XmlRpc.o nzbget.o -lssl -lgnutls -lpar2 -lncurses
Undefined symbols for architecture x86_64:
"ERR_error_string", referenced from:
openssl_io_error(int, int, char const
)in TLS.o
tls_init(tls_t_, char const_, char const_, char const_, int, char__)in TLS.o
tls_start(tls_t_, int, char const_, int, tls_cert_info_t_, char**)in TLS.o
"ERR_get_error", referenced from:
openssl_io_error(int, int, char const
)in TLS.o
tls_init(tls_t_, char const_, char const_, char const*, int, char**)in TLS.o
tls_start(tls_t_, int, char const_, int, tls_cert_info_t_, char__)in TLS.o
"EVP_md5", referenced from:
tls_cert_info_get(tls_t
, tls_cert_info_t_, char__)in TLS.o
"EVP_sha1", referenced from:
tls_cert_info_get(tls_t
, tls_cert_info_t_, char__)in TLS.o
"RAND_file_name", referenced from:
seed_prng(char
_)in TLS.o
"RAND_load_file", referenced from:
seed_prng(char
_)in TLS.o
"RAND_seed", referenced from:
seed_prng(char
_)in TLS.o
"RAND_status", referenced from:
seed_prng(char
_)in TLS.o
"RAND_write_file", referenced from:
seed_prng(char
_)in TLS.o
"X509_NAME_get_text_by_NID", referenced from:
tls_check_cert(tls_t
, char const_, int, char__)in TLS.o
tls_cert_info_get(tls_t_, tls_cert_info_t_, char__)in TLS.o
"X509_digest", referenced from:
tls_cert_info_get(tls_t
, tls_cert_info_t_, char__)in TLS.o
"X509_free", referenced from:
tls_check_cert(tls_t
, char const_, int, char__)in TLS.o
tls_cert_info_get(tls_t_, tls_cert_info_t_, char__)in TLS.o
"X509_get_ext_d2i", referenced from:
tls_check_cert(tls_t
, char const_, int, char__)in TLS.o
"X509_get_issuer_name", referenced from:
tls_cert_info_get(tls_t
, tls_cert_info_t_, char__)in TLS.o
"X509_get_subject_name", referenced from:
tls_check_cert(tls_t
, char const_, int, char__)in TLS.o
tls_cert_info_get(tls_t_, tls_cert_info_t_, char__)in TLS.o
"X509_verify_cert_error_string", referenced from:
tls_check_cert(tls_t
, char const_, int, char__)in TLS.o
"sk_num", referenced from:
tls_check_cert(tls_t
, char const_, int, char__)in TLS.o
"sk_value", referenced from:
tls_check_cert(tls_t
, char const_, int, char__)in TLS.o
ld: symbol(s) not found for architecture x86_64
collect2: ld returned 1 exit status
make[1]: *_* [nzbget] Error 1
make: *** [all] Error 2

@terabyte
Copy link

terabyte commented Dec 9, 2012

adding -lgnutls-openssl to the link line removes some of the missing symbol errors, but not all =(

@dVWd
Copy link

dVWd commented Dec 10, 2012

You need to install libgcrypt as gnutls 3 does not depend on libgcrypt anymore

brew install libgcrypt

Then you can install nzbget the regular way

brew install nzbget

see also #16093

@terabyte
Copy link

I added -lgcrypt to the linker line, also with no success. I have gcrypt installed.

@jacknagel
Copy link
Contributor

You have to actually add the dependency to the formula or it won't be injected into the build environment.

@terabyte
Copy link

Cool, I can confirm this is fixed now. Thanks!

snakeyroc3 pushed a commit to snakeyroc3/homebrew that referenced this issue Dec 17, 2012
Fixes Homebrew#16216.
Closes Homebrew#16500.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
@miles-and-miles
Copy link

I had been getting the same error attempting to install nzbget on Lion for the last few weeks. The fix above didn't work for me and I was considering reporting this as a new issue. I have however managed to get it to install.

The process was:

brew uninstall libgcrypt
brew install libgcrypt

But libgcrypt failed to install with error:

./configure: line 12937: test: : integer expression expected
./configure: line 12940: test: : integer expression expected
no
configure: error: libgpg-error is needed.
See ftp://ftp.gnupg.org/gcrypt/libgpg-error/ .

libgpg-error was installed so I reinstalled using:

brew uninstall libgpg-error
brew install libgpg-error

After this libgcrypt installed okay and then I ran brew install nzbget which also installed okay.

This note added for info for anyone who has the same issue.

@Homebrew Homebrew locked and limited conversation to collaborators Feb 16, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

6 participants