Weak Import Error while compiling FileZilla dependency in MacOS

Moderator: Project members

Post Reply
Message
Author
test
550 File not found
Posts: 34
Joined: 2020-03-24 06:36

Weak Import Error while compiling FileZilla dependency in MacOS

#1 Post by test » 2020-04-22 13:39

Hi!

I am trying to compile FileZilla in MacOS by following https://wiki.filezilla-project.org/Comp ... nder_macOS

I have successfully done upto Step 6 (i.e. Nettle)

While executing make command of GnuTLS, I get the following error:

Code: Select all

/Applications/Xcode.app/Contents/Developer/usr/bin/make  all-recursive
Making all in gl
/Applications/Xcode.app/Contents/Developer/usr/bin/make  all-recursive
Making all in .
make[4]: Nothing to be done for `all-am'.
Making all in tests
/Applications/Xcode.app/Contents/Developer/usr/bin/make  all-recursive
Making all in .
make[6]: Nothing to be done for `all-am'.
Making all in lib
/Applications/Xcode.app/Contents/Developer/usr/bin/make  all-recursive
Making all in includes
make[4]: Nothing to be done for `all'.
Making all in x509
/Applications/Xcode.app/Contents/Developer/usr/bin/make  all-am
make[5]: Nothing to be done for `all-am'.
Making all in auth
make[4]: Nothing to be done for `all'.
Making all in ext
make[4]: Nothing to be done for `all'.
Making all in algorithms
make[4]: Nothing to be done for `all'.
Making all in extras
make[4]: Nothing to be done for `all'.
Making all in accelerated
Making all in x86
make[5]: Nothing to be done for `all'.
make[5]: Nothing to be done for `all-am'.
Making all in minitasn1
make[4]: Nothing to be done for `all'.
Making all in unistring
/Applications/Xcode.app/Contents/Developer/usr/bin/make  all-recursive
make[6]: Nothing to be done for `all-am'.
Making all in nettle
make[4]: Nothing to be done for `all'.
make[4]: Nothing to be done for `all-am'.
Making all in extra
Making all in includes
make[3]: Nothing to be done for `all'.
make[3]: Nothing to be done for `all-am'.
Making all in po
make[2]: Nothing to be done for `all'.
Making all in src/gl
/Applications/Xcode.app/Contents/Developer/usr/bin/make  all-recursive
make[4]: Nothing to be done for `all-am'.
Making all in src
/Applications/Xcode.app/Contents/Developer/usr/bin/make  all-recursive
Making all in libopts
/Applications/Xcode.app/Contents/Developer/usr/bin/make  all-am
make[5]: Nothing to be done for `all-am'.
  CCLD     gnutls-cli-debug
ld: weak import of symbol '___darwin_check_fd_set_overflow' not supported because of option: -no_weak_imports for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[4]: *** [gnutls-cli-debug] Error 1
make[3]: *** [all-recursive] Error 1
make[2]: *** [all] Error 2
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
Since I am new to Mac, so I don't have any idea

Please help
Thanks!

User avatar
botg
Site Admin
Posts: 32907
Joined: 2004-02-23 20:49
First name: Tim
Last name: Kosse
Contact:

Re: Weak Import Error while compiling FileZilla dependency in MacOS

#2 Post by botg » 2020-04-22 21:56

What's your version of macOS? Which version of Xcode are you using?

test
550 File not found
Posts: 34
Joined: 2020-03-24 06:36

Re: Weak Import Error while compiling FileZilla dependency in MacOS

#3 Post by test » 2020-04-23 03:39

Hi!

My MacOS version is: MacOS Catalina 10.15.4

Whereas Xcode version is 10.3

User avatar
botg
Site Admin
Posts: 32907
Joined: 2004-02-23 20:49
First name: Tim
Last name: Kosse
Contact:

Re: Weak Import Error while compiling FileZilla dependency in MacOS

#4 Post by botg » 2020-04-23 08:15

Apple, making breaking changes for the sake of making breaking changes.

There is no need to compile the src subdirectory of GnuTLS. cd into lib and do a make install there, that is sufficient.

test
550 File not found
Posts: 34
Joined: 2020-03-24 06:36

Re: Weak Import Error while compiling FileZilla dependency in MacOS

#5 Post by test » 2020-04-23 11:21

Before receiving your response, I reinstalled & performed every step again upto compilation of Nettle.

Now, when I run ./configure command of gnutls, I get the error:

Code: Select all

.......
checking whether strftime() works... yes
checking whether fopen accepts "b" mode... yes
checking whether fopen accepts "t" mode... yes
checking whether not wanting optional option args... yes
checking size of unsigned long int... 8
checking size of unsigned int... 4
checking size of time_t... 8
checking whether building Guile bindings... yes
***
*** Detecting GNU Guile...

checking for guile-snarf... /usr/local/bin/guile-snarf
checking for guild... /usr/local/bin/guild
checking for pkg-config... (cached) /Users/apple/prefix/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
configure: checking for guile 2.2
configure: checking for guile 2.0
configure: checking for guile 1.8
configure: error: 
No Guile development packages were found.

Please verify that you have Guile installed.  If you installed Guile
from a binary distribution, please verify that you have also installed
the development packages.  If you installed it yourself, you might need
to adjust your PKG_CONFIG_PATH; see the pkg-config man page for more.
This Guile binaries and libraries are present in /usr/local/bin and /usr/local/lib folders respectively as shown follow:

Code: Select all

APPLEs-MacBook-Pro-2:bin apple$ ./guile --version
guile (GNU Guile) 2.2.7
Copyright (C) 2020 Free Software Foundation, Inc.

License LGPLv3+: GNU LGPL 3 or later <http://gnu.org/licenses/lgpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
I even tried including these 2 paths in my LD_LIBRARY_PATH variable & PKg_config variable , but I still get the same error

User avatar
botg
Site Admin
Posts: 32907
Joined: 2004-02-23 20:49
First name: Tim
Last name: Kosse
Contact:

Re: Weak Import Error while compiling FileZilla dependency in MacOS

#6 Post by botg » 2020-04-23 13:44

Pass the configure argument to disable Guile, it's completely useless, nobody uses it.

test
550 File not found
Posts: 34
Joined: 2020-03-24 06:36

Re: Weak Import Error while compiling FileZilla dependency in MacOS

#7 Post by test » 2020-04-23 17:48

After executing the command

./configure --prefix="$HOME/prefix" --enable-shared --disable-static --with-included-libtasn1 --without-p11-kit --disable-doc --enable-local-libopts --disable-nls --with-included-unistring --disable-guile

following error is displayed:

Code: Select all

checking for mmap... (cached) yes
checking for canonicalize_file_name... no 
checking for snprintf... (cached) yes 
checking for strdup... (cached) yes 
checking for strchr... yes 
checking for strrchr... yes 
checking for strsignal... yes 
checking for fchmod... yes 
checking for fstat... yes 
checking for chmod... yes
checking for a sed that does not truncate output... (cached) /usr/bin/sed 
configure: Using supplied libopts tearoff 
checking whether a reg expr header is specified... no 
checking whether with-libregex was specified... no 
checking whether with-libregex-cflags was specified... no 
checking whether with-libregex-libs was specified... no 
checking whether libregex functions properly... yes 
checking whether pathfind(3) works... no 
checking whether /dev/zero is readable device... crw-rw-rw- 1 root wheel 3, 3 Apr 16 13:53 /dev/zero 
checking whether we have a functional realpath(3C)... yes 
checking whether strftime() works... yes 
checking whether fopen accepts "b" mode... yes 
checking whether fopen accepts "t" mode... yes 
checking whether not wanting optional option args... yes 
checking size of unsigned long int... 8 
checking size of unsigned int... 4 
checking size of time_t... 8 
checking whether building Guile bindings... no 
checking that generated files are newer than configure... done 
configure: creating ./config.status 
config.status: creating src/libopts/Makefile 
config.status: creating guile/pre-inst-guile 
config.status: creating Makefile 
config.status: creating doc/Makefile 
config.status: creating doc/credentials/Makefile 
config.status: creating doc/credentials/srp/Makefile 
config.status: creating doc/credentials/x509/Makefile 
config.status: creating doc/doxygen/Doxyfile 
config.status: creating doc/examples/Makefile 
config.status: creating doc/latex/Makefile 
config.status: creating doc/manpages/Makefile 
config.status: creating doc/reference/Makefile 
config.status: creating doc/reference/version.xml 
config.status: creating doc/scripts/Makefile 
config.status: creating extra/Makefile 
config.status: creating extra/includes/Makefile 
config.status: creating libdane/Makefile 
config.status: creating libdane/includes/Makefile 
config.status: creating libdane/gnutls-dane.pc 
config.status: creating gl/Makefile 
config.status: creating gl/tests/Makefile 
config.status: error: cannot find input file: 'guile/Makefile.in'

User avatar
botg
Site Admin
Posts: 32907
Joined: 2004-02-23 20:49
First name: Tim
Last name: Kosse
Contact:

Re: Weak Import Error while compiling FileZilla dependency in MacOS

#8 Post by botg » 2020-04-24 07:14

Try touching an empty file.

Post Reply