<#195 Macos: typedef redefinition with different t...
# openlane-development
g
#195 Macos: typedef redefinition with different types ('struct reg' vs 'struct _XRegion *') Issue created by cheyao I've installed everything according to https://github.com/RTimothyEdwards/magic/blob/master/INSTALL_MacOS.md configure mac:
Copy code
-----------------------------------------------------------
Configuration Summary (principle requirements):

X11:          yes
Python3:      yes
OpenGL:       no

  Cairo graphics are available so OpenGL is purely optional.
Cairo:        yes
Tcl/Tk:       yes
-----------------------------------------------------------

Use 'make' to compile and 'make install' to install.

-----------------------------------------------------------
and then running make -j$(sysctl -n hw.ncpu) gives this error: ``` gcc -g -I/usr/local/Cellar/tcl-tk/8.6.12_1/include -Wimplicit-int -fPIC -I/usr/local/Cellar/tcl-tk/8.6.12_1/include -I. -I.. -DCAD_DIR=\"/usr/local/lib\" -DBIN_DIR=\"/usr/local/bin\" -DTCL_DIR=\"/usr/local/lib/magic/tcl\" -DUSE_TCL_STUBS -DUSE_TK_STUBS -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DSIZEOF_VOID_P=8 -DSIZEOF_UNSIGNED_INT=4 -DSIZEOF_UNSIGNED_LONG=8 -DSIZEOF_UNSIGNED_LONG_LONG=8 -DSTDC_HEADERS=1 -DHAVE_SETENV=1 -DHAVE_PUTENV=1 -DHAVE_SYS_MMAN_H=1 -DHAVE_DIRENT_H=1 -DHAVE_LIMITS_H=1 -DHAVE_PATHS_H=1 -DHAVE_VA_COPY=1 -DHAVE___VA_COPY=1 -DHAVE_ZLIB=1 -DFILE_LOCKS=1 -DCALMA_MODULE=1 -DCIF_MODULE=1 -DPLOT_MODULE=1 -DLEF_MODULE=1 -DROUTE_MODULE=1 -DUSE_NEW_MACROS=1 -DVECTOR_FONTS=1 -DHAVE_LIBCAIRO=1 -DMAGIC_WRAPPER=1 -D_FORTIFY_SOURCE=0 -DMAGIC_VERSION=\"`cat ../VERSION | cut -d. -f1-2`\" -DMAGIC_REVISION=\"`cat ../VERSION | cut -d. -f3`\" -DMAGIC_COMMIT=\"`git rev-parse HEAD`\" -DGCORE=\"/usr/bin/gcore\" -DSHDLIB_EXT=\".dylib\" -DNDEBUG -c EFread.c gcc -g -I/usr/local/Cellar/tcl-tk/8.6.12_1/include -Wimplicit-int -fPIC -I/usr/local/Cellar/tcl-tk/8.6.12_1/include -I. -I.. -DCAD_DIR=\"/usr/local/lib\" -DBIN_DIR=\"/usr/local/bin\" -DTCL_DIR=\"/usr/local/lib/magic/tcl\" -DUSE_TCL_STUBS -DUSE_TK_STUBS -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DSIZEOF_VOID_P=8 -DSIZEOF_UNSIGNED_INT=4 -DSIZEOF_UNSIGNED_LONG=8 -DSIZEOF_UNSIGNED_LONG_LONG=8 -DSTDC_HEADERS=1 -DHAVE_SETENV=1 -DHAVE_PUTENV=1 -DHAVE_SYS_MMAN_H=1 -DHAVE_DIRENT_H=1 -DHAVE_LIMITS_H=1 -DHAVE_PATHS_H=1 -DHAVE_VA_COPY=1 -DHAVE___VA_COPY=1 -DHAVE_ZLIB=1 -DFILE_LOCKS=1 -DCALMA_MODULE=1 -DCIF_MODULE=1 -DPLOT_MODULE=1 -DLEF_MODULE=1 -DROUTE_MODULE=1 -DUSE_NEW_MACROS=1 -DVECTOR_FONTS=1 -DHAVE_LIBCAIRO=1 -DMAGIC_WRAPPER=1 -D_FORTIFY_SOURCE=0 -DMAGIC_VERSION=\"`cat ../VERSION | cut -d. -f1-2`\" -DMAGIC_REVISION=\"`cat ../VERSION | cut -d. -f3`\" -DMAGIC_COMMIT=\"`git rev-parse HEAD`\" -DGCORE=\"/usr/bin/gcore\" -DSHDLIB_EXT=\".dylib\" -DNDEBUG -c EFantenna.c fatal: not a git repository (or any of the parent directories): .git fatal: not a git repository (or any of the parent directories): .git In file included from EFread.c36 In file included from ../commands/commands.h27 In file included from ../database/database.h41 In file included from ../bplane/bplane.h214 ../bplane/bpEnum.h50911: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if(e=bpEnumNextBINS(bpe, 0)) return e; ~^~~~~~~~~~~~~~~~~~~~~~~ ../bplane/bpEnum.h50911: note: place parentheses around the assignment to silence this warning if(e=bpEnumNextBINS(bpe, 0)) return e; ^ ( ) ../bplane/bpEnum.h50911: note: use '==' to turn this assignment into an equality comparison if(e=bpEnumNextBINS(bpe, 0)) return e; ^ == ../bplane/bpEnum.h51311: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if(e=bpEnumNextBINS(bpe, 1)) return e; ~^~~~~~~~~~~~~~~~~~~~~~~ ../bplane/bpEnum.h51311: note: place parentheses around the assignment to silence this warning if(e=bpEnumNextBINS(bpe, 1)) return e; ^ ( ) ../bplane/bpEnum.h51311: note: use '==' to turn this assignment into an equality comparison if(e=bpEnumNextBINS(bpe, 1)) return e; ^ == ../bplane/bpEnum.h51711: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if(e=bpEnumNextINBOX(bpe, 0)) return e; ~^~~~~~~~~~~~~~~~~~~~~~~~ ../bplane/bpEnum.h51711: note: place parentheses around the assignment to silence this warning if(e=bpEnumNextINBOX(bpe, 0)) return e; ^ ( ) ../bplane/bpEnum.h51711: note: use '==' to turn this assignment into an equality comparison if(e=bpEnumNextINBOX(bpe, 0)) return e; ^ == ../bplane/bpEnum.h52111: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if(e=bpEnumNextINBOX(bpe, 1)) return e; ~^~~~~~~~~~~~~~~~~~~~~~~~ ../bplane/bpEnum.h52111: note: place parentheses around the assignment to silence this warning if(e=bpEnumNextINBOX(bpe, 1)) return e; ^ ( ) ../bplane/bpEnum.h52111: note: use '==' to turn this assignment into an equality comparison if(e=bpEnumNextINBOX(bpe, 1)) return e; ^ == ../bplane/bpEnum.h52511: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if(e=bpEnumNextHASH(bpe)) return e; ~^~~~~~~~~~~~~~~~~~~~ ../bplane/bpEnum.h52511: note: place parentheses around the assignment to silence this warning if(e=bpEnumNextHASH(bpe)) return e; ^ ( ) ../bplane/bpEnum.h52511: note: use '==' to turn this assignment into an equality comparison if(e=bpEnumNextHASH(bpe)) return e; ^ == In file included from EFread.c41 ../extract/extractInt.h1533: error: typedef redefinition with different types ('struct reg' vs 'struct _XRegion *') } Region; ^ /usr/local/Cellar/tcl-tk/8.6.12_1/include/X11/Xutil.h21126: note: previous definition is here typedef struct _XRegion *Region; ^ In file included from EFantenna.c28 In file included from ../database/database.h41 In file included from ../bplane/bplane.h214 ../bplane/bpEnum.h50911: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if(e=bpEnumNextBINS(bpe, 0)) return e; ~^~~~~~~~~~~~~~~~~~~~~~~ ../bplane/bpEnum.h50911: note: place parentheses around the assignment to silence this warning if(e=bpEnumNextBINS(bpe, 0)) return e; ^ ( ) ../bplane/bpEnum.h50911: note: use '==' to turn this assignment into an equality comparison if(e=bpEnumNextBINS(bpe, 0)) return e; ^ == ../bplane/bpEnum.h51311: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if(e=bpEnumNextBINS(bpe, 1)) return e; ~^~~~~~~~~~~~~~~~~~~~~~~ ../bplane/bpEnum.h51311: note: place parentheses around the assignment to silence this warning if(e=bpEnumNextBINS(bpe, 1)) return e; ^ ( ) ../bplane/bpEnum.h51311: note: use '==' to turn this assignment into an equality comparison if(e=bpEnumNextBINS(bpe, 1)) return e; ^ == ../bplane/bpEnum.h51711: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if(e=bpEnumNextINBO… RTimothyEdwards/magic