Opened 15 years ago

Closed 15 years ago

Last modified 15 years ago

#23499 closed defect (duplicate)

wxwidgets does not build with macport 1.8.2

Reported by: m.kermani@… Owned by: mww@…
Priority: Normal Milestone:
Component: ports Version: 1.8.2
Keywords: Cc: jyrkiwahlstedt
Port: wxWidgets

Description (last modified by jmroot (Joshua Root))

$ sudo rm -rf \
     /opt/local \
     /Applications/DarwinPorts \
     /Applications/MacPorts \
     /Library/LaunchDaemons/org.macports.* \
     /Library/Receipts/DarwinPorts*.pkg \
     /Library/Receipts/MacPorts*.pkg \
     /Library/StartupItems/DarwinPortsStartup \
     /Library/Tcl/darwinports1.0 \
     /Library/Tcl/macports1.0 \
$ tar -xvzf MacPorts-1.8.2.tar.bz2
$ cd MacPorts-1.8.2
$  ./configure 
$ make
$ sudo make install
$ sudo port selfupdate
$ sudo port install wxWidgets

I get an error for full debug log see attachment.

ts_sources_rsync.macports.org_release_ports_graphics_wxWidgets/work/wxWidgets-2.8.9/build/lib -install_name /opt/local/lib/libwx_macu-2.8.0.dylib   -compatibility_version 6.0 -current_version 6.0  -lz -lpthread -lwxtiff-2.8 -lwxjpeg-2.8 -lwxpng-2.8    -lwxregexu-2.8  -arch i386 -L/opt/local/lib -framework IOKit -framework Carbon -framework Cocoa -framework System -framework QuickTime -framework OpenGL -framework AGL  -lz -lpthread  -framework WebKit -lexpat    -L/opt/local/lib -lSDLmain -lSDL -Wl,-framework,Cocoa
ld: warning: in /opt/local/lib/libz.dylib, file is not of required architecture
ld: warning: in /opt/local/lib/libexpat.dylib, file is not of required architecture
ld: warning: in /opt/local/lib/libSDLmain.a, file is not of required architecture
ld: warning: in /opt/local/lib/libSDL.dylib, file is not of required architecture
Undefined symbols:
  "_XML_SetDefaultHandler", referenced from:
      wxXmlDocument::Load(wxInputStream&, wxString const&, int)in monodll_xml.o
  "_inflateInit_", referenced from:
      _png_create_read_struct_2 in libwxpng-2.8.a(wxpng_pngread.o)
      _png_read_init_3 in libwxpng-2.8.a(wxpng_pngread.o)
  "_deflateEnd", referenced from:
      wxZlibOutputStream::Close()      in monodll_zstream.o
      _png_write_destroy in libwxpng-2.8.a(wxpng_pngwrite.o)
  "_XML_SetCommentHandler", referenced from:
      wxXmlDocument::Load(wxInputStream&, wxString const&, int)in monodll_xml.o
  "_inflateReset", referenced from:
      wxZlibInputStream2::Open(wxInputStream&)       in monodll_zipstrm.o
      _png_reset_zstream in libwxpng-2.8.a(wxpng_png.o)
      _png_read_finish_row in libwxpng-2.8.a(wxpng_pngrutil.o)
      _png_decompress_chunk in libwxpng-2.8.a(wxpng_pngrutil.o)
      _png_decompress_chunk in libwxpng-2.8.a(wxpng_pngrutil.o)
  "_inflateEnd", referenced from:
      wxZlibInputStream::~wxZlibInputStream()in monodll_zstream.o
      wxZlibInputStream::~wxZlibInputStream()in monodll_zstream.o
      _png_read_destroy in libwxpng-2.8.a(wxpng_pngread.o)
  "_XML_GetCurrentLineNumber", referenced from:
      wxXmlDocument::Load(wxInputStream&, wxString const&, int)in monodll_xml.o
  "_XML_ErrorString", referenced from:
      wxXmlDocument::Load(wxInputStream&, wxString const&, int)in monodll_xml.o
  "_inflateInit2_", referenced from:
      wxZlibInputStream::Init(int)   in monodll_zstream.o
  "_XML_SetElementHandler", referenced from:
      wxXmlDocument::Load(wxInputStream&, wxString const&, int)in monodll_xml.o
  "_XML_SetCharacterDataHandler", referenced from:
      wxXmlDocument::Load(wxInputStream&, wxString const&, int)in monodll_xml.o
  "_crc32", referenced from:
      wxZipInputStream::OpenDecompressor(bool)   in monodll_zipstrm.o
      wxZipOutputStream::CreatePendingEntry()       in monodll_zipstrm.o
      wxZipOutputStream::OnSysWrite(void const*, unsigned long)in monodll_zipstrm.o
      wxZipOutputStream::DoCreate(wxZipEntry*, bool)  in monodll_zipstrm.o
      wxZipInputStream::OnSysRead(void*, unsigned long)in monodll_zipstrm.o
      _png_calculate_crc in libwxpng-2.8.a(wxpng_png.o)
      _png_reset_crc in libwxpng-2.8.a(wxpng_png.o)
  "_deflateReset", referenced from:
      wxZlibOutputStream2::Open(wxOutputStream&)       in monodll_zipstrm.o
      _png_write_compressed_data_out in libwxpng-2.8.a(wxpng_pngwutil.o)
      _png_write_finish_row in libwxpng-2.8.a(wxpng_pngwutil.o)
      _png_write_finish_row in libwxpng-2.8.a(wxpng_pngwutil.o)
  "_XML_ParserCreate", referenced from:
      wxXmlDocument::Load(wxInputStream&, wxString const&, int)in monodll_xml.o
  "_XML_Parse", referenced from:
      wxXmlDocument::Load(wxInputStream&, wxString const&, int)in monodll_xml.

