vysheng / tgl

telegram library
GNU Lesser General Public License v2.1
197 stars 224 forks source link

Proble with installation on El Capitan #95

Open bogdaniy opened 8 years ago

bogdaniy commented 8 years ago

I'm trying to compile this library on my mac

git clone --recursive https://github.com/vysheng/tgl.git
cd tgl
./configure --with-openssl=/usr/local/Cellar/openssl/1.0.2g

checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for sqrt in -lm... yes
checking for library containing clock_gettime... no
checking for openssl/ssl.h in /usr/local/Cellar/openssl/1.0.2g... yes
checking whether compiling and linking against OpenSSL works... yes
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking if zlib is wanted... yes
checking for inflateEnd in -lz... yes
checking zlib.h usability... yes
checking zlib.h presence... yes
checking for zlib.h... yes
checking execinfo.h usability... yes
checking execinfo.h presence... yes
checking for execinfo.h... yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking malloc.h usability... no
checking malloc.h presence... no
checking for malloc.h... no
checking netdb.h usability... yes
checking netdb.h presence... yes
checking for netdb.h... yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking for unistd.h... (cached) yes
checking arpa/inet.h usability... yes
checking arpa/inet.h presence... yes
checking for arpa/inet.h... yes
checking mach/mach.h usability... yes
checking mach/mach.h presence... yes
checking for mach/mach.h... yes
checking netinet/in.h usability... yes
checking netinet/in.h presence... yes
checking for netinet/in.h... yes
checking sys/file.h usability... yes
checking sys/file.h presence... yes
checking for sys/file.h... yes
checking sys/socket.h usability... yes
checking sys/socket.h presence... yes
checking for sys/socket.h... yes
checking termios.h usability... yes
checking termios.h presence... yes
checking for termios.h... yes
checking for size_t... yes
checking for uid_t in sys/types.h... yes
checking for inline... inline
checking for stdlib.h... (cached) yes
checking for GNU libc compatible malloc... yes
checking for stdlib.h... (cached) yes
checking for GNU libc compatible realloc... yes
checking for alarm... yes
checking for endpwent... yes
checking for memset... yes
checking for memmove... yes
checking for mkdir... yes
checking for select... yes
checking for socket... yes
checking for strdup... yes
checking for strndup... yes
checking for uname... yes
checking for __builtin_bswap32... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating config.h
config.status: config.h is unchanged
make

