Opened 14 years ago

Closed 14 years ago

#22354 closed defect (fixed)

Port coin fails to build under snow leopard

Reported by: dustman@… Owned by: cssdev
Priority: Normal Milestone:
Component: ports Version: 1.8.1
Keywords: Cc: matt.leotta@…
Port: coin

Description (last modified by mf2k (Frank Schima))

Port coin fails to build under snow leopard. Here is output from port command:

--->  Building Coin
Error: Target org.macports.build returned: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_Coin/work/Coin-3.1.0" && /usr/bin/make -j4 all " returned error 2
Command output:       _cglglue_context_make_current in gl_cgl.o
  "_CGLSetOffScreen", referenced from:
      cglglue_context_create_software(cglglue_contextdata*)       in gl_cgl.o
  "_CGLGetVirtualScreen", referenced from:
      _cglglue_context_make_current in gl_cgl.o
  "_CGLDestroyContext", referenced from:
      cglglue_contextdata_cleanup(cglglue_contextdata*)       in gl_cgl.o
  "_CGLDestroyPixelFormat", referenced from:
      cglglue_contextdata_cleanup(cglglue_contextdata*)       in gl_cgl.o
  "_CGLErrorString", referenced from:
      _cglglue_context_release_pbuffer in gl_cgl.o
      _cglglue_context_bind_pbuffer in gl_cgl.o
      _cglglue_context_make_current in gl_cgl.o
      _cglglue_context_make_current in gl_cgl.o
      _cglglue_context_make_current in gl_cgl.o
      cglglue_context_create_software(cglglue_contextdata*)       in gl_cgl.o
      cglglue_context_create_software(cglglue_contextdata*)       in gl_cgl.o
      cglglue_context_create_pbuffer(cglglue_contextdata*)       in gl_cgl.o
      cglglue_context_create_pbuffer(cglglue_contextdata*)       in gl_cgl.o
      cglglue_context_create_pbuffer(cglglue_contextdata*)       in gl_cgl.o
  "_CGLCreateContext", referenced from:
      cglglue_context_create_software(cglglue_contextdata*)       in gl_cgl.o
      cglglue_context_create_pbuffer(cglglue_contextdata*)       in gl_cgl.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
make[4]: *** [libCoin.la] Error 1
make[3]: *** [all-recursive] Error 1
make[2]: *** [all] Error 2
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2

Error: Status 1 encountered during processing.

Attachments (4)

Coin_error.txt (1.9 KB) - added by matt.leotta@… 14 years ago.
output of 'sudo port build -v Coin'
coin-build-logaa (683.6 KB) - added by dustman@… 14 years ago.
First part of coin build log
coin-build-logab (544.7 KB) - added by dustman@… 14 years ago.
Second part of coin build log
config.log (169.0 KB) - added by dustman@… 14 years ago.

Download all attachments as: .zip

Change History (26)

comment:1 Changed 14 years ago by mf2k (Frank Schima)

Description: modified (diff)
Owner: changed from macports-tickets@… to css@…
Port: coin added

comment:2 Changed 14 years ago by cssdev

Status: newassigned

I need to update the port to Coin 3.1.2 to see if it's resolved in a new upstream release.

comment:3 Changed 14 years ago by cssdev

Coin-3.1.2 builds both X11 and Aqua versions on Snow Leopard. Please update your ports and build again. Thanks for reporting the issue! Committed to r60208

comment:4 Changed 14 years ago by cssdev

Resolution: fixed
Status: assignedclosed

comment:5 in reply to:  3 ; Changed 14 years ago by matt.leotta@…

I just tried to build Coin 3.1.2 and got the same error reported here on 3.1.0

comment:6 Changed 14 years ago by dustman@…

Ditto for me. Building Coin 3.1.2 fails as it did for 3.1. I have not tried the +aqua variant (it worked with Coin 3.1).

comment:7 in reply to:  5 Changed 14 years ago by cssdev

Resolution: fixed
Status: closedreopened

Replying to matt.leotta@…:

I just tried to build Coin 3.1.2 and got the same error reported here on 3.1.0

Is the rest of your ports tree up to date? Are you using XCode 3.2.1?

comment:8 Changed 14 years ago by dustman@…

I'm using XCode 3.2.1 and my ports tree is up to date.

comment:9 Changed 14 years ago by cssdev

Are you up to date on OS updates? There must be something else about the build environment that's different. Could you please run "port build -v Coin", redirect to a text file, and attach that file to this ticket? I would like to see the full link line that's failing.