Attachments (1)

failWxWidgets (77.2 KB) - added by m.kermani@… 15 years ago.
The -d build log.

Download all attachments as: .zip

Change History (5)

Changed 15 years ago by m.kermani@…

Attachment: failWxWidgets added

The -d build log.

comment:1 in reply to:  description Changed 15 years ago by m.kermani@…

Various people have reported this. A solution to delete macport ad start from scratch has been suggested. I have done that and it appears not to make a difference.

Replying to m.kermani@…:

$ sudo rm -rf \

/opt/local \ /Applications/DarwinPorts \ /Applications/MacPorts \ /Library/LaunchDaemons/org.macports.* \ /Library/Receipts/DarwinPorts*.pkg \ /Library/Receipts/MacPorts*.pkg \ /Library/StartupItems/DarwinPortsStartup \ /Library/Tcl/darwinports1.0 \ /Library/Tcl/macports1.0 \

$ tar -xvzf MacPorts-1.8.2.tar.bz2

$ cd MacPorts-1.8.2

$ ./configure

$ make

$ sudo make install

$ sudo port selfupdate

$ sudo port install wxWidgets

I get an error for full debug log see attachment.

ts_sources_rsync.macports.org_release_ports_graphics_wxWidgets/work/wxWidgets-2.8.9/build/lib -install_name /opt/local/lib/libwx_macu-2.8.0.dylib -compatibility_version 6.0 -current_version 6.0 -lz -lpthread -lwxtiff-2.8 -lwxjpeg-2.8 -lwxpng-2.8 -lwxregexu-2.8 -arch i386 -L/opt/local/lib -framework IOKit -framework Carbon -framework Cocoa -framework System -framework QuickTime -framework OpenGL -framework AGL -lz -lpthread -framework WebKit -lexpat -L/opt/local/lib -lSDLmain -lSDL -Wl,-framework,Cocoa ld: warning: in /opt/local/lib/libz.dylib, file is not of required architecture ld: warning: in /opt/local/lib/libexpat.dylib, file is not of required architecture ld: warning: in /opt/local/lib/libSDLmain.a, file is not of required architecture ld: warning: in /opt/local/lib/libSDL.dylib, file is not of required architecture Undefined symbols:

"_XML_SetDefaultHandler", referenced from:

wxXmlDocument::Load(wxInputStream&, wxString const&, int)in monodll_xml.o

"_inflateInit_", referenced from:

_png_create_read_struct_2 in libwxpng-2.8.a(wxpng_pngread.o) _png_read_init_3 in libwxpng-2.8.a(wxpng_pngread.o)

