Compiling on Mac OS X Tiger

Moderator: Project members

Message
Author
caramel1982
500 Command not understood
Posts: 1
Joined: 2009-05-19 06:54
First name: Caramel
Last name: Lemon

Re: Compiling on Mac OS X Tiger

#16 Post by caramel1982 » 2009-05-19 07:02

I just bought a leopard last week. I wish I would never have much problems with it.

I heard from my friends that leopard is great compared to tiger. I hope this is true.

Simulation pret immobilier

jdratlif
226 Transfer OK
Posts: 392
Joined: 2008-12-30 10:30
First name: John
Last name: Ratliff
Location: In a small white padded room.

Re: Compiling on Mac OS X Tiger

#17 Post by jdratlif » 2009-05-19 14:16

I'm not sure what you're saying, but you don't need to compile your own for leopard as the official binaries work with it.
http://jdrrant.blogspot.com/ - CODEpendent Blog

chatchavan
504 Command not implemented
Posts: 8
Joined: 2009-06-24 11:37
First name: Chatchavan
Last name: Wacharamanotham

Re: Compiling on Mac OS X Tiger

#18 Post by chatchavan » 2009-06-24 11:46

Hi jdratlif,

I am trying to compile FileZilla on Leopard. One thing that I have to modify is the "$HOME". When I use it, it doesn't find libidn. Fortunately, I have no space character in my home path, so I changed it to $HOME.

But I got stuck with another problem. It says that libgnutls 2.0.4 or greater was not found. I believe that I installed it according to your instruction. I also tried to execute

Code: Select all

libgnutls-config --version
which output 2.6.6 Do you have any idea why?

Here is an error message:

Code: Select all

checking for LIBGNUTLS... no
checking for libgnutls-config... /Users/Chat/filezilla/gnutls/bin/libgnutls-config
checking for libgnutls - version >= 2.0.4... no
*** Could not run libgnutls test program, checking why...
*** The test program failed to compile or link. See the file config.log for the
*** exact error that occured. This usually means LIBGNUTLS was incorrectly installed
*** or that you have moved LIBGNUTLS since it was installed. In the latter case, you
*** may want to edit the libgnutls-config script: /Users/Chat/filezilla/gnutls/bin/libgnutls-config
configure: error:
***
*** libgnutls 2.0.4 or greater was not found. You may want to get it from
*** ftp://ftp.gnutls.org/pub/gnutls/
pc-71-016:filezilla-3.2.5 Chat$ /Users/Chat/filezilla/gnutls/bin/libgnutls-config --version
2.6.6

Here is the tail of message when I install libgnutls

Code: Select all

Making install in lib
Making install in x509
make[3]: Nothing to be done for `install-exec-am'.
make[3]: Nothing to be done for `install-data-am'.
Making install in minitasn1
make[3]: Nothing to be done for `install-exec-am'.
make[3]: Nothing to be done for `install-data-am'.
Making install in opencdk
make[3]: Nothing to be done for `install-exec-am'.
make[3]: Nothing to be done for `install-data-am'.
Making install in openpgp
make[3]: Nothing to be done for `install-exec-am'.
make[3]: Nothing to be done for `install-data-am'.
test -z "/Users/Chat/filezilla/gnutls/bin" || ../build-aux/install-sh -c -d "/Users/Chat/filezilla/gnutls/bin"
 /usr/bin/install -c libgnutls-config '/Users/Chat/filezilla/gnutls/bin'
test -z "" || ../build-aux/install-sh -c -d ""
test -z "/Users/Chat/filezilla/gnutls/lib" || ../build-aux/install-sh -c -d "/Users/Chat/filezilla/gnutls/lib"
 /bin/sh ../libtool   --mode=install /usr/bin/install -c   libgnutls.la libgnutlsxx.la '/Users/Chat/filezilla/gnutls/lib'
libtool: install: /usr/bin/install -c .libs/libgnutls.lai /Users/Chat/filezilla/gnutls/lib/libgnutls.la
libtool: install: /usr/bin/install -c .libs/libgnutlsxx.lai /Users/Chat/filezilla/gnutls/lib/libgnutlsxx.la
libtool: install: /usr/bin/install -c .libs/libgnutls.a /Users/Chat/filezilla/gnutls/lib/libgnutls.a
libtool: install: chmod 644 /Users/Chat/filezilla/gnutls/lib/libgnutls.a
libtool: install: ranlib /Users/Chat/filezilla/gnutls/lib/libgnutls.a
libtool: install: /usr/bin/install -c .libs/libgnutlsxx.a /Users/Chat/filezilla/gnutls/lib/libgnutlsxx.a
libtool: install: chmod 644 /Users/Chat/filezilla/gnutls/lib/libgnutlsxx.a
libtool: install: ranlib /Users/Chat/filezilla/gnutls/lib/libgnutlsxx.a
----------------------------------------------------------------------
Libraries have been installed in:
   /Users/Chat/filezilla/gnutls/lib

If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the `-LLIBDIR'
flag during linking and do at least one of the following:
   - add LIBDIR to the `DYLD_LIBRARY_PATH' environment variable
     during execution

See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.
----------------------------------------------------------------------
test -z "/Users/Chat/filezilla/gnutls/share/aclocal" || ../build-aux/install-sh -c -d "/Users/Chat/filezilla/gnutls/share/aclocal"
 /usr/bin/install -c -m 644 libgnutls.m4 '/Users/Chat/filezilla/gnutls/share/aclocal'
test -z "/Users/Chat/filezilla/gnutls/lib/pkgconfig" || ../build-aux/install-sh -c -d "/Users/Chat/filezilla/gnutls/lib/pkgconfig"
 /usr/bin/install -c -m 644 gnutls.pc '/Users/Chat/filezilla/gnutls/lib/pkgconfig'
Making install in tests
Making install in rsa-md5-collision
make[3]: Nothing to be done for `install-exec-am'.
make[3]: Nothing to be done for `install-data-am'.
Making install in pkcs1-padding
make[3]: Nothing to be done for `install-exec-am'.
make[3]: Nothing to be done for `install-data-am'.
Making install in pkcs8-decode
make[3]: Nothing to be done for `install-exec-am'.
make[3]: Nothing to be done for `install-data-am'.
Making install in pkcs12-decode
make[3]: Nothing to be done for `install-exec-am'.
make[3]: Nothing to be done for `install-data-am'.
Making install in userid
make[3]: Nothing to be done for `install-exec-am'.
make[3]: Nothing to be done for `install-data-am'.
Making install in pathlen
make[3]: Nothing to be done for `install-exec-am'.
make[3]: Nothing to be done for `install-data-am'.
Making install in key-id
make[3]: Nothing to be done for `install-exec-am'.
make[3]: Nothing to be done for `install-data-am'.
Making install in sha2
make[3]: Nothing to be done for `install-exec-am'.
make[3]: Nothing to be done for `install-data-am'.
Making install in hostname-check
make[3]: Nothing to be done for `install-exec-am'.
make[3]: Nothing to be done for `install-data-am'.
Making install in openpgp
make[3]: Nothing to be done for `install-exec-am'.
make[3]: Nothing to be done for `install-data-am'.
Making install in openpgp-certs
make[3]: Nothing to be done for `install-exec-am'.
make[3]: Nothing to be done for `install-data-am'.
make[3]: Nothing to be done for `install-exec-am'.
make[3]: Nothing to be done for `install-data-am'.
Making install in po
../build-aux/install-sh -c -d /Users/Chat/filezilla/gnutls/share
installing en@boldquot.gmo as /Users/Chat/filezilla/gnutls/share/locale/en@boldquot/LC_MESSAGES/gnutls.mo
installing en@quot.gmo as /Users/Chat/filezilla/gnutls/share/locale/en@quot/LC_MESSAGES/gnutls.mo
installing de.gmo as /Users/Chat/filezilla/gnutls/share/locale/de/LC_MESSAGES/gnutls.mo
installing fr.gmo as /Users/Chat/filezilla/gnutls/share/locale/fr/LC_MESSAGES/gnutls.mo
installing ms.gmo as /Users/Chat/filezilla/gnutls/share/locale/ms/LC_MESSAGES/gnutls.mo
installing nl.gmo as /Users/Chat/filezilla/gnutls/share/locale/nl/LC_MESSAGES/gnutls.mo
installing pl.gmo as /Users/Chat/filezilla/gnutls/share/locale/pl/LC_MESSAGES/gnutls.mo
installing sv.gmo as /Users/Chat/filezilla/gnutls/share/locale/sv/LC_MESSAGES/gnutls.mo
installing vi.gmo as /Users/Chat/filezilla/gnutls/share/locale/vi/LC_MESSAGES/gnutls.mo
if test "gnutls" = "gettext-tools"; then \
	  ../build-aux/install-sh -c -d /Users/Chat/filezilla/gnutls/share/gettext/po; \
	  for file in Makefile.in.in remove-potcdate.sin quot.sed boldquot.sed en@quot.header en@boldquot.header insert-header.sin Rules-quot   Makevars.template; do \
	    /usr/bin/install -c -m 644 ./$file \
			    /Users/Chat/filezilla/gnutls/share/gettext/po/$file; \
	  done; \
	  for file in Makevars; do \
	    rm -f /Users/Chat/filezilla/gnutls/share/gettext/po/$file; \
	  done; \
	else \
	  : ; \
	fi
