[mythtv-commits] Ticket #6795: [win32] mythmusic compilation fails at linker stage

MythTV mythtv at cvs.mythtv.org
Thu Aug 6 12:20:45 UTC 2009


#6795: [win32] mythmusic compilation fails at linker stage
----------------------------------------------------+-----------------------
 Reporter:  Jonathan Martens <jonathan at snetram.nl>  |        Owner:  nigel
     Type:  defect                                  |       Status:  new  
 Priority:  minor                                   |    Milestone:  0.22 
Component:  Ports - Windows                         |      Version:  head 
 Severity:  medium                                  |   Resolution:       
  Mlocked:  0                                       |  
----------------------------------------------------+-----------------------

Comment(by Jonathan Martens <jonathan at snetram.nl>):

 Since it seems that the libcdaudio library also needs it:

 {{{
 u:/MSys/1.0/lib/libcdaudio.a(cddb.o): In function `cddb_skip_http_header':
 u:/sources/libcdaudio-0.99.12p2/src/cddb.c:841: undefined reference to
 `recv at 16'

 u:/sources/libcdaudio-0.99.12p2/src/cddb.c:841: undefined reference to
 `recv at 16'

 u:/MSys/1.0/lib/libcdaudio.a(cddb.o): In function `cddb_read_line':
 u:/sources/libcdaudio-0.99.12p2/src/cddb.c:861: undefined reference to
 `recv at 16'

 u:/MSys/1.0/lib/libcdaudio.a(cddb.o): In function `cddb_vread':
 u:/sources/libcdaudio-0.99.12p2/src/cddb.c:1222: undefined reference to
 `send at 16
 '
 u:/MSys/1.0/lib/libcdaudio.a(cddb.o): In function `cddb_quit':
 u:/sources/libcdaudio-0.99.12p2/src/cddb.c:1359: undefined reference to
 `send at 16
 '
 u:/sources/libcdaudio-0.99.12p2/src/cddb.c:1361: undefined reference to
 `shutdow
 n at 8'
 u:/MSys/1.0/lib/libcdaudio.a(cddb.o): In function `cddb_sites':
 u:/sources/libcdaudio-0.99.12p2/src/cddb.c:1326: undefined reference to
 `send at 16
 '
 u:/sources/libcdaudio-0.99.12p2/src/cddb.c:1326: undefined reference to
 `send at 16
 '
 u:/MSys/1.0/lib/libcdaudio.a(cddb.o): In function `cddb_query':
 u:/sources/libcdaudio-0.99.12p2/src/cddb.c:950: undefined reference to
 `send at 16'

 u:/MSys/1.0/lib/libcdaudio.a(cddb.o): In function `cddb_connect':
 u:/sources/libcdaudio-0.99.12p2/src/cddb.c:683: undefined reference to
 `htons at 4'

 u:/sources/libcdaudio-0.99.12p2/src/cddb.c:685: undefined reference to
 `inet_add
 r at 4'
 u:/sources/libcdaudio-0.99.12p2/src/cddb.c:696: undefined reference to
 `socket at 1
 2'
 u:/sources/libcdaudio-0.99.12p2/src/cddb.c:702: undefined reference to
 `connect@
 12'
 u:/sources/libcdaudio-0.99.12p2/src/cddb.c:687: undefined reference to
 `gethostb
 yname at 4'
 u:/MSys/1.0/lib/libcdaudio.a(cddb.o): In function `cddb_connect_server':
 u:/sources/libcdaudio-0.99.12p2/src/cddb.c:770: undefined reference to
 `send at 16'

 u:/sources/libcdaudio-0.99.12p2/src/cddb.c:789: undefined reference to
 `send at 16'

 u:/MSys/1.0/lib/libcdaudio.a(cddb.o): In function `cddb_http_proxy_sites':
 u:/sources/libcdaudio-0.99.12p2/src/cddb.c:2224: undefined reference to
 `shutdow
 n at 8'
 u:/MSys/1.0/lib/libcdaudio.a(cddb.o): In function `cddb_http_sites':
 u:/sources/libcdaudio-0.99.12p2/src/cddb.c:2203: undefined reference to
 `shutdow
 n at 8'
 u:/MSys/1.0/lib/libcdaudio.a(cddb.o): In function `cddb_http_proxy_read':
 u:/sources/libcdaudio-0.99.12p2/src/cddb.c:2183: undefined reference to
 `shutdow
 n at 8'
 u:/MSys/1.0/lib/libcdaudio.a(cddb.o): In function `cddb_http_read':
 u:/sources/libcdaudio-0.99.12p2/src/cddb.c:2159: undefined reference to
 `shutdow
 n at 8'
 u:/MSys/1.0/lib/libcdaudio.a(cddb.o): In function `cddb_http_proxy_query':
 u:/sources/libcdaudio-0.99.12p2/src/cddb.c:2137: undefined reference to
 `shutdow
 n at 8'
 u:/MSys/1.0/lib/libcdaudio.a(cddb.o):u:/sources/libcdaudio-0.99.12p2/src/cddb.c:
 2115: more undefined references to `shutdown at 8' follow
 u:/MSys/1.0/lib/libcdaudio.a(cddb.o): In function `cddb_http_submit':
 u:/sources/libcdaudio-0.99.12p2/src/cddb.c:2322: undefined reference to
 `send at 16
 '
 u:/sources/libcdaudio-0.99.12p2/src/cddb.c:2326: undefined reference to
 `send at 16
 '
 u:/sources/libcdaudio-0.99.12p2/src/cddb.c:2330: undefined reference to
 `send at 16
 '
 u:/sources/libcdaudio-0.99.12p2/src/cddb.c:2334: undefined reference to
 `send at 16
 '
 u:/sources/libcdaudio-0.99.12p2/src/cddb.c:2338: undefined reference to
 `send at 16
 '
 u:/MSys/1.0/lib/libcdaudio.a(cddb.o):u:/sources/libcdaudio-0.99.12p2/src/cddb.c:
 2343: more undefined references to `send at 16' follow
 u:/MSys/1.0/lib/libcdaudio.a(cddb.o): In function `cddb_http_submit':
 u:/sources/libcdaudio-0.99.12p2/src/cddb.c:2375: undefined reference to
 `shutdow
 n at 8'
 u:/MSys/1.0/lib/libcdaudio.a(cdindex.o): In function
 `cdindex_http_submit':
 u:/sources/libcdaudio-0.99.12p2/src/cdindex.c:904: undefined reference to
 `shutd
 own at 8'
 collect2: ld returned 1 exit status
 make[1]: *** [libmythmusic.dll] Error 1
 make[1]: Leaving directory `/u/mythtv/mythplugins/mythmusic/mythmusic'
 make: *** [sub-mythmusic-make_default] Error 2
 bash-3.1$
 }}}

 I looked a little further on how to properly implement the linker flag and
 finally succeeded, I will attach a new patch for it.

-- 
Ticket URL: <http://svn.mythtv.org/trac/ticket/6795#comment:8>
MythTV <http://www.mythtv.org/>
MythTV


More information about the mythtv-commits mailing list