Opened 16 years ago

Closed 16 years ago

#4692 closed defect (fixed)

Mac OS X 10.4.9 compile failure - -lz missing for libmythtv

Reported by: Mike Riccio <mythtv at webdeck dot com> Owned by: Nigel
Priority: minor Milestone: unknown
Component: mythtv Version: unknown
Severity: medium Keywords:
Cc: Ticket locked: no

Description (last modified by Nigel)

It looks like "-lz" is missing when building libmythtv - I added it to the makefile by hand and compilation completed successfully, so this appears to be the only place it is missing.

SVN 16116.

g++ -headerpad_max_install_names -prebind -dynamiclib -L/usr/X11R6/lib -lfreetype -seg1addr 0xC9000000 -compatibility_version	0.21 -current_version	0.21.0 -install_name	libmythtv-0.21.0.dylib -o libmythtv-0.21.0.21.0.dylib cc.o vbi.o hamm.o lang.o minilzo.o RTjpegN.o programinfo.o proglist.o RingBuffer.o avfringbuffer.o ThreadedFileWriter.o previouslist.o dbcheck.o customedit.o remoteutil.o tv.o recordingtypes.o jobqueue.o filtermanager.o recordingprofile.o remoteencoder.o videosource.o cardutil.o sourceutil.o cc608decoder.o cc708decoder.o cc708window.o sr_dialog.o sr_root.o sr_items.o scheduledrecording.o signalmonitorvalue.o viewschdiff.o livetvchain.o playgroup.o progdetails.o channeleditor.o channelsettings.o previewgenerator.o transporteditor.o importicons.o diseqc.o diseqcsettings.o datadirect.o teletextdecoder.o vbilut.o tspacket.o pespacket.o mpegtables.o atsctables.o dvbtables.o premieretables.o mpegstreamdata.o atscstreamdata.o dvbstreamdata.o scanstreamdata.o mpegdescriptors.o atscdescriptors.o dvbdescriptors.o dishdescriptors.o premieredescriptors.o atsc_huffman.o iso639.o iso6937tables.o h264utils.o frequencies.o frequencytables.o channelutil.o dtvmultiplex.o dtvconfparserhelpers.o profilegroup.o xbox.o tv_play.o NuppelVideoPlayer.o DVDRingBuffer.o textsubtitleparser.o xine_demux_sputext.o decoderbase.o nuppeldecoder.o avformatdecoder.o osd.o osdtypes.o osdsurface.o osdlistbtntype.o osdimagecache.o osdtypeteletext.o udpnotify.o videooutbase.o videoout_null.o videobuffers.o vsync.o jitterometer.o yuv2rgb.o videodisplayprofile.o mythcodecid.o videoout_quartz.o guidegrid.o infostructs.o progfind.o ttfont.o dsmcc.o dsmcccache.o dsmccbiop.o dsmccobjcarousel.o interactivetv.o mhi.o blend.o channelbase.o dtvchannel.o signalmonitor.o dtvsignalmonitor.o inputinfo.o inputgroupmap.o scanwizard.o scanwizardhelpers.o siscan.o dvbconfparser.o scanwizardscanner.o eithelper.o eitscanner.o eitfixup.o eitcache.o eit.o programdata.o tv_rec.o recorderbase.o DeviceReadBuffer.o dtvrecorder.o NuppelVideoRecorder.o fifowriter.o dbox2recorder.o dbox2channel.o dbox2epg.o iptvchannel.o iptvrecorder.o iptvsignalmonitor.o iptvchannelfetcher.o iptvmediasink.o iptvfeeder.o iptvfeederwrapper.o iptvfeederrtsp.o iptvfeederudp.o iptvfeederfile.o iptvfeederlive.o iptvfeederrtp.o urlfetcher.o timeoutedtaskscheduler.o hdhrsignalmonitor.o hdhrchannel.o hdhrrecorder.o hdhomerun_pkt.o hdhomerun_discover.o hdhomerun_video.o hdhomerun_control.o moc_proglist.o moc_previouslist.o moc_customedit.o moc_jobqueue.o moc_recordingprofile.o moc_videosource.o moc_sr_dialog.o moc_sr_root.o moc_sr_items.o moc_scheduledrecording.o moc_viewschdiff.o moc_playgroup.o moc_progdetails.o moc_channeleditor.o moc_channelsettings.o moc_previewgenerator.o moc_transporteditor.o moc_importicons.o moc_diseqcsettings.o moc_profilegroup.o moc_xbox.o moc_tv_play.o moc_osd.o moc_osdtypes.o moc_osdlistbtntype.o moc_osdtypeteletext.o moc_udpnotify.o moc_guidegrid.o moc_progfind.o moc_signalmonitor.o moc_dtvsignalmonitor.o moc_scanwizard.o moc_scanwizardhelpers.o moc_siscan.o moc_scanwizardscanner.o moc_tv_rec.o moc_dbox2recorder.o moc_dbox2channel.o moc_dbox2epg.o moc_iptvsignalmonitor.o moc_iptvchannelfetcher.o moc_urlfetcher.o moc_hdhrsignalmonitor.o  -L/Developer/qt/lib -L../libmyth -L../libavutil -L../libavcodec -L../libavformat -L../libmythui -L../libmythupnp -L../libmythmpeg2 -L../libmythdvdnav -L../libmythfreemheg -L../libmythlivemedia -lmyth-0.21 -lmythavutil-0.21 -lmythavcodec-0.21 -lmythavformat-0.21 -lmythui-0.21 -lmythupnp-0.21 -lmythmpeg2-0.21 -lmythdvdnav-0.21 -lmythfreemheg-0.21 -lmythlivemedia-0.21 -L/usr/X11R6/lib -lfreetype -lmp3lame -framework AGL -framework ApplicationServices -framework Carbon -framework Cocoa -framework OpenGL -framework QuickTime -F/System/Library/PrivateFrameworks -framework DVD -lqt-mt 
ld: warning prebinding disabled because dependent library: /usr/X11R6/lib/libfreetype.6.dylib is not prebound
ld: Undefined symbols:
_uncompress
/usr/bin/libtool: internal link edit command failed
make[2]: *** [libmythtv-0.21.0.21.0.dylib] Error 1
make[1]: *** [sub-libmythtv] Error 2
make: *** [sub-libs] Error 2
Exit 2