"_deflateEnd", referenced from:

wxZlibOutputStream::Close() in monodll_zstream.o _png_write_destroy in libwxpng-2.8.a(wxpng_pngwrite.o)

"_XML_SetCommentHandler", referenced from:

wxXmlDocument::Load(wxInputStream&, wxString const&, int)in monodll_xml.o

"_inflateReset", referenced from:

wxZlibInputStream2::Open(wxInputStream&) in monodll_zipstrm.o _png_reset_zstream in libwxpng-2.8.a(wxpng_png.o) _png_read_finish_row in libwxpng-2.8.a(wxpng_pngrutil.o) _png_decompress_chunk in libwxpng-2.8.a(wxpng_pngrutil.o) _png_decompress_chunk in libwxpng-2.8.a(wxpng_pngrutil.o)

"_inflateEnd", referenced from:

wxZlibInputStream::~wxZlibInputStream()in monodll_zstream.o wxZlibInputStream::~wxZlibInputStream()in monodll_zstream.o _png_read_destroy in libwxpng-2.8.a(wxpng_pngread.o)

"_XML_GetCurrentLineNumber", referenced from:

wxXmlDocument::Load(wxInputStream&, wxString const&, int)in monodll_xml.o

"_XML_ErrorString", referenced from:

wxXmlDocument::Load(wxInputStream&, wxString const&, int)in monodll_xml.o

"_inflateInit2_", referenced from:

wxZlibInputStream::Init(int) in monodll_zstream.o

"_XML_SetElementHandler", referenced from:

wxXmlDocument::Load(wxInputStream&, wxString const&, int)in monodll_xml.o

"_XML_SetCharacterDataHandler", referenced from:

wxXmlDocument::Load(wxInputStream&, wxString const&, int)in monodll_xml.o

"_crc32", referenced from:

wxZipInputStream::OpenDecompressor(bool) in monodll_zipstrm.o wxZipOutputStream::CreatePendingEntry() in monodll_zipstrm.o wxZipOutputStream::OnSysWrite(void const*, unsigned long)in monodll_zipstrm.o wxZipOutputStream::DoCreate(wxZipEntry*, bool) in monodll_zipstrm.o wxZipInputStream::OnSysRead(void*, unsigned long)in monodll_zipstrm.o _png_calculate_crc in libwxpng-2.8.a(wxpng_png.o) _png_reset_crc in libwxpng-2.8.a(wxpng_png.o)

"_deflateReset", referenced from:

wxZlibOutputStream2::Open(wxOutputStream&) in monodll_zipstrm.o _png_write_compressed_data_out in libwxpng-2.8.a(wxpng_pngwutil.o) _png_write_finish_row in libwxpng-2.8.a(wxpng_pngwutil.o) _png_write_finish_row in libwxpng-2.8.a(wxpng_pngwutil.o)

"_XML_ParserCreate", referenced from:

wxXmlDocument::Load(wxInputStream&, wxString const&, int)in monodll_xml.o

"_XML_Parse", referenced from:

wxXmlDocument::Load(wxInputStream&, wxString const&, int)in monodll_xml.

comment:2 Changed 15 years ago by jmroot (Joshua Root)

Cc: jwa@… added
Description: modified (diff)
Owner: changed from macports-tickets@… to mww@…
Port: wxWidgets added

Please remember to preview and use WikiFormatting, fill in the Port field, and cc the maintainers.

comment:3 Changed 15 years ago by jmroot (Joshua Root)

Resolution: duplicate
Status: newclosed

Duplicate of #20952, please search before opening new tickets.

comment:4 in reply to:  3 Changed 15 years ago by m.kermani@…

Replying to jmr@…:

Duplicate of #20952, please search before opening new tickets.

Sorry, and thanks for a quick reply. I am impressed. I fail to see how this is a duplicate of 20952. Just because wxwidget does not build does not mean they are the same. I have been trying to build wxwidget for a while now and no matter what I have tried based on bug reports and suggestions I have gotten the same link issues. I review 20952, and I do not see a resolution to that either, the errors reported there is different than what I get. Is it a duplicate because the root cause is the same, and there is no solution yet? Let me in advance say thank you.

Note: See TracTickets for help on using tickets.