make[2]: Nothing to be done for `install-exec-am'.
make[2]: Nothing to be done for `install-data-am'.
Thanks!

chatchavan
504 Command not implemented
Posts: 8
Joined: 2009-06-24 11:37
First name: Chatchavan
Last name: Wacharamanotham

Re: Compiling on Mac OS X Tiger

#19 Post by chatchavan » 2009-06-24 12:42

Another update.

I set PATH using this:

Code: Select all

export PATH="$HOME"/filezilla/wxMac-2.8.10/bin:"$HOME"/filezilla/gettext/bin:"$HOME"/filezilla/libidn/$PATH
I also try with PKG_CONFIG_PATH variable:

Code: Select all

export PKG_CONFIG_PATH=$HOME/filezilla/gnutls/libech
None of this seems to work.

jdratlif
226 Transfer OK
Posts: 392
Joined: 2008-12-30 10:30
First name: John
Last name: Ratliff
Location: In a small white padded room.

Re: Compiling on Mac OS X Tiger

#20 Post by jdratlif » 2009-06-24 13:29

Did you specify --with-libgnutls-path=blahblahblah in the configure line of FileZilla?

I will retest all the instructions later, including "$HOME", which I admit I've never used, but it should work. I use slightly different paths myself. I stick everything inside ~/unix.
http://jdrrant.blogspot.com/ - CODEpendent Blog

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

Re: Compiling on Mac OS X Tiger

#21 Post by botg » 2009-06-24 13:45

Oh by the way:
*** The test program failed to compile or link. See the file config.log for the
*** exact error that occured.

jdratlif
226 Transfer OK
Posts: 392
Joined: 2008-12-30 10:30
First name: John
Last name: Ratliff
Location: In a small white padded room.

Re: Compiling on Mac OS X Tiger

#22 Post by jdratlif » 2009-06-24 23:02

chatchavan wrote:Hi jdratlif,

I am trying to compile FileZilla on Leopard. One thing that I have to modify is the "$HOME". When I use it, it doesn't find libidn. Fortunately, I have no space character in my home path, so I changed it to $HOME.
You are correct, that seems to present a difficulty. I will have to try and create a user with a space to figure out a way around this. For now I will remove the quotes.

edit: I think Mac is clever. I can't seem to create a user with spaces in their username. It won't let you put them in on the account settings page. So I guess there is no need for the quotes.
chatchavan wrote:Here is an error message:

Code: Select all

checking for LIBGNUTLS... no
checking for libgnutls-config... /Users/Chat/filezilla/gnutls/bin/libgnutls-config
checking for libgnutls - version >= 2.0.4... no
*** Could not run libgnutls test program, checking why...
*** The test program failed to compile or link. See the file config.log for the
*** exact error that occured. This usually means LIBGNUTLS was incorrectly installed
*** or that you have moved LIBGNUTLS since it was installed. In the latter case, you
*** may want to edit the libgnutls-config script: /Users/Chat/filezilla/gnutls/bin/libgnutls-config
configure: error:
***
*** libgnutls 2.0.4 or greater was not found. You may want to get it from
*** ftp://ftp.gnutls.org/pub/gnutls/
pc-71-016:filezilla-3.2.5 Chat$ /Users/Chat/filezilla/gnutls/bin/libgnutls-config --version
2.6.6
Okay, next guess is you forgot to add the -lz to the libgnutls-config script. I did that once.

http://wiki.filezilla-project.org/Compi ... _X#GNU_TLS

Aside from the libidn thing I ran across, I don't find any other problems with the directions. I copied and pasted the text from the wiki and all seems to be working fine.
http://jdrrant.blogspot.com/ - CODEpendent Blog

chatchavan
504 Command not implemented
Posts: 8
Joined: 2009-06-24 11:37
First name: Chatchavan
Last name: Wacharamanotham

Re: Compiling on Mac OS X Tiger

#23 Post by chatchavan » 2009-06-28 20:41

Thanks for the reply.

I didn't forget to add lz. :D

However, I managed to compile it now. There are two things that I did in this attempt:
1) I didn't use multi-core compilation. (i.e. didn't add -j3 after nice make)
2) I set the PKG_CONFIG_PATH variable to point to folder that contain gnutls.pc. I did this before, but it wasn't working.

