Opened 4 years ago

Closed 2 years ago

#1230 closed defect (fixed)

/usr/bin/ld: aegisub_2_1-MatroskaParser.o: undefined reference to symbol 'inflate'

Reported by: $p00ky Owned by:
Milestone: Component: General
Version: 2.1.8 Keywords: MatroskaParser.o, undefined, symbol, inflate, ld
Cc: Platform: Linux
Sub Component:

Description

Using the official tarball of version 2.1.8
./configure works fine
make stops due to the following error:

libtool: link: g++ -DAEGISUB -Iinclude -I../libffms/include -I/usr/lib64/wx/include/gtk2-unicode-release-2.8 -I/usr/include/wx-2.8 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D__WXGTK__ -fopenmp -g -O2 -Wall -Wextra -Wno-unused-parameter -Wno-long-long -fpermissive -fno-strict-aliasing -std=c++98 -pipe -O2 -pthread -o aegisub-2.1 aegisub_2_1-font_file_lister.o aegisub_2_1-font_file_lister_fontconfig.o aegisub_2_1-MatroskaParser.o aegisub_2_1-aegisublocale.o aegisub_2_1-ass_attachment.o aegisub_2_1-ass_dialogue.o aegisub_2_1-ass_entry.o aegisub_2_1-ass_export_filter.o aegisub_2_1-ass_exporter.o aegisub_2_1-ass_file.o aegisub_2_1-ass_karaoke.o aegisub_2_1-ass_override.o aegisub_2_1-ass_style.o aegisub_2_1-ass_style_storage.o aegisub_2_1-ass_time.o aegisub_2_1-audio_box.o aegisub_2_1-audio_display.o aegisub_2_1-audio_karaoke.o aegisub_2_1-audio_provider.o aegisub_2_1-audio_provider_convert.o aegisub_2_1-audio_provider_downmix.o aegisub_2_1-audio_provider_hd.o aegisub_2_1-audio_provider_pcm.o aegisub_2_1-audio_provider_ram.o aegisub_2_1-audio_provider_stream.o aegisub_2_1-audio_spectrum.o aegisub_2_1-auto4_base.o aegisub_2_1-avisynth_wrap.o aegisub_2_1-base_grid.o aegisub_2_1-browse_button.o aegisub_2_1-colorspace.o aegisub_2_1-colour_button.o aegisub_2_1-dialog_about.o aegisub_2_1-dialog_associations.o aegisub_2_1-dialog_attachments.o aegisub_2_1-dialog_automation.o aegisub_2_1-dialog_colorpicker.o aegisub_2_1-dialog_detached_video.o aegisub_2_1-dialog_dummy_video.o aegisub_2_1-dialog_export.o aegisub_2_1-dialog_fonts_collector.o aegisub_2_1-dialog_jumpto.o aegisub_2_1-dialog_kanji_timer.o aegisub_2_1-dialog_options.o aegisub_2_1-dialog_paste_over.o aegisub_2_1-dialog_progress.o aegisub_2_1-dialog_properties.o aegisub_2_1-dialog_resample.o aegisub_2_1-dialog_search_replace.o aegisub_2_1-dialog_selection.o aegisub_2_1-dialog_shift_times.o aegisub_2_1-dialog_spellchecker.o aegisub_2_1-dialog_splash.o aegisub_2_1-dialog_style_editor.o aegisub_2_1-dialog_style_manager.o aegisub_2_1-dialog_styling_assistant.o aegisub_2_1-dialog_text_import.o aegisub_2_1-dialog_timing_processor.o aegisub_2_1-dialog_tip.o aegisub_2_1-dialog_translation.o aegisub_2_1-dialog_version_check.o aegisub_2_1-dialog_video_details.o aegisub_2_1-drop.o aegisub_2_1-audio_provider_dummy.o aegisub_2_1-export_clean_info.o aegisub_2_1-export_fixstyle.o aegisub_2_1-export_framerate.o aegisub_2_1-export_visible_lines.o aegisub_2_1-fft.o aegisub_2_1-frame_main.o aegisub_2_1-frame_main_events.o aegisub_2_1-gl_text.o aegisub_2_1-gl_wrap.o aegisub_2_1-help_button.o aegisub_2_1-hilimod_textctrl.o aegisub_2_1-hotkeys.o aegisub_2_1-idle_field_event.o aegisub_2_1-kana_table.o aegisub_2_1-keyframe.o aegisub_2_1-main.o aegisub_2_1-md5.o aegisub_2_1-mkv_wrap.o aegisub_2_1-mythes.o aegisub_2_1-options.o aegisub_2_1-plugin_manager.o aegisub_2_1-scintilla_text_ctrl.o aegisub_2_1-spellchecker.o aegisub_2_1-spline.o aegisub_2_1-spline_curve.o aegisub_2_1-standard_paths.o aegisub_2_1-static_bmp.o aegisub_2_1-string_codec.o aegisub_2_1-subs_edit_box.o aegisub_2_1-subs_edit_ctrl.o aegisub_2_1-subs_grid.o aegisub_2_1-subs_preview.o aegisub_2_1-subtitle_format.o aegisub_2_1-subtitle_format_ass.o aegisub_2_1-subtitle_format_dvd.o aegisub_2_1-subtitle_format_encore.o aegisub_2_1-subtitle_format_microdvd.o aegisub_2_1-subtitle_format_mkv.o aegisub_2_1-subtitle_format_srt.o aegisub_2_1-subtitle_format_transtation.o aegisub_2_1-subtitle_format_ttxt.o aegisub_2_1-subtitle_format_txt.o aegisub_2_1-text_file_writer.o aegisub_2_1-thesaurus.o aegisub_2_1-thesaurus_myspell.o aegisub_2_1-timeedit_ctrl.o aegisub_2_1-toggle_bitmap.o aegisub_2_1-tooltip_manager.o aegisub_2_1-utils.o aegisub_2_1-validators.o aegisub_2_1-variable_data.o aegisub_2_1-vector2d.o aegisub_2_1-version.o aegisub_2_1-vfr.o aegisub_2_1-video_box.o aegisub_2_1-video_context.o aegisub_2_1-video_display.o aegisub_2_1-video_frame.o aegisub_2_1-video_out_gl.o aegisub_2_1-video_provider_cache.o aegisub_2_1-video_provider_dummy.o aegisub_2_1-video_provider_manager.o aegisub_2_1-video_slider.o aegisub_2_1-visual_feature.o aegisub_2_1-visual_tool.o aegisub_2_1-visual_tool_clip.o aegisub_2_1-visual_tool_cross.o aegisub_2_1-visual_tool_drag.o aegisub_2_1-visual_tool_rotatexy.o aegisub_2_1-visual_tool_rotatez.o aegisub_2_1-visual_tool_scale.o aegisub_2_1-visual_tool_vector_clip.o  -lGL -lwx_gtk2u_gl-2.8 -lwx_gtk2u_stc-2.8 -lwx_gtk2u_richtext-2.8 -lwx_gtk2u_aui-2.8 -lwx_gtk2u_xrc-2.8 -lwx_gtk2u_qa-2.8 -lwx_gtk2u_html-2.8 -lwx_gtk2u_adv-2.8 -lwx_gtk2u_core-2.8 -lwx_baseu_xml-2.8 -lwx_baseu_net-2.8 -lwx_baseu-2.8 -lasound -lportaudio -lpthread -lpulse -lopenal -lavformat -lavcodec -lswscale -lavutil -lpostproc -lhunspell-1.2 libresrc/libresrc.a libaudio_player.a libaudio_alsa.a libaudio_portaudio.a libaudio_pulseaudio.a libaudio_openal.a libaudio_oss.a libaudiovideo_ffmpegsource.a ../libffms/libffmpegsource_aegisub.a libsubtitle_provider.a libsubtitle_ass.a libauto4_lua.a libmisc_hunspell.a libmisc_universalchardet.a ../universalchardet/libuniversalchardet.a -lm -lfreetype -lfontconfig -L/windows/linux/soft/aegisub-2.1.8/libass -lass_aegisub -llua-5.1 -pthread
/usr/bin/ld: aegisub_2_1-MatroskaParser.o: undefined reference to symbol 'inflate'
/usr/bin/ld: note: 'inflate' is defined in DSO /lib64/libz.so.1 so try adding it to the linker command line
/lib64/libz.so.1: could not read symbols: Invalid operation
collect2: ld returned 1 exit status
make[4]: *** [aegisub-2.1] Error 1
make[4]: Leaving directory `/windows/linux/soft/aegisub-2.1.8/src'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/windows/linux/soft/aegisub-2.1.8/src'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/windows/linux/soft/aegisub-2.1.8/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/windows/linux/soft/aegisub-2.1.8'
make: *** [all] Error 2

Change History (13)

comment:1 Changed 4 years ago by $p00ky

According to a similar problem: http://www.makemkv.com/forum2/viewtopic.php?f=3&t=1449&start=0
We should add "-lz" when compiling.

Where should I add it?

comment:2 Changed 4 years ago by verm

  • priority changed from urgent to normal
  • severity changed from block to minor

CFLAGS=-lz ./configure should be fine.

comment:3 Changed 4 years ago by verm

Also, please provide proper platform information so we know where you are having this problem. See NewTicket#RequiredInformation. Thanks.

comment:4 Changed 4 years ago by $p00ky

I did not have further choice to specify the platform...
But it is with Fedora Core 13, x86_64.

CFLAGS=-lz ./configure did not work.
-lz was not added during the compilation.
I did make clean, make distclean before doing the CFLAGS=-lz ./configure and the make.
The error is then the same:

libtool: link: g++ -DAEGISUB -Iinclude -I../libffms/include -I/usr/lib64/wx/include/gtk2-unicode-release-2.8 -I/usr/include/wx-2.8 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D__WXGTK__ -fopenmp -g -O2 -Wall -Wextra -Wno-unused-parameter -Wno-long-long -fpermissive -fno-strict-aliasing -std=c++98 -pipe -O2 -pthread -o aegisub-2.1 aegisub_2_1-font_file_lister.o aegisub_2_1-font_file_lister_fontconfig.o aegisub_2_1-MatroskaParser.o aegisub_2_1-aegisublocale.o aegisub_2_1-ass_attachment.o aegisub_2_1-ass_dialogue.o aegisub_2_1-ass_entry.o aegisub_2_1-ass_export_filter.o aegisub_2_1-ass_exporter.o aegisub_2_1-ass_file.o aegisub_2_1-ass_karaoke.o aegisub_2_1-ass_override.o aegisub_2_1-ass_style.o aegisub_2_1-ass_style_storage.o aegisub_2_1-ass_time.o aegisub_2_1-audio_box.o aegisub_2_1-audio_display.o aegisub_2_1-audio_karaoke.o aegisub_2_1-audio_provider.o aegisub_2_1-audio_provider_convert.o aegisub_2_1-audio_provider_downmix.o aegisub_2_1-audio_provider_hd.o aegisub_2_1-audio_provider_pcm.o aegisub_2_1-audio_provider_ram.o aegisub_2_1-audio_provider_stream.o aegisub_2_1-audio_spectrum.o aegisub_2_1-auto4_base.o aegisub_2_1-avisynth_wrap.o aegisub_2_1-base_grid.o aegisub_2_1-browse_button.o aegisub_2_1-colorspace.o aegisub_2_1-colour_button.o aegisub_2_1-dialog_about.o aegisub_2_1-dialog_associations.o aegisub_2_1-dialog_attachments.o aegisub_2_1-dialog_automation.o aegisub_2_1-dialog_colorpicker.o aegisub_2_1-dialog_detached_video.o aegisub_2_1-dialog_dummy_video.o aegisub_2_1-dialog_export.o aegisub_2_1-dialog_fonts_collector.o aegisub_2_1-dialog_jumpto.o aegisub_2_1-dialog_kanji_timer.o aegisub_2_1-dialog_options.o aegisub_2_1-dialog_paste_over.o aegisub_2_1-dialog_progress.o aegisub_2_1-dialog_properties.o aegisub_2_1-dialog_resample.o aegisub_2_1-dialog_search_replace.o aegisub_2_1-dialog_selection.o aegisub_2_1-dialog_shift_times.o aegisub_2_1-dialog_spellchecker.o aegisub_2_1-dialog_splash.o aegisub_2_1-dialog_style_editor.o aegisub_2_1-dialog_style_manager.o aegisub_2_1-dialog_styling_assistant.o aegisub_2_1-dialog_text_import.o aegisub_2_1-dialog_timing_processor.o aegisub_2_1-dialog_tip.o aegisub_2_1-dialog_translation.o aegisub_2_1-dialog_version_check.o aegisub_2_1-dialog_video_details.o aegisub_2_1-drop.o aegisub_2_1-audio_provider_dummy.o aegisub_2_1-export_clean_info.o aegisub_2_1-export_fixstyle.o aegisub_2_1-export_framerate.o aegisub_2_1-export_visible_lines.o aegisub_2_1-fft.o aegisub_2_1-frame_main.o aegisub_2_1-frame_main_events.o aegisub_2_1-gl_text.o aegisub_2_1-gl_wrap.o aegisub_2_1-help_button.o aegisub_2_1-hilimod_textctrl.o aegisub_2_1-hotkeys.o aegisub_2_1-idle_field_event.o aegisub_2_1-kana_table.o aegisub_2_1-keyframe.o aegisub_2_1-main.o aegisub_2_1-md5.o aegisub_2_1-mkv_wrap.o aegisub_2_1-mythes.o aegisub_2_1-options.o aegisub_2_1-plugin_manager.o aegisub_2_1-scintilla_text_ctrl.o aegisub_2_1-spellchecker.o aegisub_2_1-spline.o aegisub_2_1-spline_curve.o aegisub_2_1-standard_paths.o aegisub_2_1-static_bmp.o aegisub_2_1-string_codec.o aegisub_2_1-subs_edit_box.o aegisub_2_1-subs_edit_ctrl.o aegisub_2_1-subs_grid.o aegisub_2_1-subs_preview.o aegisub_2_1-subtitle_format.o aegisub_2_1-subtitle_format_ass.o aegisub_2_1-subtitle_format_dvd.o aegisub_2_1-subtitle_format_encore.o aegisub_2_1-subtitle_format_microdvd.o aegisub_2_1-subtitle_format_mkv.o aegisub_2_1-subtitle_format_srt.o aegisub_2_1-subtitle_format_transtation.o aegisub_2_1-subtitle_format_ttxt.o aegisub_2_1-subtitle_format_txt.o aegisub_2_1-text_file_writer.o aegisub_2_1-thesaurus.o aegisub_2_1-thesaurus_myspell.o aegisub_2_1-timeedit_ctrl.o aegisub_2_1-toggle_bitmap.o aegisub_2_1-tooltip_manager.o aegisub_2_1-utils.o aegisub_2_1-validators.o aegisub_2_1-variable_data.o aegisub_2_1-vector2d.o aegisub_2_1-version.o aegisub_2_1-vfr.o aegisub_2_1-video_box.o aegisub_2_1-video_context.o aegisub_2_1-video_display.o aegisub_2_1-video_frame.o aegisub_2_1-video_out_gl.o aegisub_2_1-video_provider_cache.o aegisub_2_1-video_provider_dummy.o aegisub_2_1-video_provider_manager.o aegisub_2_1-video_slider.o aegisub_2_1-visual_feature.o aegisub_2_1-visual_tool.o aegisub_2_1-visual_tool_clip.o aegisub_2_1-visual_tool_cross.o aegisub_2_1-visual_tool_drag.o aegisub_2_1-visual_tool_rotatexy.o aegisub_2_1-visual_tool_rotatez.o aegisub_2_1-visual_tool_scale.o aegisub_2_1-visual_tool_vector_clip.o  -lGL -lwx_gtk2u_gl-2.8 -lwx_gtk2u_stc-2.8 -lwx_gtk2u_richtext-2.8 -lwx_gtk2u_aui-2.8 -lwx_gtk2u_xrc-2.8 -lwx_gtk2u_qa-2.8 -lwx_gtk2u_html-2.8 -lwx_gtk2u_adv-2.8 -lwx_gtk2u_core-2.8 -lwx_baseu_xml-2.8 -lwx_baseu_net-2.8 -lwx_baseu-2.8 -lasound -lportaudio -lpthread -lpulse -lopenal -lavformat -lavcodec -lswscale -lavutil -lpostproc -lhunspell-1.2 libresrc/libresrc.a libaudio_player.a libaudio_alsa.a libaudio_portaudio.a libaudio_pulseaudio.a libaudio_openal.a libaudio_oss.a libaudiovideo_ffmpegsource.a ../libffms/libffmpegsource_aegisub.a libsubtitle_provider.a libsubtitle_ass.a libauto4_lua.a libmisc_hunspell.a libmisc_universalchardet.a ../universalchardet/libuniversalchardet.a -lm -lfreetype -lfontconfig -L/windows/linux/soft/aegisub-2.1.8/libass -lass_aegisub -llua-5.1 -pthread
/usr/bin/ld: aegisub_2_1-MatroskaParser.o: undefined reference to symbol 'inflate'
/usr/bin/ld: note: 'inflate' is defined in DSO /lib64/libz.so.1 so try adding it to the linker command line
/lib64/libz.so.1: could not read symbols: Invalid operation
collect2: ld returned 1 exit status
make[4]: *** [aegisub-2.1] Error 1
make[4]: Leaving directory `/windows/linux/soft/aegisub-2.1.8/src'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/windows/linux/soft/aegisub-2.1.8/src'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/windows/linux/soft/aegisub-2.1.8/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/windows/linux/soft/aegisub-2.1.8'
make: *** [all] Error 2