cat scheme.tl encrypted_scheme.tl binlog.tl mtproto.tl append.tl > auto/scheme.tl
gcc -I. -I. -g -O2  -I/usr/local/include -I/usr/include -I/usr/include -I/usr/local/Cellar/openssl/1.0.2g/include -DHAVE_CONFIG_H -Wall -Wextra -Werror -Wno-deprecated-declarations -fno-strict-aliasing -fno-omit-frame-pointer -ggdb -Wno-unused-parameter -fPIC -iquote ./tl-parser -c -MP -MD -MF dep/tl-parser.d -MQ objs/tl-parser.o -o objs/tl-parser.o tl-parser/tl-parser.c
gcc -I. -I. -g -O2  -I/usr/local/include -I/usr/include -I/usr/include -I/usr/local/Cellar/openssl/1.0.2g/include -DHAVE_CONFIG_H -Wall -Wextra -Werror -Wno-deprecated-declarations -fno-strict-aliasing -fno-omit-frame-pointer -ggdb -Wno-unused-parameter -fPIC -iquote ./tl-parser -c -MP -MD -MF dep/tlc.d -MQ objs/tlc.o -o objs/tlc.o tl-parser/tlc.c
gcc -I. -I. -g -O2  -I/usr/local/include -I/usr/include -I/usr/include -I/usr/local/Cellar/openssl/1.0.2g/include -DHAVE_CONFIG_H -Wall -Wextra -Werror -Wno-deprecated-declarations -fno-strict-aliasing -fno-omit-frame-pointer -ggdb -Wno-unused-parameter -fPIC -iquote ./tl-parser -c -MP -MD -MF dep/crc32.d -MQ objs/crc32.o -o objs/crc32.o tl-parser/crc32.c
gcc objs/tl-parser.o objs/tlc.o objs/crc32.o -L/usr/local/lib -L/usr/lib -L/usr/lib -L/usr/local/Cellar/openssl/1.0.2g/lib -rdynamic -ggdb -lz -lm   -lssl -lcrypto -o bin/tl-parser
bin/tl-parser -E auto/scheme.tl 2> auto/scheme2.tl  || ( cat auto/scheme2.tl && rm auto/scheme2.tl && false )
awk -f ./gen_constants_h.awk < auto/scheme2.tl > auto/constants.h
bin/tl-parser -e auto/scheme.tlo auto/scheme.tl
gcc -I. -I. -g -O2  -I/usr/local/include -I/usr/include -I/usr/include -I/usr/local/Cellar/openssl/1.0.2g/include -DHAVE_CONFIG_H -Wall -Wextra -Werror -Wno-deprecated-declarations -fno-strict-aliasing -fno-omit-frame-pointer -ggdb -Wno-unused-parameter -fPIC -c -MP -MD -MF dep/generate.d -MQ objs/generate.o -o objs/generate.o generate.c
gcc -I. -I. -g -O2  -I/usr/local/include -I/usr/include -I/usr/include -I/usr/local/Cellar/openssl/1.0.2g/include -DHAVE_CONFIG_H -Wall -Wextra -Werror -Wno-deprecated-declarations -fno-strict-aliasing -fno-omit-frame-pointer -ggdb -Wno-unused-parameter -fPIC -c -MP -MD -MF dep/tools.d -MQ objs/tools.o -o objs/tools.o tools.c
gcc objs/generate.o objs/tools.o -L/usr/local/lib -L/usr/lib -L/usr/lib -L/usr/local/Cellar/openssl/1.0.2g/lib -rdynamic -ggdb -lz -lm   -lssl -lcrypto -o bin/generate
bin/generate -g skip-header auto/scheme.tlo > auto/auto-skip.h || rm auto/auto-skip.h
bin/generate -g fetch-header auto/scheme.tlo > auto/auto-fetch.h || rm auto/auto-fetch.h
bin/generate -g store-header auto/scheme.tlo > auto/auto-store.h || rm auto/auto-store.h
bin/generate -g autocomplete-header auto/scheme.tlo > auto/auto-autocomplete.h || rm auto/auto-autocomplete.h
bin/generate -g types-header auto/scheme.tlo > auto/auto-types.h || rm auto/auto-types.h
bin/generate -g fetch-ds-header auto/scheme.tlo > auto/auto-fetch-ds.h || rm auto/auto-fetch-ds.h
bin/generate -g free-ds-header auto/scheme.tlo > auto/auto-free-ds.h || rm auto/auto-free-ds.h
bin/generate -g store-ds-header auto/scheme.tlo > auto/auto-store-ds.h || rm auto/auto-store-ds.h
bin/generate -g print-ds-header auto/scheme.tlo > auto/auto-print-ds.h || rm auto/auto-print-ds.h
gcc -I. -I. -g -O2  -I/usr/local/include -I/usr/include -I/usr/include -I/usr/local/Cellar/openssl/1.0.2g/include -DHAVE_CONFIG_H -Wall -Wextra -Werror -Wno-deprecated-declarations -fno-strict-aliasing -fno-omit-frame-pointer -ggdb -Wno-unused-parameter -fPIC -c -MP -MD -MF dep/mtproto-common.d -MQ objs/mtproto-common.o -o objs/mtproto-common.o mtproto-common.c
gcc -I. -I. -g -O2  -I/usr/local/include -I/usr/include -I/usr/include -I/usr/local/Cellar/openssl/1.0.2g/include -DHAVE_CONFIG_H -Wall -Wextra -Werror -Wno-deprecated-declarations -fno-strict-aliasing -fno-omit-frame-pointer -ggdb -Wno-unused-parameter -fPIC -c -MP -MD -MF dep/mtproto-client.d -MQ objs/mtproto-client.o -o objs/mtproto-client.o mtproto-client.c
gcc -I. -I. -g -O2  -I/usr/local/include -I/usr/include -I/usr/include -I/usr/local/Cellar/openssl/1.0.2g/include -DHAVE_CONFIG_H -Wall -Wextra -Werror -Wno-deprecated-declarations -fno-strict-aliasing -fno-omit-frame-pointer -ggdb -Wno-unused-parameter -fPIC -c -MP -MD -MF dep/queries.d -MQ objs/queries.o -o objs/queries.o queries.c
gcc -I. -I. -g -O2  -I/usr/local/include -I/usr/include -I/usr/include -I/usr/local/Cellar/openssl/1.0.2g/include -DHAVE_CONFIG_H -Wall -Wextra -Werror -Wno-deprecated-declarations -fno-strict-aliasing -fno-omit-frame-pointer -ggdb -Wno-unused-parameter -fPIC -c -MP -MD -MF dep/structures.d -MQ objs/structures.o -o objs/structures.o structures.c
gcc -I. -I. -g -O2  -I/usr/local/include -I/usr/include -I/usr/include -I/usr/local/Cellar/openssl/1.0.2g/include -DHAVE_CONFIG_H -Wall -Wextra -Werror -Wno-deprecated-declarations -fno-strict-aliasing -fno-omit-frame-pointer -ggdb -Wno-unused-parameter -fPIC -c -MP -MD -MF dep/binlog.d -MQ objs/binlog.o -o objs/binlog.o binlog.c
gcc -I. -I. -g -O2  -I/usr/local/include -I/usr/include -I/usr/include -I/usr/local/Cellar/openssl/1.0.2g/include -DHAVE_CONFIG_H -Wall -Wextra -Werror -Wno-deprecated-declarations -fno-strict-aliasing -fno-omit-frame-pointer -ggdb -Wno-unused-parameter -fPIC -c -MP -MD -MF dep/tgl.d -MQ objs/tgl.o -o objs/tgl.o tgl.c
gcc -I. -I. -g -O2  -I/usr/local/include -I/usr/include -I/usr/include -I/usr/local/Cellar/openssl/1.0.2g/include -DHAVE_CONFIG_H -Wall -Wextra -Werror -Wno-deprecated-declarations -fno-strict-aliasing -fno-omit-frame-pointer -ggdb -Wno-unused-parameter -fPIC -c -MP -MD -MF dep/updates.d -MQ objs/updates.o -o objs/updates.o updates.c
gcc -I. -I. -g -O2  -I/usr/local/include -I/usr/include -I/usr/include -I/usr/local/Cellar/openssl/1.0.2g/include -DHAVE_CONFIG_H -Wall -Wextra -Werror -Wno-deprecated-declarations -fno-strict-aliasing -fno-omit-frame-pointer -ggdb -Wno-unused-parameter -fPIC -c -MP -MD -MF dep/tg-mime-types.d -MQ objs/tg-mime-types.o -o objs/tg-mime-types.o tg-mime-types.c
gcc -I. -I. -g -O2  -I/usr/local/include -I/usr/include -I/usr/include -I/usr/local/Cellar/openssl/1.0.2g/include -DHAVE_CONFIG_H -Wall -Wextra -Werror -Wno-deprecated-declarations -fno-strict-aliasing -fno-omit-frame-pointer -ggdb -Wno-unused-parameter -fPIC -c -MP -MD -MF dep/mtproto-utils.d -MQ objs/mtproto-utils.o -o objs/mtproto-utils.o mtproto-utils.c
bin/generate -g skip auto/scheme.tlo > auto/auto-skip.c || rm auto/auto-skip.c
gcc -I. -I. -g -O2  -I/usr/local/include -I/usr/include -I/usr/include -I/usr/local/Cellar/openssl/1.0.2g/include -DHAVE_CONFIG_H -Wall -Wextra -Werror -Wno-deprecated-declarations -fno-strict-aliasing -fno-omit-frame-pointer -ggdb -Wno-unused-parameter -fPIC -iquote ./tgl -c -MP -MD -MF dep/auto-skip.d -MQ objs/auto-skip.o -o objs/auto/auto-skip.o auto/auto-skip.c
bin/generate -g fetch auto/scheme.tlo > auto/auto-fetch.c || rm auto/auto-fetch.c
gcc -I. -I. -g -O2  -I/usr/local/include -I/usr/include -I/usr/include -I/usr/local/Cellar/openssl/1.0.2g/include -DHAVE_CONFIG_H -Wall -Wextra -Werror -Wno-deprecated-declarations -fno-strict-aliasing -fno-omit-frame-pointer -ggdb -Wno-unused-parameter -fPIC -iquote ./tgl -c -MP -MD -MF dep/auto-fetch.d -MQ objs/auto-fetch.o -o objs/auto/auto-fetch.o auto/auto-fetch.c
bin/generate -g store auto/scheme.tlo > auto/auto-store.c || rm auto/auto-store.c
gcc -I. -I. -g -O2  -I/usr/local/include -I/usr/include -I/usr/include -I/usr/local/Cellar/openssl/1.0.2g/include -DHAVE_CONFIG_H -Wall -Wextra -Werror -Wno-deprecated-declarations -fno-strict-aliasing -fno-omit-frame-pointer -ggdb -Wno-unused-parameter -fPIC -iquote ./tgl -c -MP -MD -MF dep/auto-store.d -MQ objs/auto-store.o -o objs/auto/auto-store.o auto/auto-store.c
bin/generate -g autocomplete auto/scheme.tlo > auto/auto-autocomplete.c || rm auto/auto-autocomplete.c
gcc -I. -I. -g -O2  -I/usr/local/include -I/usr/include -I/usr/include -I/usr/local/Cellar/openssl/1.0.2g/include -DHAVE_CONFIG_H -Wall -Wextra -Werror -Wno-deprecated-declarations -fno-strict-aliasing -fno-omit-frame-pointer -ggdb -Wno-unused-parameter -fPIC -iquote ./tgl -c -MP -MD -MF dep/auto-autocomplete.d -MQ objs/auto-autocomplete.o -o objs/auto/auto-autocomplete.o auto/auto-autocomplete.c
bin/generate -g types auto/scheme.tlo > auto/auto-types.c || rm auto/auto-types.c
gcc -I. -I. -g -O2  -I/usr/local/include -I/usr/include -I/usr/include -I/usr/local/Cellar/openssl/1.0.2g/include -DHAVE_CONFIG_H -Wall -Wextra -Werror -Wno-deprecated-declarations -fno-strict-aliasing -fno-omit-frame-pointer -ggdb -Wno-unused-parameter -fPIC -iquote ./tgl -c -MP -MD -MF dep/auto-types.d -MQ objs/auto-types.o -o objs/auto/auto-types.o auto/auto-types.c
bin/generate -g fetch-ds auto/scheme.tlo > auto/auto-fetch-ds.c || rm auto/auto-fetch-ds.c
gcc -I. -I. -g -O2  -I/usr/local/include -I/usr/include -I/usr/include -I/usr/local/Cellar/openssl/1.0.2g/include -DHAVE_CONFIG_H -Wall -Wextra -Werror -Wno-deprecated-declarations -fno-strict-aliasing -fno-omit-frame-pointer -ggdb -Wno-unused-parameter -fPIC -iquote ./tgl -c -MP -MD -MF dep/auto-fetch-ds.d -MQ objs/auto-fetch-ds.o -o objs/auto/auto-fetch-ds.o auto/auto-fetch-ds.c
bin/generate -g free-ds auto/scheme.tlo > auto/auto-free-ds.c || rm auto/auto-free-ds.c
gcc -I. -I. -g -O2  -I/usr/local/include -I/usr/include -I/usr/include -I/usr/local/Cellar/openssl/1.0.2g/include -DHAVE_CONFIG_H -Wall -Wextra -Werror -Wno-deprecated-declarations -fno-strict-aliasing -fno-omit-frame-pointer -ggdb -Wno-unused-parameter -fPIC -iquote ./tgl -c -MP -MD -MF dep/auto-free-ds.d -MQ objs/auto-free-ds.o -o objs/auto/auto-free-ds.o auto/auto-free-ds.c
bin/generate -g store-ds auto/scheme.tlo > auto/auto-store-ds.c || rm auto/auto-store-ds.c
gcc -I. -I. -g -O2  -I/usr/local/include -I/usr/include -I/usr/include -I/usr/local/Cellar/openssl/1.0.2g/include -DHAVE_CONFIG_H -Wall -Wextra -Werror -Wno-deprecated-declarations -fno-strict-aliasing -fno-omit-frame-pointer -ggdb -Wno-unused-parameter -fPIC -iquote ./tgl -c -MP -MD -MF dep/auto-store-ds.d -MQ objs/auto-store-ds.o -o objs/auto/auto-store-ds.o auto/auto-store-ds.c
bin/generate -g print-ds auto/scheme.tlo > auto/auto-print-ds.c || rm auto/auto-print-ds.c
gcc -I. -I. -g -O2  -I/usr/local/include -I/usr/include -I/usr/include -I/usr/local/Cellar/openssl/1.0.2g/include -DHAVE_CONFIG_H -Wall -Wextra -Werror -Wno-deprecated-declarations -fno-strict-aliasing -fno-omit-frame-pointer -ggdb -Wno-unused-parameter -fPIC -iquote ./tgl -c -MP -MD -MF dep/auto-print-ds.d -MQ objs/auto-print-ds.o -o objs/auto/auto-print-ds.o auto/auto-print-ds.c
rm -f libs/libtgl.a && ar ruv libs/libtgl.a objs/mtproto-common.o objs/mtproto-client.o objs/queries.o objs/structures.o objs/binlog.o objs/tgl.o objs/updates.o objs/tg-mime-types.o objs/mtproto-utils.o  objs/tools.o
ar: creating archive libs/libtgl.a
a - objs/mtproto-common.o
a - objs/mtproto-client.o
a - objs/queries.o
a - objs/structures.o
a - objs/binlog.o
a - objs/tgl.o
a - objs/updates.o
a - objs/tg-mime-types.o
a - objs/mtproto-utils.o
a - objs/tools.o
gcc -shared -o libs/libtgl.so objs/mtproto-common.o objs/mtproto-client.o objs/queries.o objs/structures.o objs/binlog.o objs/tgl.o objs/updates.o objs/tg-mime-types.o objs/mtproto-utils.o  objs/tools.o -L/usr/local/lib -L/usr/lib -L/usr/lib -L/usr/local/Cellar/openssl/1.0.2g/lib -rdynamic -ggdb -lz -lm   -lssl -lcrypto
Undefined symbols for architecture x86_64:
  "_fetch_ds_type_any", referenced from:
      _tglq_query_result in queries.o
  "_fetch_ds_type_binlog_update", referenced from:
      _replay_log_event in binlog.o
  "_fetch_ds_type_decrypted_message_layer", referenced from:
      _tglf_fetch_encrypted_message_new in structures.o
  "_fetch_ds_type_decrypted_message_media", referenced from:
      _send_part in queries.o
  "_fetch_ds_type_send_message_action", referenced from:
      _tglf_fetch_typing in structures.o
  "_fetch_ds_type_updates", referenced from:
      _tglu_work_any_updates in updates.o
  "_free_ds_type_any", referenced from:
      _tglq_query_result in queries.o
  "_free_ds_type_binlog_update", referenced from:
      _replay_log_event in binlog.o
  "_free_ds_type_decrypted_message_layer", referenced from:
      _tglf_fetch_encrypted_message_new in structures.o
  "_free_ds_type_decrypted_message_media", referenced from:
      _send_part in queries.o
  "_free_ds_type_send_message_action", referenced from:
      _tglf_fetch_typing in structures.o
  "_free_ds_type_update", referenced from:
      _msg_send_on_answer in queries.o
  "_free_ds_type_updates", referenced from:
      _tglu_work_any_updates in updates.o
  "_skip_type_any", referenced from:
      _process_respq_answer in mtproto-client.o
      _process_dh_answer in mtproto-client.o
      _process_auth_complete in mtproto-client.o
      _tglq_query_result in queries.o
      _send_part in queries.o
      _replay_log_event in binlog.o
  "_skip_type_decrypted_message_layer", referenced from:
      _tglf_fetch_encrypted_message_new in structures.o
  "_store_ds_type_bot_info", referenced from:
      _bl_do_user_new in binlog.o
  "_store_ds_type_chat_photo", referenced from:
      _bl_do_chat_new in binlog.o
  "_store_ds_type_decrypted_message_action", referenced from:
      _bl_do_create_message_encr_new in binlog.o
  "_store_ds_type_decrypted_message_media", referenced from:
      _bl_do_create_message_encr_new in binlog.o
  "_store_ds_type_encrypted_file", referenced from:
      _bl_do_create_message_encr_new in binlog.o
  "_store_ds_type_message_action", referenced from:
      _bl_do_create_message_new in binlog.o
  "_store_ds_type_message_media", referenced from:
      _bl_do_create_message_new in binlog.o
  "_store_ds_type_photo", referenced from:
      _bl_do_user_new in binlog.o
      _bl_do_chat_new in binlog.o
  "_store_ds_type_reply_markup", referenced from:
      _bl_do_create_message_new in binlog.o
  "_store_ds_type_user_profile_photo", referenced from:
      _bl_do_user_new in binlog.o
  "_store_ds_type_vector", referenced from:
      _bl_do_chat_new in binlog.o
  "_tgl_paramed_type_free", referenced from:
      _ext_query_on_answer in queries.o
  "_tglf_extf_print_ds", referenced from:
      _ext_query_on_answer in queries.o
  "_tglf_extf_store", referenced from:
      _tgl_do_send_extf in queries.o
  "_tl_type_account_password", referenced from:
      _.compoundliteral214 in queries.o
      _.compoundliteral216 in queries.o
  "_tl_type_auth_authorization", referenced from:
      _.compoundliteral136 in queries.o
      _.compoundliteral180 in queries.o
      _.compoundliteral220 in queries.o
  "_tl_type_auth_exported_authorization", referenced from:
      _.compoundliteral179 in queries.o
  "_tl_type_auth_sent_code", referenced from:
      _.compoundliteral132 in queries.o
  "_tl_type_bare_int", referenced from:
      _.compoundliteral193 in queries.o
  "_tl_type_binlog_update", referenced from:
      _replay_log_event in binlog.o
  "_tl_type_bool", referenced from:
      _.compoundliteral119 in queries.o
      _.compoundliteral135 in queries.o
      _.compoundliteral154 in queries.o
      _.compoundliteral198 in queries.o
      _.compoundliteral207 in queries.o
      _.compoundliteral222 in queries.o
      _.compoundliteral223 in queries.o
      ...
  "_tl_type_bot_info", referenced from:
      _bl_do_user_new in binlog.o
  "_tl_type_chat_participant", referenced from:
      _bl_do_chat_new in binlog.o
  "_tl_type_chat_photo", referenced from:
      _bl_do_chat_new in binlog.o
  "_tl_type_config", referenced from:
      _.compoundliteral130 in queries.o
  "_tl_type_contacts_contacts", referenced from:
      _.compoundliteral137 in queries.o
  "_tl_type_contacts_imported_contacts", referenced from:
      _.compoundliteral182 in queries.o
  "_tl_type_contacts_link", referenced from:
      _.compoundliteral185 in queries.o
  "_tl_type_decrypted_message_action", referenced from:
      _bl_do_create_message_encr_new in binlog.o
  "_tl_type_decrypted_message_layer", referenced from:
      _tglf_fetch_encrypted_message_new in structures.o
  "_tl_type_decrypted_message_media", referenced from:
      _send_part in queries.o
      _bl_do_create_message_encr_new in binlog.o
  "_tl_type_encrypted_chat", referenced from:
      _.compoundliteral123 in queries.o
      _.compoundliteral124 in queries.o
  "_tl_type_encrypted_file", referenced from:
      _bl_do_create_message_encr_new in binlog.o
  "_tl_type_exported_chat_invite", referenced from:
      _.compoundliteral202 in queries.o
  "_tl_type_message_action", referenced from:
      _bl_do_create_message_new in binlog.o
  "_tl_type_message_media", referenced from:
      _bl_do_create_message_new in binlog.o
  "_tl_type_messages_affected_history", referenced from:
      _.compoundliteral141 in queries.o
  "_tl_type_messages_affected_messages", referenced from:
      _.compoundliteral192 in queries.o
  "_tl_type_messages_chat_full", referenced from:
      _.compoundliteral167 in queries.o
  "_tl_type_messages_dh_config", referenced from:
      _.compoundliteral126 in queries.o
  "_tl_type_messages_dialogs", referenced from:
      _.compoundliteral146 in queries.o
  "_tl_type_messages_messages", referenced from:
      _.compoundliteral143 in queries.o
      _.compoundliteral186 in queries.o
      _.compoundliteral199 in queries.o
  "_tl_type_messages_sent_encrypted_message", referenced from:
      _.compoundliteral in queries.o
      _.compoundliteral163 in queries.o
  "_tl_type_messages_sent_message", referenced from:
      _.compoundliteral138 in queries.o
  "_tl_type_photo", referenced from:
      _bl_do_user_new in binlog.o
      _bl_do_chat_new in binlog.o
  "_tl_type_photos_photo", referenced from:
      _.compoundliteral160 in queries.o
  "_tl_type_reply_markup", referenced from:
      _bl_do_create_message_new in binlog.o
  "_tl_type_res_p_q", referenced from:
      _process_respq_answer in mtproto-client.o
  "_tl_type_send_message_action", referenced from:
      _tglf_fetch_typing in structures.o
  "_tl_type_server_d_h_inner_data", referenced from:
      _process_dh_answer in mtproto-client.o
  "_tl_type_server_d_h_params", referenced from:
      _process_dh_answer in mtproto-client.o
  "_tl_type_set_client_d_h_params_answer", referenced from:
      _process_auth_complete in mtproto-client.o
  "_tl_type_update", referenced from:
      _msg_send_on_answer in queries.o
  "_tl_type_updates", referenced from:
      _.compoundliteral166 in queries.o
      _tglu_work_any_updates in updates.o
  "_tl_type_updates_difference", referenced from:
      _.compoundliteral188 in queries.o
  "_tl_type_updates_state", referenced from:
      _.compoundliteral187 in queries.o
      _.compoundliteral191 in queries.o
  "_tl_type_upload_file", referenced from:
      _.compoundliteral174 in queries.o
  "_tl_type_user", referenced from:
      _.compoundliteral164 in queries.o
      _.compoundliteral165 in queries.o
      _.compoundliteral197 in queries.o
  "_tl_type_user_full", referenced from:
      _.compoundliteral168 in queries.o
  "_tl_type_user_profile_photo", referenced from:
      _bl_do_user_new in binlog.o
  "_tl_type_vector", referenced from:
      _.compoundliteral195 in queries.o
      _bl_do_chat_new in binlog.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [libs/libtgl.so] Error 1
BenWiederhake commented 8 years ago

Sounds a lot like you're trying to compile the master branch, which (by now) is heavily outdated, since this is a known issue:

Have fun!