Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RHEL 6.6 compile error #1

Open
dba-lex opened this issue Jul 6, 2016 · 1 comment
Open

RHEL 6.6 compile error #1

dba-lex opened this issue Jul 6, 2016 · 1 comment

Comments

@dba-lex
Copy link

dba-lex commented Jul 6, 2016

gcc -O2 -DSIMPLE_FPOS_T -o aulasm.bin aulasm2.c asmkernel.c

asmkernel.c: In function ‘trimFileName’:
asmkernel.c:74: warning: incompatible implicit declaration of built-in function ‘strlen’
asmkernel.c: In function ‘getASMBlockHeader’:
asmkernel.c:99: warning: incompatible implicit declaration of built-in function ‘memset’
asmkernel.c: In function ‘getASMBlockMetaData’:
asmkernel.c:156: warning: incompatible implicit declaration of built-in function ‘memset’
asmkernel.c:158: warning: incompatible implicit declaration of built-in function ‘memcpy’
asmkernel.c: In function ‘getASMFileHeader’:
asmkernel.c:234: warning: incompatible implicit declaration of built-in function ‘memset’
asmkernel.c: In function ‘getASMExtentHeader’:
asmkernel.c:318: warning: incompatible implicit declaration of built-in function ‘memset’
asmkernel.c: In function ‘getASMFileExtent’:
asmkernel.c:349: warning: incompatible implicit declaration of built-in function ‘memset’
asmkernel.c: In function ‘getASMAliasHeader’:
asmkernel.c:396: warning: incompatible implicit declaration of built-in function ‘memset’
asmkernel.c: In function ‘getASMAliasRecord’:
asmkernel.c:444: warning: incompatible implicit declaration of built-in function ‘memset’
asmkernel.c:453: warning: incompatible implicit declaration of built-in function ‘memcpy’
asmkernel.c: In function ‘initASMDisk’:
asmkernel.c:485: warning: incompatible implicit declaration of built-in function ‘memset’
asmkernel.c: In function ‘readFromDisk’:
asmkernel.c:544: error: incompatible types when assigning to type ‘fpos_t’ from type ‘ub8’
asmkernel.c: In function ‘closeDiskGroup’:
asmkernel.c:575: warning: incompatible implicit declaration of built-in function ‘free’
asmkernel.c: In function ‘openDiskGroup’:
asmkernel.c:623: warning: incompatible implicit declaration of built-in function ‘memset’
asmkernel.c:642: warning: incompatible implicit declaration of built-in function ‘memcpy’
asmkernel.c: In function ‘openDiskGroupDisk’:
asmkernel.c:689: warning: incompatible implicit declaration of built-in function ‘memcpy’
asmkernel.c:691: warning: incompatible implicit declaration of built-in function ‘strlen’
asmkernel.c: In function ‘readDiskGroupBlock’:
asmkernel.c:781: warning: incompatible implicit declaration of built-in function ‘memcpy’
asmkernel.c:789: warning: incompatible implicit declaration of built-in function ‘memcpy’
asmkernel.c: In function ‘setDiskGroupCache’:
asmkernel.c:809: warning: incompatible implicit declaration of built-in function ‘free’
asmkernel.c:810: warning: incompatible implicit declaration of built-in function ‘malloc’
asmkernel.c:816: warning: incompatible implicit declaration of built-in function ‘free’
asmkernel.c:817: warning: incompatible implicit declaration of built-in function ‘malloc’
asmkernel.c: In function ‘listASMFileExtent’:
asmkernel.c:997: warning: incompatible implicit declaration of built-in function ‘malloc’
asmkernel.c:1000: warning: incompatible implicit declaration of built-in function ‘memcpy’
asmkernel.c:1072: warning: incompatible implicit declaration of built-in function ‘free’
asmkernel.c: In function ‘listASMFileEntry’:
asmkernel.c:1092: warning: incompatible implicit declaration of built-in function ‘malloc’
asmkernel.c:1095: warning: incompatible implicit declaration of built-in function ‘memcpy’
asmkernel.c:1178: warning: incompatible implicit declaration of built-in function ‘free’
asmkernel.c: In function ‘getASMFileEntry’:
asmkernel.c:1204: warning: incompatible implicit declaration of built-in function ‘malloc’
asmkernel.c:1207: warning: incompatible implicit declaration of built-in function ‘memcpy’
asmkernel.c:1231: warning: incompatible implicit declaration of built-in function ‘free’
asmkernel.c:1272: warning: incompatible implicit declaration of built-in function ‘free’
asmkernel.c:1286: warning: incompatible implicit declaration of built-in function ‘free’
asmkernel.c: In function ‘listASMAliasEntry’:
asmkernel.c:1330: warning: incompatible implicit declaration of built-in function ‘malloc’
asmkernel.c:1333: warning: incompatible implicit declaration of built-in function ‘memcpy’
asmkernel.c:1435: warning: incompatible implicit declaration of built-in function ‘free’
asmkernel.c: In function ‘copyASMFileOut’:
asmkernel.c:1480: warning: incompatible implicit declaration of built-in function ‘malloc’
asmkernel.c:1484: warning: incompatible implicit declaration of built-in function ‘memcpy’
asmkernel.c:1520: warning: incompatible implicit declaration of built-in function ‘memset’
asmkernel.c:1558: warning: incompatible implicit declaration of built-in function ‘memset’
asmkernel.c:1585: warning: incompatible implicit declaration of built-in function ‘memset’
asmkernel.c:1603: warning: incompatible implicit declaration of built-in function ‘free’
asmkernel.c: In function ‘readFileExtentCache’:
asmkernel.c:1626: warning: incompatible implicit declaration of built-in function ‘malloc’
asmkernel.c:1630: warning: incompatible implicit declaration of built-in function ‘memcpy’
asmkernel.c:1730: warning: incompatible implicit declaration of built-in function ‘free’
asmkernel.c: In function ‘readASMFileData’:
asmkernel.c:1836: warning: incompatible implicit declaration of built-in function ‘memcpy’
asmkernel.c:1843: warning: incompatible implicit declaration of built-in function ‘memcpy’
asmkernel.c: In function ‘readASMOracleBlock’:
asmkernel.c:1905: warning: incompatible implicit declaration of built-in function ‘memcpy’
asmkernel.c:1912: warning: incompatible implicit declaration of built-in function ‘memcpy’
asmkernel.c: In function ‘dumpASMFileBlock’:
asmkernel.c:1953: warning: incompatible implicit declaration of built-in function ‘malloc’
asmkernel.c:1957: warning: incompatible implicit declaration of built-in function ‘free’

@dba-lex dba-lex changed the title compile error RHEL 6.6 compile error Jul 6, 2016
@anysql
Copy link
Contributor

anysql commented Jul 7, 2016

These are some warnings, caused by implicit conversion by "unsigned char *" and "const char *", you can ignore it, we will fix it later.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants