DOMinator icon indicating copy to clipboard operation
DOMinator copied to clipboard

fixes for gcc-4.7

Open dmitris opened this issue 12 years ago • 7 comments
trafficstars

...e with gcc-4.7 - fixes issue #7

(Compiled on Fedora 17 x86-64, need to verify that it still compiles on Ubuntu/Debian)

dmitris avatar Feb 15 '13 15:02 dmitris

Thanks Dmitry, there are some comments about conditional compilation which is missing. The code you added will break windows compilation for sure and unfortunately this prevents me from accepting the pull request. On the other side, thanks a lot for your effort, another guy is working on 64bit compilation on new gcc 4.7 and most of your code confirms some of the patches we were working on.

Also I have some comment that I'll add to the code.

wisec avatar Feb 15 '13 15:02 wisec

sorry there were more changes that necessary - thanks for double-checking (I'm glad I used a PR :) ) I reverted the lines that you commented on. See if you can use it now!

I verified that after reversion it compiles on Fedora (x86_64) and on Ubuntu 12 LTS (32-bit).

dmitris avatar Feb 15 '13 17:02 dmitris

hehe you're right! better using always pull requests just to be sure ! :) I'll merge it as soon as I can review the code. Thanks!

wisec avatar Feb 15 '13 18:02 wisec

I see that conditional compilation guards need to be added around #include <unistd.h> lines - what is the typical or recommended style? #ifdef linux ?

dmitris avatar Feb 15 '13 18:02 dmitris

have a look at : https://hg.mozilla.org/mozilla-central/rev/87a5ed480992

this is one of the patches for the missing inclusion of unistd issue.

wisec avatar Feb 15 '13 18:02 wisec

OK - copied the guards from the mozilla-central file, should be good now. Sorry for bunch of commits! Compiles on Fedora but I did not try it on Windows yet.

dmitris avatar Feb 15 '13 18:02 dmitris

Confirmed that my repository https://github.com/dmitris/DOMinator builds fine on Windows (with MozillaBuild and pymake), tests run fine, Firefox application opens.

The PR should be now fine to merge - let me know if you see any remaining problems with it. Thanks.

dmitris avatar Feb 18 '13 15:02 dmitris