ghaerr / microwindows

The Nano-X Window System
Other
677 stars 92 forks source link

[DJGPP+DOS] Issues compiling from source #36

Open lighth7015 opened 4 years ago

lighth7015 commented 4 years ago

The sources compile fine, however a black screen is displayed when I try and run any of the demo applications compiled.

ghaerr commented 4 years ago

Hello @lighth7015,

Are you using make -f Makefile_nr ARCH=DOS to build it? This portion is contributed and maintained by @georgp24, lets see what he has to say.

lighth7015 commented 4 years ago

I remember cloning the git repo and having issues cross-compiling it (since DOS doesn't "like" long filenames), I'm going to wait for it to complete and see what the errors are.

lighth7015 commented 4 years ago

And after trying to freshly compile it, this is what I get

make TOP=/home/robert_/github/microwindows/src -C mwin/bmp -f ../../contrib/makefiles_nr/Makefile-bmp
make[1]: *** mwin/bmp: No such file or directory.  Stop.
make: *** [Makefile_nr:727: mwin/bmp/libimages.a] Error 2
lighth7015 commented 4 years ago

Okay, new issue lol, I found those files after some digging around; now it complains about a BUNCH of symbols missing from -lfreetype-

/usr/lib/gcc/i686-pc-msdosdjgpp/9.2.0/../../../../i686-pc-msdosdjgpp/bin/ld: /home/robert_/github/microwindows/src/lib/libnano-X.a(devimage.o):devimage.c:(.text+0x3e7): undefined reference to `GdDecodePNG'
/usr/lib/gcc/i686-pc-msdosdjgpp/9.2.0/../../../../i686-pc-msdosdjgpp/bin/ld: /home/robert_/github/microwindows/src/lib/libnano-X.a(devimage.o):devimage.c:(.text+0x907): undefined reference to `GdDecodePNG'
/usr/lib/gcc/i686-pc-msdosdjgpp/9.2.0/../../../../i686-pc-msdosdjgpp/bin/ld: /home/robert_/github/microwindows/src/lib/libnano-X.a(font_freetype2.o):font_freetype2.c:(.text+0x130): undefined reference to `FTC_Manager_LookupSize'
/usr/lib/gcc/i686-pc-msdosdjgpp/9.2.0/../../../../i686-pc-msdosdjgpp/bin/ld: /home/robert_/github/microwindows/src/lib/libnano-X.a(font_freetype2.o):font_freetype2.c:(.text+0x282): undefined reference to `FT_Vector_Unit'
/usr/lib/gcc/i686-pc-msdosdjgpp/9.2.0/../../../../i686-pc-msdosdjgpp/bin/ld: /home/robert_/github/microwindows/src/lib/libnano-X.a(font_freetype2.o):font_freetype2.c:(.text+0x35d): undefined reference to `FTC_Manager_LookupSize'
/usr/lib/gcc/i686-pc-msdosdjgpp/9.2.0/../../../../i686-pc-msdosdjgpp/bin/ld: /home/robert_/github/microwindows/src/lib/libnano-X.a(font_freetype2.o):font_freetype2.c:(.text+0x50e): undefined reference to `FTC_CMapCache_Lookup'
/usr/lib/gcc/i686-pc-msdosdjgpp/9.2.0/../../../../i686-pc-msdosdjgpp/bin/ld: /home/robert_/github/microwindows/src/lib/libnano-X.a(font_freetype2.o):font_freetype2.c:(.text+0x58a): undefined reference to `FTC_CMapCache_Lookup'
/usr/lib/gcc/i686-pc-msdosdjgpp/9.2.0/../../../../i686-pc-msdosdjgpp/bin/ld: /home/robert_/github/microwindows/src/lib/libnano-X.a(font_freetype2.o):font_freetype2.c:(.text+0x5c6): undefined reference to `FTC_SBitCache_Lookup'
/usr/lib/gcc/i686-pc-msdosdjgpp/9.2.0/../../../../i686-pc-msdosdjgpp/bin/ld: /home/robert_/github/microwindows/src/lib/libnano-X.a(font_freetype2.o):font_freetype2.c:(.text+0x72b): undefined reference to `FTC_CMapCache_Lookup'
/usr/lib/gcc/i686-pc-msdosdjgpp/9.2.0/../../../../i686-pc-msdosdjgpp/bin/ld: /home/robert_/github/microwindows/src/lib/libnano-X.a(font_freetype2.o):font_freetype2.c:(.text+0x760): undefined reference to `FT_Load_Glyph'
/usr/lib/gcc/i686-pc-msdosdjgpp/9.2.0/../../../../i686-pc-msdosdjgpp/bin/ld: /home/robert_/github/microwindows/src/lib/libnano-X.a(font_freetype2.o):font_freetype2.c:(.text+0x77b): undefined reference to `FT_Get_Glyph'
/usr/lib/gcc/i686-pc-msdosdjgpp/9.2.0/../../../../i686-pc-msdosdjgpp/bin/ld: /home/robert_/github/microwindows/src/lib/libnano-X.a(font_freetype2.o):font_freetype2.c:(.text+0x799): undefined reference to `FT_Glyph_Transform'
/usr/lib/gcc/i686-pc-msdosdjgpp/9.2.0/../../../../i686-pc-msdosdjgpp/bin/ld: /home/robert_/github/microwindows/src/lib/libnano-X.a(font_freetype2.o):font_freetype2.c:(.text+0x7b9): undefined reference to `FT_Glyph_Transform'
/usr/lib/gcc/i686-pc-msdosdjgpp/9.2.0/../../../../i686-pc-msdosdjgpp/bin/ld: /home/robert_/github/microwindows/src/lib/libnano-X.a(font_freetype2.o):font_freetype2.c:(.text+0x7cb): undefined reference to `FT_Glyph_To_Bitmap'
/usr/lib/gcc/i686-pc-msdosdjgpp/9.2.0/../../../../i686-pc-msdosdjgpp/bin/ld: /home/robert_/github/microwindows/src/lib/libnano-X.a(font_freetype2.o):font_freetype2.c:(.text+0x852): undefined reference to `FT_Done_Glyph'
/usr/lib/gcc/i686-pc-msdosdjgpp/9.2.0/../../../../i686-pc-msdosdjgpp/bin/ld: /home/robert_/github/microwindows/src/lib/libnano-X.a(font_freetype2.o):font_freetype2.c:(.text+0x87b): undefined reference to `FTC_CMapCache_Lookup'
/usr/lib/gcc/i686-pc-msdosdjgpp/9.2.0/../../../../i686-pc-msdosdjgpp/bin/ld: /home/robert_/github/microwindows/src/lib/libnano-X.a(font_freetype2.o):font_freetype2.c:(.text+0x8b2): undefined reference to `FT_Get_Kerning'
/usr/lib/gcc/i686-pc-msdosdjgpp/9.2.0/../../../../i686-pc-msdosdjgpp/bin/ld: /home/robert_/github/microwindows/src/lib/libnano-X.a(font_freetype2.o):font_freetype2.c:(.text+0x9ac): undefined reference to `FT_Get_Kerning'
/usr/lib/gcc/i686-pc-msdosdjgpp/9.2.0/../../../../i686-pc-msdosdjgpp/bin/ld: /home/robert_/github/microwindows/src/lib/libnano-X.a(font_freetype2.o):font_freetype2.c:(.text+0xb3a): undefined reference to `FTC_Manager_Reset'
/usr/lib/gcc/i686-pc-msdosdjgpp/9.2.0/../../../../i686-pc-msdosdjgpp/bin/ld: /home/robert_/github/microwindows/src/lib/libnano-X.a(font_freetype2.o):font_freetype2.c:(.text+0xbcb): undefined reference to `FTC_Manager_LookupSize'
/usr/lib/gcc/i686-pc-msdosdjgpp/9.2.0/../../../../i686-pc-msdosdjgpp/bin/ld: /home/robert_/github/microwindows/src/lib/libnano-X.a(font_freetype2.o):font_freetype2.c:(.text+0xc58): undefined reference to `FTC_CMapCache_Lookup'
/usr/lib/gcc/i686-pc-msdosdjgpp/9.2.0/../../../../i686-pc-msdosdjgpp/bin/ld: /home/robert_/github/microwindows/src/lib/libnano-X.a(font_freetype2.o):font_freetype2.c:(.text+0xc70): undefined reference to `FT_Load_Glyph'
/usr/lib/gcc/i686-pc-msdosdjgpp/9.2.0/../../../../i686-pc-msdosdjgpp/bin/ld: /home/robert_/github/microwindows/src/lib/libnano-X.a(font_freetype2.o):font_freetype2.c:(.text+0xc8b): undefined reference to `FT_Get_Glyph'
/usr/lib/gcc/i686-pc-msdosdjgpp/9.2.0/../../../../i686-pc-msdosdjgpp/bin/ld: /home/robert_/github/microwindows/src/lib/libnano-X.a(font_freetype2.o):font_freetype2.c:(.text+0xca9): undefined reference to `FT_Glyph_Transform'
/usr/lib/gcc/i686-pc-msdosdjgpp/9.2.0/../../../../i686-pc-msdosdjgpp/bin/ld: /home/robert_/github/microwindows/src/lib/libnano-X.a(font_freetype2.o):font_freetype2.c:(.text+0xcc9): undefined reference to `FT_Glyph_Transform'
/usr/lib/gcc/i686-pc-msdosdjgpp/9.2.0/../../../../i686-pc-msdosdjgpp/bin/ld: /home/robert_/github/microwindows/src/lib/libnano-X.a(font_freetype2.o):font_freetype2.c:(.text+0xce7): undefined reference to `FT_Glyph_Get_CBox'
/usr/lib/gcc/i686-pc-msdosdjgpp/9.2.0/../../../../i686-pc-msdosdjgpp/bin/ld: /home/robert_/github/microwindows/src/lib/libnano-X.a(font_freetype2.o):font_freetype2.c:(.text+0xd2e): undefined reference to `FT_Done_Glyph'
/usr/lib/gcc/i686-pc-msdosdjgpp/9.2.0/../../../../i686-pc-msdosdjgpp/bin/ld: /home/robert_/github/microwindows/src/lib/libnano-X.a(font_freetype2.o):font_freetype2.c:(.text+0xd5a): undefined reference to `FTC_CMapCache_Lookup'
/usr/lib/gcc/i686-pc-msdosdjgpp/9.2.0/../../../../i686-pc-msdosdjgpp/bin/ld: /home/robert_/github/microwindows/src/lib/libnano-X.a(font_freetype2.o):font_freetype2.c:(.text+0xd92): undefined reference to `FT_Get_Kerning'
/usr/lib/gcc/i686-pc-msdosdjgpp/9.2.0/../../../../i686-pc-msdosdjgpp/bin/ld: /home/robert_/github/microwindows/src/lib/libnano-X.a(font_freetype2.o):font_freetype2.c:(.text+0xe2b): undefined reference to `FTC_Manager_LookupSize'
/usr/lib/gcc/i686-pc-msdosdjgpp/9.2.0/../../../../i686-pc-msdosdjgpp/bin/ld: /home/robert_/github/microwindows/src/lib/libnano-X.a(font_freetype2.o):font_freetype2.c:(.text+0xea3): undefined reference to `FTC_CMapCache_Lookup'
/usr/lib/gcc/i686-pc-msdosdjgpp/9.2.0/../../../../i686-pc-msdosdjgpp/bin/ld: /home/robert_/github/microwindows/src/lib/libnano-X.a(font_freetype2.o):font_freetype2.c:(.text+0xee4): undefined reference to `FT_Load_Glyph'
/usr/lib/gcc/i686-pc-msdosdjgpp/9.2.0/../../../../i686-pc-msdosdjgpp/bin/ld: /home/robert_/github/microwindows/src/lib/libnano-X.a(font_freetype2.o):font_freetype2.c:(.text+0xeff): undefined reference to `FT_Get_Glyph'
/usr/lib/gcc/i686-pc-msdosdjgpp/9.2.0/../../../../i686-pc-msdosdjgpp/bin/ld: /home/robert_/github/microwindows/src/lib/libnano-X.a(font_freetype2.o):font_freetype2.c:(.text+0xf29): undefined reference to `FTC_CMapCache_Lookup'
/usr/lib/gcc/i686-pc-msdosdjgpp/9.2.0/../../../../i686-pc-msdosdjgpp/bin/ld: /home/robert_/github/microwindows/src/lib/libnano-X.a(font_freetype2.o):font_freetype2.c:(.text+0xf77): undefined reference to `FTC_SBitCache_Lookup'
/usr/lib/gcc/i686-pc-msdosdjgpp/9.2.0/../../../../i686-pc-msdosdjgpp/bin/ld: /home/robert_/github/microwindows/src/lib/libnano-X.a(font_freetype2.o):font_freetype2.c:(.text+0xff7): undefined reference to `FT_Glyph_Get_CBox'
/usr/lib/gcc/i686-pc-msdosdjgpp/9.2.0/../../../../i686-pc-msdosdjgpp/bin/ld: /home/robert_/github/microwindows/src/lib/libnano-X.a(font_freetype2.o):font_freetype2.c:(.text+0x101d): undefined reference to `FT_Glyph_Get_CBox'
/usr/lib/gcc/i686-pc-msdosdjgpp/9.2.0/../../../../i686-pc-msdosdjgpp/bin/ld: /home/robert_/github/microwindows/src/lib/libnano-X.a(font_freetype2.o):font_freetype2.c:(.text+0x1027): undefined reference to `FT_Done_Glyph'
/usr/lib/gcc/i686-pc-msdosdjgpp/9.2.0/../../../../i686-pc-msdosdjgpp/bin/ld: /home/robert_/github/microwindows/src/lib/libnano-X.a(font_freetype2.o):font_freetype2.c:(.text+0x1054): undefined reference to `FT_Get_Kerning'
/usr/lib/gcc/i686-pc-msdosdjgpp/9.2.0/../../../../i686-pc-msdosdjgpp/bin/ld: /home/robert_/github/microwindows/src/lib/libnano-X.a(font_freetype2.o):font_freetype2.c:(.text+0x11a1): undefined reference to `FTC_Manager_New'
/usr/lib/gcc/i686-pc-msdosdjgpp/9.2.0/../../../../i686-pc-msdosdjgpp/bin/ld: /home/robert_/github/microwindows/src/lib/libnano-X.a(font_freetype2.o):font_freetype2.c:(.text+0x11c1): undefined reference to `FTC_SBitCache_New'
/usr/lib/gcc/i686-pc-msdosdjgpp/9.2.0/../../../../i686-pc-msdosdjgpp/bin/ld: /home/robert_/github/microwindows/src/lib/libnano-X.a(font_freetype2.o):font_freetype2.c:(.text+0x11dd): undefined reference to `FTC_CMapCache_New'
/usr/lib/gcc/i686-pc-msdosdjgpp/9.2.0/../../../../i686-pc-msdosdjgpp/bin/ld: /home/robert_/github/microwindows/src/lib/libnano-X.a(font_freetype2.o):font_freetype2.c:(.text+0x1214): undefined reference to `FTC_Manager_Done'
/usr/lib/gcc/i686-pc-msdosdjgpp/9.2.0/../../../../i686-pc-msdosdjgpp/bin/ld: /home/robert_/github/microwindows/src/lib/libnano-X.a(font_freetype2.o):font_freetype2.c:(.text+0x122a): undefined reference to `FT_Done_FreeType'
/usr/lib/gcc/i686-pc-msdosdjgpp/9.2.0/../../../../i686-pc-msdosdjgpp/bin/ld: /home/robert_/github/microwindows/src/lib/libnano-X.a(font_freetype2.o):font_freetype2.c:(.text+0x1264): undefined reference to `FT_Done_FreeType'
/usr/lib/gcc/i686-pc-msdosdjgpp/9.2.0/../../../../i686-pc-msdosdjgpp/bin/ld: /home/robert_/github/microwindows/src/lib/libnano-X.a(font_freetype2.o):font_freetype2.c:(.text+0x12ae): undefined reference to `FTC_Manager_Done'
/usr/lib/gcc/i686-pc-msdosdjgpp/9.2.0/../../../../i686-pc-msdosdjgpp/bin/ld: /home/robert_/github/microwindows/src/lib/libnano-X.a(font_freetype2.o):font_freetype2.c:(.text+0x12c4): undefined reference to `FT_Done_FreeType'
/usr/lib/gcc/i686-pc-msdosdjgpp/9.2.0/../../../../i686-pc-msdosdjgpp/bin/ld: /home/robert_/github/microwindows/src/lib/libnano-X.a(font_freetype2.o):font_freetype2.c:(.text+0x1364): undefined reference to `FT_Init_FreeType'
/usr/lib/gcc/i686-pc-msdosdjgpp/9.2.0/../../../../i686-pc-msdosdjgpp/bin/ld: /home/robert_/github/microwindows/src/lib/libnano-X.a(font_freetype2.o):font_freetype2.c:(.text+0x13c4): undefined reference to `FT_New_Memory_Face'
/usr/lib/gcc/i686-pc-msdosdjgpp/9.2.0/../../../../i686-pc-msdosdjgpp/bin/ld: /home/robert_/github/microwindows/src/lib/libnano-X.a(font_freetype2.o):font_freetype2.c:(.text+0x1428): undefined reference to `FTC_Manager_LookupSize'
/usr/lib/gcc/i686-pc-msdosdjgpp/9.2.0/../../../../i686-pc-msdosdjgpp/bin/ld: /home/robert_/github/microwindows/src/lib/libnano-X.a(font_freetype2.o):font_freetype2.c:(.text+0x1488): undefined reference to `FT_MulFix'
/usr/lib/gcc/i686-pc-msdosdjgpp/9.2.0/../../../../i686-pc-msdosdjgpp/bin/ld: /home/robert_/github/microwindows/src/lib/libnano-X.a(font_freetype2.o):font_freetype2.c:(.text+0x14a1): undefined reference to `FT_MulFix'
/usr/lib/gcc/i686-pc-msdosdjgpp/9.2.0/../../../../i686-pc-msdosdjgpp/bin/ld: /home/robert_/github/microwindows/src/lib/libnano-X.a(font_freetype2.o):font_freetype2.c:(.text+0x155d): undefined reference to `FTC_CMapCache_Lookup'
/usr/lib/gcc/i686-pc-msdosdjgpp/9.2.0/../../../../i686-pc-msdosdjgpp/bin/ld: /home/robert_/github/microwindows/src/lib/libnano-X.a(font_freetype2.o):font_freetype2.c:(.text+0x1579): undefined reference to `FT_Load_Glyph'
/usr/lib/gcc/i686-pc-msdosdjgpp/9.2.0/../../../../i686-pc-msdosdjgpp/bin/ld: /home/robert_/github/microwindows/src/lib/libnano-X.a(font_freetype2.o):font_freetype2.c:(.text+0x15a6): undefined reference to `FTC_SBitCache_Lookup'
/usr/lib/gcc/i686-pc-msdosdjgpp/9.2.0/../../../../i686-pc-msdosdjgpp/bin/ld: /home/robert_/github/microwindows/src/lib/libnano-X.a(font_freetype2.o):font_freetype2.c:(.text+0x178c): undefined reference to `FT_Init_FreeType'
/usr/lib/gcc/i686-pc-msdosdjgpp/9.2.0/../../../../i686-pc-msdosdjgpp/bin/ld: /home/robert_/github/microwindows/src/lib/libnano-X.a(font_freetype2.o):font_freetype2.c:(.text+0x1944): undefined reference to `FT_Init_FreeType'
/usr/lib/gcc/i686-pc-msdosdjgpp/9.2.0/../../../../i686-pc-msdosdjgpp/bin/ld: /home/robert_/github/microwindows/src/lib/libnano-X.a(font_freetype2.o):font_freetype2.c:(.text+0x13e5): undefined reference to `FT_New_Face'
collect2: error: ld returned 1 exit status
lighth7015 commented 4 years ago

So nano-x and nx11 both compile, but the demo apps give me issues like,

/usr/lib/gcc/i686-pc-msdosdjgpp/9.2.0/../../../../i686-pc-msdosdjgpp/bin/ld: /home/robert_/github/microwindows/src/lib/libnano-X.a(srvmain.o):srvmain.c:(.text+0xb9): undefined reference to `scrdev'
/usr/lib/gcc/i686-pc-msdosdjgpp/9.2.0/../../../../i686-pc-msdosdjgpp/bin/ld: /home/robert_/github/microwindows/src/lib/libnano-X.a(srvmain.o):srvmain.c:(.text+0xc5): undefined reference to `scrdev'
/usr/lib/gcc/i686-pc-msdosdjgpp/9.2.0/../../../../i686-pc-msdosdjgpp/bin/ld: /home/robert_/github/microwindows/src/lib/libnano-X.a(srvnonet.o):srvnonet.c:(.text+0x72): undefined reference to `scrdev'
/usr/lib/gcc/i686-pc-msdosdjgpp/9.2.0/../../../../i686-pc-msdosdjgpp/bin/ld: /home/robert_/github/microwindows/src/lib/libnano-X.a(srvnonet.o):srvnonet.c:(.text+0x7a): undefined reference to `scrdev'
/usr/lib/gcc/i686-pc-msdosdjgpp/9.2.0/../../../../i686-pc-msdosdjgpp/bin/ld: /home/robert_/github/microwindows/src/lib/libnano-X.a(srvnonet.o):srvnonet.c:(.text+0x86): undefined reference to `scrdev'
/usr/lib/gcc/i686-pc-msdosdjgpp/9.2.0/../../../../i686-pc-msdosdjgpp/bin/ld: /home/robert_/github/microwindows/src/lib/libnano-X.a(srvfunc.o):srvfunc.c:(.text+0x12fc): more undefined references to `scrdev' follow
/usr/lib/gcc/i686-pc-msdosdjgpp/9.2.0/../../../../i686-pc-msdosdjgpp/bin/ld: /home/robert_/github/microwindows/src/lib/libnano-X.a(srvevent.o):srvevent.c:(.text+0x925): undefined reference to `kbddev'
/usr/lib/gcc/i686-pc-msdosdjgpp/9.2.0/../../../../i686-pc-msdosdjgpp/bin/ld: /home/robert_/github/microwindows/src/lib/libnano-X.a(srvevent.o):srvevent.c:(.text+0x1680): undefined reference to `mousedev'
/usr/lib/gcc/i686-pc-msdosdjgpp/9.2.0/../../../../i686-pc-msdosdjgpp/bin/ld: /home/robert_/github/microwindows/src/lib/libnano-X.a(srvevent.o):srvevent.c:(.text+0x1b05): undefined reference to `mousedev'
/usr/lib/gcc/i686-pc-msdosdjgpp/9.2.0/../../../../i686-pc-msdosdjgpp/bin/ld: /home/robert_/github/microwindows/src/lib/libnano-X.a(devimage.o):devimage.c:(.text+0x27a): undefined reference to `scrdev'
/usr/lib/gcc/i686-pc-msdosdjgpp/9.2.0/../../../../i686-pc-msdosdjgpp/bin/ld: /home/robert_/github/microwindows/src/lib/libnano-X.a(devimage.o):devimage.c:(.text+0x38d): undefined reference to `scrdev'
/usr/lib/gcc/i686-pc-msdosdjgpp/9.2.0/../../../../i686-pc-msdosdjgpp/bin/ld: /home/robert_/github/microwindows/src/lib/libnano-X.a(devimage.o):devimage.c:(.text+0x3e7): undefined reference to `GdDecodePNG'
/usr/lib/gcc/i686-pc-msdosdjgpp/9.2.0/../../../../i686-pc-msdosdjgpp/bin/ld: /home/robert_/github/microwindows/src/lib/libnano-X.a(devimage.o):devimage.c:(.text+0x4c2): undefined reference to `scrdev'
/usr/lib/gcc/i686-pc-msdosdjgpp/9.2.0/../../../../i686-pc-msdosdjgpp/bin/ld: /home/robert_/github/microwindows/src/lib/libnano-X.a(devimage.o):devimage.c:(.text+0x771): undefined reference to `scrdev'
/usr/lib/gcc/i686-pc-msdosdjgpp/9.2.0/../../../../i686-pc-msdosdjgpp/bin/ld: /home/robert_/github/microwindows/src/lib/libnano-X.a(devimage.o):devimage.c:(.text+0x8a7): undefined reference to `scrdev'
/usr/lib/gcc/i686-pc-msdosdjgpp/9.2.0/../../../../i686-pc-msdosdjgpp/bin/ld: /home/robert_/github/microwindows/src/lib/libnano-X.a(devimage.o):devimage.c:(.text+0x907): undefined reference to `GdDecodePNG'
/usr/lib/gcc/i686-pc-msdosdjgpp/9.2.0/../../../../i686-pc-msdosdjgpp/bin/ld: /home/robert_/github/microwindows/src/lib/libnano-X.a(devimage.o):devimage.c:(.text+0x99b): undefined reference to `scrdev'
/usr/lib/gcc/i686-pc-msdosdjgpp/9.2.0/../../../../i686-pc-msdosdjgpp/bin/ld: /home/robert_/github/microwindows/src/lib/libnano-X.a(devimage.o):devimage.c:(.text+0xa8b): undefined reference to `scrdev'
/usr/lib/gcc/i686-pc-msdosdjgpp/9.2.0/../../../../i686-pc-msdosdjgpp/bin/ld: /home/robert_/github/microwindows/src/lib/libnano-X.a(devimage.o):devimage.c:(.text+0xc50): undefined reference to `scrdev'
/usr/lib/gcc/i686-pc-msdosdjgpp/9.2.0/../../../../i686-pc-msdosdjgpp/bin/ld: /home/robert_/github/microwindows/src/lib/libnano-X.a(devkbd.o):devkbd.c:(.text+0x4): undefined reference to `kbddev'
/usr/lib/gcc/i686-pc-msdosdjgpp/9.2.0/../../../../i686-pc-msdosdjgpp/bin/ld: /home/robert_/github/microwindows/src/lib/libnano-X.a(devkbd.o):devkbd.c:(.text+0xa): undefined reference to `kbddev'
/usr/lib/gcc/i686-pc-msdosdjgpp/9.2.0/../../../../i686-pc-msdosdjgpp/bin/ld: /home/robert_/github/microwindows/src/lib/libnano-X.a(devkbd.o):devkbd.c:(.text+0x22): undefined reference to `kbddev'
/usr/lib/gcc/i686-pc-msdosdjgpp/9.2.0/../../../../i686-pc-msdosdjgpp/bin/ld: /home/robert_/github/microwindows/src/lib/libnano-X.a(devkbd.o):devkbd.c:(.text+0x32): undefined reference to `kbddev'
/usr/lib/gcc/i686-pc-msdosdjgpp/9.2.0/../../../../i686-pc-msdosdjgpp/bin/ld: /home/robert_/github/microwindows/src/lib/libnano-X.a(devkbd.o):devkbd.c:(.text+0x42): undefined reference to `kbddev'
/usr/lib/gcc/i686-pc-msdosdjgpp/9.2.0/../../../../i686-pc-msdosdjgpp/bin/ld: /home/robert_/github/microwindows/src/lib/libnano-X.a(devmouse.o):devmouse.c:(.text+0x212): undefined reference to `mousedev'
/usr/lib/gcc/i686-pc-msdosdjgpp/9.2.0/../../../../i686-pc-msdosdjgpp/bin/ld: /home/robert_/github/microwindows/src/lib/libnano-X.a(devmouse.o):devmouse.c:(.text+0x225): undefined reference to `mousedev'
/usr/lib/gcc/i686-pc-msdosdjgpp/9.2.0/../../../../i686-pc-msdosdjgpp/bin/ld: /home/robert_/github/microwindows/src/lib/libnano-X.a(devmouse.o):devmouse.c:(.text+0x26c): undefined reference to `mousedev'
/usr/lib/gcc/i686-pc-msdosdjgpp/9.2.0/../../../../i686-pc-msdosdjgpp/bin/ld: /home/robert_/github/microwindows/src/lib/libnano-X.a(devmouse.o):devmouse.c:(.text+0x2ea): undefined reference to `mousedev'
/usr/lib/gcc/i686-pc-msdosdjgpp/9.2.0/../../../../i686-pc-msdosdjgpp/bin/ld: /home/robert_/github/microwindows/src/lib/libnano-X.a(devmouse.o):devmouse.c:(.text+0x3ac): undefined reference to `mousedev'
/usr/lib/gcc/i686-pc-msdosdjgpp/9.2.0/../../../../i686-pc-msdosdjgpp/bin/ld: /home/robert_/github/microwindows/src/lib/libnano-X.a(devmouse.o):devmouse.c:(.text+0x3d0): more undefined references to `mousedev' follow
/usr/lib/gcc/i686-pc-msdosdjgpp/9.2.0/../../../../i686-pc-msdosdjgpp/bin/ld: /home/robert_/github/microwindows/src/lib/libnano-X.a(devmouse.o):devmouse.c:(.text+0x3ec): undefined reference to `scrdev'
/usr/lib/gcc/i686-pc-msdosdjgpp/9.2.0/../../../../i686-pc-msdosdjgpp/bin/ld: /home/robert_/github/microwindows/src/lib/libnano-X.a(devmouse.o):devmouse.c:(.text+0x4aa): undefined reference to `mousedev'
/usr/lib/gcc/i686-pc-msdosdjgpp/9.2.0/../../../../i686-pc-msdosdjgpp/bin/ld: /home/robert_/github/microwindows/src/lib/libnano-X.a(devmouse.o):devmouse.c:(.text+0x551): undefined reference to `scrdev'
/usr/lib/gcc/i686-pc-msdosdjgpp/9.2.0/../../../../i686-pc-msdosdjgpp/bin/ld: /home/robert_/github/microwindows/src/lib/libnano-X.a(devmouse.o):devmouse.c:(.text+0x590): undefined reference to `scrdev'
/usr/lib/gcc/i686-pc-msdosdjgpp/9.2.0/../../../../i686-pc-msdosdjgpp/bin/ld: /home/robert_/github/microwindows/src/lib/libnano-X.a(devmouse.o):devmouse.c:(.text+0x69e): undefined reference to `scrdev'
/usr/lib/gcc/i686-pc-msdosdjgpp/9.2.0/../../../../i686-pc-msdosdjgpp/bin/ld: /home/robert_/github/microwindows/src/lib/libnano-X.a(devmouse.o):devmouse.c:(.text+0x6a4): undefined reference to `scrdev'
/usr/lib/gcc/i686-pc-msdosdjgpp/9.2.0/../../../../i686-pc-msdosdjgpp/bin/ld: /home/robert_/github/microwindows/src/lib/libnano-X.a(devmouse.o):devmouse.c:(.text+0x6b8): undefined reference to `scrdev'
/usr/lib/gcc/i686-pc-msdosdjgpp/9.2.0/../../../../i686-pc-msdosdjgpp/bin/ld: /home/robert_/github/microwindows/src/lib/libnano-X.a(devmouse.o):devmouse.c:(.text+0x83f): undefined reference to `mousedev'
/usr/lib/gcc/i686-pc-msdosdjgpp/9.2.0/../../../../i686-pc-msdosdjgpp/bin/ld: /home/robert_/github/microwindows/src/lib/libnano-X.a(devmouse.o):devmouse.c:(.text+0x8c7): undefined reference to `mousedev'
/usr/lib/gcc/i686-pc-msdosdjgpp/9.2.0/../../../../i686-pc-msdosdjgpp/bin/ld: /home/robert_/github/microwindows/src/lib/libnano-X.a(devmouse.o):devmouse.c:(.text+0x8e4): undefined reference to `mousedev'
/usr/lib/gcc/i686-pc-msdosdjgpp/9.2.0/../../../../i686-pc-msdosdjgpp/bin/ld: /home/robert_/github/microwindows/src/lib/libnano-X.a(devmouse.o):devmouse.c:(.text+0x8ea): undefined reference to `mousedev'
/usr/lib/gcc/i686-pc-msdosdjgpp/9.2.0/../../../../i686-pc-msdosdjgpp/bin/ld: /home/robert_/github/microwindows/src/lib/libnano-X.a(devmouse.o):devmouse.c:(.text+0x904): undefined reference to `scrdev'
/usr/lib/gcc/i686-pc-msdosdjgpp/9.2.0/../../../../i686-pc-msdosdjgpp/bin/ld: /home/robert_/github/microwindows/src/lib/libnano-X.a(devmouse.o):devmouse.c:(.text+0x95a): undefined reference to `scrdev'
/usr/lib/gcc/i686-pc-msdosdjgpp/9.2.0/../../../../i686-pc-msdosdjgpp/bin/ld: /home/robert_/github/microwindows/src/lib/libnano-X.a(devmouse.o):devmouse.c:(.text+0x98e): undefined reference to `scrdev'
/usr/lib/gcc/i686-pc-msdosdjgpp/9.2.0/../../../../i686-pc-msdosdjgpp/bin/ld: /home/robert_/github/microwindows/src/lib/libnano-X.a(devmouse.o):devmouse.c:(.text+0x9aa): undefined reference to `scrdev'
/usr/lib/gcc/i686-pc-msdosdjgpp/9.2.0/../../../../i686-pc-msdosdjgpp/bin/ld: /home/robert_/github/microwindows/src/lib/libnano-X.a(devmouse.o):devmouse.c:(.text+0x9d8): undefined reference to `scrdev'
/usr/lib/gcc/i686-pc-msdosdjgpp/9.2.0/../../../../i686-pc-msdosdjgpp/bin/ld: /home/robert_/github/microwindows/src/lib/libnano-X.a(devmouse.o):devmouse.c:(.text+0x9e7): more undefined references to `scrdev' follow
/usr/lib/gcc/i686-pc-msdosdjgpp/9.2.0/../../../../i686-pc-msdosdjgpp/bin/ld: /home/robert_/github/microwindows/src/lib/libnano-X.a(devmouse.o):devmouse.c:(.text+0xba2): undefined reference to `mousedev'
/usr/lib/gcc/i686-pc-msdosdjgpp/9.2.0/../../../../i686-pc-msdosdjgpp/bin/ld: /home/robert_/github/microwindows/src/lib/libnano-X.a(devmouse.o):devmouse.c:(.text+0xbea): undefined reference to `mousedev'
/usr/lib/gcc/i686-pc-msdosdjgpp/9.2.0/../../../../i686-pc-msdosdjgpp/bin/ld: /home/robert_/github/microwindows/src/lib/libnano-X.a(devmouse.o):devmouse.c:(.text+0xc05): undefined reference to `mousedev'
/usr/lib/gcc/i686-pc-msdosdjgpp/9.2.0/../../../../i686-pc-msdosdjgpp/bin/ld: /home/robert_/github/microwindows/src/lib/libnano-X.a(devopen.o):devopen.c:(.text+0x7): undefined reference to `scrdev'
/usr/lib/gcc/i686-pc-msdosdjgpp/9.2.0/../../../../i686-pc-msdosdjgpp/bin/ld: /home/robert_/github/microwindows/src/lib/libnano-X.a(devopen.o):devopen.c:(.text+0xd): undefined reference to `scrdev'
/usr/lib/gcc/i686-pc-msdosdjgpp/9.2.0/../../../../i686-pc-msdosdjgpp/bin/ld: /home/robert_/github/microwindows/src/lib/libnano-X.a(devopen.o):devopen.c:(.text+0x5e2): undefined reference to `scrdev'
/usr/lib/gcc/i686-pc-msdosdjgpp/9.2.0/../../../../i686-pc-msdosdjgpp/bin/ld: /home/robert_/github/microwindows/src/lib/libnano-X.a(image_bmp.o):image_bmp.c:(.text+0x22b): undefined reference to `scrdev'
/usr/lib/gcc/i686-pc-msdosdjgpp/9.2.0/../../../../i686-pc-msdosdjgpp/bin/ld: /home/robert_/github/microwindows/src/lib/libnano-X.a(image_bmp.o):image_bmp.c:(.text+0x80b): undefined reference to `scrdev'
/usr/lib/gcc/i686-pc-msdosdjgpp/9.2.0/../../../../i686-pc-msdosdjgpp/bin/ld: /home/robert_/github/microwindows/src/lib/libnano-X.a(image_bmp.o):image_bmp.c:(.text+0x844): more undefined references to `scrdev' follow
lighth7015 commented 4 years ago

And also, if anybody is wondering why I can't just compile under DOS, image :p

lighth7015 commented 4 years ago

@georgp24 should probably rename his fork of the makefile makefile.dj or makefile.nr :p

georgp24 commented 4 years ago

It is quite a while ago that I compiled it with djgpp. So I used an older version of djgpp and did not test the latest version of Microwindows if it will compile with djgpp. You need djgpp because you need the additional memory it provides and also the VESA driver was written for djgpp. If you have problems with freetype you can turn support for that off in the config file. Freetype is only used in a few demos.

lighth7015 commented 4 years ago

I have djgpp set up as a cross compiler, so that should work.

lighth7015 commented 4 years ago

And turning off FT2 makes no difference for compiling landmine.

ghaerr commented 4 years ago

So nano-x and nx11 both compile,

That's good news, as we'll need to find/use the files in "drivers/scr_xxx.c, mou_xxx.c, and kbd_xxx.c to get the demo apps linked (see below).

but the demo apps give me issues like,


/usr/lib/gcc/i686-pc-msdosdjgpp/9.2.0/../../../../i686-pc-msdosdjgpp/bin/ld: /home/robert_/github/microwindows/src/lib/libnano-X.a(srvmain.o):srvmain.c:(.text+0xb9): undefined reference to `scrdev'
/usr/lib/gcc/i686-pc-msdosdjgpp/9.2.0/../../../../i686-pc-msdosdjgpp/bin/ld: /home/robert_/github/microwindows/src/lib/libnano-X.a(srvevent.o):srvevent.c:(.text+0x925): undefined reference to `kbddev'
/usr/lib/gcc/i686-pc-msdosdjgpp/9.2.0/../../../../i686-pc-msdosdjgpp/bin/ld: /home/robert_/github/microwindows/src/lib/libnano-X.a(srvevent.o):srvevent.c:(.text+0x1680): undefined reference to `mousedev'

The three references above to 'scrdev', 'kbddev', and 'mousedev' are the screen, kbd and mouse drivers, required when the demos are statically linked to the server, as will be the case on non-multiprocessing OS's like MSDOS. Find the files that worked on the nano-X build and add them to the demo lines in makefile_nr.

ghaerr commented 4 years ago

And turning off FT2 makes no difference for compiling landmine.

FT2 isn't required, and if configured out, all programs will use core text-based or simpler fonts instead. For the first pass, I'd recommend turning off almost all options (see 'src/config' for ideas, all of these are ignored and set separately 'makefile_nr' however).

You need djgpp because you need the additional memory it provides and also the VESA driver was written for djgpp.

The DJGPP drivers are in drivers/*dj*.c. I'd recommend using scr_djvesa.c for the screen driver, kbd_dj.c for keyboard, and probably mou_dos.c. @georgp24 will have to say what he used for testing unless that information is already in makefile_nr.

I'm sorry for all the errors, DJGPP hasn't been tested in a while and I can't run it over here.

georgp24 commented 4 years ago

My understanding is that these drivers should be statically linked to libnano-X.a and if you compile the demos you just have to add libnano-X to the command line. Check if these drivers are selected in the config file when you compile libnano-X. If they are not, or the called makefile compiling the files in the drivers directory does not work you may get this problem. The Makefile_nr calls the Makefile_drivers file in the contrib/makefiles_nr directory to compile the required drivers in the drivers directory.

lighth7015 commented 4 years ago

Okay, so a bunch of updates. A handful of missing sources (probably removed and the demos not bothered being sync'd), but nanox/error.c is missing (or was removed) from trunk, and am working on recompiling ALL of the dependencies (e.g. libpng). Will give a detailed description of my findings when I'm through recompiling every library that needs it. djgpp on linux is a nonstarter, because it injects symbols that clash (e.g._rdtsc) when linked together as a list of separate compilation units.

ghaerr commented 4 years ago

nanox/error.c is missing (or was removed) from trunk

That file used to define GdError, which has now been moved, along with many of the other system-dependent functions, to drivers/osdep.c.

working on recompiling ALL of the dependencies (e.g. libpng). Will give a detailed description of my findings when I'm through recompiling every library that needs

It would be far easier to unset the external dependencies in the beginning, until you get a working demo program. Nano-X was designed such that this is easily possible. (see Makefile.rules and Arch.rules for more details).

makefile_nr doesn't use any config options, but they are easily set/unset in there once understood from the above. It would be nice to move DJGPP into the cross-compilation supported by the rest of the build system, except that it seems make won't run on the cross-compiling host.

djgpp on linux is a nonstarter, because it injects symbols that clash (e.g._rdtsc) when linked together as a list of separate compilation units.

That's too bad, it would make getting this working a lot easier!

lighth7015 commented 4 years ago

Another update, actually I just noticed that it makes no difference really whether it's DOS or linux; I'm getting this for a lot of _rdtsc symbols being defined. Any idea what it's trying to do here?

This is my compile log-

gcc   -Wno-deprecated-declarations -O3 -s -DHAVE_FILEIO=1 -DMW_FEATURE_IMAGES=1 -DMW_FEATURE_TIMERS=1 -DHAVE_SIGNAL=0 -DHAVE_FPRINTF=0 -DNONETWORK=1 -DUPDATEREGIONS=1 -DERASEMOVE=1 -DHAVE_MMAP=0 -DNANOWM=1 -DHAVE_BMP_SUPPORT=1 -DHAVE_GIF_SUPPORT=1 -DHAVE_PNM_SUPPORT=0 -DHAVE_XPM_SUPPORT=1 -DHAVE_JPEG_SUPPORT=1 -DHAVE_PNG_SUPPORT=1 -DHAVE_FNT_SUPPORT=1 -DHAVE_FREETYPE_2_SUPPORT=1 -I/usr/include/freetype2 -DSCREEN_HEIGHT=768 -DSCREEN_WIDTH=1024 -DSCREEN_DEPTH=8 -DSCREEN_PIXTYPE=MWPF_TRUECOLORARGB -DMWPIXEL_FORMAT=MWPF_TRUECOLORARGB -Lc:/mwinsrc/src/lib -Ic:/mwinsrc/src/include -o c:/mwinsrc/src/bin/landmine.exe demos/nanox/landmine.o  -ljpeg -lpng -lft2 -lz -lnano-X
c:/mwinsrc/src/lib/libnano-X.a(nxutil.o):nxutil.c:(.text+0x0): multiple definition of `__rdtsc'
c:/mwinsrc/src/lib/libnano-X.a(srvfunc.o):srvfunc.c:(.text+0xf0): first defined here
c:/mwinsrc/src/lib/libnano-X.a(srvnonet.o):srvnonet.c:(.text+0x70): multiple definition of `__rdtsc'
c:/mwinsrc/src/lib/libnano-X.a(srvfunc.o):srvfunc.c:(.text+0xf0): first defined here
c:/mwinsrc/src/lib/libnano-X.a(srvmain.o):srvmain.c:(.text+0x0): multiple definition of `__rdtsc'
c:/mwinsrc/src/lib/libnano-X.a(srvfunc.o):srvfunc.c:(.text+0xf0): first defined here
c:/mwinsrc/src/lib/libnano-X.a(srvevent.o):srvevent.c:(.text+0x80): multiple definition of `__rdtsc'
c:/mwinsrc/src/lib/libnano-X.a(srvfunc.o):srvfunc.c:(.text+0xf0): first defined here
c:/mwinsrc/src/lib/libnano-X.a(srvutil.o):srvutil.c:(.text+0x20): multiple definition of `__rdtsc'
c:/mwinsrc/src/lib/libnano-X.a(srvfunc.o):srvfunc.c:(.text+0xf0): first defined here
c:/mwinsrc/src/lib/libnano-X.a(devopen.o):devopen.c:(.text+0x0): multiple definition of `__rdtsc'
c:/mwinsrc/src/lib/libnano-X.a(srvfunc.o):srvfunc.c:(.text+0xf0): first defined here
c:/mwinsrc/src/lib/libnano-X.a(devfont.o):devfont.c:(.text+0x0): multiple definition of `__rdtsc'
c:/mwinsrc/src/lib/libnano-X.a(srvfunc.o):srvfunc.c:(.text+0xf0): first defined here
c:/mwinsrc/src/lib/libnano-X.a(devrgn.o):devrgn.c:(.text+0x7a0): multiple definition of `__rdtsc'
c:/mwinsrc/src/lib/libnano-X.a(srvfunc.o):srvfunc.c:(.text+0xf0): first defined here
c:/mwinsrc/src/lib/libnano-X.a(devrgn2.o):devrgn2.c:(.text+0x0): multiple definition of `__rdtsc'
c:/mwinsrc/src/lib/libnano-X.a(srvfunc.o):srvfunc.c:(.text+0xf0): first defined here
c:/mwinsrc/src/lib/libnano-X.a(scr_djvesa.o):scr_djvesa.c:(.text+0x350): multiple definition of `__rdtsc'
c:/mwinsrc/src/lib/libnano-X.a(srvfunc.o):srvfunc.c:(.text+0xf0): first defined here
c:/mwinsrc/src/lib/libnano-X.a(genmem.o):genmem.c:(.text+0x0): multiple definition of `__rdtsc'
c:/mwinsrc/src/lib/libnano-X.a(srvfunc.o):srvfunc.c:(.text+0xf0): first defined here
c:/mwinsrc/src/lib/libnano-X.a(devmouse.o):devmouse.c:(.text+0x210): multiple definition of `__rdtsc'
c:/mwinsrc/src/lib/libnano-X.a(srvfunc.o):srvfunc.c:(.text+0xf0): first defined here
c:/mwinsrc/src/lib/libnano-X.a(devdraw.o):devdraw.c:(.text+0x0): multiple definition of `__rdtsc'
c:/mwinsrc/src/lib/libnano-X.a(srvfunc.o):srvfunc.c:(.text+0xf0): first defined here
c:/mwinsrc/src/lib/libnano-X.a(devarc.o):devarc.c:(.text+0xbc0): multiple definition of `__rdtsc'
c:/mwinsrc/src/lib/libnano-X.a(srvfunc.o):srvfunc.c:(.text+0xf0): first defined here
c:/mwinsrc/src/lib/libnano-X.a(devimage.o):devimage.c:(.text+0x0): multiple definition of `__rdtsc'
c:/mwinsrc/src/lib/libnano-X.a(srvfunc.o):srvfunc.c:(.text+0xf0): first defined here
c:/mwinsrc/src/lib/libnano-X.a(devblit.o):devblit.c:(.text+0x30): multiple definition of `__rdtsc'
c:/mwinsrc/src/lib/libnano-X.a(srvfunc.o):srvfunc.c:(.text+0xf0): first defined here
c:/mwinsrc/src/lib/libnano-X.a(devclip.o):devclip.c:(.text+0x0): multiple definition of `__rdtsc'
c:/mwinsrc/src/lib/libnano-X.a(srvfunc.o):srvfunc.c:(.text+0xf0): first defined here
c:/mwinsrc/src/lib/libnano-X.a(devpoly.o):devpoly.c:(.text+0x50): multiple definition of `__rdtsc'
c:/mwinsrc/src/lib/libnano-X.a(srvfunc.o):srvfunc.c:(.text+0xf0): first defined here
c:/mwinsrc/src/lib/libnano-X.a(devtimer.o):devtimer.c:(.text+0x0): multiple definition of `__rdtsc'
c:/mwinsrc/src/lib/libnano-X.a(srvfunc.o):srvfunc.c:(.text+0xf0): first defined here
c:/mwinsrc/src/lib/libnano-X.a(devkbd.o):devkbd.c:(.text+0x0): multiple definition of `__rdtsc'
c:/mwinsrc/src/lib/libnano-X.a(srvfunc.o):srvfunc.c:(.text+0xf0): first defined here
c:/mwinsrc/src/lib/libnano-X.a(srvclip.o):srvclip.c:(.text+0x0): multiple definition of `__rdtsc'
c:/mwinsrc/src/lib/libnano-X.a(srvfunc.o):srvfunc.c:(.text+0xf0): first defined here
c:/mwinsrc/src/lib/libnano-X.a(fb.o):fb.c:(.text+0x0): multiple definition of `__rdtsc'
c:/mwinsrc/src/lib/libnano-X.a(srvfunc.o):srvfunc.c:(.text+0xf0): first defined here
c:/mwinsrc/src/lib/libnano-X.a(devstipple.o):devstipple.c:(.text+0x180): multiple definition of `__rdtsc'
c:/mwinsrc/src/lib/libnano-X.a(srvfunc.o):srvfunc.c:(.text+0xf0): first defined here
c:/mwinsrc/src/lib/libnano-X.a(devpal1.o):devpal1.c:(.text+0x0): multiple definition of `__rdtsc'
c:/mwinsrc/src/lib/libnano-X.a(srvfunc.o):srvfunc.c:(.text+0xf0): first defined here
c:/mwinsrc/src/lib/libnano-X.a(devpal4.o):devpal4.c:(.text+0x0): multiple definition of `__rdtsc'
c:/mwinsrc/src/lib/libnano-X.a(srvfunc.o):srvfunc.c:(.text+0xf0): first defined here
c:/mwinsrc/src/lib/libnano-X.a(devpal2.o):devpal2.c:(.text+0x0): multiple definition of `__rdtsc'
c:/mwinsrc/src/lib/libnano-X.a(srvfunc.o):srvfunc.c:(.text+0xf0): first defined here
c:/mwinsrc/src/lib/libnano-X.a(genfont.o):genfont.c:(.text+0x250): multiple definition of `__rdtsc'
c:/mwinsrc/src/lib/libnano-X.a(srvfunc.o):srvfunc.c:(.text+0xf0): first defined here
c:/mwinsrc/src/lib/libnano-X.a(font_fnt.o):font_fnt.c:(.text+0x790): multiple definition of `__rdtsc'
c:/mwinsrc/src/lib/libnano-X.a(srvfunc.o):srvfunc.c:(.text+0xf0): first defined here
c:/mwinsrc/src/lib/libnano-X.a(font_freetype2.o):font_freetype2.c:(.text+0x1900): multiple definition of `__rdtsc'
c:/mwinsrc/src/lib/libnano-X.a(srvfunc.o):srvfunc.c:(.text+0xf0): first defined here
c:/mwinsrc/src/lib/libnano-X.a(font_dbcs.o):font_dbcs.c:(.text+0x0): multiple definition of `__rdtsc'
c:/mwinsrc/src/lib/libnano-X.a(srvfunc.o):srvfunc.c:(.text+0xf0): first defined here
c:/mwinsrc/src/lib/libnano-X.a(image_bmp.o):image_bmp.c:(.text+0x0): multiple definition of `__rdtsc'
c:/mwinsrc/src/lib/libnano-X.a(srvfunc.o):srvfunc.c:(.text+0xf0): first defined here
c:/mwinsrc/src/lib/libnano-X.a(image_gif.o):image_gif.c:(.text+0x8a0): multiple definition of `__rdtsc'
c:/mwinsrc/src/lib/libnano-X.a(srvfunc.o):srvfunc.c:(.text+0xf0): first defined here
c:/mwinsrc/src/lib/libnano-X.a(image_jpeg.o):image_jpeg.c:(.text+0x70): multiple definition of `__rdtsc'
c:/mwinsrc/src/lib/libnano-X.a(srvfunc.o):srvfunc.c:(.text+0xf0): first defined here
c:/mwinsrc/src/lib/libnano-X.a(image_png.o):image_png.c:(.text+0x30): multiple definition of `__rdtsc'
c:/mwinsrc/src/lib/libnano-X.a(srvfunc.o):srvfunc.c:(.text+0xf0): first defined here
c:/mwinsrc/src/lib/libnano-X.a(image_xpm.o):image_xpm.c:(.text+0x0): multiple definition of `__rdtsc'
c:/mwinsrc/src/lib/libnano-X.a(srvfunc.o):srvfunc.c:(.text+0xf0): first defined here
c:/mwinsrc/src/lib/libnano-X.a(devimage_stretch.o):devimage_stretch.c:(.text+0x0): multiple definition of `__rdtsc'
c:/mwinsrc/src/lib/libnano-X.a(srvfunc.o):srvfunc.c:(.text+0xf0): first defined here
c:/mwinsrc/src/lib/libnano-X.a(convblit_8888.o):convblit_8888.c:(.text+0x0): multiple definition of `__rdtsc'
c:/mwinsrc/src/lib/libnano-X.a(srvfunc.o):srvfunc.c:(.text+0xf0): first defined here
c:/mwinsrc/src/lib/libnano-X.a(fblin32.o):fblin32.c:(.text+0x900): multiple definition of `__rdtsc'
c:/mwinsrc/src/lib/libnano-X.a(srvfunc.o):srvfunc.c:(.text+0xf0): first defined here
c:/mwinsrc/src/lib/libnano-X.a(fblin1.o):fblin1.c:(.text+0xac0): multiple definition of `__rdtsc'
c:/mwinsrc/src/lib/libnano-X.a(srvfunc.o):srvfunc.c:(.text+0xf0): first defined here
c:/mwinsrc/src/lib/libnano-X.a(fblin4.o):fblin4.c:(.text+0x1830): multiple definition of `__rdtsc'
c:/mwinsrc/src/lib/libnano-X.a(srvfunc.o):srvfunc.c:(.text+0xf0): first defined here
c:/mwinsrc/src/lib/libnano-X.a(fblin8.o):fblin8.c:(.text+0x3440): multiple definition of `__rdtsc'
c:/mwinsrc/src/lib/libnano-X.a(srvfunc.o):srvfunc.c:(.text+0xf0): first defined here
c:/mwinsrc/src/lib/libnano-X.a(fblin2.o):fblin2.c:(.text+0x7e0): multiple definition of `__rdtsc'
c:/mwinsrc/src/lib/libnano-X.a(srvfunc.o):srvfunc.c:(.text+0xf0): first defined here
c:/mwinsrc/src/lib/libnano-X.a(fblin16.o):fblin16.c:(.text+0x1190): multiple definition of `__rdtsc'
c:/mwinsrc/src/lib/libnano-X.a(srvfunc.o):srvfunc.c:(.text+0xf0): first defined here
c:/mwinsrc/src/lib/libnano-X.a(fblin24.o):fblin24.c:(.text+0x15d0): multiple definition of `__rdtsc'
c:/mwinsrc/src/lib/libnano-X.a(srvfunc.o):srvfunc.c:(.text+0xf0): first defined here
c:/mwinsrc/src/lib/libnano-X.a(winFreeSansSerif11x13.o):winFreeSansSerif11x13.c:(.text+0x0): multiple definition of `__rdtsc'
c:/mwinsrc/src/lib/libnano-X.a(srvfunc.o):srvfunc.c:(.text+0xf0): first defined here
c:/mwinsrc/src/lib/libnano-X.a(X6x13.o):X6x13.c:(.text+0x0): multiple definition of `__rdtsc'
c:/mwinsrc/src/lib/libnano-X.a(srvfunc.o):srvfunc.c:(.text+0xf0): first defined here
c:/mwinsrc/src/lib/libnano-X.a(fbportrait_down.o):fbportrait_down.c:(.text+0x720): multiple definition of `__rdtsc'
c:/mwinsrc/src/lib/libnano-X.a(srvfunc.o):srvfunc.c:(.text+0xf0): first defined here
c:/mwinsrc/src/lib/libnano-X.a(convblit_frameb.o):convblit_frameb.c:(.text+0x0): multiple definition of `__rdtsc'
c:/mwinsrc/src/lib/libnano-X.a(srvfunc.o):srvfunc.c:(.text+0xf0): first defined here
c:/mwinsrc/src/lib/libnano-X.a(convblit_mask.o):convblit_mask.c:(.text+0x0): multiple definition of `__rdtsc'
c:/mwinsrc/src/lib/libnano-X.a(srvfunc.o):srvfunc.c:(.text+0xf0): first defined here
c:/mwinsrc/src/lib/libnano-X.a(fbportrait_right.o):fbportrait_right.c:(.text+0x690): multiple definition of `__rdtsc'
c:/mwinsrc/src/lib/libnano-X.a(srvfunc.o):srvfunc.c:(.text+0xf0): first defined here
c:/mwinsrc/src/lib/libnano-X.a(fbportrait_left.o):fbportrait_left.c:(.text+0x6c0): multiple definition of `__rdtsc'
c:/mwinsrc/src/lib/libnano-X.a(srvfunc.o):srvfunc.c:(.text+0xf0): first defined here
c:/mwinsrc/src/lib/libnano-X.a(rasterops.o):rasterops.c:(.text+0x0): multiple definition of `__rdtsc'
c:/mwinsrc/src/lib/libnano-X.a(srvfunc.o):srvfunc.c:(.text+0xf0): first defined here
c:/mwinsrc/src/lib/libnano-X.a(srvevent.o):srvevent.c:(.text+0x935): undefined reference to `_kbddev'
c:/mwinsrc/src/lib/libnano-X.a(srvevent.o):srvevent.c:(.text+0x1690): undefined reference to `_mousedev'
c:/mwinsrc/src/lib/libnano-X.a(srvevent.o):srvevent.c:(.text+0x1b15): undefined reference to `_mousedev'
c:/mwinsrc/src/lib/libnano-X.a(devmouse.o):devmouse.c:(.text+0x222): undefined reference to `_mousedev'
c:/mwinsrc/src/lib/libnano-X.a(devmouse.o):devmouse.c:(.text+0x235): undefined reference to `_mousedev'
c:/mwinsrc/src/lib/libnano-X.a(devmouse.o):devmouse.c:(.text+0x27c): undefined reference to `_mousedev'
c:/mwinsrc/src/lib/libnano-X.a(devmouse.o):devmouse.c:(.text+0x2fa): more undefined references to `_mousedev' follow
c:/mwinsrc/src/lib/libnano-X.a(devkbd.o):devkbd.c:(.text+0x14): undefined reference to `_kbddev'
c:/mwinsrc/src/lib/libnano-X.a(devkbd.o):devkbd.c:(.text+0x1a): undefined reference to `_kbddev'
c:/mwinsrc/src/lib/libnano-X.a(devkbd.o):devkbd.c:(.text+0x32): undefined reference to `_kbddev'
c:/mwinsrc/src/lib/libnano-X.a(devkbd.o):devkbd.c:(.text+0x42): undefined reference to `_kbddev'
c:/mwinsrc/src/lib/libnano-X.a(devkbd.o):devkbd.c:(.text+0x52): undefined reference to `_kbddev'
c:/mwinsrc/src/lib/libnano-X.a(font_freetype2.o):font_freetype2.c:(.text+0x130): undefined reference to `_FTC_Manager_LookupSize'
c:/mwinsrc/src/lib/libnano-X.a(font_freetype2.o):font_freetype2.c:(.text+0x282): undefined reference to `_FT_Vector_Unit'
c:/mwinsrc/src/lib/libnano-X.a(font_freetype2.o):font_freetype2.c:(.text+0x35d): undefined reference to `_FTC_Manager_LookupSize'
c:/mwinsrc/src/lib/libnano-X.a(font_freetype2.o):font_freetype2.c:(.text+0x50e): undefined reference to `_FTC_CMapCache_Lookup'
c:/mwinsrc/src/lib/libnano-X.a(font_freetype2.o):font_freetype2.c:(.text+0x58a): undefined reference to `_FTC_CMapCache_Lookup'
c:/mwinsrc/src/lib/libnano-X.a(font_freetype2.o):font_freetype2.c:(.text+0x5c6): undefined reference to `_FTC_SBitCache_Lookup'
c:/mwinsrc/src/lib/libnano-X.a(font_freetype2.o):font_freetype2.c:(.text+0x72b): undefined reference to `_FTC_CMapCache_Lookup'
c:/mwinsrc/src/lib/libnano-X.a(font_freetype2.o):font_freetype2.c:(.text+0x760): undefined reference to `_FT_Load_Glyph'
c:/mwinsrc/src/lib/libnano-X.a(font_freetype2.o):font_freetype2.c:(.text+0x77b): undefined reference to `_FT_Get_Glyph'
c:/mwinsrc/src/lib/libnano-X.a(font_freetype2.o):font_freetype2.c:(.text+0x799): undefined reference to `_FT_Glyph_Transform'
c:/mwinsrc/src/lib/libnano-X.a(font_freetype2.o):font_freetype2.c:(.text+0x7b9): undefined reference to `_FT_Glyph_Transform'
c:/mwinsrc/src/lib/libnano-X.a(font_freetype2.o):font_freetype2.c:(.text+0x7cb): undefined reference to `_FT_Glyph_To_Bitmap'
c:/mwinsrc/src/lib/libnano-X.a(font_freetype2.o):font_freetype2.c:(.text+0x852): undefined reference to `_FT_Done_Glyph'
c:/mwinsrc/src/lib/libnano-X.a(font_freetype2.o):font_freetype2.c:(.text+0x87b): undefined reference to `_FTC_CMapCache_Lookup'
c:/mwinsrc/src/lib/libnano-X.a(font_freetype2.o):font_freetype2.c:(.text+0x8b2): undefined reference to `_FT_Get_Kerning'
c:/mwinsrc/src/lib/libnano-X.a(font_freetype2.o):font_freetype2.c:(.text+0x9ac): undefined reference to `_FT_Get_Kerning'
c:/mwinsrc/src/lib/libnano-X.a(font_freetype2.o):font_freetype2.c:(.text+0xb3a): undefined reference to `_FTC_Manager_Reset'
c:/mwinsrc/src/lib/libnano-X.a(font_freetype2.o):font_freetype2.c:(.text+0xbcc): undefined reference to `_FTC_Manager_LookupSize'
c:/mwinsrc/src/lib/libnano-X.a(font_freetype2.o):font_freetype2.c:(.text+0xc59): undefined reference to `_FTC_CMapCache_Lookup'
c:/mwinsrc/src/lib/libnano-X.a(font_freetype2.o):font_freetype2.c:(.text+0xc70): undefined reference to `_FT_Load_Glyph'
c:/mwinsrc/src/lib/libnano-X.a(font_freetype2.o):font_freetype2.c:(.text+0xc8b): undefined reference to `_FT_Get_Glyph'
c:/mwinsrc/src/lib/libnano-X.a(font_freetype2.o):font_freetype2.c:(.text+0xca9): undefined reference to `_FT_Glyph_Transform'
c:/mwinsrc/src/lib/libnano-X.a(font_freetype2.o):font_freetype2.c:(.text+0xcc9): undefined reference to `_FT_Glyph_Transform'
c:/mwinsrc/src/lib/libnano-X.a(font_freetype2.o):font_freetype2.c:(.text+0xce7): undefined reference to `_FT_Glyph_Get_CBox'
c:/mwinsrc/src/lib/libnano-X.a(font_freetype2.o):font_freetype2.c:(.text+0xd2e): undefined reference to `_FT_Done_Glyph'
c:/mwinsrc/src/lib/libnano-X.a(font_freetype2.o):font_freetype2.c:(.text+0xd5a): undefined reference to `_FTC_CMapCache_Lookup'
c:/mwinsrc/src/lib/libnano-X.a(font_freetype2.o):font_freetype2.c:(.text+0xd92): undefined reference to `_FT_Get_Kerning'
c:/mwinsrc/src/lib/libnano-X.a(font_freetype2.o):font_freetype2.c:(.text+0xe2b): undefined reference to `_FTC_Manager_LookupSize'
c:/mwinsrc/src/lib/libnano-X.a(font_freetype2.o):font_freetype2.c:(.text+0xea3): undefined reference to `_FTC_CMapCache_Lookup'
c:/mwinsrc/src/lib/libnano-X.a(font_freetype2.o):font_freetype2.c:(.text+0xee4): undefined reference to `_FT_Load_Glyph'
c:/mwinsrc/src/lib/libnano-X.a(font_freetype2.o):font_freetype2.c:(.text+0xeff): undefined reference to `_FT_Get_Glyph'
c:/mwinsrc/src/lib/libnano-X.a(font_freetype2.o):font_freetype2.c:(.text+0xf29): undefined reference to `_FTC_CMapCache_Lookup'
c:/mwinsrc/src/lib/libnano-X.a(font_freetype2.o):font_freetype2.c:(.text+0xf77): undefined reference to `_FTC_SBitCache_Lookup'
c:/mwinsrc/src/lib/libnano-X.a(font_freetype2.o):font_freetype2.c:(.text+0xff7): undefined reference to `_FT_Glyph_Get_CBox'
c:/mwinsrc/src/lib/libnano-X.a(font_freetype2.o):font_freetype2.c:(.text+0x101d): undefined reference to `_FT_Glyph_Get_CBox'
c:/mwinsrc/src/lib/libnano-X.a(font_freetype2.o):font_freetype2.c:(.text+0x1027): undefined reference to `_FT_Done_Glyph'
c:/mwinsrc/src/lib/libnano-X.a(font_freetype2.o):font_freetype2.c:(.text+0x1054): undefined reference to `_FT_Get_Kerning'
c:/mwinsrc/src/lib/libnano-X.a(font_freetype2.o):font_freetype2.c:(.text+0x11a1): undefined reference to `_FTC_Manager_New'
c:/mwinsrc/src/lib/libnano-X.a(font_freetype2.o):font_freetype2.c:(.text+0x11c1): undefined reference to `_FTC_SBitCache_New'
c:/mwinsrc/src/lib/libnano-X.a(font_freetype2.o):font_freetype2.c:(.text+0x11dd): undefined reference to `_FTC_CMapCache_New'
c:/mwinsrc/src/lib/libnano-X.a(font_freetype2.o):font_freetype2.c:(.text+0x1214): undefined reference to `_FTC_Manager_Done'
c:/mwinsrc/src/lib/libnano-X.a(font_freetype2.o):font_freetype2.c:(.text+0x122a): undefined reference to `_FT_Done_FreeType'
c:/mwinsrc/src/lib/libnano-X.a(font_freetype2.o):font_freetype2.c:(.text+0x1264): undefined reference to `_FT_Done_FreeType'
c:/mwinsrc/src/lib/libnano-X.a(font_freetype2.o):font_freetype2.c:(.text+0x12ae): undefined reference to `_FTC_Manager_Done'
c:/mwinsrc/src/lib/libnano-X.a(font_freetype2.o):font_freetype2.c:(.text+0x12c4): undefined reference to `_FT_Done_FreeType'
c:/mwinsrc/src/lib/libnano-X.a(font_freetype2.o):font_freetype2.c:(.text+0x1364): undefined reference to `_FT_Init_FreeType'
c:/mwinsrc/src/lib/libnano-X.a(font_freetype2.o):font_freetype2.c:(.text+0x13c4): undefined reference to `_FT_New_Memory_Face'
c:/mwinsrc/src/lib/libnano-X.a(font_freetype2.o):font_freetype2.c:(.text+0x1428): undefined reference to `_FTC_Manager_LookupSize'
c:/mwinsrc/src/lib/libnano-X.a(font_freetype2.o):font_freetype2.c:(.text+0x159a): undefined reference to `_FTC_CMapCache_Lookup'
c:/mwinsrc/src/lib/libnano-X.a(font_freetype2.o):font_freetype2.c:(.text+0x15b6): undefined reference to `_FT_Load_Glyph'
c:/mwinsrc/src/lib/libnano-X.a(font_freetype2.o):font_freetype2.c:(.text+0x15f6): undefined reference to `_FTC_SBitCache_Lookup'
c:/mwinsrc/src/lib/libnano-X.a(font_freetype2.o):font_freetype2.c:(.text+0x17dc): undefined reference to `_FT_Init_FreeType'
c:/mwinsrc/src/lib/libnano-X.a(font_freetype2.o):font_freetype2.c:(.text+0x19a4): undefined reference to `_FT_Init_FreeType'
c:/mwinsrc/src/lib/libnano-X.a(font_freetype2.o):font_freetype2.c:(.text+0x13e5): undefined reference to `_FT_New_Face'
c:/mwinsrc/src/lib/libnano-X.a(image_jpeg.o):image_jpeg.c:(.text+0x163): undefined reference to `_jpeg_std_error'
c:/mwinsrc/src/lib/libnano-X.a(image_jpeg.o):image_jpeg.c:(.text+0x181): undefined reference to `_jpeg_CreateDecompress'
c:/mwinsrc/src/lib/libnano-X.a(image_jpeg.o):image_jpeg.c:(.text+0x1c4): undefined reference to `_jpeg_read_header'
c:/mwinsrc/src/lib/libnano-X.a(image_jpeg.o):image_jpeg.c:(.text+0x1f9): undefined reference to `_jpeg_calc_output_dimensions'
c:/mwinsrc/src/lib/libnano-X.a(image_jpeg.o):image_jpeg.c:(.text+0x234): undefined reference to `_jpeg_finish_decompress'
c:/mwinsrc/src/lib/libnano-X.a(image_jpeg.o):image_jpeg.c:(.text+0x23c): undefined reference to `_jpeg_destroy_decompress'
c:/mwinsrc/src/lib/libnano-X.a(image_jpeg.o):image_jpeg.c:(.text+0x3a6): undefined reference to `_jpeg_start_decompress'
c:/mwinsrc/src/lib/libnano-X.a(image_jpeg.o):image_jpeg.c:(.text+0x3db): undefined reference to `_jpeg_read_scanlines'
c:/mwinsrc/src/lib/libnano-X.a(image_jpeg.o):image_jpeg.c:(.text+0x51): undefined reference to `_jpeg_resync_to_restart'
c:/mwinsrc/src/lib/libnano-X.a(image_png.o):image_png.c:(.text+0x12): undefined reference to `_png_get_io_ptr'
c:/mwinsrc/src/lib/libnano-X.a(image_png.o):image_png.c:(.text+0x9a): undefined reference to `_png_sig_cmp'
c:/mwinsrc/src/lib/libnano-X.a(image_png.o):image_png.c:(.text+0xb5): undefined reference to `_png_create_read_struct'
c:/mwinsrc/src/lib/libnano-X.a(image_png.o):image_png.c:(.text+0xcd): undefined reference to `_png_create_info_struct'
c:/mwinsrc/src/lib/libnano-X.a(image_png.o):image_png.c:(.text+0xf2): undefined reference to `_png_set_longjmp_fn'
c:/mwinsrc/src/lib/libnano-X.a(image_png.o):image_png.c:(.text+0x11a): undefined reference to `_png_set_read_fn'
c:/mwinsrc/src/lib/libnano-X.a(image_png.o):image_png.c:(.text+0x127): undefined reference to `_png_set_sig_bytes'
c:/mwinsrc/src/lib/libnano-X.a(image_png.o):image_png.c:(.text+0x136): undefined reference to `_png_read_info'
c:/mwinsrc/src/lib/libnano-X.a(image_png.o):image_png.c:(.text+0x162): undefined reference to `_png_get_IHDR'
c:/mwinsrc/src/lib/libnano-X.a(image_png.o):image_png.c:(.text+0x194): undefined reference to `_png_get_valid'
c:/mwinsrc/src/lib/libnano-X.a(image_png.o):image_png.c:(.text+0x1b5): undefined reference to `_png_set_strip_16'
c:/mwinsrc/src/lib/libnano-X.a(image_png.o):image_png.c:(.text+0x1cb): undefined reference to `_png_get_valid'
c:/mwinsrc/src/lib/libnano-X.a(image_png.o):image_png.c:(.text+0x1ef): undefined reference to `_png_set_gray_to_rgb'
c:/mwinsrc/src/lib/libnano-X.a(image_png.o):image_png.c:(.text+0x208): undefined reference to `_png_get_gAMA'
c:/mwinsrc/src/lib/libnano-X.a(image_png.o):image_png.c:(.text+0x230): undefined reference to `_png_set_gamma'
c:/mwinsrc/src/lib/libnano-X.a(image_png.o):image_png.c:(.text+0x244): undefined reference to `_png_read_update_info'
c:/mwinsrc/src/lib/libnano-X.a(image_png.o):image_png.c:(.text+0x270): undefined reference to `_png_get_IHDR'
c:/mwinsrc/src/lib/libnano-X.a(image_png.o):image_png.c:(.text+0x306): undefined reference to `_png_read_image'
c:/mwinsrc/src/lib/libnano-X.a(image_png.o):image_png.c:(.text+0x313): undefined reference to `_png_read_end'
c:/mwinsrc/src/lib/libnano-X.a(image_png.o):image_png.c:(.text+0x333): undefined reference to `_png_destroy_read_struct'
c:/mwinsrc/src/lib/libnano-X.a(image_png.o):image_png.c:(.text+0x358): undefined reference to `_png_destroy_read_struct'
c:/mwinsrc/src/lib/libnano-X.a(image_png.o):image_png.c:(.text+0x390): undefined reference to `_png_destroy_read_struct'
c:/mwinsrc/src/lib/libnano-X.a(image_png.o):image_png.c:(.text+0x3a5): undefined reference to `_png_set_expand'
c:/mwinsrc/src/lib/libnano-X.a(image_png.o):image_png.c:(.text+0x3bd): undefined reference to `_png_set_tRNS_to_alpha'
c:/mwinsrc/src/lib/libnano-X.a(image_png.o):image_png.c:(.text+0x3d5): undefined reference to `_png_set_expand'
c:/mwinsrc/src/lib/libnano-X.a(image_png.o):image_png.c:(.text+0x3ed): undefined reference to `_png_set_expand'
c:/mwinsrc/src/lib/libnano-X.a(image_png.o):image_png.c:(.text+0x41d): undefined reference to `_png_destroy_read_struct'
collect2: ld returned 1 exit status
make.exe: *** [c:/mwinsrc/src/bin/landmine.exe] Error 1
lighth7015 commented 4 years ago

The freetype issues I'm ignoring for the moment, because the more interesting issue is that GCC seems to be emitting _rdtsc all over the place, and I don't know why?

lighth7015 commented 4 years ago

An interesting side-note, it doesn't seem to be inlining it. Like it isn't obeying static or __attribute__((inline))

ghaerr commented 4 years ago

Yes, it seems that these calls to __rtdc are being generated by the compilation of the libraries, not in the final link command line you reported above. So look at the full command line of each of the engine/, nanox/ etc library files and see what you find there. It's possible that a DEBUG option turns it on.

lighth7015 commented 4 years ago

Okay, so it was getting squashed my DOS installation of DJGPP. Oops.

lighth7015 commented 4 years ago

Well damn, it actually builds. Now to fix things like FLTK.

georgp24 commented 4 years ago

In the faq2 file there are instructions how to compile FLTK to use it with libNX11.

lighth7015 commented 4 years ago

So question, can I compile any old X client with this?

lighth7015 commented 4 years ago

Also TinyWidgets is kind of busted. :p

georgp24 commented 4 years ago

So question, can I compile any old X client with this?

No, NX11 is tested particularly for FLTK. So you can run most FLTK applications, once you got FLTK running with NX11. NX11 offers a subset of the functions X11 provides.

When I tested TinyWidgets it worked quite well.

lighth7015 commented 4 years ago

Like I was interested in seeing if I could port FOX.

ghaerr commented 4 years ago

Like I was interested in seeing if I could port FOX.

NX11 has a large number of X11 routines mplemented, but few extensions. The easiest way to start is on Linux, and just link a FOX build using '-lNX11 -lnano-X' instead of -lX11. That will give you the list of unimplemented calls.

Sometimes it is easy to stub out routines, see 'src/nx11/stubs.c' for the current list.

georgp24 commented 4 years ago

Like I was interested in seeing if I could port FOX.

You will probably have to write additional functions for NX11, the ones that FOX uses but FLTK does not.

lighth7015 commented 4 years ago

Hum, okay.

lighth7015 commented 4 years ago

Okay, here are the 'undefined' X11 symbols-

Everything else is futzing around with (e.g. fontconfig, pthread) and libc.

georgp24 commented 4 years ago

How did you determine these 'undefined' X11 symbols? E.g. XCreateGC is implemented in the file microwindows/src/nx11/CrGC.c. You can find the implemented functions documented in the file microwindows/doc/html/NXlib programming and reference manual.html including the files the functions are implemented in.

ghaerr commented 4 years ago

Okay, here are the 'undefined' X11 symbols

Looks like that's the complete list without NX11 or X11. Link with '-lNX11 -lnano-X'.

lighth7015 commented 4 years ago
libtool: link: i686-pc-msdosdjgpp-g++ -Wall -Wformat -Woverloaded-virtual -Wshadow -DUNICODE -DHAVE_ZLIB_H=1 -DHAVE_XFT_H=1 -I/usr/include/freetype2 -DNO_XIM -I/usr/include -o chart.exe chart/chart.o chart/icons.o  chart/.libs/libCHART-1.6.a -L/usr/i686-pc-msdosdjgpp/lib /home/robert_/C++/fox-1.6/src/.libs/libFOX-1.6.a src/.libs/libFOX-1.6.a -ljpeg -lpng15 -lNX11 -lnano-X -lfreetype -lm -lz
/usr/lib/gcc/i686-pc-msdosdjgpp/9.2.0/../../../../i686-pc-msdosdjgpp/bin/ld: /home/robert_/C++/fox-1.6/src/.libs/libFOX-1.6.a(FXApp.o):FXApp.cpp:(.text+0x1e32): undefined reference to `XftInit'
/usr/lib/gcc/i686-pc-msdosdjgpp/9.2.0/../../../../i686-pc-msdosdjgpp/bin/ld: /home/robert_/C++/fox-1.6/src/.libs/libFOX-1.6.a(FXApp.o):FXApp.cpp:(.text+0x1e4d): undefined reference to `XftGetVersion'
/usr/lib/gcc/i686-pc-msdosdjgpp/9.2.0/../../../../i686-pc-msdosdjgpp/bin/ld: /home/robert_/C++/fox-1.6/src/.libs/libFOX-1.6.a(FXApp.o):FXApp.cpp:(.text+0x1e5e): undefined reference to `XftGetVersion'
/usr/lib/gcc/i686-pc-msdosdjgpp/9.2.0/../../../../i686-pc-msdosdjgpp/bin/ld: /home/robert_/C++/fox-1.6/src/.libs/libFOX-1.6.a(FXApp.o):FXApp.cpp:(.text+0x47e3): undefined reference to `__errno_location'
/usr/lib/gcc/i686-pc-msdosdjgpp/9.2.0/../../../../i686-pc-msdosdjgpp/bin/ld: /home/robert_/C++/fox-1.6/src/.libs/libFOX-1.6.a(FXApp.o):FXApp.cpp:(.text+0x47ef): undefined reference to `__errno_location'
/usr/lib/gcc/i686-pc-msdosdjgpp/9.2.0/../../../../i686-pc-msdosdjgpp/bin/ld: /home/robert_/C++/fox-1.6/src/.libs/libFOX-1.6.a(FXApp.o):FXApp.cpp:(.text+0x47fb): undefined reference to `__errno_location'
/usr/lib/gcc/i686-pc-msdosdjgpp/9.2.0/../../../../i686-pc-msdosdjgpp/bin/ld: /home/robert_/C++/fox-1.6/src/.libs/libFOX-1.6.a(FXApp.o):FXApp.cpp:(.text+0x4f2b): undefined reference to `__errno_location'
/usr/lib/gcc/i686-pc-msdosdjgpp/9.2.0/../../../../i686-pc-msdosdjgpp/bin/ld: /home/robert_/C++/fox-1.6/src/.libs/libFOX-1.6.a(FXApp.o):FXApp.cpp:(.text+0x4f37): undefined reference to `__errno_location'
/usr/lib/gcc/i686-pc-msdosdjgpp/9.2.0/../../../../i686-pc-msdosdjgpp/bin/ld: /home/robert_/C++/fox-1.6/src/.libs/libFOX-1.6.a(FXApp.o):FXApp.cpp:(.text+0x4f43): more undefined references to `__errno_location' follow
/usr/lib/gcc/i686-pc-msdosdjgpp/9.2.0/../../../../i686-pc-msdosdjgpp/bin/ld: /home/robert_/C++/fox-1.6/src/.libs/libFOX-1.6.a(FXDCWindow.o):FXDCWindow.cpp:(.text+0x12b): undefined reference to `XftDrawSetClipRectangles'
/usr/lib/gcc/i686-pc-msdosdjgpp/9.2.0/../../../../i686-pc-msdosdjgpp/bin/ld: /home/robert_/C++/fox-1.6/src/.libs/libFOX-1.6.a(FXDCWindow.o):FXDCWindow.cpp:(.text+0x40f): undefined reference to `XftDrawCreate'
/usr/lib/gcc/i686-pc-msdosdjgpp/9.2.0/../../../../i686-pc-msdosdjgpp/bin/ld: /home/robert_/C++/fox-1.6/src/.libs/libFOX-1.6.a(FXDCWindow.o):FXDCWindow.cpp:(.text+0x6fd): undefined reference to `XftDrawDestroy'
/usr/lib/gcc/i686-pc-msdosdjgpp/9.2.0/../../../../i686-pc-msdosdjgpp/bin/ld: /home/robert_/C++/fox-1.6/src/.libs/libFOX-1.6.a(FXDCWindow.o):FXDCWindow.cpp:(.text+0x2255): undefined reference to `XftDrawStringUtf8'
/usr/lib/gcc/i686-pc-msdosdjgpp/9.2.0/../../../../i686-pc-msdosdjgpp/bin/ld: /home/robert_/C++/fox-1.6/src/.libs/libFOX-1.6.a(FXDCWindow.o):FXDCWindow.cpp:(.text+0x23ff): undefined reference to `XftTextExtents8'
/usr/lib/gcc/i686-pc-msdosdjgpp/9.2.0/../../../../i686-pc-msdosdjgpp/bin/ld: /home/robert_/C++/fox-1.6/src/.libs/libFOX-1.6.a(FXDCWindow.o):FXDCWindow.cpp:(.text+0x244d): undefined reference to `XftDrawRect'
/usr/lib/gcc/i686-pc-msdosdjgpp/9.2.0/../../../../i686-pc-msdosdjgpp/bin/ld: /home/robert_/C++/fox-1.6/src/.libs/libFOX-1.6.a(FXDCWindow.o):FXDCWindow.cpp:(.text+0x247d): undefined reference to `XftDrawStringUtf8'
/usr/lib/gcc/i686-pc-msdosdjgpp/9.2.0/../../../../i686-pc-msdosdjgpp/bin/ld: /home/robert_/C++/fox-1.6/src/.libs/libFOX-1.6.a(FXDCWindow.o):FXDCWindow.cpp:(.text+0x487f): undefined reference to `XftDrawSetClip'
/usr/lib/gcc/i686-pc-msdosdjgpp/9.2.0/../../../../i686-pc-msdosdjgpp/bin/ld: /home/robert_/C++/fox-1.6/src/.libs/libFOX-1.6.a(FXDCWindow.o):FXDCWindow.cpp:(.text+0x4a31): undefined reference to `XftDrawSetClipRectangles'
/usr/lib/gcc/i686-pc-msdosdjgpp/9.2.0/../../../../i686-pc-msdosdjgpp/bin/ld: /home/robert_/C++/fox-1.6/src/.libs/libFOX-1.6.a(FXDCWindow.o):FXDCWindow.cpp:(.text+0x4be6): undefined reference to `XftDrawSetClipRectangles'
/usr/lib/gcc/i686-pc-msdosdjgpp/9.2.0/../../../../i686-pc-msdosdjgpp/bin/ld: /home/robert_/C++/fox-1.6/src/.libs/libFOX-1.6.a(FXDCWindow.o):FXDCWindow.cpp:(.text+0x4cdd): undefined reference to `XftDrawSetClipRectangles'
/usr/lib/gcc/i686-pc-msdosdjgpp/9.2.0/../../../../i686-pc-msdosdjgpp/bin/ld: /home/robert_/C++/fox-1.6/src/.libs/libFOX-1.6.a(FXDCWindow.o):FXDCWindow.cpp:(.text+0x5027): undefined reference to `XftDrawSetSubwindowMode'
/usr/lib/gcc/i686-pc-msdosdjgpp/9.2.0/../../../../i686-pc-msdosdjgpp/bin/ld: /home/robert_/C++/fox-1.6/src/.libs/libFOX-1.6.a(FXDCWindow.o):FXDCWindow.cpp:(.text+0x507e): undefined reference to `XftDrawSetSubwindowMode'
/usr/lib/gcc/i686-pc-msdosdjgpp/9.2.0/../../../../i686-pc-msdosdjgpp/bin/ld: /home/robert_/C++/fox-1.6/src/.libs/libFOX-1.6.a(FXFont.o):FXFont.cpp:(.text+0x4e5): undefined reference to `FcPatternCreate'
/usr/lib/gcc/i686-pc-msdosdjgpp/9.2.0/../../../../i686-pc-msdosdjgpp/bin/ld: /home/robert_/C++/fox-1.6/src/.libs/libFOX-1.6.a(FXFont.o):FXFont.cpp:(.text+0x51c): undefined reference to `FcPatternAddString'
/usr/lib/gcc/i686-pc-msdosdjgpp/9.2.0/../../../../i686-pc-msdosdjgpp/bin/ld: /home/robert_/C++/fox-1.6/src/.libs/libFOX-1.6.a(FXFont.o):FXFont.cpp:(.text+0x553): undefined reference to `FcPatternAddString'
/usr/lib/gcc/i686-pc-msdosdjgpp/9.2.0/../../../../i686-pc-msdosdjgpp/bin/ld: /home/robert_/C++/fox-1.6/src/.libs/libFOX-1.6.a(FXFont.o):FXFont.cpp:(.text+0x595): undefined reference to `FcPatternAddDouble'
/usr/lib/gcc/i686-pc-msdosdjgpp/9.2.0/../../../../i686-pc-msdosdjgpp/bin/ld: /home/robert_/C++/fox-1.6/src/.libs/libFOX-1.6.a(FXFont.o):FXFont.cpp:(.text+0x5be): undefined reference to `FcPatternAddInteger'
/usr/lib/gcc/i686-pc-msdosdjgpp/9.2.0/../../../../i686-pc-msdosdjgpp/bin/ld: /home/robert_/C++/fox-1.6/src/.libs/libFOX-1.6.a(FXFont.o):FXFont.cpp:(.text+0x5e7): undefined reference to `FcPatternAddInteger'
/usr/lib/gcc/i686-pc-msdosdjgpp/9.2.0/../../../../i686-pc-msdosdjgpp/bin/ld: /home/robert_/C++/fox-1.6/src/.libs/libFOX-1.6.a(FXFont.o):FXFont.cpp:(.text+0x610): undefined reference to `FcPatternAddInteger'
/usr/lib/gcc/i686-pc-msdosdjgpp/9.2.0/../../../../i686-pc-msdosdjgpp/bin/ld: /home/robert_/C++/fox-1.6/src/.libs/libFOX-1.6.a(FXFont.o):FXFont.cpp:(.text+0x62f): undefined reference to `FcPatternAddInteger'
/usr/lib/gcc/i686-pc-msdosdjgpp/9.2.0/../../../../i686-pc-msdosdjgpp/bin/ld: /home/robert_/C++/fox-1.6/src/.libs/libFOX-1.6.a(FXFont.o):FXFont.cpp:(.text+0x650): undefined reference to `FcPatternAddInteger'
/usr/lib/gcc/i686-pc-msdosdjgpp/9.2.0/../../../../i686-pc-msdosdjgpp/bin/ld: /home/robert_/C++/fox-1.6/src/.libs/libFOX-1.6.a(FXFont.o):FXFont.cpp:(.text+0x671): undefined reference to `FcPatternAddBool'
/usr/lib/gcc/i686-pc-msdosdjgpp/9.2.0/../../../../i686-pc-msdosdjgpp/bin/ld: /home/robert_/C++/fox-1.6/src/.libs/libFOX-1.6.a(FXFont.o):FXFont.cpp:(.text+0x6f5): undefined reference to `FcPatternAddMatrix'
/usr/lib/gcc/i686-pc-msdosdjgpp/9.2.0/../../../../i686-pc-msdosdjgpp/bin/ld: /home/robert_/C++/fox-1.6/src/.libs/libFOX-1.6.a(FXFont.o):FXFont.cpp:(.text+0x707): undefined reference to `FcConfigSubstitute'
/usr/lib/gcc/i686-pc-msdosdjgpp/9.2.0/../../../../i686-pc-msdosdjgpp/bin/ld: /home/robert_/C++/fox-1.6/src/.libs/libFOX-1.6.a(FXFont.o):FXFont.cpp:(.text+0x715): undefined reference to `FcDefaultSubstitute'
/usr/lib/gcc/i686-pc-msdosdjgpp/9.2.0/../../../../i686-pc-msdosdjgpp/bin/ld: /home/robert_/C++/fox-1.6/src/.libs/libFOX-1.6.a(FXFont.o):FXFont.cpp:(.text+0x729): undefined reference to `FcFontMatch'
/usr/lib/gcc/i686-pc-msdosdjgpp/9.2.0/../../../../i686-pc-msdosdjgpp/bin/ld: /home/robert_/C++/fox-1.6/src/.libs/libFOX-1.6.a(FXFont.o):FXFont.cpp:(.text+0x752): undefined reference to `FcPatternGetString'
/usr/lib/gcc/i686-pc-msdosdjgpp/9.2.0/../../../../i686-pc-msdosdjgpp/bin/ld: /home/robert_/C++/fox-1.6/src/.libs/libFOX-1.6.a(FXFont.o):FXFont.cpp:(.text+0x787): undefined reference to `FcPatternGetString'
/usr/lib/gcc/i686-pc-msdosdjgpp/9.2.0/../../../../i686-pc-msdosdjgpp/bin/ld: /home/robert_/C++/fox-1.6/src/.libs/libFOX-1.6.a(FXFont.o):FXFont.cpp:(.text+0x7ea): undefined reference to `FcPatternGetInteger'
/usr/lib/gcc/i686-pc-msdosdjgpp/9.2.0/../../../../i686-pc-msdosdjgpp/bin/ld: /home/robert_/C++/fox-1.6/src/.libs/libFOX-1.6.a(FXFont.o):FXFont.cpp:(.text+0x821): undefined reference to `FcPatternGetInteger'
/usr/lib/gcc/i686-pc-msdosdjgpp/9.2.0/../../../../i686-pc-msdosdjgpp/bin/ld: /home/robert_/C++/fox-1.6/src/.libs/libFOX-1.6.a(FXFont.o):FXFont.cpp:(.text+0x858): undefined reference to `FcPatternGetInteger'
/usr/lib/gcc/i686-pc-msdosdjgpp/9.2.0/../../../../i686-pc-msdosdjgpp/bin/ld: /home/robert_/C++/fox-1.6/src/.libs/libFOX-1.6.a(FXFont.o):FXFont.cpp:(.text+0x88f): undefined reference to `FcPatternGetInteger'
/usr/lib/gcc/i686-pc-msdosdjgpp/9.2.0/../../../../i686-pc-msdosdjgpp/bin/ld: /home/robert_/C++/fox-1.6/src/.libs/libFOX-1.6.a(FXFont.o):FXFont.cpp:(.text+0x900): undefined reference to `FcPatternGetBool'
/usr/lib/gcc/i686-pc-msdosdjgpp/9.2.0/../../../../i686-pc-msdosdjgpp/bin/ld: /home/robert_/C++/fox-1.6/src/.libs/libFOX-1.6.a(FXFont.o):FXFont.cpp:(.text+0x943): undefined reference to `FcPatternGetDouble'
/usr/lib/gcc/i686-pc-msdosdjgpp/9.2.0/../../../../i686-pc-msdosdjgpp/bin/ld: /home/robert_/C++/fox-1.6/src/.libs/libFOX-1.6.a(FXFont.o):FXFont.cpp:(.text+0x9aa): undefined reference to `FcPatternGetCharSet'
/usr/lib/gcc/i686-pc-msdosdjgpp/9.2.0/../../../../i686-pc-msdosdjgpp/bin/ld: /home/robert_/C++/fox-1.6/src/.libs/libFOX-1.6.a(FXFont.o):FXFont.cpp:(.text+0x9d6): undefined reference to `XftFontOpenPattern'
/usr/lib/gcc/i686-pc-msdosdjgpp/9.2.0/../../../../i686-pc-msdosdjgpp/bin/ld: /home/robert_/C++/fox-1.6/src/.libs/libFOX-1.6.a(FXFont.o):FXFont.cpp:(.text+0x9f0): undefined reference to `FcPatternDestroy'
/usr/lib/gcc/i686-pc-msdosdjgpp/9.2.0/../../../../i686-pc-msdosdjgpp/bin/ld: /home/robert_/C++/fox-1.6/src/.libs/libFOX-1.6.a(FXFont.o):FXFont.cpp:(.text+0x1613): undefined reference to `XftFontClose'
/usr/lib/gcc/i686-pc-msdosdjgpp/9.2.0/../../../../i686-pc-msdosdjgpp/bin/ld: /home/robert_/C++/fox-1.6/src/.libs/libFOX-1.6.a(FXFont.o):FXFont.cpp:(.text+0x16fc): undefined reference to `XftFontClose'
/usr/lib/gcc/i686-pc-msdosdjgpp/9.2.0/../../../../i686-pc-msdosdjgpp/bin/ld: /home/robert_/C++/fox-1.6/src/.libs/libFOX-1.6.a(FXFont.o):FXFont.cpp:(.text+0x184a): undefined reference to `XftCharExists'
/usr/lib/gcc/i686-pc-msdosdjgpp/9.2.0/../../../../i686-pc-msdosdjgpp/bin/ld: /home/robert_/C++/fox-1.6/src/.libs/libFOX-1.6.a(FXFont.o):FXFont.cpp:(.text+0x1952): undefined reference to `XftTextExtents8'
/usr/lib/gcc/i686-pc-msdosdjgpp/9.2.0/../../../../i686-pc-msdosdjgpp/bin/ld: /home/robert_/C++/fox-1.6/src/.libs/libFOX-1.6.a(FXFont.o):FXFont.cpp:(.text+0x1982): undefined reference to `XftTextExtents8'
/usr/lib/gcc/i686-pc-msdosdjgpp/9.2.0/../../../../i686-pc-msdosdjgpp/bin/ld: /home/robert_/C++/fox-1.6/src/.libs/libFOX-1.6.a(FXFont.o):FXFont.cpp:(.text+0x1a65): undefined reference to `XftTextExtents32'
/usr/lib/gcc/i686-pc-msdosdjgpp/9.2.0/../../../../i686-pc-msdosdjgpp/bin/ld: /home/robert_/C++/fox-1.6/src/.libs/libFOX-1.6.a(FXFont.o):FXFont.cpp:(.text+0x1b13): undefined reference to `XftTextExtentsUtf8'
/usr/lib/gcc/i686-pc-msdosdjgpp/9.2.0/../../../../i686-pc-msdosdjgpp/bin/ld: /home/robert_/C++/fox-1.6/src/.libs/libFOX-1.6.a(FXFont.o):FXFont.cpp:(.text+0x1fd8): undefined reference to `FcObjectSetBuild'
/usr/lib/gcc/i686-pc-msdosdjgpp/9.2.0/../../../../i686-pc-msdosdjgpp/bin/ld: /home/robert_/C++/fox-1.6/src/.libs/libFOX-1.6.a(FXFont.o):FXFont.cpp:(.text+0x1fed): undefined reference to `FcPatternCreate'
/usr/lib/gcc/i686-pc-msdosdjgpp/9.2.0/../../../../i686-pc-msdosdjgpp/bin/ld: /home/robert_/C++/fox-1.6/src/.libs/libFOX-1.6.a(FXFont.o):FXFont.cpp:(.text+0x2036): undefined reference to `FcPatternAddString'
/usr/lib/gcc/i686-pc-msdosdjgpp/9.2.0/../../../../i686-pc-msdosdjgpp/bin/ld: /home/robert_/C++/fox-1.6/src/.libs/libFOX-1.6.a(FXFont.o):FXFont.cpp:(.text+0x2075): undefined reference to `FcPatternAddString'
/usr/lib/gcc/i686-pc-msdosdjgpp/9.2.0/../../../../i686-pc-msdosdjgpp/bin/ld: /home/robert_/C++/fox-1.6/src/.libs/libFOX-1.6.a(FXFont.o):FXFont.cpp:(.text+0x2088): undefined reference to `FcFontList'
/usr/lib/gcc/i686-pc-msdosdjgpp/9.2.0/../../../../i686-pc-msdosdjgpp/bin/ld: /home/robert_/C++/fox-1.6/src/.libs/libFOX-1.6.a(FXFont.o):FXFont.cpp:(.text+0x210e): undefined reference to `FcPatternGetString'
/usr/lib/gcc/i686-pc-msdosdjgpp/9.2.0/../../../../i686-pc-msdosdjgpp/bin/ld: /home/robert_/C++/fox-1.6/src/.libs/libFOX-1.6.a(FXFont.o):FXFont.cpp:(.text+0x214d): undefined reference to `FcPatternGetString'
/usr/lib/gcc/i686-pc-msdosdjgpp/9.2.0/../../../../i686-pc-msdosdjgpp/bin/ld: /home/robert_/C++/fox-1.6/src/.libs/libFOX-1.6.a(FXFont.o):FXFont.cpp:(.text+0x21e4): undefined reference to `FcPatternGetInteger'
/usr/lib/gcc/i686-pc-msdosdjgpp/9.2.0/../../../../i686-pc-msdosdjgpp/bin/ld: /home/robert_/C++/fox-1.6/src/.libs/libFOX-1.6.a(FXFont.o):FXFont.cpp:(.text+0x221c): undefined reference to `FcPatternGetInteger'
/usr/lib/gcc/i686-pc-msdosdjgpp/9.2.0/../../../../i686-pc-msdosdjgpp/bin/ld: /home/robert_/C++/fox-1.6/src/.libs/libFOX-1.6.a(FXFont.o):FXFont.cpp:(.text+0x2254): undefined reference to `FcPatternGetInteger'
/usr/lib/gcc/i686-pc-msdosdjgpp/9.2.0/../../../../i686-pc-msdosdjgpp/bin/ld: /home/robert_/C++/fox-1.6/src/.libs/libFOX-1.6.a(FXFont.o):FXFont.cpp:(.text+0x228c): undefined reference to `FcPatternGetInteger'
/usr/lib/gcc/i686-pc-msdosdjgpp/9.2.0/../../../../i686-pc-msdosdjgpp/bin/ld: /home/robert_/C++/fox-1.6/src/.libs/libFOX-1.6.a(FXFont.o):FXFont.cpp:(.text+0x22cc): undefined reference to `FcPatternGetDouble'
/usr/lib/gcc/i686-pc-msdosdjgpp/9.2.0/../../../../i686-pc-msdosdjgpp/bin/ld: /home/robert_/C++/fox-1.6/src/.libs/libFOX-1.6.a(FXFont.o):FXFont.cpp:(.text+0x232e): undefined reference to `FcPatternGetBool'
/usr/lib/gcc/i686-pc-msdosdjgpp/9.2.0/../../../../i686-pc-msdosdjgpp/bin/ld: /home/robert_/C++/fox-1.6/src/.libs/libFOX-1.6.a(FXFont.o):FXFont.cpp:(.text+0x2361): undefined reference to `FcPatternGetCharSet'
/usr/lib/gcc/i686-pc-msdosdjgpp/9.2.0/../../../../i686-pc-msdosdjgpp/bin/ld: /home/robert_/C++/fox-1.6/src/.libs/libFOX-1.6.a(FXFont.o):FXFont.cpp:(.text+0x2592): undefined reference to `FcFontSetDestroy'
/usr/lib/gcc/i686-pc-msdosdjgpp/9.2.0/../../../../i686-pc-msdosdjgpp/bin/ld: /home/robert_/C++/fox-1.6/src/.libs/libFOX-1.6.a(FXFont.o):FXFont.cpp:(.text+0x25a0): undefined reference to `FcPatternDestroy'
/usr/lib/gcc/i686-pc-msdosdjgpp/9.2.0/../../../../i686-pc-msdosdjgpp/bin/ld: /home/robert_/C++/fox-1.6/src/.libs/libFOX-1.6.a(FXFont.o):FXFont.cpp:(.text+0x25ae): undefined reference to `FcObjectSetDestroy'
/usr/lib/gcc/i686-pc-msdosdjgpp/9.2.0/../../../../i686-pc-msdosdjgpp/bin/ld: /home/robert_/C++/fox-1.6/src/.libs/libFOX-1.6.a(FXSettings.o):FXSettings.cpp:(.text+0x1333): undefined reference to `__isoc99_vsscanf'
/usr/lib/gcc/i686-pc-msdosdjgpp/9.2.0/../../../../i686-pc-msdosdjgpp/bin/ld: /home/robert_/C++/fox-1.6/src/.libs/libFOX-1.6.a(FXSettings.o):FXSettings.cpp:(.text+0x154a): undefined reference to `__isoc99_sscanf'
/usr/lib/gcc/i686-pc-msdosdjgpp/9.2.0/../../../../i686-pc-msdosdjgpp/bin/ld: /home/robert_/C++/fox-1.6/src/.libs/libFOX-1.6.a(FXSettings.o):FXSettings.cpp:(.text+0x156f): undefined reference to `__isoc99_sscanf'
/usr/lib/gcc/i686-pc-msdosdjgpp/9.2.0/../../../../i686-pc-msdosdjgpp/bin/ld: /home/robert_/C++/fox-1.6/src/.libs/libFOX-1.6.a(FXSettings.o):FXSettings.cpp:(.text+0x16b0): undefined reference to `__isoc99_sscanf'
/usr/lib/gcc/i686-pc-msdosdjgpp/9.2.0/../../../../i686-pc-msdosdjgpp/bin/ld: /home/robert_/C++/fox-1.6/src/.libs/libFOX-1.6.a(FXSettings.o):FXSettings.cpp:(.text+0x16d5): undefined reference to `__isoc99_sscanf'
/usr/lib/gcc/i686-pc-msdosdjgpp/9.2.0/../../../../i686-pc-msdosdjgpp/bin/ld: /home/robert_/C++/fox-1.6/src/.libs/libFOX-1.6.a(FXSettings.o):FXSettings.cpp:(.text+0x17ec): undefined reference to `__isoc99_sscanf'
/usr/lib/gcc/i686-pc-msdosdjgpp/9.2.0/../../../../i686-pc-msdosdjgpp/bin/ld: /home/robert_/C++/fox-1.6/src/.libs/libFOX-1.6.a(FXStat.o):FXStat.cpp:(.text+0x308): undefined reference to `stat64'
/usr/lib/gcc/i686-pc-msdosdjgpp/9.2.0/../../../../i686-pc-msdosdjgpp/bin/ld: /home/robert_/C++/fox-1.6/src/.libs/libFOX-1.6.a(FXStat.o):FXStat.cpp:(.text+0x522): undefined reference to `lstat64'
/usr/lib/gcc/i686-pc-msdosdjgpp/9.2.0/../../../../i686-pc-msdosdjgpp/bin/ld: /home/robert_/C++/fox-1.6/src/.libs/libFOX-1.6.a(FXStat.o):FXStat.cpp:(.text+0x724): undefined reference to `fstat64'
/usr/lib/gcc/i686-pc-msdosdjgpp/9.2.0/../../../../i686-pc-msdosdjgpp/bin/ld: /home/robert_/C++/fox-1.6/src/.libs/libFOX-1.6.a(FXStat.o):FXStat.cpp:(.text+0x9a2): undefined reference to `stat64'
/usr/lib/gcc/i686-pc-msdosdjgpp/9.2.0/../../../../i686-pc-msdosdjgpp/bin/ld: /home/robert_/C++/fox-1.6/src/.libs/libFOX-1.6.a(FXString.o):FXString.cpp:(.text+0x53e2): undefined reference to `__isoc99_vsscanf'
/usr/lib/gcc/i686-pc-msdosdjgpp/9.2.0/../../../../i686-pc-msdosdjgpp/bin/ld: /home/robert_/C++/fox-1.6/src/.libs/libFOX-1.6.a(FXThread.o):FXThread.cpp:(.text+0x14): undefined reference to `pthread_mutexattr_init'
/usr/lib/gcc/i686-pc-msdosdjgpp/9.2.0/../../../../i686-pc-msdosdjgpp/bin/ld: /home/robert_/C++/fox-1.6/src/.libs/libFOX-1.6.a(FXThread.o):FXThread.cpp:(.text+0x36): undefined reference to `pthread_mutexattr_settype'
/usr/lib/gcc/i686-pc-msdosdjgpp/9.2.0/../../../../i686-pc-msdosdjgpp/bin/ld: /home/robert_/C++/fox-1.6/src/.libs/libFOX-1.6.a(FXThread.o):FXThread.cpp:(.text+0x49): undefined reference to `pthread_mutex_init'
/usr/lib/gcc/i686-pc-msdosdjgpp/9.2.0/../../../../i686-pc-msdosdjgpp/bin/ld: /home/robert_/C++/fox-1.6/src/.libs/libFOX-1.6.a(FXThread.o):FXThread.cpp:(.text+0x58): undefined reference to `pthread_mutexattr_destroy'
/usr/lib/gcc/i686-pc-msdosdjgpp/9.2.0/../../../../i686-pc-msdosdjgpp/bin/ld: /home/robert_/C++/fox-1.6/src/.libs/libFOX-1.6.a(FXThread.o):FXThread.cpp:(.text+0x70): undefined reference to `pthread_mutex_lock'
/usr/lib/gcc/i686-pc-msdosdjgpp/9.2.0/../../../../i686-pc-msdosdjgpp/bin/ld: /home/robert_/C++/fox-1.6/src/.libs/libFOX-1.6.a(FXThread.o):FXThread.cpp:(.text+0x88): undefined reference to `pthread_mutex_trylock'
/usr/lib/gcc/i686-pc-msdosdjgpp/9.2.0/../../../../i686-pc-msdosdjgpp/bin/ld: /home/robert_/C++/fox-1.6/src/.libs/libFOX-1.6.a(FXThread.o):FXThread.cpp:(.text+0xa4): undefined reference to `pthread_mutex_unlock'
/usr/lib/gcc/i686-pc-msdosdjgpp/9.2.0/../../../../i686-pc-msdosdjgpp/bin/ld: /home/robert_/C++/fox-1.6/src/.libs/libFOX-1.6.a(FXThread.o):FXThread.cpp:(.text+0xbc): undefined reference to `pthread_mutex_trylock'
/usr/lib/gcc/i686-pc-msdosdjgpp/9.2.0/../../../../i686-pc-msdosdjgpp/bin/ld: /home/robert_/C++/fox-1.6/src/.libs/libFOX-1.6.a(FXThread.o):FXThread.cpp:(.text+0xd4): undefined reference to `pthread_mutex_unlock'
/usr/lib/gcc/i686-pc-msdosdjgpp/9.2.0/../../../../i686-pc-msdosdjgpp/bin/ld: /home/robert_/C++/fox-1.6/src/.libs/libFOX-1.6.a(FXThread.o):FXThread.cpp:(.text+0xf8): undefined reference to `pthread_mutex_destroy'
/usr/lib/gcc/i686-pc-msdosdjgpp/9.2.0/../../../../i686-pc-msdosdjgpp/bin/ld: /home/robert_/C++/fox-1.6/src/.libs/libFOX-1.6.a(FXThread.o):FXThread.cpp:(.text+0x116): undefined reference to `sem_init'
/usr/lib/gcc/i686-pc-msdosdjgpp/9.2.0/../../../../i686-pc-msdosdjgpp/bin/ld: /home/robert_/C++/fox-1.6/src/.libs/libFOX-1.6.a(FXThread.o):FXThread.cpp:(.text+0x12e): undefined reference to `sem_wait'
/usr/lib/gcc/i686-pc-msdosdjgpp/9.2.0/../../../../i686-pc-msdosdjgpp/bin/ld: /home/robert_/C++/fox-1.6/src/.libs/libFOX-1.6.a(FXThread.o):FXThread.cpp:(.text+0x146): undefined reference to `sem_trywait'
/usr/lib/gcc/i686-pc-msdosdjgpp/9.2.0/../../../../i686-pc-msdosdjgpp/bin/ld: /home/robert_/C++/fox-1.6/src/.libs/libFOX-1.6.a(FXThread.o):FXThread.cpp:(.text+0x162): undefined reference to `sem_post'
/usr/lib/gcc/i686-pc-msdosdjgpp/9.2.0/../../../../i686-pc-msdosdjgpp/bin/ld: /home/robert_/C++/fox-1.6/src/.libs/libFOX-1.6.a(FXThread.o):FXThread.cpp:(.text+0x17a): undefined reference to `sem_destroy'
/usr/lib/gcc/i686-pc-msdosdjgpp/9.2.0/../../../../i686-pc-msdosdjgpp/bin/ld: /home/robert_/C++/fox-1.6/src/.libs/libFOX-1.6.a(FXThread.o):FXThread.cpp:(.text+0x194): undefined reference to `pthread_cond_init'
/usr/lib/gcc/i686-pc-msdosdjgpp/9.2.0/../../../../i686-pc-msdosdjgpp/bin/ld: /home/robert_/C++/fox-1.6/src/.libs/libFOX-1.6.a(FXThread.o):FXThread.cpp:(.text+0x1ac): undefined reference to `pthread_cond_signal'
/usr/lib/gcc/i686-pc-msdosdjgpp/9.2.0/../../../../i686-pc-msdosdjgpp/bin/ld: /home/robert_/C++/fox-1.6/src/.libs/libFOX-1.6.a(FXThread.o):FXThread.cpp:(.text+0x1c4): undefined reference to `pthread_cond_broadcast'
/usr/lib/gcc/i686-pc-msdosdjgpp/9.2.0/../../../../i686-pc-msdosdjgpp/bin/ld: /home/robert_/C++/fox-1.6/src/.libs/libFOX-1.6.a(FXThread.o):FXThread.cpp:(.text+0x1e0): undefined reference to `pthread_cond_wait'
/usr/lib/gcc/i686-pc-msdosdjgpp/9.2.0/../../../../i686-pc-msdosdjgpp/bin/ld: /home/robert_/C++/fox-1.6/src/.libs/libFOX-1.6.a(FXThread.o):FXThread.cpp:(.text+0x241): undefined reference to `pthread_cond_timedwait'
/usr/lib/gcc/i686-pc-msdosdjgpp/9.2.0/../../../../i686-pc-msdosdjgpp/bin/ld: /home/robert_/C++/fox-1.6/src/.libs/libFOX-1.6.a(FXThread.o):FXThread.cpp:(.text+0x26a): undefined reference to `pthread_cond_destroy'
/usr/lib/gcc/i686-pc-msdosdjgpp/9.2.0/../../../../i686-pc-msdosdjgpp/bin/ld: /home/robert_/C++/fox-1.6/src/.libs/libFOX-1.6.a(FXThread.o):FXThread.cpp:(.text+0x2c3): undefined reference to `pthread_setspecific'
/usr/lib/gcc/i686-pc-msdosdjgpp/9.2.0/../../../../i686-pc-msdosdjgpp/bin/ld: /home/robert_/C++/fox-1.6/src/.libs/libFOX-1.6.a(FXThread.o):FXThread.cpp:(.text+0x2d2): undefined reference to `pthread_setcancelstate'
/usr/lib/gcc/i686-pc-msdosdjgpp/9.2.0/../../../../i686-pc-msdosdjgpp/bin/ld: /home/robert_/C++/fox-1.6/src/.libs/libFOX-1.6.a(FXThread.o):FXThread.cpp:(.text+0x2e1): undefined reference to `pthread_setcanceltype'
/usr/lib/gcc/i686-pc-msdosdjgpp/9.2.0/../../../../i686-pc-msdosdjgpp/bin/ld: /home/robert_/C++/fox-1.6/src/.libs/libFOX-1.6.a(FXThread.o):FXThread.cpp:(.text+0x331): undefined reference to `pthread_attr_init'
/usr/lib/gcc/i686-pc-msdosdjgpp/9.2.0/../../../../i686-pc-msdosdjgpp/bin/ld: /home/robert_/C++/fox-1.6/src/.libs/libFOX-1.6.a(FXThread.o):FXThread.cpp:(.text+0x342): undefined reference to `pthread_attr_setinheritsched'
/usr/lib/gcc/i686-pc-msdosdjgpp/9.2.0/../../../../i686-pc-msdosdjgpp/bin/ld: /home/robert_/C++/fox-1.6/src/.libs/libFOX-1.6.a(FXThread.o):FXThread.cpp:(.text+0x35a): undefined reference to `pthread_attr_setstacksize'
/usr/lib/gcc/i686-pc-msdosdjgpp/9.2.0/../../../../i686-pc-msdosdjgpp/bin/ld: /home/robert_/C++/fox-1.6/src/.libs/libFOX-1.6.a(FXThread.o):FXThread.cpp:(.text+0x375): undefined reference to `pthread_create'
/usr/lib/gcc/i686-pc-msdosdjgpp/9.2.0/../../../../i686-pc-msdosdjgpp/bin/ld: /home/robert_/C++/fox-1.6/src/.libs/libFOX-1.6.a(FXThread.o):FXThread.cpp:(.text+0x38b): undefined reference to `pthread_attr_destroy'
/usr/lib/gcc/i686-pc-msdosdjgpp/9.2.0/../../../../i686-pc-msdosdjgpp/bin/ld: /home/robert_/C++/fox-1.6/src/.libs/libFOX-1.6.a(FXThread.o):FXThread.cpp:(.text+0x3bb): undefined reference to `pthread_join'
/usr/lib/gcc/i686-pc-msdosdjgpp/9.2.0/../../../../i686-pc-msdosdjgpp/bin/ld: /home/robert_/C++/fox-1.6/src/.libs/libFOX-1.6.a(FXThread.o):FXThread.cpp:(.text+0x414): undefined reference to `pthread_join'
/usr/lib/gcc/i686-pc-msdosdjgpp/9.2.0/../../../../i686-pc-msdosdjgpp/bin/ld: /home/robert_/C++/fox-1.6/src/.libs/libFOX-1.6.a(FXThread.o):FXThread.cpp:(.text+0x460): undefined reference to `pthread_cancel'
/usr/lib/gcc/i686-pc-msdosdjgpp/9.2.0/../../../../i686-pc-msdosdjgpp/bin/ld: /home/robert_/C++/fox-1.6/src/.libs/libFOX-1.6.a(FXThread.o):FXThread.cpp:(.text+0x482): undefined reference to `pthread_join'
/usr/lib/gcc/i686-pc-msdosdjgpp/9.2.0/../../../../i686-pc-msdosdjgpp/bin/ld: /home/robert_/C++/fox-1.6/src/.libs/libFOX-1.6.a(FXThread.o):FXThread.cpp:(.text+0x4ba): undefined reference to `pthread_detach'
/usr/lib/gcc/i686-pc-msdosdjgpp/9.2.0/../../../../i686-pc-msdosdjgpp/bin/ld: /home/robert_/C++/fox-1.6/src/.libs/libFOX-1.6.a(FXThread.o):FXThread.cpp:(.text+0x4fe): undefined reference to `pthread_exit'
/usr/lib/gcc/i686-pc-msdosdjgpp/9.2.0/../../../../i686-pc-msdosdjgpp/bin/ld: /home/robert_/C++/fox-1.6/src/.libs/libFOX-1.6.a(FXThread.o):FXThread.cpp:(.text+0x509): undefined reference to `sched_yield'
/usr/lib/gcc/i686-pc-msdosdjgpp/9.2.0/../../../../i686-pc-msdosdjgpp/bin/ld: /home/robert_/C++/fox-1.6/src/.libs/libFOX-1.6.a(FXThread.o):FXThread.cpp:(.text+0x52f): undefined reference to `clock_gettime'
/usr/lib/gcc/i686-pc-msdosdjgpp/9.2.0/../../../../i686-pc-msdosdjgpp/bin/ld: /home/robert_/C++/fox-1.6/src/.libs/libFOX-1.6.a(FXThread.o):FXThread.cpp:(.text+0x5c0): undefined reference to `nanosleep'
/usr/lib/gcc/i686-pc-msdosdjgpp/9.2.0/../../../../i686-pc-msdosdjgpp/bin/ld: /home/robert_/C++/fox-1.6/src/.libs/libFOX-1.6.a(FXThread.o):FXThread.cpp:(.text+0x629): undefined reference to `clock_nanosleep'
/usr/lib/gcc/i686-pc-msdosdjgpp/9.2.0/../../../../i686-pc-msdosdjgpp/bin/ld: /home/robert_/C++/fox-1.6/src/.libs/libFOX-1.6.a(FXThread.o):FXThread.cpp:(.text+0x644): undefined reference to `pthread_getspecific'
/usr/lib/gcc/i686-pc-msdosdjgpp/9.2.0/../../../../i686-pc-msdosdjgpp/bin/ld: /home/robert_/C++/fox-1.6/src/.libs/libFOX-1.6.a(FXThread.o):FXThread.cpp:(.text+0x655): undefined reference to `pthread_self'
/usr/lib/gcc/i686-pc-msdosdjgpp/9.2.0/../../../../i686-pc-msdosdjgpp/bin/ld: /home/robert_/C++/fox-1.6/src/.libs/libFOX-1.6.a(FXThread.o):FXThread.cpp:(.text+0x688): undefined reference to `pthread_getschedparam'
/usr/lib/gcc/i686-pc-msdosdjgpp/9.2.0/../../../../i686-pc-msdosdjgpp/bin/ld: /home/robert_/C++/fox-1.6/src/.libs/libFOX-1.6.a(FXThread.o):FXThread.cpp:(.text+0x697): undefined reference to `sched_get_priority_max'
/usr/lib/gcc/i686-pc-msdosdjgpp/9.2.0/../../../../i686-pc-msdosdjgpp/bin/ld: /home/robert_/C++/fox-1.6/src/.libs/libFOX-1.6.a(FXThread.o):FXThread.cpp:(.text+0x6a9): undefined reference to `sched_get_priority_min'
/usr/lib/gcc/i686-pc-msdosdjgpp/9.2.0/../../../../i686-pc-msdosdjgpp/bin/ld: /home/robert_/C++/fox-1.6/src/.libs/libFOX-1.6.a(FXThread.o):FXThread.cpp:(.text+0x6e0): undefined reference to `pthread_setschedparam'
/usr/lib/gcc/i686-pc-msdosdjgpp/9.2.0/../../../../i686-pc-msdosdjgpp/bin/ld: /home/robert_/C++/fox-1.6/src/.libs/libFOX-1.6.a(FXThread.o):FXThread.cpp:(.text+0x71a): undefined reference to `pthread_getschedparam'
/usr/lib/gcc/i686-pc-msdosdjgpp/9.2.0/../../../../i686-pc-msdosdjgpp/bin/ld: /home/robert_/C++/fox-1.6/src/.libs/libFOX-1.6.a(FXThread.o):FXThread.cpp:(.text+0x750): undefined reference to `pthread_cancel'
/usr/lib/gcc/i686-pc-msdosdjgpp/9.2.0/../../../../i686-pc-msdosdjgpp/bin/ld: /home/robert_/C++/fox-1.6/src/.libs/libFOX-1.6.a(FXThread.o):FXThread.cpp:(.gnu.linkonce.t._ZN2FX10TLSKEYINITC1Ev+0x11): undefined reference to `pthread_key_create'
/usr/lib/gcc/i686-pc-msdosdjgpp/9.2.0/../../../../i686-pc-msdosdjgpp/bin/ld: /home/robert_/C++/fox-1.6/src/.libs/libFOX-1.6.a(FXThread.o):FXThread.cpp:(.gnu.linkonce.t._ZN2FX10TLSKEYINITD1Ev+0x10): undefined reference to `pthread_key_delete'
/usr/lib/gcc/i686-pc-msdosdjgpp/9.2.0/../../../../i686-pc-msdosdjgpp/bin/ld: /home/robert_/C++/fox-1.6/src/.libs/libFOX-1.6.a(fxutils.o):fxutils.cpp:(.text+0x57): undefined reference to `stderr'
/usr/lib/gcc/i686-pc-msdosdjgpp/9.2.0/../../../../i686-pc-msdosdjgpp/bin/ld: /home/robert_/C++/fox-1.6/src/.libs/libFOX-1.6.a(fxutils.o):fxutils.cpp:(.text+0x76): undefined reference to `stderr'
/usr/lib/gcc/i686-pc-msdosdjgpp/9.2.0/../../../../i686-pc-msdosdjgpp/bin/ld: /home/robert_/C++/fox-1.6/src/.libs/libFOX-1.6.a(fxutils.o):fxutils.cpp:(.text+0x99): undefined reference to `stderr'
/usr/lib/gcc/i686-pc-msdosdjgpp/9.2.0/../../../../i686-pc-msdosdjgpp/bin/ld: /home/robert_/C++/fox-1.6/src/.libs/libFOX-1.6.a(fxutils.o):fxutils.cpp:(.text+0xae): undefined reference to `stderr'
/usr/lib/gcc/i686-pc-msdosdjgpp/9.2.0/../../../../i686-pc-msdosdjgpp/bin/ld: /home/robert_/C++/fox-1.6/src/.libs/libFOX-1.6.a(fxutils.o):fxutils.cpp:(.text+0xd1): undefined reference to `stderr'
/usr/lib/gcc/i686-pc-msdosdjgpp/9.2.0/../../../../i686-pc-msdosdjgpp/bin/ld: /home/robert_/C++/fox-1.6/src/.libs/libFOX-1.6.a(fxutils.o):fxutils.cpp:(.text+0xe6): more undefined references to `stderr' follow
/usr/lib/gcc/i686-pc-msdosdjgpp/9.2.0/../../../../i686-pc-msdosdjgpp/bin/ld: /home/robert_/C++/fox-1.6/src/.libs/libFOX-1.6.a(fxutils.o):fxutils.cpp:(.text+0x1bb): undefined reference to `nanosleep'
/usr/lib/gcc/i686-pc-msdosdjgpp/9.2.0/../../../../i686-pc-msdosdjgpp/bin/ld: /home/robert_/C++/fox-1.6/src/.libs/libFOX-1.6.a(fxxbmio.o):fxxbmio.cpp:(.text+0x30c): undefined reference to `strstr'
/usr/lib/gcc/i686-pc-msdosdjgpp/9.2.0/../../../../i686-pc-msdosdjgpp/bin/ld: /home/robert_/C++/fox-1.6/src/.libs/libFOX-1.6.a(fxxbmio.o):fxxbmio.cpp:(.text+0x373): undefined reference to `__isoc99_sscanf'
/usr/lib/gcc/i686-pc-msdosdjgpp/9.2.0/../../../../i686-pc-msdosdjgpp/bin/ld: /home/robert_/C++/fox-1.6/src/.libs/libFOX-1.6.a(fxxbmio.o):fxxbmio.cpp:(.text+0x398): undefined reference to `strstr'
/usr/lib/gcc/i686-pc-msdosdjgpp/9.2.0/../../../../i686-pc-msdosdjgpp/bin/ld: /home/robert_/C++/fox-1.6/src/.libs/libFOX-1.6.a(fxxbmio.o):fxxbmio.cpp:(.text+0x3c3): undefined reference to `strstr'
/usr/lib/gcc/i686-pc-msdosdjgpp/9.2.0/../../../../i686-pc-msdosdjgpp/bin/ld: /home/robert_/C++/fox-1.6/src/.libs/libFOX-1.6.a(fxxbmio.o):fxxbmio.cpp:(.text+0x3ee): undefined reference to `strstr'
/usr/lib/gcc/i686-pc-msdosdjgpp/9.2.0/../../../../i686-pc-msdosdjgpp/bin/ld: /home/robert_/C++/fox-1.6/src/.libs/libFOX-1.6.a(fxxbmio.o):fxxbmio.cpp:(.text+0x416): undefined reference to `strstr'
/usr/lib/gcc/i686-pc-msdosdjgpp/9.2.0/../../../../i686-pc-msdosdjgpp/bin/ld: /home/robert_/C++/fox-1.6/src/.libs/libFOX-1.6.a(fxxbmio.o):fxxbmio.cpp:(.text+0x445): undefined reference to `__isoc99_sscanf'
/usr/lib/gcc/i686-pc-msdosdjgpp/9.2.0/../../../../i686-pc-msdosdjgpp/bin/ld: /home/robert_/C++/fox-1.6/src/.libs/libFOX-1.6.a(fxxbmio.o):fxxbmio.cpp:(.text+0x46d): undefined reference to `__isoc99_sscanf'
/usr/lib/gcc/i686-pc-msdosdjgpp/9.2.0/../../../../i686-pc-msdosdjgpp/bin/ld: /home/robert_/C++/fox-1.6/src/.libs/libFOX-1.6.a(FXColorNames.o):FXColorNames.cpp:(.text+0x2f80): undefined reference to `__isoc99_sscanf'
/usr/lib/gcc/i686-pc-msdosdjgpp/9.2.0/../../../../i686-pc-msdosdjgpp/bin/ld: /home/robert_/C++/fox-1.6/src/.libs/libFOX-1.6.a(FXColorNames.o):FXColorNames.cpp:(.text+0x3000): undefined reference to `__isoc99_sscanf'
/usr/lib/gcc/i686-pc-msdosdjgpp/9.2.0/../../../../i686-pc-msdosdjgpp/bin/ld: /home/robert_/C++/fox-1.6/src/.libs/libFOX-1.6.a(FXColorNames.o):FXColorNames.cpp:(.text+0x308b): undefined reference to `__isoc99_sscanf'
/usr/lib/gcc/i686-pc-msdosdjgpp/9.2.0/../../../../i686-pc-msdosdjgpp/bin/ld: /home/robert_/C++/fox-1.6/src/.libs/libFOX-1.6.a(FXColorNames.o):FXColorNames.cpp:(.text+0x30f0): more undefined references to `__isoc99_sscanf' follow
/usr/lib/gcc/i686-pc-msdosdjgpp/9.2.0/../../../../i686-pc-msdosdjgpp/bin/ld: /home/robert_/C++/fox-1.6/src/.libs/libFOX-1.6.a(FXDir.o):FXDir.cpp:(.text+0xed): undefined reference to `readdir64'
/usr/lib/gcc/i686-pc-msdosdjgpp/9.2.0/../../../../i686-pc-msdosdjgpp/bin/ld: /home/robert_/C++/fox-1.6/src/.libs/libFOX-1.6.a(FXFile.o):FXFile.cpp:(.text+0x1ea): undefined reference to `open64'
/usr/lib/gcc/i686-pc-msdosdjgpp/9.2.0/../../../../i686-pc-msdosdjgpp/bin/ld: /home/robert_/C++/fox-1.6/src/.libs/libFOX-1.6.a(FXFile.o):FXFile.cpp:(.text+0x264): undefined reference to `lseek64'
/usr/lib/gcc/i686-pc-msdosdjgpp/9.2.0/../../../../i686-pc-msdosdjgpp/bin/ld: /home/robert_/C++/fox-1.6/src/.libs/libFOX-1.6.a(FXFile.o):FXFile.cpp:(.text+0x2b8): undefined reference to `lseek64'
/usr/lib/gcc/i686-pc-msdosdjgpp/9.2.0/../../../../i686-pc-msdosdjgpp/bin/ld: /home/robert_/C++/fox-1.6/src/.libs/libFOX-1.6.a(FXFile.o):FXFile.cpp:(.text+0x318): undefined reference to `__errno_location'
/usr/lib/gcc/i686-pc-msdosdjgpp/9.2.0/../../../../i686-pc-msdosdjgpp/bin/ld: /home/robert_/C++/fox-1.6/src/.libs/libFOX-1.6.a(FXFile.o):FXFile.cpp:(.text+0x374): undefined reference to `__errno_location'
/usr/lib/gcc/i686-pc-msdosdjgpp/9.2.0/../../../../i686-pc-msdosdjgpp/bin/ld: /home/robert_/C++/fox-1.6/src/.libs/libFOX-1.6.a(FXFile.o):FXFile.cpp:(.text+0x3c3): undefined reference to `ftruncate64'
/usr/lib/gcc/i686-pc-msdosdjgpp/9.2.0/../../../../i686-pc-msdosdjgpp/bin/ld: /home/robert_/C++/fox-1.6/src/.libs/libFOX-1.6.a(FXFile.o):FXFile.cpp:(.text+0x4cb): undefined reference to `fstat64'
/usr/lib/gcc/i686-pc-msdosdjgpp/9.2.0/../../../../i686-pc-msdosdjgpp/bin/ld: /home/robert_/C++/fox-1.6/src/.libs/libFOX-1.6.a(FXFile.o):FXFile.cpp:(.text+0x576): undefined reference to `open64'
/usr/lib/gcc/i686-pc-msdosdjgpp/9.2.0/../../../../i686-pc-msdosdjgpp/bin/ld: /home/robert_/C++/fox-1.6/src/.libs/libFOX-1.6.a(FXFile.o):FXFile.cpp:(.text+0x7af): undefined reference to `lstat64'
/usr/lib/gcc/i686-pc-msdosdjgpp/9.2.0/../../../../i686-pc-msdosdjgpp/bin/ld: /home/robert_/C++/fox-1.6/src/.libs/libFOX-1.6.a(FXFile.o):FXFile.cpp:(.text+0x7d5): undefined reference to `lstat64'
/usr/lib/gcc/i686-pc-msdosdjgpp/9.2.0/../../../../i686-pc-msdosdjgpp/bin/ld: /home/robert_/C++/fox-1.6/src/.libs/libFOX-1.6.a(FXPipe.o):FXPipe.cpp:(.text+0xc0): undefined reference to `__errno_location'
/usr/lib/gcc/i686-pc-msdosdjgpp/9.2.0/../../../../i686-pc-msdosdjgpp/bin/ld: /home/robert_/C++/fox-1.6/src/.libs/libFOX-1.6.a(FXPipe.o):FXPipe.cpp:(.text+0x11c): undefined reference to `__errno_location'
/usr/lib/gcc/i686-pc-msdosdjgpp/9.2.0/../../../../i686-pc-msdosdjgpp/bin/ld: /usr/i686-pc-msdosdjgpp/lib/libNX11.a(StrToText.o):StrToText.c:(.text+0x170): undefined reference to `wcslen'
/usr/lib/gcc/i686-pc-msdosdjgpp/9.2.0/../../../../i686-pc-msdosdjgpp/bin/ld: /usr/i686-pc-msdosdjgpp/lib/libNX11.a(StrToText.o):StrToText.c:(.text+0x17b): undefined reference to `wcslen'
/usr/lib/gcc/i686-pc-msdosdjgpp/9.2.0/../../../../i686-pc-msdosdjgpp/bin/ld: /usr/i686-pc-msdosdjgpp/lib/libNX11.a(StrToText.o):StrToText.c:(.text+0x1b3): undefined reference to `wctob'
/usr/lib/gcc/i686-pc-msdosdjgpp/9.2.0/../../../../i686-pc-msdosdjgpp/bin/ld: /usr/i686-pc-msdosdjgpp/lib/libNX11.a(StrToText.o):StrToText.c:(.text+0x2e9): undefined reference to `btowc'
/usr/lib/gcc/i686-pc-msdosdjgpp/9.2.0/../../../../i686-pc-msdosdjgpp/bin/ld: /usr/i686-pc-msdosdjgpp/lib/libnano-X.a(image_jpeg.o):image_jpeg.c:(.text+0x14e): undefined reference to `jpeg_std_error'
/usr/lib/gcc/i686-pc-msdosdjgpp/9.2.0/../../../../i686-pc-msdosdjgpp/bin/ld: /usr/i686-pc-msdosdjgpp/lib/libnano-X.a(image_jpeg.o):image_jpeg.c:(.text+0x16a): undefined reference to `jpeg_CreateDecompress'
/usr/lib/gcc/i686-pc-msdosdjgpp/9.2.0/../../../../i686-pc-msdosdjgpp/bin/ld: /usr/i686-pc-msdosdjgpp/lib/libnano-X.a(image_jpeg.o):image_jpeg.c:(.text+0x1a6): undefined reference to `jpeg_read_header'
/usr/lib/gcc/i686-pc-msdosdjgpp/9.2.0/../../../../i686-pc-msdosdjgpp/bin/ld: /usr/i686-pc-msdosdjgpp/lib/libnano-X.a(image_jpeg.o):image_jpeg.c:(.text+0x1da): undefined reference to `jpeg_calc_output_dimensions'
/usr/lib/gcc/i686-pc-msdosdjgpp/9.2.0/../../../../i686-pc-msdosdjgpp/bin/ld: /usr/i686-pc-msdosdjgpp/lib/libnano-X.a(image_jpeg.o):image_jpeg.c:(.text+0x20f): undefined reference to `jpeg_finish_decompress'
/usr/lib/gcc/i686-pc-msdosdjgpp/9.2.0/../../../../i686-pc-msdosdjgpp/bin/ld: /usr/i686-pc-msdosdjgpp/lib/libnano-X.a(image_jpeg.o):image_jpeg.c:(.text+0x217): undefined reference to `jpeg_destroy_decompress'
/usr/lib/gcc/i686-pc-msdosdjgpp/9.2.0/../../../../i686-pc-msdosdjgpp/bin/ld: /usr/i686-pc-msdosdjgpp/lib/libnano-X.a(image_jpeg.o):image_jpeg.c:(.text+0x27e): undefined reference to `jpeg_start_decompress'
/usr/lib/gcc/i686-pc-msdosdjgpp/9.2.0/../../../../i686-pc-msdosdjgpp/bin/ld: /usr/i686-pc-msdosdjgpp/lib/libnano-X.a(image_jpeg.o):image_jpeg.c:(.text+0x297): undefined reference to `jpeg_read_scanlines'
/usr/lib/gcc/i686-pc-msdosdjgpp/9.2.0/../../../../i686-pc-msdosdjgpp/bin/ld: /usr/i686-pc-msdosdjgpp/lib/libnano-X.a(image_jpeg.o):image_jpeg.c:(.text+0x78): undefined reference to `jpeg_resync_to_restart'
/usr/lib/gcc/i686-pc-msdosdjgpp/9.2.0/../../../../i686-pc-msdosdjgpp/bin/ld: /usr/i686-pc-msdosdjgpp/lib/libnano-X.a(image_png.o):image_png.c:(.text+0x13): undefined reference to `png_get_io_ptr'
/usr/lib/gcc/i686-pc-msdosdjgpp/9.2.0/../../../../i686-pc-msdosdjgpp/bin/ld: /usr/i686-pc-msdosdjgpp/lib/libnano-X.a(image_png.o):image_png.c:(.text+0x97): undefined reference to `png_sig_cmp'
/usr/lib/gcc/i686-pc-msdosdjgpp/9.2.0/../../../../i686-pc-msdosdjgpp/bin/ld: /usr/i686-pc-msdosdjgpp/lib/libnano-X.a(image_png.o):image_png.c:(.text+0xb0): undefined reference to `png_create_read_struct'
/usr/lib/gcc/i686-pc-msdosdjgpp/9.2.0/../../../../i686-pc-msdosdjgpp/bin/ld: /usr/i686-pc-msdosdjgpp/lib/libnano-X.a(image_png.o):image_png.c:(.text+0xc7): undefined reference to `png_create_info_struct'
/usr/lib/gcc/i686-pc-msdosdjgpp/9.2.0/../../../../i686-pc-msdosdjgpp/bin/ld: /usr/i686-pc-msdosdjgpp/lib/libnano-X.a(image_png.o):image_png.c:(.text+0xe9): undefined reference to `png_set_longjmp_fn'
/usr/lib/gcc/i686-pc-msdosdjgpp/9.2.0/../../../../i686-pc-msdosdjgpp/bin/ld: /usr/i686-pc-msdosdjgpp/lib/libnano-X.a(image_png.o):image_png.c:(.text+0x10f): undefined reference to `png_set_read_fn'
/usr/lib/gcc/i686-pc-msdosdjgpp/9.2.0/../../../../i686-pc-msdosdjgpp/bin/ld: /usr/i686-pc-msdosdjgpp/lib/libnano-X.a(image_png.o):image_png.c:(.text+0x11c): undefined reference to `png_set_sig_bytes'
/usr/lib/gcc/i686-pc-msdosdjgpp/9.2.0/../../../../i686-pc-msdosdjgpp/bin/ld: /usr/i686-pc-msdosdjgpp/lib/libnano-X.a(image_png.o):image_png.c:(.text+0x12b): undefined reference to `png_read_info'
/usr/lib/gcc/i686-pc-msdosdjgpp/9.2.0/../../../../i686-pc-msdosdjgpp/bin/ld: /usr/i686-pc-msdosdjgpp/lib/libnano-X.a(image_png.o):image_png.c:(.text+0x153): undefined reference to `png_get_IHDR'
/usr/lib/gcc/i686-pc-msdosdjgpp/9.2.0/../../../../i686-pc-msdosdjgpp/bin/ld: /usr/i686-pc-msdosdjgpp/lib/libnano-X.a(image_png.o):image_png.c:(.text+0x180): undefined reference to `png_get_valid'
/usr/lib/gcc/i686-pc-msdosdjgpp/9.2.0/../../../../i686-pc-msdosdjgpp/bin/ld: /usr/i686-pc-msdosdjgpp/lib/libnano-X.a(image_png.o):image_png.c:(.text+0x1a5): undefined reference to `png_get_valid'
/usr/lib/gcc/i686-pc-msdosdjgpp/9.2.0/../../../../i686-pc-msdosdjgpp/bin/ld: /usr/i686-pc-msdosdjgpp/lib/libnano-X.a(image_png.o):image_png.c:(.text+0x1d6): undefined reference to `png_get_gAMA'
/usr/lib/gcc/i686-pc-msdosdjgpp/9.2.0/../../../../i686-pc-msdosdjgpp/bin/ld: /usr/i686-pc-msdosdjgpp/lib/libnano-X.a(image_png.o):image_png.c:(.text+0x1f0): undefined reference to `png_read_update_info'
/usr/lib/gcc/i686-pc-msdosdjgpp/9.2.0/../../../../i686-pc-msdosdjgpp/bin/ld: /usr/i686-pc-msdosdjgpp/lib/libnano-X.a(image_png.o):image_png.c:(.text+0x218): undefined reference to `png_get_IHDR'
/usr/lib/gcc/i686-pc-msdosdjgpp/9.2.0/../../../../i686-pc-msdosdjgpp/bin/ld: /usr/i686-pc-msdosdjgpp/lib/libnano-X.a(image_png.o):image_png.c:(.text+0x2ae): undefined reference to `png_read_image'
/usr/lib/gcc/i686-pc-msdosdjgpp/9.2.0/../../../../i686-pc-msdosdjgpp/bin/ld: /usr/i686-pc-msdosdjgpp/lib/libnano-X.a(image_png.o):image_png.c:(.text+0x2bb): undefined reference to `png_read_end'
/usr/lib/gcc/i686-pc-msdosdjgpp/9.2.0/../../../../i686-pc-msdosdjgpp/bin/ld: /usr/i686-pc-msdosdjgpp/lib/libnano-X.a(image_png.o):image_png.c:(.text+0x2d7): undefined reference to `png_destroy_read_struct'
/usr/lib/gcc/i686-pc-msdosdjgpp/9.2.0/../../../../i686-pc-msdosdjgpp/bin/ld: /usr/i686-pc-msdosdjgpp/lib/libnano-X.a(image_png.o):image_png.c:(.text+0x2fd): undefined reference to `png_set_gamma'
/usr/lib/gcc/i686-pc-msdosdjgpp/9.2.0/../../../../i686-pc-msdosdjgpp/bin/ld: /usr/i686-pc-msdosdjgpp/lib/libnano-X.a(image_png.o):image_png.c:(.text+0x311): undefined reference to `png_set_gray_to_rgb'
/usr/lib/gcc/i686-pc-msdosdjgpp/9.2.0/../../../../i686-pc-msdosdjgpp/bin/ld: /usr/i686-pc-msdosdjgpp/lib/libnano-X.a(image_png.o):image_png.c:(.text+0x325): undefined reference to `png_set_tRNS_to_alpha'
/usr/lib/gcc/i686-pc-msdosdjgpp/9.2.0/../../../../i686-pc-msdosdjgpp/bin/ld: /usr/i686-pc-msdosdjgpp/lib/libnano-X.a(image_png.o):image_png.c:(.text+0x339): undefined reference to `png_set_expand'
/usr/lib/gcc/i686-pc-msdosdjgpp/9.2.0/../../../../i686-pc-msdosdjgpp/bin/ld: /usr/i686-pc-msdosdjgpp/lib/libnano-X.a(image_png.o):image_png.c:(.text+0x361): undefined reference to `png_set_strip_16'
/usr/lib/gcc/i686-pc-msdosdjgpp/9.2.0/../../../../i686-pc-msdosdjgpp/bin/ld: /usr/i686-pc-msdosdjgpp/lib/libnano-X.a(image_png.o):image_png.c:(.text+0x374): undefined reference to `png_set_expand'
/usr/lib/gcc/i686-pc-msdosdjgpp/9.2.0/../../../../i686-pc-msdosdjgpp/bin/ld: /usr/i686-pc-msdosdjgpp/lib/libnano-X.a(image_png.o):image_png.c:(.text+0x38a): undefined reference to `png_set_expand'
/usr/lib/gcc/i686-pc-msdosdjgpp/9.2.0/../../../../i686-pc-msdosdjgpp/bin/ld: /usr/i686-pc-msdosdjgpp/lib/libnano-X.a(image_png.o):image_png.c:(.text+0x3a4): undefined reference to `png_destroy_read_struct'
/usr/lib/gcc/i686-pc-msdosdjgpp/9.2.0/../../../../i686-pc-msdosdjgpp/bin/ld: /usr/i686-pc-msdosdjgpp/lib/libnano-X.a(image_png.o):image_png.c:(.text+0x3bc): undefined reference to `png_destroy_read_struct'
/usr/lib/gcc/i686-pc-msdosdjgpp/9.2.0/../../../../i686-pc-msdosdjgpp/bin/ld: /usr/i686-pc-msdosdjgpp/lib/libnano-X.a(image_png.o):image_png.c:(.text+0x3e4): undefined reference to `png_destroy_read_struct'
collect2: error: ld returned 1 exit status
ghaerr commented 4 years ago

Not too bad, really.

To sort into categories:

All in all, the biggest porting issue by far is support for the Xft X11 routines. You could possibly try to port Xft over separately, as it rests on top of X11. But as with all things X11, it's ridiculously complicated for what you get.

ghaerr commented 4 years ago

It would be far easier to start with a less complicated X11 application, IMO.

lighth7015 commented 4 years ago

Fc* is fontconfig, which I'm in the process of compiling.

lighth7015 commented 4 years ago

I am working with djdelorie on freenode for the specifics of his toolchain.