Incomplete EXTRA LIBS for LINUX64 target


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)

Forum Vet
Vladimir,
Thanks for your feedback.
Could you please tell me what kind of linux distribution you are using?

Thanks, Edo

Gets Around
Hello, Edo.
I'm using Ubintu 14.04, Ubuntu 13.04 and Ubuntu 12.04.

I saw that it was already discussed in post
http://nwchemgit.github.io/Special_AWCforum/post/quote/id1537
Quote:username
__Good__ (edit src/config/makefile.h, line 1914 and add -lz -lssl for python support)


but -lssl already fixed

Gets Around
fixed in http://nwchemgit.github.io/download.php?f=Nwchem-dev.revision26027-src.2014-08-28.tar.gz

Thanks.


Forum >> NWChem's corner >> Running NWChem