On Fri, 6 Jan 2006 15:08:01 +0100 (CET) Vincent Torri <[EMAIL PROTECTED]> babbled:
> > hey, > > it seems that there are some problems with the visibility feature and gcc > 4.*. According to the documentation (http://gcc.gnu.org/wiki/Visibility) > the pragma statement should not be used. And indeed, it seems that there > are some problems with gcc 4.0.2 and that pragma. well actually - the pragma just does the -fvisibiloity option WITHIN the code - ans that's what i did. it's turned on in the code if you have gcc4 and up. EAPI explicitly SPECIFIEs a symbol to be public and otherwise its private. > I propose that solution: > > * checking if gcc accept the vsibility feature in configure.in (i've > written a small m4 macro for that. It add -fvisibility=hidden during > compilation and it defines GCC_HASCLASSVISIBILITY) i tried using this in CFLAGS and it didnt work. thats why i used pragma. > * modifying the definition of EAPI so that it uses GCC_HASCLASSVISIBILITY > (if it's not already the case) it used to be - and didn't work. > * removing all the pragma statements. > > i've already made the changes for eet on my hard disk. Without the > visibility feature, the size of the shared library is 37162 KB. With it, > it's 36626. That is, it compiles fine and it works. well as i said - i tried with gcc 4.0.2 and it didnt work. the library STILL had all the symbols init. if u stripped it they didnt go away (strip -x is what u want) i NEEDEd to use the #pragma to make it work. > is there any objections that I commit that for eet ? > > Vincent > > > ------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. Do you grep through log files > for problems? Stop! Download the new AJAX search engine that makes > searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! > http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click > _______________________________________________ > enlightenment-devel mailing list > enlightenment-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/enlightenment-devel > -- ------------- Codito, ergo sum - "I code, therefore I am" -------------- The Rasterman (Carsten Haitzler) [EMAIL PROTECTED] 裸好多 Tokyo, Japan (東京 日本) ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click _______________________________________________ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel