delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/10/06/16:26:41

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
From: posting-list AT MailAndNews DOT com (Jari Aalto)
To: cygwin AT sourceware DOT cygnus DOT com
CC: boutell AT boutell DOT com
Subject: gd-2.0.1 link problems under Cygwin
Keywords: usr,src,gd-2,-lcygwin,undefined,libgd,cygwin,reference
X-Sender-Info: Emacs resources http://tiny-tools.sourceforge.net/
http://home.eu.org/~jari/homepage.html. ICQ 'jari-aalto' 82313129
PGP 2.6.x keyid 47141D35 http://www.pgpi.net/
Date: Sat, 06 Oct 2001 23:33:45 +0300
Message-ID: <8zeoik46.fsf@blue.sea.net>
MIME-Version: 1.0
Lines: 42
User-Agent: Gnus/5.090004 (Oort Gnus v0.04) Emacs/20.7 (i386-*-nt5.0.2195)

    Hi,

    I've been trying to compile the gd library under http://cygwin.com
    but I'd appreciate more expert help. The problem seems to be
    the linking phase. Compiling succeeded fine.

    The default started with:

//root AT W2KPICASSO /usr/src/gd-2.0.1 $ make install
rm -f libgd.so.2.0.0 2>/dev/null
ld -shared -lcygwin -o libgd.so.2.0.0 gd.o gd_gd.o gd_gd2.o gd_io.o gd_io_dp.o g
d_io_file.o gd_ss.o gd_io_ss.o gd_png.o gd_jpeg.o gdxpm.o gdfontt.o gdfonts.o gd
fontmb.o gdfontl.o gdfontg.o gdtables.o gdft.o gdcache.o gdkanji.o wbmp.o gd_wbm
p.o gdhelpers.o gd_topal.o
gd.o: In function `gdImageCreate':
/usr/src/gd-2.0.1/gd.c:69: undefined reference to `memset'
gd.o: In function `gdImageCreateTrueColor':
/usr/src/gd-2.0.1/gd.c:107: undefined reference to `memset'
gd.o: In function `HWB_to_RGB':
/usr/src/gd-2.0.1/gd.c:312: undefined reference to `floor'


    Next I included some libs to satisfy the symbols, but got stuct to:
    ( -lcygwin -lbz2 -lcrypt -lcrypto -lpng -lz -ljpeg -lfreetype -lcygwin )

//root AT W2KPICASSO /usr/src/gd-2.0.1 $ make install
rm -f libgd.so.2.0.0 2>/dev/null
ld -shared -lcygwin -o libgd.so.2.0.0 gd.o gd_gd.o gd_gd2.o gd_io.o gd_io_dp.o g
d_io_file.o gd_ss.o gd_io_ss.o gd_png.o gd_jpeg.o gdxpm.o gdfontt.o gdfonts.o gd
fontmb.o gdfontl.o gdfontg.o gdtables.o gdft.o gdcache.o gdkanji.o wbmp.o gd_wbm
p.o gdhelpers.o gd_topal.o -lcygwin -lbz2 -lcrypt -lcrypto -lpng -lz -ljpeg -lfr
eetype -lcygwin
/usr/lib/libcygwin.a(_cygwin_crt0_common.o): In function `cygwin_crt0_common':
/cygnus/netrel/src/cygwin-1.3.3-2/winsup/cygwin/lib/_cygwin_crt0_common.cc:90: u
ndefined reference to `GetModuleHandleA AT 4'
/usr/local/lib/libfreetype.a(ftbase.o)(.text+0x164):ftbase.c: undefined referenc
e to `__divdi3'
/usr/local/lib/libfreetype.a(ftbase.o)(.text+0x274):ftbase.c: undefined referenc
e to `__divdi3'
make: *** [libgd.so.2.0.0] Error 1
//root AT W2KPICASSO /usr/src/gd-2.0.1 $


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019