I would like to confirm whether multi-core compilation is the problem or not, but I don't want to risk being unable to compile again. :)

jdratlif
226 Transfer OK
Posts: 392
Joined: 2008-12-30 10:30
First name: John
Last name: Ratliff
Location: In a small white padded room.

Re: Compiling on Mac OS X Tiger

#24 Post by jdratlif » 2009-06-28 21:51

No, I see what you did now. You are using the 2.8 series of gnutls, which the wiki doesn't yet cover. I didn't notice problems with this until I tried it myself just now.

I will be updating the wiki very soon.

The multi-core compile shouldn't be a problem. I just rebuilt everything and I used make -j4.
http://jdrrant.blogspot.com/ - CODEpendent Blog

chatchavan
504 Command not implemented
Posts: 8
Joined: 2009-06-24 11:37
First name: Chatchavan
Last name: Wacharamanotham

Re: Compiling on Mac OS X Tiger

#25 Post by chatchavan » 2009-06-28 22:01

Hmm. I use GNU TLS 2.6.6. (At least it was what the file said. :) )

jdratlif
226 Transfer OK
Posts: 392
Joined: 2008-12-30 10:30
First name: John
Last name: Ratliff
Location: In a small white padded room.

Re: Compiling on Mac OS X Tiger

#26 Post by jdratlif » 2009-06-28 23:44

Okay, I give up. I don't know what you did, or how you did it, but the wiki now has directions for using the 2.8 series since botg has been fixing bugs.

Also, you added pkg-config paths to the wiki, but pkg-config is not installed on Leopard by default, so that shouldn't affect things. It is needed for 2.8 though, since the libgnutls-config program has been replaced by pkg-config.

I would be curious to know what happens if you remove the entire ~/filezilla directory, erase your .bash_history, and start from scratch. If it doesn't work, I'd very much like to see your .bash_history file.
http://jdrrant.blogspot.com/ - CODEpendent Blog

chatchavan
504 Command not implemented
Posts: 8
Joined: 2009-06-24 11:37
First name: Chatchavan
Last name: Wacharamanotham

Re: Compiling on Mac OS X Tiger

#27 Post by chatchavan » 2009-06-29 19:32

Hi,

Today, I created a new user account and removed files from /tmp and try to compile it again. It didn't work. Here are the list of files I used:

FileZilla_3.2.6_src.tar.bz2
gettext-0.17.tar.gz
gnutls-2.6.6.tar.bz2
libgcrypt-1.4.4.tar.gz
libgpg-error-1.7.tar.gz
libidn-1.15.tar.gz
wxMac-2.8.10.tar
gnutls.patch (previous version from the wiki)

I followed the old instruction and it didn't work. Then, I tried adding PKG_CONFIG_PATH variable, but it also didn't work. Finally, I installed pkg-config as you said in the wiki and it works. Probably, gnutls 2.6.6 also needs the pkg-config?

I sent you .bash_history via PM.

jdratlif
226 Transfer OK
Posts: 392
Joined: 2008-12-30 10:30
First name: John
Last name: Ratliff
Location: In a small white padded room.

Re: Compiling on Mac OS X Tiger

#28 Post by jdratlif » 2009-06-29 19:46

From the bash_history, it appears you ran patch after you configured gnutls. You must run patch before configure for gnutls 2.6.6, because it modifies Makefile.in, which configure uses to create the Makefile. make install will fail without the patch. Did the make install for gnutls appear to succeed? It should've failed with some error about a missing _gnu_log_func (or something similar) in libgnutls.a.

The new patch changes for 2.8 changes the Makefile directly because the pre-installed Mac version of automake is too old (1.10 instead of 1.10.1; go figure).

I'm fairly sure 2.6 doesn't use pkg-config. That was added in 2.8 to get rid of the specialized libgnutls-config with the more standard pkg-config. A lot of packages are/have been doing that for some time now.
http://jdrrant.blogspot.com/ - CODEpendent Blog

chatchavan
504 Command not implemented
Posts: 8
Joined: 2009-06-24 11:37
First name: Chatchavan
Last name: Wacharamanotham

Re: Compiling on Mac OS X Tiger

#29 Post by chatchavan » 2009-06-29 20:03

It did failed, but I think that I patched it and run configure again (obviously from the log I didn't).

Anyway, I can try everything again, but I am thinking that it may be more beneficial to test your new setting. What do you think?

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

Re: Compiling on Mac OS X Tiger

#30 Post by botg » 2009-06-29 22:41

I think it should be sufficient to just call make && make install from the lib subdirectory of GnuTLS, the other stuff isn't needed by FileZilla.

Post Reply