Opened 6 months ago

Last modified 2 months ago

#62700 new defect

glib2-devel @2.62.5 +universal is missing some i386 bits

Reported by: ryandesign (Ryan Schmidt) Owned by:
Priority: Normal Milestone:
Component: ports Version: 2.6.4
Keywords: Cc:
Port: glib2-devel

Description

glib2-devel @2.62.5 +universal (meson build system) installs and appears to be universal (all the installed binaries are both x86_64 and i386 according to lipo -info) but trying to build something universal against it (litebrowser) leads to this error:

Undefined symbols for architecture i386:
  "Gio::InputStream::read(void*, unsigned int)", referenced from:
      html_widget::load_text_file(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >&) in html_widget.cpp.o
  "Gio::MemoryInputStream::add_data(void const*, int)", referenced from:
      http_loader::curlWriteFunction(void*, unsigned long, unsigned long, void*) in http_loader.cpp.o
ld: symbol(s) not found for architecture i386

But it works fine with glib2 @2.58.3_1 +universal (autoconf build system).

Change History (3)

comment:1 Changed 2 months ago by kencu (Ken)

That std::__1:* business often means that something was not built against the right stdlib...

comment:2 Changed 2 months ago by kencu (Ken)

I have been running (on my 10.6 system) glib2-devel +universal +x11 since I first completed the upgrade in February. I have built a great many things universal since that time against glib2-devel without trouble.

Perhaps this is something specific to litebrowser? Let me see.

comment:3 Changed 2 months ago by kencu (Ken)

Well, at present at least, litebrowser installs without issue +universal for me on 10.6 against glib2-devel:

$ port -v installed litebrowser glib2-devel
The following ports are currently installed:
  glib2-devel @2.62.5_0+universal+x11 (active) requested_variants='+universal+x11' platform='darwin 10' archs='i386 x86_64' date='2021-02-11T11:34:05-0800'
  litebrowser @0.0.0-20201026_0+universal (active) requested_variants='+universal' platform='darwin 10' archs='i386 x86_64' date='2021-08-06T19:41:16-0700'

So whatever the issue you had, Ryan, it would not seem to be systemic or insurmountable.

Note: See TracTickets for help on using tickets.