Hi,

I posted this a few weeks ago, but got no reply from the maintainer. Could one of the people with cvs access add this patch for the qhull package?

Of course, you need to update qhull.info too so it will use the patch :)

many thanks,


- Koen.



===========
diff -Naur qhull2002.1/src/Makefile qhull2002.1-patched/src/Makefile
--- qhull2002.1/src/Makefile Wed Aug 28 23:16:24 2002
+++ qhull2002.1-patched/src/Makefile Sun Jan 11 21:40:11 2004
@@ -43,7 +43,7 @@
#for Gnu's gcc compiler -O2 for optimization, -g for debugging, -Wall for check
#
CC = gcc
-CCOPTS1 = -O2 -ansi
+CCOPTS1 = -O2 -ansi -fno-common


# for Sun's cc compiler, -fast or O2 for optimization, -g for debugging, -Xc for ANSI
#CC = cc
diff -Naur qhull2002.1/src/Makefile.txt qhull2002.1-patched/src/Makefile.txt
--- qhull2002.1/src/Makefile.txt Wed Aug 28 23:16:24 2002
+++ qhull2002.1-patched/src/Makefile.txt Sun Jan 11 21:39:17 2004
@@ -43,7 +43,7 @@
#for Gnu's gcc compiler -O2 for optimization, -g for debugging, -Wall for check
#
CC = gcc
-CCOPTS1 = -O2 -ansi
+CCOPTS1 = -O2 -ansi -fno-common


# for Sun's cc compiler, -fast or O2 for optimization, -g for debugging, -Xc for ANSI
#CC = cc


==============


On Jan 12, 2004, at 8:02 PM, Koen van der Drift wrote:



On Jan 10, 2004, at 8:27 PM, Koen van der Drift wrote:


Hi,

The package I am working on (plplot) has the option to use the qhull libraries. When I enable that, I get the following error:

...
gcc -dynamiclib -o .libs/libcsironn.0.0.0.dylib .libs/delaunay.o .libs/hash.o .libs/istack.o .libs/lpi.o .libs/nnai.o .libs/nnpi.o .libs/nncommon.o -L/sw/lib -lqhull -lm -install_name /sw/lib/libcsironn.0.dylib -compatibility_version 1 -current_version 1.0
ld: warning -dylib_install_name /sw/lib/libcsironn.0.dylib not found in segment address table LD_SEG_ADDR_TABLE /sw/var/lib/fink/prebound/seg_addr_table
ld: common symbols not allowed with MH_DYLIB output format with the -multi_module option
/sw/lib/libqhull.a(global.o) definition of common _qh_qh (size 3768)
/sw/lib/libqhull.a(stat.o) definition of common _qh_qhstat (size 3832)




The problem can be solved by linking the qhull package with the -fno-common flag. This can be easily done by patching the Makefile and Makefile.txt files and adding this flag to CCOPTS1 in the gcc section.

- Koen.




------------------------------------------------------- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn _______________________________________________ Fink-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/fink-devel

Reply via email to