darwin* | rhapsody*)
      # PIC is the default on this platform
      # Common symbols not allowed in MH_DYLIB files
      lt_cv_prog_cc_pic='-fno-common'

This is already in there in configure file. Moreover, I have tried setting the cfags in the .info file and still get exactly the same error.

Any thoughts, please?

On 19 Nov 2005, at 11:55 pm, Martin Costabel wrote:

Murali Vadivelu wrote:
I am trying to create a .info file for this package. However, at compile stage I get this error from multiply defined symbol PyarrayXXX. I have tried setting the LDFLAGS to mutliply_defined suppress. It does not seem to work on either gcc-3.3 or 4.0.1. Any help, please?
[]
/usr/bin/ld: multiple definitions of symbol _PyArrayXXX
sg.lo definition of _PyArrayXXX in section (__DATA,__common)
sg_config.lo definition of _PyArrayXXX in section (__DATA,__common)
sg_file.lo definition of _PyArrayXXX in section (__DATA,__common)

You need to compile object files that go into a dylib with the -fno- common flag. See

 grep fno-common -r /sw/fink/dists/unstable/main/finkinfo

for various different examples how to do this.

--
Martin




-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc.  Get Certified Today
Register for a JBoss Training Course.  Free Certification Exam
for All Training Attendees Through End of 2005. For more info visit:
http://ads.osdn.com/?ad_id=7628&alloc_id=16845&op=click
_______________________________________________
Fink-devel mailing list
Fink-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fink-devel

Reply via email to