This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

gd-2.0.1 link problems under Cygwin



    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@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@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@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@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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]