[MacPorts] #41694: gnome-session: build fails on Snow Leopard, getline()

MacPorts noreply at macports.org
Wed Dec 4 16:44:33 PST 2013


#41694: gnome-session: build fails on Snow Leopard, getline()
----------------------+---------------------------
 Reporter:  devans@…  |      Owner:  devans@…
     Type:  defect    |     Status:  new
 Priority:  Normal    |  Milestone:
Component:  ports     |    Version:  2.2.1
 Keywords:            |       Port:  gnome-session
----------------------+---------------------------
 gnome-session builds without error on Lion and up but fails on Snow
 Leopard with this error:
 {{{
 /bin/sh ../libtool  --tag=CC   --mode=link /usr/bin/gcc-4.2 -Wall
 -Wstrict-prototypes -Wnested-externs -Werror=missing-prototypes -Werror
 =implicit-function-declaration -Werror=pointer-arith -Werror=init-self
 -Werror=format-security -Werror=format=2 -Werror=missing-include-dirs
 -pipe -Os -Wno-format-nonliteral -arch x86_64  -L/opt/local/lib
 -Wl,-headerpad_max_install_names -arch x86_64 -o gnome-session-inhibit
 gnome_session_inhibit-gnome-session-inhibit.o -L/opt/local/lib -ldbus-
 glib-1 -ldbus-1 -lupower-glib -ljson-glib-1.0 -lgnome-desktop-3 -lgtk-3
 -lgdk-3 -lpangocairo-1.0 -lpangoft2-1.0 -lpango-1.0 -lm -lfontconfig
 -lfreetype -latk-1.0 -lcairo-gobject -lcairo -lgdk_pixbuf-2.0 -lgio-2.0
 -lgobject-2.0 -lglib-2.0 -lintl
 gnome-session-check-accelerated-helper.c: In function
 ‘_is_gl_renderer_blacklisted’:
 gnome-session-check-accelerated-helper.c:169: warning: implicit
 declaration of function ‘getline’
 gnome-session-check-accelerated-helper.c:169: warning: nested extern
 declaration of ‘getline’
 mv -f .deps/gnome_session_check_accelerated-gnome-session-check-
 accelerated.Tpo .deps/gnome_session_check_accelerated-gnome-session-check-
 accelerated.Po
 /bin/sh ../libtool  --tag=CC   --mode=link /usr/bin/gcc-4.2 -Wall
 -Wstrict-prototypes -Wnested-externs -Werror=missing-prototypes -Werror
 =implicit-function-declaration -Werror=pointer-arith -Werror=init-self
 -Werror=format-security -Werror=format=2 -Werror=missing-include-dirs
 -pipe -Os -Wno-format-nonliteral -arch x86_64  -L/opt/local/lib
 -Wl,-headerpad_max_install_names -arch x86_64 -o gnome-session-check-
 accelerated gnome_session_check_accelerated-gnome-session-check-
 accelerated.o -L/opt/local/lib -lgtk-3 -lgdk-3 -lpangocairo-1.0
 -lpangoft2-1.0 -lpango-1.0 -lm -lfontconfig -lfreetype -latk-1.0 -lcairo-
 gobject -lcairo -lgdk_pixbuf-2.0 -lgio-2.0 -lgobject-2.0 -lglib-2.0 -lintl
 -L/opt/local/lib -lX11
 mv -f .deps/gnome_session_check_accelerated_helper-gnome-session-check-
 accelerated-helper.Tpo .deps/gnome_session_check_accelerated_helper-gnome-
 session-check-accelerated-helper.Po
 /bin/sh ../libtool  --tag=CC   --mode=link /usr/bin/gcc-4.2 -Wall
 -Wstrict-prototypes -Wnested-externs -Werror=missing-prototypes -Werror
 =implicit-function-declaration -Werror=pointer-arith -Werror=init-self
 -Werror=format-security -Werror=format=2 -Werror=missing-include-dirs
 -pipe -Os -Wno-format-nonliteral -arch x86_64  -L/opt/local/lib
 -Wl,-headerpad_max_install_names -arch x86_64 -o gnome-session-check-
 accelerated-helper gnome_session_check_accelerated_helper-gnome-session-
 check-accelerated-helper.o -L/opt/local/lib -lXcomposite -lGL -lglib-2.0
 -lintl  -L/opt/local/lib -lX11
 libtool: link: /usr/bin/gcc-4.2 -Wall -Wstrict-prototypes -Wnested-externs
 -Werror=missing-prototypes -Werror=implicit-function-declaration -Werror
 =pointer-arith -Werror=init-self -Werror=format-security -Werror=format=2
 -Werror=missing-include-dirs -pipe -Os -Wno-format-nonliteral -arch x86_64
 -Wl,-headerpad_max_install_names -arch x86_64 -o gnome-session-check-
 accelerated-helper gnome_session_check_accelerated_helper-gnome-session-
 check-accelerated-helper.o  -L/opt/local/lib
 /opt/local/lib/libXcomposite.dylib /opt/local/lib/libxcb.dylib
 /opt/local/lib/libXau.dylib /opt/local/lib/libXdmcp.dylib -lGL
 /opt/local/lib/libglib-2.0.dylib /opt/local/lib/libintl.dylib
 /opt/local/lib/libX11.dylib
 Undefined symbols:
   "_getline", referenced from:
       _main in gnome_session_check_accelerated_helper-gnome-session-check-
 accelerated-helper.o
 ld: symbol(s) not found

 }}}

 I've been staring at this for a while now and AFAICT getline has been
 available in since Mac OS X 10.7, is defined in stdio.h in SL which is
 included, etc.  So I must be missing something obvious.

 Need a fresh set of eyes.  If some one can see how to fix this let me know
 or just go ahead
 and fix it.

 Thanks

-- 
Ticket URL: <https://trac.macports.org/ticket/41694>
MacPorts <http://www.macports.org/>
Ports system for OS X


More information about the macports-tickets mailing list