-lw was added sometimes, for some compilations, but not for all and especially not for that one that is needing it.
How can I be sure that "-lz" will be added to the compilation generating an error?

Last edited 4 years ago by $p00ky (previous) (diff)

comment:5 Changed 4 years ago by verm

oh, that was a typo on my part sorry, try CPPFLAGS.

comment:6 Changed 4 years ago by $p00ky

I actually already tried that too, but I don't know why, it doesn't change anything:

libtool: link: g++ -DAEGISUB -Iinclude -I../libffms/include -I/usr/lib64/wx/include/gtk2-unicode-release-2.8 -I/usr/include/wx-2.8 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D__WXGTK__ -fopenmp -g -O2 -Wall -Wextra -Wno-unused-parameter -Wno-long-long -fpermissive -fno-strict-aliasing -std=c++98 -pipe -O2 -pthread -o aegisub-2.1 aegisub_2_1-font_file_lister.o aegisub_2_1-font_file_lister_fontconfig.o aegisub_2_1-MatroskaParser.o aegisub_2_1-aegisublocale.o aegisub_2_1-ass_attachment.o aegisub_2_1-ass_dialogue.o aegisub_2_1-ass_entry.o aegisub_2_1-ass_export_filter.o aegisub_2_1-ass_exporter.o aegisub_2_1-ass_file.o aegisub_2_1-ass_karaoke.o aegisub_2_1-ass_override.o aegisub_2_1-ass_style.o aegisub_2_1-ass_style_storage.o aegisub_2_1-ass_time.o aegisub_2_1-audio_box.o aegisub_2_1-audio_display.o aegisub_2_1-audio_karaoke.o aegisub_2_1-audio_provider.o aegisub_2_1-audio_provider_convert.o aegisub_2_1-audio_provider_downmix.o aegisub_2_1-audio_provider_hd.o aegisub_2_1-audio_provider_pcm.o aegisub_2_1-audio_provider_ram.o aegisub_2_1-audio_provider_stream.o aegisub_2_1-audio_spectrum.o aegisub_2_1-auto4_base.o aegisub_2_1-avisynth_wrap.o aegisub_2_1-base_grid.o aegisub_2_1-browse_button.o aegisub_2_1-colorspace.o aegisub_2_1-colour_button.o aegisub_2_1-dialog_about.o aegisub_2_1-dialog_associations.o aegisub_2_1-dialog_attachments.o aegisub_2_1-dialog_automation.o aegisub_2_1-dialog_colorpicker.o aegisub_2_1-dialog_detached_video.o aegisub_2_1-dialog_dummy_video.o aegisub_2_1-dialog_export.o aegisub_2_1-dialog_fonts_collector.o aegisub_2_1-dialog_jumpto.o aegisub_2_1-dialog_kanji_timer.o aegisub_2_1-dialog_options.o aegisub_2_1-dialog_paste_over.o aegisub_2_1-dialog_progress.o aegisub_2_1-dialog_properties.o aegisub_2_1-dialog_resample.o aegisub_2_1-dialog_search_replace.o aegisub_2_1-dialog_selection.o aegisub_2_1-dialog_shift_times.o aegisub_2_1-dialog_spellchecker.o aegisub_2_1-dialog_splash.o aegisub_2_1-dialog_style_editor.o aegisub_2_1-dialog_style_manager.o aegisub_2_1-dialog_styling_assistant.o aegisub_2_1-dialog_text_import.o aegisub_2_1-dialog_timing_processor.o aegisub_2_1-dialog_tip.o aegisub_2_1-dialog_translation.o aegisub_2_1-dialog_version_check.o aegisub_2_1-dialog_video_details.o aegisub_2_1-drop.o aegisub_2_1-audio_provider_dummy.o aegisub_2_1-export_clean_info.o aegisub_2_1-export_fixstyle.o aegisub_2_1-export_framerate.o aegisub_2_1-export_visible_lines.o aegisub_2_1-fft.o aegisub_2_1-frame_main.o aegisub_2_1-frame_main_events.o aegisub_2_1-gl_text.o aegisub_2_1-gl_wrap.o aegisub_2_1-help_button.o aegisub_2_1-hilimod_textctrl.o aegisub_2_1-hotkeys.o aegisub_2_1-idle_field_event.o aegisub_2_1-kana_table.o aegisub_2_1-keyframe.o aegisub_2_1-main.o aegisub_2_1-md5.o aegisub_2_1-mkv_wrap.o aegisub_2_1-mythes.o aegisub_2_1-options.o aegisub_2_1-plugin_manager.o aegisub_2_1-scintilla_text_ctrl.o aegisub_2_1-spellchecker.o aegisub_2_1-spline.o aegisub_2_1-spline_curve.o aegisub_2_1-standard_paths.o aegisub_2_1-static_bmp.o aegisub_2_1-string_codec.o aegisub_2_1-subs_edit_box.o aegisub_2_1-subs_edit_ctrl.o aegisub_2_1-subs_grid.o aegisub_2_1-subs_preview.o aegisub_2_1-subtitle_format.o aegisub_2_1-subtitle_format_ass.o aegisub_2_1-subtitle_format_dvd.o aegisub_2_1-subtitle_format_encore.o aegisub_2_1-subtitle_format_microdvd.o aegisub_2_1-subtitle_format_mkv.o aegisub_2_1-subtitle_format_srt.o aegisub_2_1-subtitle_format_transtation.o aegisub_2_1-subtitle_format_ttxt.o aegisub_2_1-subtitle_format_txt.o aegisub_2_1-text_file_writer.o aegisub_2_1-thesaurus.o aegisub_2_1-thesaurus_myspell.o aegisub_2_1-timeedit_ctrl.o aegisub_2_1-toggle_bitmap.o aegisub_2_1-tooltip_manager.o aegisub_2_1-utils.o aegisub_2_1-validators.o aegisub_2_1-variable_data.o aegisub_2_1-vector2d.o aegisub_2_1-version.o aegisub_2_1-vfr.o aegisub_2_1-video_box.o aegisub_2_1-video_context.o aegisub_2_1-video_display.o aegisub_2_1-video_frame.o aegisub_2_1-video_out_gl.o aegisub_2_1-video_provider_cache.o aegisub_2_1-video_provider_dummy.o aegisub_2_1-video_provider_manager.o aegisub_2_1-video_slider.o aegisub_2_1-visual_feature.o aegisub_2_1-visual_tool.o aegisub_2_1-visual_tool_clip.o aegisub_2_1-visual_tool_cross.o aegisub_2_1-visual_tool_drag.o aegisub_2_1-visual_tool_rotatexy.o aegisub_2_1-visual_tool_rotatez.o aegisub_2_1-visual_tool_scale.o aegisub_2_1-visual_tool_vector_clip.o  -lGL -lwx_gtk2u_gl-2.8 -lwx_gtk2u_stc-2.8 -lwx_gtk2u_richtext-2.8 -lwx_gtk2u_aui-2.8 -lwx_gtk2u_xrc-2.8 -lwx_gtk2u_qa-2.8 -lwx_gtk2u_html-2.8 -lwx_gtk2u_adv-2.8 -lwx_gtk2u_core-2.8 -lwx_baseu_xml-2.8 -lwx_baseu_net-2.8 -lwx_baseu-2.8 -lasound -lportaudio -lpthread -lpulse -lopenal -lavformat -lavcodec -lswscale -lavutil -lpostproc -lhunspell-1.2 libresrc/libresrc.a libaudio_player.a libaudio_alsa.a libaudio_portaudio.a libaudio_pulseaudio.a libaudio_openal.a libaudio_oss.a libaudiovideo_ffmpegsource.a ../libffms/libffmpegsource_aegisub.a libsubtitle_provider.a libsubtitle_ass.a libauto4_lua.a libmisc_hunspell.a libmisc_universalchardet.a ../universalchardet/libuniversalchardet.a -lm -lfreetype -lfontconfig -L/windows/linux/soft/aegisub-2.1.8/libass -lass_aegisub -llua-5.1 -pthread
/usr/bin/ld: aegisub_2_1-MatroskaParser.o: undefined reference to symbol 'inflate'
/usr/bin/ld: note: 'inflate' is defined in DSO /lib64/libz.so.1 so try adding it to the linker command line
/lib64/libz.so.1: could not read symbols: Invalid operation
collect2: ld returned 1 exit status
make[4]: *** [aegisub-2.1] Error 1
make[4]: Leaving directory `/windows/linux/soft/aegisub-2.1.8/src'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/windows/linux/soft/aegisub-2.1.8/src'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/windows/linux/soft/aegisub-2.1.8/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/windows/linux/soft/aegisub-2.1.8'
make: *** [all] Error 2

It doesn't change the compilation parameters...
I tried to modify directly the "Makefile" changing

CFLAGS = -g -O2 -Wall -Wextra -Wno-unused-parameter -std=gnu99 -pipe -O2
-->
CFLAGS = -g -O2 -Wall -Wextra -Wno-unused-parameter -std=gnu99 -pipe -O2 -lz

and

CXXFLAGS = -g -O2 -Wall -Wextra -Wno-unused-parameter -Wno-long-long -fpermissive -fno-strict-aliasing -std=c++98 -pipe -O2
-->
CXXFLAGS = -g -O2 -Wall -Wextra -Wno-unused-parameter -Wno-long-long -fpermissive -fno-strict-aliasing -std=c++98 -pipe -O2 -lz

But it doesn't change anything.
The "-lz" is not added during the "make" :s

comment:7 Changed 4 years ago by verm

You tried CPPFLAGS? I see CXXFLAGS there.

comment:8 Changed 4 years ago by $p00ky

Oh yes sorry, I also did it for the CPPFLAGS, but it did not work.
Actually the CPPFLAGS was already set to "-lz".

But I found a solution.
Actually, this compilation is in the "src" folder, so I had to change the src/Makefile file!

I changed the CXXFLAGS and CFLAGS (adding -lz) in that file and now it's working!
Any other way to do it without editing manually the src/Makefile?

comment:9 Changed 4 years ago by verm

oh wait, what the. sigh, I just noticed you're adding a library not an include directory your initial usage of CFLAGS confused me -- along with my lack of attention, sorry.

You need to use LDFLAGS:

LDFLAGS=-lz

comment:10 Changed 4 years ago by $p00ky

OK, I see!
My bad.

Thank you ;)

comment:11 Changed 4 years ago by verm

No, it's my fault entirely for not noticing -- let me know if your problem is fixed.

comment:12 Changed 4 years ago by $p00ky

Oh yes, the problem is fixed, thank you very much!

And it was the very end of the "make"...
Everything is working now (except Aegisub says "there is a newer version 2.1.8 even though this is already 2.1.8... :s).

Thanks again.

comment:13 Changed 2 years ago by Plorkyeran

  • Resolution set to fixed
  • Status changed from new to closed
Note: See TracTickets for help on using tickets.