Morning,
I believe the issue might be coming from the fact that came uses the 10.11 SDK
CMake Warning at
/sw/share/cmake-3.4/Modules/Platform/Darwin-Initialize.cmake:97 (message):
CMAKE_OSX_DEPLOYMENT_TARGET is '10.10' but the matching SDK does not exist
at:
"/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk"
Instead using SDK:
"/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk".
(@Daniel thanks for the verbose tip) , after a couple of warnings were
generated , because of the reason above cmake finally failed at the linking step
[ 44%] Linking C executable gl2psTest
/sw/bin/cmake -E cmake_link_script CMakeFiles/gl2psTest.dir/link.txt --verbose=1
/sw/var/lib/fink/path-prefix-clang/cc -O2 -g -DNDEBUG -isysroot
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk
-mmacosx-version-min=10.10 -Wl,-search_paths_first
-Wl,-headerpad_max_install_names -L/sw/lib
CMakeFiles/gl2psTest.dir/gl2psTest.o -o gl2psTest libgl2ps.a -framework AGL
/Applications/ccp4-6.5/lib/libopengl.dylib /sw/lib/libglut.dylib -framework
Cocoa /usr/lib/libz.dylib /sw/lib/libpng.dylib /usr/lib/libz.dylib
/usr/lib/libm.dylib /sw/lib/libpng.dylib /usr/lib/libm.dylib
Undefined symbols for architecture x86_64:
"_glBegin", referenced from:
_triangles in gl2psTest.o
_extras in gl2psTest.o
_cube in gl2psTest.o
_gl2psDrawImageMap in libgl2ps.a(gl2ps.o)
"_glBlendFunc", referenced from:
_display in gl2psTest.o
"_glClear", referenced from:
_draw_single in gl2psTest.o
_draw_multi in gl2psTest.o
_display in gl2psTest.o
_reshape in gl2psTest.o
_keyboard in gl2psTest.o
"_glClearColor", referenced from:
_draw_multi in gl2psTest.o
_reshape in gl2psTest.o
_keyboard in gl2psTest.o
"_glColor3d", referenced from:
_cube in gl2psTest.o
"_glColor3f", referenced from:
_triangles in gl2psTest.o
_extras in gl2psTest.o
_text in gl2psTest.o
"_glColor4d", referenced from:
_objects in gl2psTest.o
_cube in gl2psTest.o
"_glColor4f", referenced from:
_triangles in gl2psTest.o
"_glColorMaterial", referenced from:
_display in gl2psTest.o
"_glDepthFunc", referenced from:
_display in gl2psTest.o
"_glDisable", referenced from:
_extras in gl2psTest.o
_objects in gl2psTest.o
_display in gl2psTest.o
"_glDrawPixels", referenced from:
_image in gl2psTest.o
"_glEnable", referenced from:
_extras in gl2psTest.o
_objects in gl2psTest.o
_display in gl2psTest.o
"_glEnd", referenced from:
_triangles in gl2psTest.o
_extras in gl2psTest.o
_cube in gl2psTest.o
_gl2psDrawImageMap in libgl2ps.a(gl2ps.o)
"_glFeedbackBuffer", referenced from:
_gl2psBeginPage in libgl2ps.a(gl2ps.o)
"_glFlush", referenced from:
_draw_single in gl2psTest.o
_draw_multi in gl2psTest.o
_display in gl2psTest.o
"_glGetBooleanv", referenced from:
_gl2psAddText in libgl2ps.a(gl2ps.o)
_gl2psDrawPixels in libgl2ps.a(gl2ps.o)
"_glGetFloatv", referenced from:
_gl2psBeginPage in libgl2ps.a(gl2ps.o)
_gl2psAddText in libgl2ps.a(gl2ps.o)
_gl2psDrawPixels in libgl2ps.a(gl2ps.o)
_gl2psEnable in libgl2ps.a(gl2ps.o)
_gl2psPrintPostScriptBeginViewport in libgl2ps.a(gl2ps.o)
_gl2psPrintPDFBeginViewport in libgl2ps.a(gl2ps.o)
_gl2psPrintSVGBeginViewport in libgl2ps.a(gl2ps.o)
...
"_glGetIntegerv", referenced from:
_draw_multi in gl2psTest.o
_gl2psBeginPage in libgl2ps.a(gl2ps.o)
_gl2psEnable in libgl2ps.a(gl2ps.o)
_gl2psPrintPostScriptBeginViewport in libgl2ps.a(gl2ps.o)
_gl2psPrintPDFBeginViewport in libgl2ps.a(gl2ps.o)
_gl2psPrintSVGBeginViewport in libgl2ps.a(gl2ps.o)
_gl2psPrintPGFBeginViewport in libgl2ps.a(gl2ps.o)
...
"_glIsEnabled", referenced from:
_gl2psBeginPage in libgl2ps.a(gl2ps.o)
"_glLineStipple", referenced from:
_extras in gl2psTest.o
"_glLineWidth", referenced from:
_extras in gl2psTest.o
_cube in gl2psTest.o
"_glLoadIdentity", referenced from:
_draw_multi in gl2psTest.o
_reshape in gl2psTest.o
_keyboard in gl2psTest.o
"_glMaterialf", referenced from:
_display in gl2psTest.o
"_glMaterialfv", referenced from:
_display in gl2psTest.o
"_glMatrixMode", referenced from:
_draw_multi in gl2psTest.o
_reshape in gl2psTest.o
_keyboard in gl2psTest.o
"_glOrtho", referenced from:
_draw_multi in gl2psTest.o
_reshape in gl2psTest.o
_keyboard in gl2psTest.o
"_glPassThrough", referenced from:
_gl2psAddText in libgl2ps.a(gl2ps.o)
_gl2psDrawPixels in libgl2ps.a(gl2ps.o)
_gl2psDrawImageMap in libgl2ps.a(gl2ps.o)
_gl2psEnable in libgl2ps.a(gl2ps.o)
_gl2psDisable in libgl2ps.a(gl2ps.o)
_gl2psPointSize in libgl2ps.a(gl2ps.o)
_gl2psLineWidth in libgl2ps.a(gl2ps.o)
...
"_glPointSize", referenced from:
_extras in gl2psTest.o
"_glPopMatrix", referenced from:
_objects in gl2psTest.o
_draw_multi in gl2psTest.o
"_glPushMatrix", referenced from:
_objects in gl2psTest.o
_draw_multi in gl2psTest.o
"_glRasterPos2d", referenced from:
_text in gl2psTest.o
"_glRasterPos2f", referenced from:
_image in gl2psTest.o
"_glRenderMode", referenced from:
_gl2psBeginPage in libgl2ps.a(gl2ps.o)
_gl2psPrintPrimitives in libgl2ps.a(gl2ps.o)
_gl2psPrintPostScriptBeginViewport in libgl2ps.a(gl2ps.o)
_gl2psPrintTeXBeginViewport in libgl2ps.a(gl2ps.o)
_gl2psPrintPDFBeginViewport in libgl2ps.a(gl2ps.o)
_gl2psPrintSVGBeginViewport in libgl2ps.a(gl2ps.o)
_gl2psPrintPGFBeginViewport in libgl2ps.a(gl2ps.o)
...
"_glRotatef", referenced from:
_objects in gl2psTest.o
_draw_multi in gl2psTest.o
"_glScissor", referenced from:
_draw_single in gl2psTest.o
_draw_multi in gl2psTest.o
_display in gl2psTest.o
"_glShadeModel", referenced from:
_display in gl2psTest.o
"_glVertex3d", referenced from:
_cube in gl2psTest.o
"_glVertex3f", referenced from:
_triangles in gl2psTest.o
_extras in gl2psTest.o
_gl2psDrawImageMap in libgl2ps.a(gl2ps.o)
"_glViewport", referenced from:
_draw_multi in gl2psTest.o
_reshape in gl2psTest.o
_keyboard in gl2psTest.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [gl2psTest] Error 1
make[1]: *** [CMakeFiles/gl2psTest.dir/all] Error 2
make: *** [all] Error 2
### execution of /tmp/fink.eJkHD failed, exit code 2
### execution of /tmp/fink.kBSjp failed, exit code 2
Package manager version: 0.39.2
Distribution version: selfupdate-rsync Thu Nov 26 07:50:07 2015, 10.10, x86_64
Trees: local/main stable/main stable/crypto
Xcode.app: 7.1.1
Xcode command-line tools: 7.1.0.0.1.1444952191
Max. Fink build jobs: 1
--
egodfred
Sent with Airmail
On November 26, 2015 at 6:52:46 AM, Daniel Macks (dma...@netspace.org) wrote:
On Tue, 24 Nov 2015 10:53:27 +0100, egodfred <egodfre...@gmail.com> wrote:
cmake -DCMAKE_PREFIX_PATH=/sw \
> -DCMAKE_INSTALL_PREFIX=/sw/src/fink.build/root-gl2ps-1.3.9-1/sw \
> -DCMAKE_INSTALL_NAME_DIR=/sw/lib \
>
> ..
> .
> .
> .
> .
> .
> [100%] Linking C executable gl2psTestSimple
> (/sw/share/texmf-dist/tex/latex/base/article.cls[100%] Linking C
> executable gl2psTest
> (/sw/share/texmf-dist/tex/latex/url/url.styld: symbol(s) not found
> for architecture x86_64
> clang: error: linker command failed with exit code 1 (use -v to see
> invocation)
> )make[2]: *** [libgl2ps.1.3.9.dylib] Error 1
> make[1]: *** [CMakeFiles/shared.dir/all] Error 2
> make[1]: *** Waiting for unfinished jobs....
>
> )
> make[2]: *** [gl2psTestSimple] Error 1
> clang: error: linker command failed with exit code 1 (use -v to see
> invocation)
> make[1]: *** [CMakeFiles/gl2psTestSimple.dir/all] Error 2
> make[2]: *** [gl2psTest] Error 1
> make[1]: *** [CMakeFiles/gl2psTest.dir/all] Error 2
>
> ))) (./gl2ps.aux)
> make: *** [all] Error 2
> ### execution of /tmp/fink.VZ98_ failed, exit code 2
> ### execution of /tmp/fink.aIeQr failed, exit code 2
> Removing runtime build-lock...
> Removing build-lock package...
> /sw/bin/dpkg-lockwait -r fink-buildlock-gl2ps-1.3.9-1
> (Reading database ... 248711 files and directories currently installed.)
> Removing fink-buildlock-gl2ps-1.3.9-1 ...
> Failed: phase compiling: gl2ps-1.3.9-1 failed
>
> Package manager version: 0.39.2
> Distribution version: selfupdate-rsync Tue Nov 24 10:37:03 2015,
> 10.10, x86_64
> Trees: local/main stable/main stable/crypto
> Xcode.app: 7.1.1
> Xcode command-line tools: 7.1.0.0.1.1444952191
>
> Max. Fink build jobs: 4
>
> I already built also using just 1 job and the compilation still failed.
The use of 1 job also provides better debugging information, so it
would be useful to see the output of *that*. If it fails, it fails in a
more easily understood way. But also, there is a mistake in the build
script that makes it even harder to decipher it. In
/sw/fink/dists/stable/main/finkinfo/graphics/gl2ps.info (at least
that's the pathname on my 10.10 machine), line 23:
make verbose=1
should be all-caps verbose:
make VERBOSE=1
to make it actually verbose enough to see the actual command that fails
rather than just the result that it failed. For the record, it builds
successfully for me on 10.10, both with and without the package already
installed.
dan
--
Daniel Macks
dma...@netspace.org
------------------------------------------------------------------------------
Go from Idea to Many App Stores Faster with Intel(R) XDK
Give your users amazing mobile app experiences with Intel(R) XDK.
Use one codebase in this all-in-one HTML5 development environment.
Design, debug & build mobile apps & 2D/3D high-impact games for multiple OSs.
http://pubads.g.doubleclick.net/gampad/clk?id=254741551&iu=/4140
_______________________________________________
Fink-users mailing list
Fink-users@lists.sourceforge.net
List archive:
http://news.gmane.org/gmane.os.macosx.fink.user
Subscription management:
https://lists.sourceforge.net/lists/listinfo/fink-users