X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-0.8 required=5.0 tests=AWL,BAYES_50,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,TW_BP,TW_BX,TW_IB,TW_LB,TW_LG,TW_LX,TW_YG,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: sourceware.org MIME-Version: 1.0 In-Reply-To: <4D9A445C.7080804@mail.ru> References: <4D9A445C DOT 7080804 AT mail DOT ru> Date: Tue, 5 Apr 2011 00:46:04 +0200 Message-ID: Subject: Re: Linking statically against GraphicsMagick: problems with libxml2 and libpng From: marco atzeri To: cygwin AT cygwin DOT com Cc: Dmitry Katsubo Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com 2011/4/5 Dmitry Katsubo > Dear CygWin users / developers! > > While trying to link statically my application against GraphicsMagick why not dynamic ? > under CygWin, but I suffer from few minor problems during linking. > > To discover the library list, needed for static linking, I use > "GraphicsMagick++-config --libs": > >> configure:7259: g++ -o conftest.exe -g -O2 -I/usr/include/GraphicsMagick= -L/usr/lib -static-libgcc -Wl,-static conftest.cpp -lGraphicsMagick -lGrap= hicsMagick++ =A0-lGraphicsMagick++ -lGraphicsMagick -ljbig -llcms -ltiff -l= freetype -ljasper -ljpeg -lpng -lwmflite -lXext -lSM -lICE -lX11 -lbz2 -lxm= l2 -lz -lgdi32 -lm -lpthread -lltdl -lm >&5 >> /usr/lib/gcc/i686-pc-cygwin/4.3.4/../../../../i686-pc-cygwin/bin/ld: can= not find -lxml2 >> /usr/lib/gcc/i686-pc-cygwin/4.3.4/../../../../i686-pc-cygwin/bin/ld: can= not find -lpng > > * The package libxml2-devel is installed, but in my opinion is missing > the libxml2.a file: > > $ ll /lib/libxml* > 1122076 May 12 =A02010 /lib/libxml2.dll.a > =A0 =A0927 May 12 =A02010 /lib/libxml2.la it seems that libxml2-devel package is missing the static option. > > * The package libpng12-devel is installed, but there is no symlink > libpng.a -> libpng12.a. So I think GraphicsMagick should be linked > either against libpng12 or libpng14: > GraphicsMagick is linked versus libpng14 $ cygcheck cygGraphicsMagick-3.dll |grep png E:\cygwin2\bin\cygpng14-14.dll > $ ll /lib/libpng* > 294592 Aug =A08 =A02010 /lib/libpng12.a > 217944 Aug =A08 =A02010 /lib/libpng12.dll.a $ cygcheck -l libpng14-devel |grep png\.a /usr/lib/libpng.a > > Does it sound reasonable? If yes, what is the best way to report these > two bugs? > > Additional info: > libxml2-devel =A0 =A0 =A0 =A0 =A0 2.7.7-1 > libpng12-devel =A0 =A0 =A0 =A0 =A01.2.44-1 > libGraphicsMagick-devel 1.3.12-2 > gcc4-g++ =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A04.3.4-4 one is a missing functionality and there other is not a bug ;-) > > -- > With best regards, > Dmitry > Regards Marco -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple