------- Additional Comments From bernie at develer dot com  2005-05-19 10:42 
-------
(In reply to comment #39)
> (In reply to comment #37)  
>  
> > Reducing a testcase isn't trivial, but I'll try.  
>   
> try to pass to the ./configure the kde_cv_val_gcc_visibility_bug=yes switch. 
> rebuild and test artsd. it may help. 

I ran the acinclude.m4 test manually, and it
links fine for me (altough the binary crashes
on startup).

      $ cat < foo.cpp
          /* http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19664 */
          #include <string>
          int some_function( void ) __attribute__ ((visibility("default")));
          int some_function( void )
          {
            std::string s("blafasel");
            return 0;
          }
      $ g++ -fPIC -fvisibility-inlines-hidden -O0 -shared foo.cpp -o foo
      $ ./foo
      Segmentation fault


> currently i have a gcc-4.0.1-20050514(+patches:19664,20218,v3) 
> and artsd works fine without hacks. 

I'll try to build with those patches, thanks.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19317

Reply via email to