CONFIGURE OUTPUT:

./configure --disable-distcc --disable-ccache --with-bindings=perl --enable-lirc --enable-proc-opt --disable-firewire --prefix=/usr/local
./configure: line 2750: test: too many arguments
# Basic Settings
Compile type              release
Compiler cache            no
DistCC                    no
install prefix            /usr/local
CPU                       x86_32 (Unknown Intel P6 Family)
big-endian                no
MMX enabled               yes
CMOV enabled              yes
CMOV is fast              no

# Input Support
Joystick menu             default
lirc support              yes
Apple Remote              yes
Video4Linux sup.          no
ivtv support              no
FireWire support          no
DVB support               no [/usr/include]
DBox2 support             yes
HDHomeRun support         yes
IPTV support              yes

# Sound Output Support
OSS support               no
ALSA support              no
aRts support              no
JACK support              no
libfftw3 support          no

# Video Output Support
x11 support               no
xrandr support            no
xv support                no
XvMC support              no
XvMC VLD support          no
XvMC pro support          no
XvMC OpenGL sup.          no
OpenGL video              no
Mac acceleration          no
OpenGL vsync              no
DirectFB                  no
Fribidi formatting        no

# Misc Features
multi threaded libavcodec yes
Frontend                  yes
Backend                   yes

# Bindings
bindings_perl             yes
bindings_python           yes

Creating libs/libmyth/mythconfig.h and libs/libmyth/mythconfig.mak

WARNING: When using --enable-proc-opt you must include the 
         output of ./configure along with any bug report.

Change History (3)

comment:1 Changed 16 years ago by Nigel

Description: modified (diff)
Owner: changed from Isaac Richards to Nigel
Status: newassigned

Hi Mike. It looks like dsmccobjcarousel.cpp calls uncompress() directly, so the .pro file definitely needs -lz. What I don't understand is, why wasn't it on your link line? Here is mine:

g++ -headerpad_max_install_names -Wl,-search_paths_first -prebind -dynamiclib -L/Volumes/MythBuild/.osx-packager/build/lib -lfreetype -lz -seg1addr 0xC9000000 -compatibility_version       0.21 -current_version       0.21.0 -install_name    libmythtv-0.21.0.dylib -o libmythtv-0.21.0.21.0.dylib cc.o vbi.o hamm.o lang.o minilzo.o RTjpegN.o programinfo.o proglist.o RingBuffer.o avfringbuffer.o ThreadedFileWriter.o previouslist.o dbcheck.o customedit.o remoteutil.o tv.o recordingtypes.o jobqueue.o filtermanager.o recordingprofile.o remoteencoder.o videosource.o cardutil.o sourceutil.o cc608decoder.o cc708decoder.o cc708window.o sr_dialog.o sr_root.o sr_items.o scheduledrecording.o signalmonitorvalue.o viewschdiff.o livetvchain.o playgroup.o progdetails.o channeleditor.o channelsettings.o previewgenerator.o transporteditor.o importicons.o diseqc.o diseqcsettings.o datadirect.o teletextdecoder.o vbilut.o tspacket.o pespacket.o mpegtables.o atsctables.o dvbtables.o premieretables.o mpegstreamdata.o atscstreamdata.o dvbstreamdata.o scanstreamdata.o mpegdescriptors.o atscdescriptors.o dvbdescriptors.o dishdescriptors.o premieredescriptors.o atsc_huffman.o iso639.o iso6937tables.o h264utils.o frequencies.o frequencytables.o channelutil.o dtvmultiplex.o dtvconfparserhelpers.o profilegroup.o xbox.o tv_play.o NuppelVideoPlayer.o DVDRingBuffer.o textsubtitleparser.o xine_demux_sputext.o decoderbase.o nuppeldecoder.o avformatdecoder.o osd.o osdtypes.o osdsurface.o osdlistbtntype.o osdimagecache.o osdtypeteletext.o udpnotify.o videooutbase.o videoout_null.o videobuffers.o vsync.o jitterometer.o yuv2rgb.o videodisplayprofile.o mythcodecid.o videoout_quartz.o guidegrid.o infostructs.o progfind.o ttfont.o dsmcc.o dsmcccache.o dsmccbiop.o dsmccobjcarousel.o interactivetv.o mhi.o blend.o channelbase.o dtvchannel.o signalmonitor.o dtvsignalmonitor.o inputinfo.o inputgroupmap.o scanwizard.o scanwizardhelpers.o siscan.o dvbconfparser.o scanwizardscanner.o eithelper.o eitscanner.o eitfixup.o eitcache.o eit.o programdata.o tv_rec.o recorderbase.o DeviceReadBuffer.o dtvrecorder.o NuppelVideoRecorder.o fifowriter.o dbox2recorder.o dbox2channel.o dbox2epg.o iptvchannel.o iptvrecorder.o iptvsignalmonitor.o iptvchannelfetcher.o iptvmediasink.o iptvfeeder.o iptvfeederwrapper.o iptvfeederrtsp.o iptvfeederudp.o iptvfeederfile.o iptvfeederlive.o iptvfeederrtp.o urlfetcher.o timeoutedtaskscheduler.o hdhrsignalmonitor.o hdhrchannel.o hdhrrecorder.o hdhomerun_pkt.o hdhomerun_discover.o hdhomerun_video.o hdhomerun_control.o moc_proglist.o moc_previouslist.o moc_customedit.o moc_jobqueue.o moc_recordingprofile.o moc_videosource.o moc_sr_dialog.o moc_sr_root.o moc_sr_items.o moc_scheduledrecording.o moc_viewschdiff.o moc_playgroup.o moc_progdetails.o moc_channeleditor.o moc_channelsettings.o moc_previewgenerator.o moc_transporteditor.o moc_importicons.o moc_diseqcsettings.o moc_profilegroup.o moc_xbox.o moc_tv_play.o moc_osd.o moc_osdtypes.o moc_osdlistbtntype.o moc_osdtypeteletext.o moc_udpnotify.o moc_guidegrid.o moc_progfind.o moc_signalmonitor.o moc_dtvsignalmonitor.o moc_scanwizard.o moc_scanwizardhelpers.o moc_siscan.o moc_scanwizardscanner.o moc_tv_rec.o moc_dbox2recorder.o moc_dbox2channel.o moc_dbox2epg.o moc_iptvsignalmonitor.o moc_iptvchannelfetcher.o moc_urlfetcher.o moc_hdhrsignalmonitor.o  -L/Volumes/MythBuild/.osx-packager/build/lib -L/usr/lib -L/Volumes/MythBuild/.osx-packager/build/lib -L../libmyth -L../libavutil -L../libavcodec -L../libavformat -L../libmythui -L../libmythupnp -L../libmythmpeg2 -L../libmythdvdnav -L../libmythfreemheg -L../libmythlivemedia -lmyth-0.21 -lmythavutil-0.21 -lmythavcodec-0.21 -lmythavformat-0.21 -lmythui-0.21 -lmythupnp-0.21 -lmythmpeg2-0.21 -lmythdvdnav-0.21 -lmythfreemheg-0.21 -lmythlivemedia-0.21 -lfreetype -lz -lmp3lame -framework AGL -framework ApplicationServices -framework Carbon -framework Cocoa -framework OpenGL -framework QuickTime -F/System/Library/PrivateFrameworks -framework DVD -lqt-mt 
ld: warning prebinding disabled because dependent library: /Volumes/MythBuild/.osx-packager/build/lib/libfreetype.6.dylib is not prebound
ln -s libmythtv-0.21.0.21.0.dylib libmythtv-0.21.dylib
ln -s libmythtv-0.21.0.21.0.dylib libmythtv-0.21.0.dylib
ln -s libmythtv-0.21.0.21.0.dylib libmythtv-0.21.0.21.dylib
cd filters && /usr/bin/make -f Makefile
...
% egrep lz .osx-packager/src/myth-svn/mythtv/config.mak
FREETYPE_LIBS=-L/Volumes/MythBuild/.osx-packager/build/lib -lfreetype -lz
EXTRALIBS=  -lz -lm   -lpthread

comment:2 Changed 16 years ago by Nigel

(In [16132]) Add -lz (used by dsmccobjcarousel.cpp). See #4692

comment:3 Changed 16 years ago by Nigel

Resolution: fixed
Status: assignedclosed

(In [16133]) Add -lz (used by dsmccobjcarousel.cpp). Closes #4692

Note: See TracTickets for help on using tickets.