Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

NZBGet Fails to build on 10.8.2 #16216

Closed
exiva opened this Issue · 10 comments

6 participants

@exiva
$ 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
Owner

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

@exiva

removed and reinstalled gnutls from homebrew with

brew install gnutls

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

@terabyte

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

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

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

@dVWd

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

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

@jacknagel
Owner

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

@jacknagel jacknagel closed this issue from a commit
@exiva exiva nzbget: Add libcrypt dependency
Fixes #16216.
Closes #16500.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
4f88ad3
@jacknagel jacknagel closed this in 4f88ad3
@terabyte

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

@snakeyroc3 snakeyroc3 referenced this issue from a commit in snakeyroc3/homebrew
@exiva exiva nzbget: Add libcrypt dependency
Fixes #16216.
Closes #16500.

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

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.

@gwydirsam gwydirsam referenced this issue from a commit
@exiva exiva nzbget: Add libcrypt dependency
Fixes #16216.
Closes #16500.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
8b34789
@cooljeanius cooljeanius referenced this issue from a commit
Commit has since been removed from the repository and is no longer available.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.