Zde hlavičkový soubor v nspr složce (-Lnspr) bez potíží dotáhne všechny potřebné includy hlavičkových souborů v téže složce. Jenže když přehodím argumenty tak, aby gcc vytvořil z objektového souboru soubor spustitelný:
Najednou už v nspr vidí jen oba includované soubory, ovšem includy v nich již nedotáhne! Tak mi chybí asi 600 referencí, neboť oba zmíněné soubory dotahují dalších 20... Ať vykonám cokoliv, zbytek závislostí se nedotáhne: "undefined reference to blabla" Žádám tedy o radu - o co mu jde?
Linux_All_DBG.OBJ/libjs.a(jsfile.o): In function `js_BufferedRead':
/home/sam/Downloads/js/src/jsfile.c:801: undefined reference to `PR_Read'
Linux_All_DBG.OBJ/libjs.a(jsfile.o): In function `js_FileSeek':
/home/sam/Downloads/js/src/jsfile.c:902: undefined reference to `PR_Seek'
/home/sam/Downloads/js/src/jsfile.c:938: undefined reference to `PR_Seek'
Linux_All_DBG.OBJ/libjs.a(jsfile.o): In function `js_FileWrite':
/home/sam/Downloads/js/src/jsfile.c:970: undefined reference to `PR_Write'
/home/sam/Downloads/js/src/jsfile.c:994: undefined reference to `PR_Write'
/home/sam/Downloads/js/src/jsfile.c:1007: undefined reference to `PR_Write'
Linux_All_DBG.OBJ/libjs.a(jsfile.o): In function `js_exists':
/home/sam/Downloads/js/src/jsfile.c:1036: undefined reference to `PR_Access'
Linux_All_DBG.OBJ/libjs.a(jsfile.o): In function `js_canRead':
/home/sam/Downloads/js/src/jsfile.c:1045: undefined reference to `PR_Access'
Linux_All_DBG.OBJ/libjs.a(jsfile.o): In function `js_canWrite':
/home/sam/Downloads/js/src/jsfile.c:1062: undefined reference to `PR_Access'
Linux_All_DBG.OBJ/libjs.a(jsfile.o): In function `js_isFile':
/home/sam/Downloads/js/src/jsfile.c:1081: undefined reference to `PR_GetOpenFileInfo'
/home/sam/Downloads/js/src/jsfile.c:1082: undefined reference to `PR_GetFileInfo'
Linux_All_DBG.OBJ/libjs.a(jsfile.o): In function `js_isDirectory':
/home/sam/Downloads/js/src/jsfile.c:1106: undefined reference to `PR_GetOpenFileInfo'
/home/sam/Downloads/js/src/jsfile.c:1107: undefined reference to `PR_GetFileInfo'
Linux_All_DBG.OBJ/libjs.a(jsfile.o): In function `js_size':
/home/sam/Downloads/js/src/jsfile.c:1128: undefined reference to `PR_GetOpenFileInfo'
/home/sam/Downloads/js/src/jsfile.c:1129: undefined reference to `PR_GetFileInfo'
Linux_All_DBG.OBJ/libjs.a(jsfile.o): In function `file_open':
/home/sam/Downloads/js/src/jsfile.c:1359: undefined reference to `PR_Open'
Linux_All_DBG.OBJ/libjs.a(jsfile.o): In function `file_close':
/home/sam/Downloads/js/src/jsfile.c:1404: undefined reference to `PR_Close'
Linux_All_DBG.OBJ/libjs.a(jsfile.o): In function `file_remove':
/home/sam/Downloads/js/src/jsfile.c:1438: undefined reference to `PR_RmDir'
/home/sam/Downloads/js/src/jsfile.c:1438: undefined reference to `PR_Delete'
Linux_All_DBG.OBJ/libjs.a(jsfile.o): In function `file_copyTo':
/home/sam/Downloads/js/src/jsfile.c:1485: undefined reference to `PR_Open'
/home/sam/Downloads/js/src/jsfile.c:1499: undefined reference to `PR_Read'
/home/sam/Downloads/js/src/jsfile.c:1509: undefined reference to `PR_Write'
/home/sam/Downloads/js/src/jsfile.c:1525: undefined reference to `PR_Close'
/home/sam/Downloads/js/src/jsfile.c:1535: undefined reference to `PR_Close'
/home/sam/Downloads/js/src/jsfile.c:1540: undefined reference to `PR_Close'
Linux_All_DBG.OBJ/libjs.a(jsfile.o): In function `file_renameTo':
/home/sam/Downloads/js/src/jsfile.c:1561: undefined reference to `PR_Rename'
Linux_All_DBG.OBJ/libjs.a(jsfile.o): In function `file_flush':
/home/sam/Downloads/js/src/jsfile.c:1586: undefined reference to `PR_Sync'
Linux_All_DBG.OBJ/libjs.a(jsfile.o): In function `file_list':
/home/sam/Downloads/js/src/jsfile.c:1925: undefined reference to `PR_OpenDir'
/home/sam/Downloads/js/src/jsfile.c:1936: undefined reference to `PR_ReadDir'
/home/sam/Downloads/js/src/jsfile.c:1977: undefined reference to `PR_CloseDir'
Linux_All_DBG.OBJ/libjs.a(jsfile.o): In function `file_mkdir':
/home/sam/Downloads/js/src/jsfile.c:2015: undefined reference to `PR_MkDir'
Linux_All_DBG.OBJ/libjs.a(jsfile.o): In function `file_getProperty':
/home/sam/Downloads/js/src/jsfile.c:2431: undefined reference to `PR_GetOpenFileInfo'
/home/sam/Downloads/js/src/jsfile.c:2432: undefined reference to `PR_GetFileInfo'
/home/sam/Downloads/js/src/jsfile.c:2438: undefined reference to `PR_LocalTimeParameters'
/home/sam/Downloads/js/src/jsfile.c:2438: undefined reference to `PR_ExplodeTime'
/home/sam/Downloads/js/src/jsfile.c:2450: undefined reference to `PR_GetOpenFileInfo'
/home/sam/Downloads/js/src/jsfile.c:2451: undefined reference to `PR_GetFileInfo'
/home/sam/Downloads/js/src/jsfile.c:2457: undefined reference to `PR_LocalTimeParameters'
/home/sam/Downloads/js/src/jsfile.c:2457: undefined reference to `PR_ExplodeTime'
/home/sam/Downloads/js/src/jsfile.c:2478: undefined reference to `PR_OpenDir'
/home/sam/Downloads/js/src/jsfile.c:2484: undefined reference to `PR_ReadDir'
/home/sam/Downloads/js/src/jsfile.c:2488: undefined reference to `PR_CloseDir'
/home/sam/Downloads/js/src/jsfile.c:2519: undefined reference to `PR_Seek'
/home/sam/Downloads/js/src/jsfile.c:2549: undefined reference to `PR_OpenDir'
/home/sam/Downloads/js/src/jsfile.c:2560: undefined reference to `PR_CloseDir'
/home/sam/Downloads/js/src/jsfile.c:2556: undefined reference to `PR_ReadDir'
/home/sam/Downloads/js/src/jsfile.c:2565: undefined reference to `PR_CloseDir'
Linux_All_DBG.OBJ/libjs.a(jsfile.o): In function `file_setProperty':
/home/sam/Downloads/js/src/jsfile.c:2608: undefined reference to `PR_Seek'
collect2: error: ld returned 1 exit status