Bug 27978 - darwin build undefined symbols in glapi_getproc.o
Summary: darwin build undefined symbols in glapi_getproc.o
Status: CLOSED NOTABUG
Alias: None
Product: Mesa
Classification: Unclassified
Component: Other (show other bugs)
Version: git
Hardware: x86 (IA32) Mac OS X (All)
: medium blocker
Assignee: Jeremy Huddleston Sequoia
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-05-05 01:02 UTC by Vinson Lee
Modified: 2010-05-06 08:49 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments

Description Vinson Lee 2010-05-05 01:02:12 UTC
mesa: 30e9ffcd3bf184a0a67be5dcab254e8049c8c578 (7.8)

$ uname -mprsv
Darwin 10.3.0 Darwin Kernel Version 10.3.0: Fri Feb 26 11:58:09 PST 2010; root:xnu-1504.3.12~1/RELEASE_I386 i386 i386

$ sw_vers
ProductName:	Mac OS X
ProductVersion:	10.6.3
BuildVersion:	10D573

$ make
Making sources for darwin
make[3]: Nothing to be done for `default'.
make[3]: Nothing to be done for `default'.
make[3]: Nothing to be done for `default'.
make[2]: Nothing to be done for `all'.
(cd shader/slang/library && make) || exit 1 ;
make[3]: Nothing to be done for `default'.
/bin/sh ../../../../bin/mklib -o OSMesa -linker 'gcc' -ldflags '' \
		-major 7 -minor 8 -patch 1 \
		-install ../../../../lib  \
		-id /usr/X11/lib/libOSMesa.7.dylib \
		-L../../../../lib -lGL osmesa.o ../../../../src/mesa/libmesa.a ../../../../src/mesa/libglapi.a ../../../../src/glsl/cl/libglslcl.a ../../../../src/glsl/pp/libglslpp.a
mklib: Making Darwin shared library:  libOSMesa.7.8.dylib
Undefined symbols:
  "_gl_dispatch_stub_361", referenced from:
      _static_functions in libglapi.a(glapi_getproc.o)
  "_gl_dispatch_stub_356", referenced from:
      _static_functions in libglapi.a(glapi_getproc.o)
  "_gl_dispatch_stub_362", referenced from:
      _static_functions in libglapi.a(glapi_getproc.o)
  "_gl_dispatch_stub_357", referenced from:
      _static_functions in libglapi.a(glapi_getproc.o)
  "_gl_dispatch_stub_363", referenced from:
      _static_functions in libglapi.a(glapi_getproc.o)
  "_gl_dispatch_stub_358", referenced from:
      _static_functions in libglapi.a(glapi_getproc.o)
  "_gl_dispatch_stub_364", referenced from:
      _static_functions in libglapi.a(glapi_getproc.o)
  "_gl_dispatch_stub_359", referenced from:
      _static_functions in libglapi.a(glapi_getproc.o)
  "_gl_dispatch_stub_365", referenced from:
      _static_functions in libglapi.a(glapi_getproc.o)
  "_gl_dispatch_stub_366", referenced from:
      _static_functions in libglapi.a(glapi_getproc.o)
ld: symbol(s) not found
Comment 1 Jeremy Huddleston Sequoia 2010-05-05 09:21:20 UTC
Did you 'make clean' first?  Did you try from a fresh checkout?

I just did a fresh checkout 'rm -rf * ; git checkout -f 7.8' to make sure I didn't have anything leftover which wasn't checked in or something, and it still builds fine for me.

It builds fine on our build farm as well.
Comment 2 Vinson Lee 2010-05-06 00:20:38 UTC
'make clean; make' did not work.

'make realclean; make darwin' did not work.

'rm -rf; git checkout -f 7.8; make darwin' led to a successful build.
Comment 3 Jeremy Huddleston Sequoia 2010-05-06 08:32:43 UTC
weird.  I wonder what was sticking around causing the problem ...
Comment 4 Vinson Lee 2010-05-06 08:49:43 UTC
Closing bug.

make darwin works for me on mesa_7_7_branch, 7.8, and master.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.