Re: [fossil-users] Noob Win32 build issues
Hello, I'm trying to build the Win32 executable from source, and I'm running into some issues. Fossil: server-code: bdb6c83a1308a2cd3809b9c482fb4f3819f3d0b9 checkout: 107f38dd014ae469dcac1f3e1c4fb230ffdc7d71 2009-10-27 20:15:30 UTC parent: 3275d9c63ce62cb1e21f20a0a8c8be5ca1aa19a8 2009-10-21 15:43:23 UTC tags: trunk This is on Ubuntu 9.04 Server, gcc v4.3.3, the latest mingw32 as packaged by Ubuntu (sorry, I don't know how to get mingw's version). The Linux build goes just file, and I'm using the generated binary there. But when I try to do the Win32 build, I run into trouble. My guess is something's missing in my environment. Any suggestions? Thanks! -Clark cla...@cdc-linux:~/build/fossil$ make -f Makefile.w32 ~/make.txt In file included from ./src/config.h:33, from add_.c:27: /mingw/include/ctype.h: In function âisalnumâ: /mingw/include/ctype.h:154: error: â_impmb_cur_max_dllâ undeclared (first use in this function) /mingw/include/ctype.h:154: error: (Each undeclared identifier is reported only once /mingw/include/ctype.h:154: error: for each function it appears in.) /mingw/include/ctype.h: In function âisalphaâ: /mingw/include/ctype.h:155: error: â_impmb_cur_max_dllâ undeclared (first use in this function) /mingw/include/ctype.h: In function âiscntrlâ: /mingw/include/ctype.h:156: error: â_impmb_cur_max_dllâ undeclared (first use in this function) /mingw/include/ctype.h: In function âisdigitâ: /mingw/include/ctype.h:157: error: â_impmb_cur_max_dllâ undeclared (first use in this function) /mingw/include/ctype.h: In function âisgraphâ: /mingw/include/ctype.h:158: error: â_impmb_cur_max_dllâ undeclared (first use in this function) /mingw/include/ctype.h: In function âislowerâ: /mingw/include/ctype.h:159: error: â_impmb_cur_max_dllâ undeclared (first use in this function) /mingw/include/ctype.h: In function âisprintâ: /mingw/include/ctype.h:160: error: â_impmb_cur_max_dllâ undeclared (first use in this function) /mingw/include/ctype.h: In function âispunctâ: /mingw/include/ctype.h:161: error: â_impmb_cur_max_dllâ undeclared (first use in this function) /mingw/include/ctype.h: In function âisspaceâ: /mingw/include/ctype.h:162: error: â_impmb_cur_max_dllâ undeclared (first use in this function) /mingw/include/ctype.h: In function âisupperâ: /mingw/include/ctype.h:163: error: â_impmb_cur_max_dllâ undeclared (first use in this function) /mingw/include/ctype.h: In function âisxdigitâ: /mingw/include/ctype.h:164: error: â_impmb_cur_max_dllâ undeclared (first use in this function) /mingw/include/ctype.h: In function âisblankâ: /mingw/include/ctype.h:169: error: â_impmb_cur_max_dllâ undeclared (first use in this function) make: *** [add.o] Error 1 cla...@cdc-linux:~/build/fossil$ ___ fossil-users mailing list fossil-users@lists.fossil-scm.org http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users if your lucky you can do mingw make -f makefile.w32. But I guess your are not! determing how the mingw compiler is called for me under arch it is i486-mingw32-gcc determing libs for mingw mine /usr/i486-mingw32/lib determing incs for mingw mine /usr/i486-mingw32/include download zlib-1.2.3.tar.gz mkdir mingw cd mingw tar -xvf zlib-1.2.3.tar.gz cd zlib-1.2.3 CC=i486-mingw32-gcc ./configure i486-mingw32-ranlib libz.a cd .. mkdir fossil cd fossil fossil co your-fossil-rep or unzip the src you downloaded make (yes unix you need unix translate) rm *.o vi Makefile.win32 change gcc into i486-mingw32-gcc change the TCC line from TCC = i486-mingw32-gcc -Os -Wall -DFOSSIL_I18N=0 -L/mingw/lib -I/mingw/include to TCC = i486-mingw32-gcc -Os -Wall -DFOSSIL_I18N=0 -L/usr/i486-mingw/lib -I/usr/i486-mingw/include -L../zlib-1.2.3 -I../zlib-1.2.3 save it make -f Makefile.w32 Have fun, Rene ___ fossil-users mailing list fossil-users@lists.fossil-scm.org http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users
Re: [fossil-users] Noob Win32 build issues
Wow. I really appreciate you taking the time to reply with such detailed info, Rene. It seems like a really big departure from the info on the Fossil website, and from the Makefile.w32 provided in the source. I have little experience with C compilers, and the like, and I guess I was hoping for a simpler solution, like you just need libthisor that, or add /path/to/some/dir to your path. Though I'd like to have some of the changes since the last (September) release, I think I'll just stick with the precompiled Win32 binaries from fossil-scm.org. And now I see a new one was posted yesterday, so maybe that'll do the job for me. Thanks again. -Clark - Original Message From: Rene de Zwart renew...@xs4all.nl To: fossil-users@lists.fossil-scm.org Sent: Thu, November 12, 2009 3:07:01 PM Subject: Re: [fossil-users] Noob Win32 build issues Hello, I'm trying to build the Win32 executable from source, and I'm running into some issues. Fossil: server-code: bdb6c83a1308a2cd3809b9c482fb4f3819f3d0b9 checkout: 107f38dd014ae469dcac1f3e1c4fb230ffdc7d71 2009-10-27 20:15:30 UTC parent: 3275d9c63ce62cb1e21f20a0a8c8be5ca1aa19a8 2009-10-21 15:43:23 UTC tags: trunk This is on Ubuntu 9.04 Server, gcc v4.3.3, the latest mingw32 as packaged by Ubuntu (sorry, I don't know how to get mingw's version). The Linux build goes just file, and I'm using the generated binary there. But when I try to do the Win32 build, I run into trouble. My guess is something's missing in my environment. Any suggestions? Thanks! -Clark cla...@cdc-linux:~/build/fossil$ make -f Makefile.w32 ~/make.txt In file included from ./src/config.h:33, from add_.c:27: /mingw/include/ctype.h: In function ‘isalnum’: /mingw/include/ctype.h:154: error: ‘_impmb_cur_max_dll’ undeclared (first use in this function) /mingw/include/ctype.h:154: error: (Each undeclared identifier is reported only once /mingw/include/ctype.h:154: error: for each function it appears in.) /mingw/include/ctype.h: In function ‘isalpha’: /mingw/include/ctype.h:155: error: ‘_impmb_cur_max_dll’ undeclared (first use in this function) /mingw/include/ctype.h: In function ‘iscntrl’: /mingw/include/ctype.h:156: error: ‘_impmb_cur_max_dll’ undeclared (first use in this function) /mingw/include/ctype.h: In function ‘isdigit’: /mingw/include/ctype.h:157: error: ‘_impmb_cur_max_dll’ undeclared (first use in this function) /mingw/include/ctype.h: In function ‘isgraph’: /mingw/include/ctype.h:158: error: ‘_impmb_cur_max_dll’ undeclared (first use in this function) /mingw/include/ctype.h: In function ‘islower’: /mingw/include/ctype.h:159: error: ‘_impmb_cur_max_dll’ undeclared (first use in this function) /mingw/include/ctype.h: In function ‘isprint’: /mingw/include/ctype.h:160: error: ‘_impmb_cur_max_dll’ undeclared (first use in this function) /mingw/include/ctype.h: In function ‘ispunct’: /mingw/include/ctype.h:161: error: ‘_impmb_cur_max_dll’ undeclared (first use in this function) /mingw/include/ctype.h: In function ‘isspace’: /mingw/include/ctype.h:162: error: ‘_impmb_cur_max_dll’ undeclared (first use in this function) /mingw/include/ctype.h: In function ‘isupper’: /mingw/include/ctype.h:163: error: ‘_impmb_cur_max_dll’ undeclared (first use in this function) /mingw/include/ctype.h: In function ‘isxdigit’: /mingw/include/ctype.h:164: error: ‘_impmb_cur_max_dll’ undeclared (first use in this function) /mingw/include/ctype.h: In function ‘isblank’: /mingw/include/ctype.h:169: error: ‘_impmb_cur_max_dll’ undeclared (first use in this function) make: *** [add.o] Error 1 cla...@cdc-linux:~/build/fossil$ ___ fossil-users mailing list fossil-users@lists.fossil-scm.org http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users if your lucky you can do mingw make -f makefile.w32. But I guess your are not! determing how the mingw compiler is called for me under arch it is i486-mingw32-gcc determing libs for mingw mine /usr/i486-mingw32/lib determing incs for mingw mine /usr/i486-mingw32/include download zlib-1.2.3.tar.gz mkdir mingw cd mingw tar -xvf zlib-1.2.3.tar.gz cd zlib-1.2.3 CC=i486-mingw32-gcc ./configure i486-mingw32-ranlib libz.a cd .. mkdir fossil cd fossil fossil co your-fossil-rep or unzip the src you downloaded make (yes unix you need unix translate) rm *.o vi Makefile.win32 change gcc into i486-mingw32-gcc change the TCC line from TCC = i486-mingw32-gcc -Os -Wall -DFOSSIL_I18N=0 -L/mingw/lib -I/mingw/include to TCC = i486-mingw32-gcc -Os -Wall -DFOSSIL_I18N=0 -L/usr/i486-mingw/lib -I/usr/i486-mingw/include -L../zlib-1.2.3 -I../zlib-1.2.3 save it make -f Makefile.w32 Have fun, Rene ___ fossil-users mailing
Re: [fossil-users] Noob Win32 build issues
Clark, What you assume is that fossil can be build in a cross compile environment. It isn't setup to do that. It has two compile environments 1) Ms Windows with mingw see below 2) Unix environments (And probably not all of them) I had fun in getting the cross compile working but there has never been any intention to support this. So the right answer to your question is you cannot compile fossil for windows under (Arch) Linux with out additional work. If you want to build your own windows fossil binary see http://www.mail-archive.com/fossil-users@lists.fossil-scm.org/msg00592.html Thanks for the Wow :-) Rene Wow. I really appreciate you taking the time to reply with such detailed info, Rene. It seems like a really big departure from the info on the Fossil website, and from the Makefile.w32 provided in the source. I have little experience with C compilers, and the like, and I guess I was hoping for a simpler solution, like you just need libthisor that, or add /path/to/some/dir to your path. Though I'd like to have some of the changes since the last (September) release, I think I'll just stick with the precompiled Win32 binaries from fossil-scm.org. And now I see a new one was posted yesterday, so maybe that'll do the job for me. Thanks again. -Clark - Original Message From: Rene de Zwart renew...@xs4all.nl To: fossil-users@lists.fossil-scm.org Sent: Thu, November 12, 2009 3:07:01 PM Subject: Re: [fossil-users] Noob Win32 build issues Hello, I'm trying to build the Win32 executable from source, and I'm running into some issues. Fossil: server-code: bdb6c83a1308a2cd3809b9c482fb4f3819f3d0b9 checkout: 107f38dd014ae469dcac1f3e1c4fb230ffdc7d71 2009-10-27 20:15:30 UTC parent: 3275d9c63ce62cb1e21f20a0a8c8be5ca1aa19a8 2009-10-21 15:43:23 UTC tags: trunk This is on Ubuntu 9.04 Server, gcc v4.3.3, the latest mingw32 as packaged by Ubuntu (sorry, I don't know how to get mingw's version). The Linux build goes just file, and I'm using the generated binary there. But when I try to do the Win32 build, I run into trouble. My guess is something's missing in my environment. Any suggestions? Thanks! -Clark cla...@cdc-linux:~/build/fossil$ make -f Makefile.w32 ~/make.txt In file included from ./src/config.h:33, from add_.c:27: /mingw/include/ctype.h: In function ââ¬Ëisalnumââ¬â¢: /mingw/include/ctype.h:154: error: ââ¬Ë_impmb_cur_max_dllââ¬â¢ undeclared (first use in this function) /mingw/include/ctype.h:154: error: (Each undeclared identifier is reported only once /mingw/include/ctype.h:154: error: for each function it appears in.) /mingw/include/ctype.h: In function ââ¬Ëisalphaââ¬â¢: /mingw/include/ctype.h:155: error: ââ¬Ë_impmb_cur_max_dllââ¬â¢ undeclared (first use in this function) /mingw/include/ctype.h: In function ââ¬Ëiscntrlââ¬â¢: /mingw/include/ctype.h:156: error: ââ¬Ë_impmb_cur_max_dllââ¬â¢ undeclared (first use in this function) /mingw/include/ctype.h: In function ââ¬Ëisdigitââ¬â¢: /mingw/include/ctype.h:157: error: ââ¬Ë_impmb_cur_max_dllââ¬â¢ undeclared (first use in this function) /mingw/include/ctype.h: In function ââ¬Ëisgraphââ¬â¢: /mingw/include/ctype.h:158: error: ââ¬Ë_impmb_cur_max_dllââ¬â¢ undeclared (first use in this function) /mingw/include/ctype.h: In function ââ¬Ëislowerââ¬â¢: /mingw/include/ctype.h:159: error: ââ¬Ë_impmb_cur_max_dllââ¬â¢ undeclared (first use in this function) /mingw/include/ctype.h: In function ââ¬Ëisprintââ¬â¢: /mingw/include/ctype.h:160: error: ââ¬Ë_impmb_cur_max_dllââ¬â¢ undeclared (first use in this function) /mingw/include/ctype.h: In function ââ¬Ëispunctââ¬â¢: /mingw/include/ctype.h:161: error: ââ¬Ë_impmb_cur_max_dllââ¬â¢ undeclared (first use in this function) /mingw/include/ctype.h: In function ââ¬Ëisspaceââ¬â¢: /mingw/include/ctype.h:162: error: ââ¬Ë_impmb_cur_max_dllââ¬â¢ undeclared (first use in this function) /mingw/include/ctype.h: In function ââ¬Ëisupperââ¬â¢: /mingw/include/ctype.h:163: error: ââ¬Ë_impmb_cur_max_dllââ¬â¢ undeclared (first use in this function) /mingw/include/ctype.h: In function ââ¬Ëisxdigitââ¬â¢: /mingw/include/ctype.h:164: error: ââ¬Ë_impmb_cur_max_dllââ¬â¢ undeclared (first use in this function) /mingw/include/ctype.h: In function ââ¬Ëisblankââ¬â¢: /mingw/include/ctype.h:169: error: ââ¬Ë_impmb_cur_max_dllââ¬â¢ undeclared (first use in this function) make: *** [add.o] Error 1 cla...@cdc-linux:~/build/fossil$ ___ fossil-users mailing list fossil-users@lists.fossil-scm.org http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users if your lucky you can do mingw make -f makefile.w32. But I guess your are not! determing how