Fixed compilation issue on some Operating System - Mailing list pgadmin-hackers

From Akshay Joshi
Subject Fixed compilation issue on some Operating System
Date
Msg-id CANxoLDe5QSBBLzQEYTH7gBaXbvFmoakc+R=nVfE4sTjKBm7i2Q@mail.gmail.com
Whole thread Raw
Responses Re: Fixed compilation issue on some Operating System  (Dave Page <dpage@pgadmin.org>)
List pgadmin-hackers
Hi Dave

Some of us are facing compilation issue on some operating system due to the inclusion of SSH Tunnel code. I have tried a lot to figure it out, but not found the exact cause of the problem. 

Thanks to "Tim Wood" from salesforce for finding the cause of the problem. The problem is order of libssh2 dependent libraries is not correct in linker command. 

Resolution for the issue is to add the libssh2 dependent libraries in LIBS flags instead of LDFLAGS, because LDFLAGS were added ahead of the pgadmin3 objects and LIBS are added after, so because of that linker is able to find all the references from the dependent libraries.

Attached is the patch file to fix the issue. Please review it and if it looks good to you can you please commit it. 

--
Akshay Joshi
Senior Software Engineer 
EnterpriseDB Corporation
The Enterprise PostgreSQL Company
Phone: +91 20-3058-9522
Mobile: +91 976-788-8246
Attachment

pgadmin-hackers by date:

Previous
From: Dave Page
Date:
Subject: Remove dialogue "Apply" buttons?
Next
From: Dave Page
Date:
Subject: pgAdmin III commit: Fix linker error seen on some Linux distros (e.g. S