Incomplete EXTRA LIBS for LINUX64 target


Click here for full thread
Gets Around
Compiling nwchem with python support requires linking with library "-lz".
It happens if target is LINUX CYGNUS CYGWIN INTERIX, but if target is LINUX64 there is no "-lz" in EXTRA_LIBS, so linking fails with error.

I provide the patch that fixes this issue in latest Development snapshot June 09, 2014 Nwchem-dev.revision25716-src.2014-06-09

src/config/makefile_orig.h	2014-06-05 06:13:46.000000000 +0700
+++ src/config/makefile.h	2014-07-13 09:43:18.147836024 +0700
@@ -2101,7 +2101,7 @@
 
      ifeq ($(BUILDING_PYTHON),python)
 #   EXTRA_LIBS += -ltk -ltcl -L/usr/X11R6/lib -lX11 -ldl
-     EXTRA_LIBS +=    -lnwcutil  -lpthread -lutil -ldl
+     EXTRA_LIBS += -lz -lnwcutil  -lpthread -lutil -ldl
   LDOPTIONS = -Wl,--export-dynamic 
      endif
 ifeq ($(NWCHEM_TARGET),CATAMOUNT)