Open maex3000 opened 9 years ago
got the same error after executing make
try to delete fPIC from Makefile.in
@vysheng this didn't help, got the same error
you should reconfigure
wow, thought it would rewrite Makefile.in
to its default state.
well, after rebuilding i got this
$ make
gcc -I. -I. -I./tgl -g -O2 -I/usr/local/include -I/usr/include -I/usr/include -DHAVE_CONFIG_H -Wall -Werror -Wextra -Wno-missing-field-initializers -Wno-deprecated-declarations -fno-strict-aliasing -fno-omit-frame-pointer -ggdb -Wno-unused-parameter -iquote ./tgl/tl-parser -c -MP -MD -MF dep/tl-parser.d -MQ objs/tl-parser.o -o objs/tl-parser.o tgl/tl-parser/tl-parser.c
gcc -I. -I. -I./tgl -g -O2 -I/usr/local/include -I/usr/include -I/usr/include -DHAVE_CONFIG_H -Wall -Werror -Wextra -Wno-missing-field-initializers -Wno-deprecated-declarations -fno-strict-aliasing -fno-omit-frame-pointer -ggdb -Wno-unused-parameter -iquote ./tgl/tl-parser -c -MP -MD -MF dep/tlc.d -MQ objs/tlc.o -o objs/tlc.o tgl/tl-parser/tlc.c
tgl/tl-parser/tlc.c:40:22: fatal error: execinfo.h: No such file or directory
#include <execinfo.h>
^
compilation terminated.
Makefile.tl-parser:4: recipe for target 'objs/tlc.o' failed
make: *** [objs/tlc.o] Error 1
try new version? (don't forget to run git submodule update --recursive
after git pull)
ok, i executed git pull
& git submodule update --recursive
, and got this
$ make
gcc objs/tl-parser.o objs/tlc.o objs/crc32.o -L/usr/local/lib -L/usr/lib -L/usr/lib -rdynamic -ggdb -levent -lz -levent -lm -lreadline -lssl -lz -lcrypto -lz -ldl -lpthread -lutil -o bin/tl-parser
gcc: error: unrecognized command line option ‘-rdynamic’
Makefile.tl-parser:7: recipe for target 'bin/tl-parser' failed
make: *** [bin/tl-parser] Error 1
so i decided to remove -rdynamic
from Makefile.in
, and finally got this
$ make
gcc -I. -I. -I./tgl -g -O2 -I/usr/local/include -I/usr/include -I/usr/include -DHAVE_CONFIG_H -Wall -Werror -Wextra -Wno-missing-field-initializers -Wno-deprecated-declarations -fno-strict-aliasing -fno-omit-frame-pointer -ggdb -Wno-unused-parameter -iquote ./tgl -c -MP -MD -MF dep/generate.d -MQ objs/generate.o -o objs/generate.o tgl/generate.c
tgl/generate.c:28:22: fatal error: execinfo.h: No such file or directory
#include <execinfo.h>
^
compilation terminated.
Makefile.tgl:20: recipe for target 'objs/generate.o' failed
make: *** [objs/generate.o] Error 1
same problem as previous. Fixed
I'm having problems with compiling loop.o, I have removed -rdynamic and fPIC from makefile
$ make
gcc -I. -I. -I./tgl -g -O2 -I/usr/local/include -I/usr/include -I/usr/include -I/usr/include/python3.4m -I/usr/include -DHAVE_CONFIG_H -Wall -Werror -Wextra -Wno-missing-field-initializers -Wno-deprecated-declarations -fno-strict-aliasing -fno-omit-frame-pointer -ggdb -Wno-unused-parameter -c -MP -MD -MF dep/loop.d -MQ objs/loop.o -o objs/loop.o loop.c
In file included from /usr/include/python3.4m/unicodeobject.h:58:0,
from /usr/include/python3.4m/Python.h:77,
from python-tg.h:23,
from loop.c:25:
loop.c:386:37: error: expected ‘;’, ‘,’ or ‘)’ before numeric constant
void write_secret_chat (tgl_peer_t *_P, void *extra) {
^
loop.c: In function ‘write_secret_chat_file’:
loop.c:429:30: error: ‘write_secret_chat’ undeclared (first use in this function)
tgl_peer_iterator_ex (TLS, write_secret_chat, y);
^
loop.c:429:30: note: each undeclared identifier is reported only once for each function it appears in
loop.c: In function ‘accept_incoming’:
loop.c:637:55: error: pointer targets in passing argument 3 of ‘accept’ differ in signedness [-Werror=pointer-sign]
int fd = accept (efd, (struct sockaddr *)&cli_addr, &clilen);
^
In file included from loop.c:50:0:
/usr/include/sys/socket.h:25:7: note: expected ‘socklen_t *’ but argument is of type ‘unsigned int *’
int accept (int, struct sockaddr *__peer, socklen_t *);
^
cc1: all warnings being treated as errors
Makefile:48: recipe for target 'objs/loop.o' failed
make: *** [objs/loop.o] Error 1
I just had very similar issues as described here, following did solve the problems:
git clone https://github.com/vysheng/tg --recursive
export CFLAGS="-I/usr/local/include -I/usr/local/Cellar/readline/6.3.8/include"
and export LDFLAGS="-L/usr/local/lib -L/usr/local/Cellar/readline/6.3.8/lib"
as described in the readme./configure
-rdynamic
from the Makefilemake
worked just fine.I hope this helps you
Hello everybody,
after sending message was not possible any more with following error: *\ bad_msg_notification: msg_id = 8008870804884063436, seq: 2, error = 17
... I tried to update to the newest version.
I´m using Cygwin. After that I installed git, openssl, readline, lua, libconfig and libevent i typed: git clone --recursive https://github.com/vysheng/tg.git && cd tg
Then I opened the console, went to the tg-directory and typed ./configure with the following result: $ ./configure checking for gcc... gcc checking whether the C compiler works... yes checking for C compiler default output file name... a.exe checking for suffix of executables... .exe 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... none required checking for library containing backtrace... no checking for event_base_new in -levent... 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 event2/event.h usability... yes checking event2/event.h presence... yes checking for event2/event.h... yes checking for pkg-config... no checking for openssl/ssl.h in /usr/local/ssl... no checking for openssl/ssl.h in /usr/lib/ssl... no checking for openssl/ssl.h in /usr/ssl... no checking for openssl/ssl.h in /usr/pkg... no checking for openssl/ssl.h in /usr/local... no checking for openssl/ssl.h in /usr... yes checking whether compiling and linking against OpenSSL works... 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 for rl_save_prompt in -lreadline... yes checking for libconfig... enabled checking for config_init in -lconfig... yes checking for liblua... enabled checking for lua... /usr/bin/lua checking if /usr/bin/lua is a Lua interpreter... yes checking for lua version... 5.1 checking for lua platform... unknown checking for lua script directory... ${prefix}/share/lua/5.1 checking for lua module directory... ${exec_prefix}/lib/lua/5.1 checking if LUA_VERSION is defined... yes checking lua.h usability... yes checking lua.h presence... yes checking for lua.h... yes checking lualib.h usability... yes checking lualib.h presence... yes checking for lualib.h... yes checking lauxlib.h usability... yes checking lauxlib.h presence... yes checking for lauxlib.h... yes checking luaconf.h usability... yes checking luaconf.h presence... yes checking for luaconf.h... yes checking for Lua header version... 5.1 checking if Lua header version matches 5.1... yes checking if LUA_VERSION is defined... yes checking for library containing exp... none required checking for library containing dlopen... none required checking for library containing lua_load... -llua5.1 default checking execinfo.h usability... no checking execinfo.h presence... no checking for execinfo.h... no checking fcntl.h usability... yes checking fcntl.h presence... yes checking for fcntl.h... yes checking malloc.h usability... yes checking malloc.h presence... yes checking for malloc.h... yes 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... no checking mach/mach.h presence... no checking for mach/mach.h... no 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
After that I typed make with this error: max@buero ~/tg $ make cat tgl/scheme.tl tgl/encrypted_scheme.tl tgl/binlog.tl tgl/append.tl tgl/mtproto.tl > auto/scheme.tl gcc -I. -I. -g -O2 -I/usr/local/include -I/usr/include -I/usr/include -I/usr/include -DHAVE_CONFIG_H -Wall -Wextra -Werror -Wno-deprecated-declarations -fno-strict-aliasing -fno-omit-frame-pointer -ggdb -Wno-unused-parameter -fPIC -iquote ./tgl/tl-parser -c -MP -MD -MF dep/tl-parser.d -MQ objs/tl-parser.o -o objs/tl-parser.o tgl/tl-parser/tl-parser.c tgl/tl-parser/tl-parser.c:1:0: error: -fPIC ignored for target (all code is position independent) [-Werror] /* ^ cc1: all warnings being treated as errors Makefile.tl-parser:4: recipe for target 'objs/tl-parser.o' failed make: *\ [objs/tl-parser.o] Error 1
Can anybody please help me?
Regards maex