Open SkyLakeRT opened 5 years ago
gmake is right for you. Look #630
No, it's not what i need. I copy from option --recursive, run ./configure, run make, gmake
MAKE
root@okhsrv:~/tg # make
make: don't know how to make objs/%.o:. Stop
make: stopped in /root/tg
GMAKE
root@okhsrv:~/tg # gmake
cat tgl/scheme.tl tgl/encrypted_scheme.tl tgl/binlog.tl tgl/append.tl tgl/mtproto.tl > auto/scheme.tl
cc -I. -I. -I./tgl -g -O2 -I/usr/local/include -I/usr/include -I/usr/include -I/usr/local/include/lua52 -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 -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
In file included from tgl/tl-parser/tl-parser.c:38:
./tgl/tl-parser/portable_endian.h:56:10: error: 'be16toh' macro redefined [-Werror,-Wmacro-redefined]
# define be16toh(x) betoh16(x)
^
/usr/include/sys/endian.h:77:9: note: previous definition is here
#define be16toh(x) bswap16((x))
^
In file included from tgl/tl-parser/tl-parser.c:38:
./tgl/tl-parser/portable_endian.h:57:10: error: 'le16toh' macro redefined [-Werror,-Wmacro-redefined]
# define le16toh(x) letoh16(x)
^
/usr/include/sys/endian.h:80:9: note: previous definition is here
#define le16toh(x) ((uint16_t)(x))
^
In file included from tgl/tl-parser/tl-parser.c:38:
./tgl/tl-parser/portable_endian.h:59:10: error: 'be32toh' macro redefined [-Werror,-Wmacro-redefined]
# define be32toh(x) betoh32(x)
^
/usr/include/sys/endian.h:78:9: note: previous definition is here
#define be32toh(x) bswap32((x))
^
In file included from tgl/tl-parser/tl-parser.c:38:
./tgl/tl-parser/portable_endian.h:60:10: error: 'le32toh' macro redefined [-Werror,-Wmacro-redefined]
# define le32toh(x) letoh32(x)
^
/usr/include/sys/endian.h:81:9: note: previous definition is here
#define le32toh(x) ((uint32_t)(x))
^
In file included from tgl/tl-parser/tl-parser.c:38:
./tgl/tl-parser/portable_endian.h:62:10: error: 'be64toh' macro redefined [-Werror,-Wmacro-redefined]
# define be64toh(x) betoh64(x)
^
/usr/include/sys/endian.h:79:9: note: previous definition is here
#define be64toh(x) bswap64((x))
^
In file included from tgl/tl-parser/tl-parser.c:38:
./tgl/tl-parser/portable_endian.h:63:10: error: 'le64toh' macro redefined [-Werror,-Wmacro-redefined]
# define le64toh(x) letoh64(x)
^
/usr/include/sys/endian.h:82:9: note: previous definition is here
#define le64toh(x) ((uint64_t)(x))
^
6 errors generated.
gmake: *** [Makefile.tl-parser:4: objs/tl-parser.o] Ошибка 1
You have now another message from gmake
.
Have you the folder tg
remove? And then do
git clone --recursive https://github.com/vysheng/tg.git && cd tg
and
pkg install libconfig libexecinfo lua52 python
and
gmake
I have forget ./configure
before gmake
I done. but libexecinfo not found in freebsd 12 repository. In /usr/ports/ not found.
root@okhsrv:~/tg # pkg install libexecinfo
Updating FreeBSD repository catalogue...
FreeBSD repository is up to date.
All repositories are up to date.
pkg: No packages available to install matching 'libexecinfo' have been found in the repositories
Gmake the same error
https://forums.freebsd.org/threads/devel-libexecinfo-missing.62573/ Speaking what library already installed in system.
Try pkg install libexecinfo-dev
root@okhsrv:~ # pkg install libexecinfo-dev
Updating FreeBSD repository catalogue...
FreeBSD repository is up to date.
All repositories are up to date.
pkg: No packages available to install matching 'libexecinfo-dev' have been found in the repositories
root@okhsrv:~ # pkg search libexecinfo
root@okhsrv:~ # pkg search execinfo
root@okhsrv:~ #
It's pretty sad, I do not understand what is missing gmake? Those names which it displays are some kind of dependencies included in the library whose name I do not know? A separate story with make, it refers to the file and can not find it, how to specify the exact location or some alternative?
Try this:
pkg delete libexecinfo
because libexecinfo must in the base System.
Well you can just use snap version as well
@Paulchen232 this is happening because both sys/endian.h and tgl/tl-parser/portable_endian.h are defining the macros on FreeBSD.
The fix is to wrap the macro definitions in tgl/tl-parser/portable_endian.h with ifdefs.
SYSTEM
CONFIGURE
MAKE PROCESSING
What is the problem, any ideas? I tried it gmake and it also gives an error, only another