comment:10 Changed 14 years ago by matt.leotta@…

Cc: matt.leotta@… added

Cc Me!

Changed 14 years ago by matt.leotta@…

Attachment: Coin_error.txt added

output of 'sudo port build -v Coin'

comment:11 Changed 14 years ago by matt.leotta@…

I've just attached the error message on my machine, it's the same as the original error except with Coin-3.1.2. I'm also up to date on everything.

Changed 14 years ago by dustman@…

Attachment: coin-build-logaa added

First part of coin build log

Changed 14 years ago by dustman@…

Attachment: coin-build-logab added

Second part of coin build log

comment:12 Changed 14 years ago by dustman@…

I've attached my coin build log in two parts as it is so large.

comment:13 Changed 14 years ago by cssdev

Could you attach the config.log created within the worksrcpath? Or just grep for the LDFAGS. Mine includes the OpenGL framework:

$ grep '^LDFLAGS' work/Coin-3.1.2/config.log
LDFLAGS='-L/opt/local/lib -Wl,-framework,OpenGL -Wl,-framework,CoreFoundation'

comment:14 in reply to:  12 ; Changed 14 years ago by cssdev

Replying to dustman@…:

I've attached my coin build log in two parts as it is so large.

It's odd that the configure step reports your kernel as darwin10.0.0. Mine is reported as darwin10.2.0. Which model Mac are you using? Perhaps a system update didn't apply correctly? Can you do a ls -l /usr/X11R6/lib/libGL*?

comment:15 in reply to:  13 Changed 14 years ago by matt.leotta@…

Replying to css@…:

Could you attach the config.log created within the worksrcpath? Or just grep for the LDFAGS. Mine includes the OpenGL framework:

Here is the grep of LDFLAGS on config.log on my machine. It seems to be missing OpenGL

LDFLAGS='-L/opt/local/lib -L/usr/X11R6/lib -Wl,-framework,CoreFoundation'

comment:16 in reply to:  14 Changed 14 years ago by matt.leotta@…

Replying to css@…:

Replying to dustman@…:

Which model Mac are you using? Perhaps a system update didn't apply correctly? Can you do a ls -l /usr/X11R6/lib/libGL*?

My machine is a mid 2007 Macbook Pro. The output of ls -l /usr/X11R6/lib/libGL* is

-rwxr-xr-x 1 root wheel 640528 Jul 6 02:33 /usr/X11R6/lib/libGL.1.2.dylib lrwxr-xr-x 1 root wheel 15 Nov 4 19:29 /usr/X11R6/lib/libGL.1.dylib -> libGL.1.2.dylib lrwxr-xr-x 1 root wheel 15 Nov 4 19:29 /usr/X11R6/lib/libGL.dylib -> libGL.1.2.dylib -rwxr-xr-x 1 root wheel 1430864 Jul 6 02:33 /usr/X11R6/lib/libGLU.1.3.dylib lrwxr-xr-x 1 root wheel 16 Nov 4 19:29 /usr/X11R6/lib/libGLU.1.dylib -> libGLU.1.3.dylib lrwxr-xr-x 1 root wheel 16 Nov 4 19:29 /usr/X11R6/lib/libGLU.dylib -> libGLU.1.3.dylib

comment:17 Changed 14 years ago by matt.leotta@…

Sorry, let me format that a little nicer:

-rwxr-xr-x 1 root wheel 640528 Jul 6 02:33 /usr/X11R6/lib/libGL.1.2.dylib
lrwxr-xr-x 1 root wheel 15 Nov 4 19:29 /usr/X11R6/lib/libGL.1.dylib -> libGL.1.2.dylib
lrwxr-xr-x 1 root wheel 15 Nov 4 19:29 /usr/X11R6/lib/libGL.dylib -> libGL.1.2.dylib
-rwxr-xr-x 1 root wheel 1430864 Jul 6 02:33 /usr/X11R6/lib/libGLU.1.3.dylib
lrwxr-xr-x 1 root wheel 16 Nov 4 19:29 /usr/X11R6/lib/libGLU.1.dylib -> libGLU.1.3.dylib
lrwxr-xr-x 1 root wheel 16 Nov 4 19:29 /usr/X11R6/lib/libGLU.dylib -> libGLU.1.3.dylib

Changed 14 years ago by dustman@…

Attachment: config.log added

comment:18 Changed 14 years ago by dustman@…

Below is some info from my machine. I attached config.log too. A grep for LDFLAGS with context is included below.

