Opened 19 months ago

Closed 19 months ago

Last modified 19 months ago

#67352 closed defect (duplicate)

glib2-upstream compilation failures on 10.5

Reported by: rmottola (Riccardo) Owned by: mascguy (Christopher Nielsen)
Priority: Normal Milestone:
Component: ports Version:
Keywords: leopard Cc:
Port: glib2-upstream

Description

Compilation with clang 6.0 fails with:

Undefined symbols for architecture x86_64:
  "_close$NOCANCEL$UNIX2003", referenced from:
      _g_file_get_contents in gfileutils.c.o
      _write_to_file in gfileutils.c.o
      _g_child_watch_finalize in gmain.c.o
      _g_close in gstdio.c.o
      _g_test_trap_fork in gtestutils.c.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

full log attached

Attachments (1)

glib2-clang6.log (295.2 KB) - added by rmottola (Riccardo) 19 months ago.
compilation with clang 6.0

Download all attachments as: .zip

Change History (5)

Changed 19 months ago by rmottola (Riccardo)

Attachment: glib2-clang6.log added

compilation with clang 6.0

comment:1 Changed 19 months ago by rmottola (Riccardo)

gcc 7 has the same errors as clang 7

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

I don’t think that 64 bit libs have symbols that contain $UNIX2003 to link against…

you might be the only person trying to build 10.5 Intel 64 bit

Last edited 19 months ago by kencu (Ken) (previous) (diff)

comment:3 Changed 19 months ago by mascguy (Christopher Nielsen)

Resolution: duplicate
Status: assignedclosed

Riccardo, let's track all of this via issue:67307, since it all relates to fixing builds for the glib2 ports.

comment:4 Changed 19 months ago by rmottola (Riccardo)

Might be, most people stick to 32bit even if he CPU is 64bit capable or upgraded to 10.6. I have two twin machines. Does this mean that the 64bit libs are "poor" ? where should these symbols be (which library?)

I tried on the other 32bit and I get to the standard error:

In file included from ../glib-2.76.2/glib/tests/cxx.cpp:20:
In file included from ../glib-2.76.2/glib/glib.h:34:
In file included from ../glib-2.76.2/glib/gasyncqueue.h:34:
In file included from ../glib-2.76.2/glib/gthread.h:34:
In file included from ../glib-2.76.2/glib/gatomic.h:30:
../glib-2.76.2/glib/glib-typeof.h:43:10: fatal error: 'type_traits' file not found
#include <type_traits>
         ^~~~~~~~~~~~~
1 error generated.

I added

configure.cxxflags-append -std=c++11

but it still doesn't work.

Note: See TracTickets for help on using tickets.