experchange > freebsd

fugee ohu (01-10-19, 12:49 PM)
How do I set the path to endian.h in my Makefile ?

..../CMakeError.log

int main(void){return 0;}
Run Build Command:"/usr/local/bin/gmake" "cmTC_78339/fast"
/usr/local/bin/gmake -f CMakeFiles/cmTC_78339.dir/build.make CMakeFiles/cmTC_783
39.dir/build
gmake[5]: Entering directory '/usr/ports/databases/mysql57-client/work/.build/CM
akeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_78339.dir/HAVE_ENDIAN_H.c.o
/usr/bin/cc -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGE_FILES -D__STDC_C
ONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/usr/local/include
/editline -O2 -pipe -fstack-protector -isystem /usr/local/include -fno-strict-
aliasing -Wall -Wextra -Wformat-security -Wvla -Wwrite-strings -Wdeclaration-aft
er-statement -o CMakeFiles/cmTC_78339.dir/HAVE_ENDIAN_H.c.o -c /usr/ports/d
atabases/mysql57-client/work/.build/CMakeFiles/CheckIncludeFiles/HAVE_ENDIAN_H.c
/usr/ports/databases/mysql57-client/work/.build/CMakeFiles/CheckIncludeFiles/HAV
E_ENDIAN_H.c:2:10: fatal error: 'endian.h' file not found
#include <endian.h>
^~~~~~~~~~
1 error generated.
gmake[5]: *** [CMakeFiles/cmTC_78339.dir/build.make:66: CMakeFiles/cmTC_78339.di
r/HAVE_ENDIAN_H.c.o] Error 1
gmake[5]: Leaving directory '/usr/ports/databases/mysql57-client/work/.build/CMa
keFiles/CMakeTmp'
gmake[4]: *** [Makefile:121: cmTC_78339/fast] Error 2
gmake[4]: Leaving directory '/usr/ports/databases/mysql57-client/work/.build/CMa
keFiles/CMakeTmp'

Source:
/* */
#include <endian.h>

int main(void){return 0;}
Drew Lawson (01-11-19, 01:22 AM)
In article <6dfb341a-334b-418e-9e66-571254f4d115>
fugee ohu <fugee279> writes:

>gmake[5]: Entering directory '/usr/ports/databases/mysql57-client/work/.build/CM
>akeFiles/CMakeTmp'


Is your ports tree current (portsnap fetch update)?

Ports should have the right options, assuming you have not changed
things on your system (or in that port).
Similar Threads