ls -l /usr/X11R6/lib/libGL* -rwxr-xr-x 1 root wheel 640528 Jul 6 00:33 /usr/X11R6/lib/libGL.1.2.dylib lrwxr-xr-x 1 root wheel 15 Nov 1 11:51 /usr/X11R6/lib/libGL.1.dylib -> libGL.1.2.dylib lrwxr-xr-x 1 root wheel 15 Nov 1 11:51 /usr/X11R6/lib/libGL.dylib -> libGL.1.2.dylib -rwxr-xr-x 1 root wheel 1430864 Jul 6 00:33 /usr/X11R6/lib/libGLU.1.3.dylib lrwxr-xr-x 1 root wheel 16 Nov 1 11:51 /usr/X11R6/lib/libGLU.1.dylib -> libGLU.1.3.dylib lrwxr-xr-x 1 root wheel 16 Nov 1 11:51 /usr/X11R6/lib/libGLU.dylib -> libGLU.1.3.dylib

Below is the grep of config.log with some context which revealed COIN_EXTRA_LIBS='-lCoin -lGL -lpthread'.

grep -C 3 LDFLAGS config.log ac_cv_env_F77_value= ac_cv_env_FFLAGS_set=set ac_cv_env_FFLAGS_value='-O2 -m64' ac_cv_env_LDFLAGS_set=set ac_cv_env_LDFLAGS_value=-L/opt/local/lib ac_cv_env_build_alias_set= ac_cv_env_build_alias_value= ac_cv_env_host_alias_set= -- COIN_EXTRA_CFLAGS='-O2 -arch x86_64' COIN_EXTRA_CPPFLAGS=' -I${prefix}/include -I${prefix}/include/Inventor/annex -D_REENTRANT -I/usr/X11R6/include' COIN_EXTRA_CXXFLAGS='-O2 -arch x86_64' COIN_EXTRA_LDFLAGS='-L${exec_prefix}/lib -L/usr/X11R6/lib' COIN_EXTRA_LIBS='-lCoin -lGL -lpthread' COIN_HACKING_LIBDIRS= COIN_LIB_DSP_DEFS= -- COIN_MSVC_LIBC= COIN_SO_VERSION='60' COIN_TESTSUITE_EXTRA_CPPFLAGS= COIN_TESTSUITE_EXTRA_LDFLAGS= COIN_VERSION='3.1.2' CONFIG='default' CPP='/usr/bin/gcc-4.2 -E' -- INSTALL_PROGRAM='${INSTALL}' INSTALL_SCRIPT='${INSTALL}' INSTALL_STRIP_PROGRAM='${SHELL} $(install_sh) -c -s' LDFLAGS='-L/opt/local/lib -L/usr/X11R6/lib -Wl,-framework,CoreFoundation' LIBEXT='.dylib' LIBFLAGS= LIBOBJS=

comment:19 in reply to:  18 ; Changed 14 years ago by cssdev

Replying to dustman@…:

Below is some info from my machine. I attached config.log too.

It's interesting that libXt couldn't be found. Could you check whether you have libXt? My link line seems to include additional libraries, specifically -lXext -lSM -lICE -lX11. Tracking the X11 dependencies always seems tricky with MacPorts' xorg vs. system X11.

comment:20 in reply to:  19 ; Changed 14 years ago by matt.leotta@…

Replying to css@…:

Replying to dustman@…: It's interesting that libXt couldn't be found. Could you check whether you have libXt? My link line seems to include additional libraries, specifically -lXext -lSM -lICE -lX11. Tracking the X11 dependencies always seems tricky with MacPorts' xorg vs. system X11.

I just did the following:

port install xorg-libXt
port clean coin
port install coin

and it worked! It looks like maybe there was a missing dependency on libXt

comment:21 in reply to:  20 Changed 14 years ago by dustman@…

Replying to matt.leotta@…:

Replying to css@…:

Replying to dustman@…: It's interesting that libXt couldn't be found. Could you check whether you have libXt? My link line seems to include additional libraries, specifically -lXext -lSM -lICE -lX11. Tracking the X11 dependencies always seems tricky with MacPorts' xorg vs. system X11.

I just did the following:

port install xorg-libXt
port clean coin
port install coin

and it worked! It looks like maybe there was a missing dependency on libXt

First, apologies for not responding to the earlier request to check if libXt was installed on my system - put on another project.

Second - the above worked for me too! Thanks for the effort!

comment:22 Changed 14 years ago by cssdev

Resolution: fixed
Status: reopenedclosed

Thanks for reporting the bug and confirming the fix! Closing this ticket.

Note: See TracTickets for help on using tickets.