[Yazlist] YAZ 3.0.16 - Compiling problems

Rondon Andrade rondon.andrade at uol.com.br
Thu Nov 15 11:05:14 CET 2007


Hi Folks,

Compiling on Cygwin, I had this problem:


gcc -g -O2 -o yaz-marcdump.exe marcdump.o  ../src/.libs/libyaz.a -L/usr/lib /usr
/lib/libexslt.dll.a /usr/lib/libxslt.dll.a /usr/lib/libgcrypt.dll.a /usr/lib/lib
gpg-error.dll.a /usr/lib/libintl.dll.a /usr/lib/libxml2.dll.a -lz -lssl -lcrypto
 /usr/lib/libiconv.dll.a
marcdump.o: In function `main':
/tmp/yaz-3.0.16/util/marcdump.c:133: undefined reference to `_yaz_marc_create'
/tmp/yaz-3.0.16/util/marcdump.c:136: undefined reference to `_yaz_marc_leader_sp
ec'
/tmp/yaz-3.0.16/util/marcdump.c:152: undefined reference to `_yaz_marc_iconv'
/tmp/yaz-3.0.16/util/marcdump.c:154: undefined reference to `_yaz_marc_xml'
/tmp/yaz-3.0.16/util/marcdump.c:155: undefined reference to `_yaz_marc_write_usi
ng_libxml2'
/tmp/yaz-3.0.16/util/marcdump.c:156: undefined reference to `_yaz_marc_debug'
/tmp/yaz-3.0.16/util/marcdump.c:312: undefined reference to `_yaz_marc_destroy'
/tmp/yaz-3.0.16/util/marcdump.c:347: undefined reference to `_yaz_marc_decode_fo
rmatstr'
/tmp/yaz-3.0.16/util/marcdump.c:371: undefined reference to `_yaz_marc_decode_fo
rmatstr'
/tmp/yaz-3.0.16/util/marcdump.c:92: undefined reference to `_yaz_marc_write_mode
'
/tmp/yaz-3.0.16/util/marcdump.c:278: undefined reference to `_yaz_marc_decode_bu
f'
/tmp/yaz-3.0.16/util/marcdump.c:117: undefined reference to `_yaz_marc_write_mod
e'
/tmp/yaz-3.0.16/util/marcdump.c:149: undefined reference to `_yaz_marc_destroy'
../src/.libs/libyaz.a(marc_read_xml.o): In function `yaz_marc_read_xml_subfields
':
/tmp/yaz-3.0.16/src/marc_read_xml.c:36: undefined reference to `_yaz_marc_get_nm
em'
/tmp/yaz-3.0.16/src/marc_read_xml.c:82: undefined reference to `_yaz_marc_add_su
bfield'
/tmp/yaz-3.0.16/src/marc_read_xml.c:86: undefined reference to `_yaz_marc_cprint
f'
/tmp/yaz-3.0.16/src/marc_read_xml.c:70: undefined reference to `_yaz_marc_cprint
f'
../src/.libs/libyaz.a(marc_read_xml.o): In function `yaz_marc_read_xml':
/tmp/yaz-3.0.16/src/marc_read_xml.c:167: undefined reference to `_yaz_marc_cprin
tf'
/tmp/yaz-3.0.16/src/marc_read_xml.c:167: undefined reference to `_yaz_marc_cprin
tf'
/tmp/yaz-3.0.16/src/marc_read_xml.c:214: undefined reference to `_yaz_marc_cprin
tf'
/tmp/yaz-3.0.16/src/marc_read_xml.c:135: undefined reference to `_yaz_marc_set_l
eader'
/tmp/yaz-3.0.16/src/marc_read_xml.c:171: undefined reference to `_yaz_marc_add_c
ontrolfield_xml'
/tmp/yaz-3.0.16/src/marc_read_xml.c:206: undefined reference to `_yaz_marc_add_d
atafield_xml'
/tmp/yaz-3.0.16/src/marc_read_xml.c:214: undefined reference to `_yaz_marc_cprin
tf'
/tmp/yaz-3.0.16/src/marc_read_xml.c:167: undefined reference to `_yaz_marc_cprin
tf'
../src/.libs/libyaz.a(marc_read_line.o): In function `yaz_marc_read_line':
/tmp/yaz-3.0.16/src/marc_read_line.c:114: undefined reference to `_yaz_marc_rese
t'
/tmp/yaz-3.0.16/src/marc_read_line.c:246: undefined reference to `_yaz_marc_cpri
ntf'
/tmp/yaz-3.0.16/src/marc_read_line.c:188: undefined reference to `_yaz_marc_add_
controlfield'
/tmp/yaz-3.0.16/src/marc_read_line.c:133: undefined reference to `_atoi_n_check'

/tmp/yaz-3.0.16/src/marc_read_line.c:140: undefined reference to `_yaz_marc_set_
leader'
/tmp/yaz-3.0.16/src/marc_read_line.c:196: undefined reference to `_yaz_marc_add_
datafield'
/tmp/yaz-3.0.16/src/marc_read_line.c:237: undefined reference to `_yaz_marc_add_
subfield'
/tmp/yaz-3.0.16/src/marc_read_line.c:176: undefined reference to `_yaz_marc_set_
leader'
collect2: ld returned 1 exit status
make[1]: *** [yaz-marcdump.exe] Error 1
make[1]: Leaving directory `/tmp/yaz-3.0.16/util'
make: *** [all-recursive] Error 1


How do I fix it?

Thanks in advance,
Best regards,

Rondon




More information about the Yazlist mailing list