[mythtv] Ticket #4497: Win32 builds broken after r15435

Jay Modi jmodi at vt.edu
Mon Jan 21 21:29:29 UTC 2008


> ------------------------------------------
> 15434 -> is the last version to build successfully (with the known
> requisite win32 patches)
> ------------------------------------------
>
I can confirm that 15434 builds correctly for me also.


>
> 15435 -> 15477 all give this same compile error:
> In file included from uitypes.h:19,
>                  from managedlist.h:9,
>                  from managedlist.cpp:4:
> util.h:89: error: `LONGLONG' does not name a type
> make[2]: *** [managedlist.o] Error 1
> make[2]: Leaving directory `/c/mythtv/mythtv/libs/libmyth'
> make[1]: *** [sub-libmyth] Error 2
> make[1]: Leaving directory `/c/mythtv/mythtv/libs'
> make: *** [sub-libs] Error 2
>
15435 builds correctly for me as does 15477 with my remoteutil.patch. I did
not get the above error. Unsure about why that is.


>  ------------------------------------------
> 15478 ->15514(HEAD) all give this same compile problem:
> In file included from httprequest.cpp:37:
> ../libmyth/util.h: At global scope:
> ../libmyth/util.h:90: error: expected initializer before "inline"
> In file included from ../libmyth/mythcontext.h:6,
>                  from httprequest.cpp:38:
> C:/msys/1.0/qt-3.3.x-p8/include/qpixmap.h:249: warning: 'void
> bitBlt(QPaintDevice*, int, int, const QPaintDevice*, int, int, int, int,
> Qt::RasterOp, bool)' redeclared without dllimport attribute after being
> referenced with dllimport linkage
> make[2]: *** [httprequest.o] Error 1
> make[2]: Leaving directory `/c/mythtv/mythtv/libs/libmythupnp'
> make[1]: *** [sub-libmythupnp] Error 2
> make[1]: Leaving directory `/c/mythtv/mythtv/libs'
> make: *** [sub-libs] Error 2
> ------------------------------------------
>

r15478 brings in the "as-needed" linker options and breaks the win32 builds.

g++ -Wl,-enable-auto-import -mthreads -Wl,-subsystem,windows -shared
-Wl,--export-all-symbols -o libmythupnp-0.20.dll object_ld_script
moc_ssdpcache.o -L"/qt-3.3.x-p8\lib" -L"/mingw/lib" -L"/mingw/lib" -lqtmain
-lfreetype -lmp3lame -lqt-mt -lkernel32 -luser32 -lgdi32 -lcomdlg32
-ladvapi32 -lshell32 -lole32 -loleaut32 -luuid -limm32 -lwinmm -lws2_32
-lwinspool
./httprequest.o: In function `ZN11HTTPRequest14SetRequestTypeERK7QString':
c:/mythtv/mythtv/libs/libmythupnp/httprequest.cpp:152: undefined reference
to `print_verbose_messages'
c:/mythtv/mythtv/libs/libmythupnp/httprequest.cpp:152: undefined reference
to `MythContext::verbose_mutex'
c:/mythtv/mythtv/libs/libmythupnp/httprequest.cpp:152: undefined reference
to `MythContext::verbose_mutex'
./httprequest.o: In function `ZN11HTTPRequest12SendResponseEv':
c:/mythtv/mythtv/libs/libmythupnp/httprequest.cpp:204: undefined reference
to `print_verbose_messages'

These messages continue on for a long time.

Now what is puzzling to me is that I am not getting the above errors that I
originally was getting last night about the typedef and expecting an
initializer. I definitely cleaned it up but the only thing I did differently
was using msys to do all of this instead on the Win32 script. I am going to
clean out the mythtv directory and start over again just to see if I can
reproduce this behavoir.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mythtv.org/pipermail/mythtv-dev/attachments/20080121/bc781a72/attachment.htm 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: remoteutil.patch
Type: application/octet-stream
Size: 328 bytes
Desc: not available
Url : http://mythtv.org/pipermail/mythtv-dev/attachments/20080121/bc781a72/attachment.obj 


More information about the mythtv-dev mailing list