error building git head GTK on OS X ... IM symbols missing etc.

View: New views
9 Messages — Rating Filter:   Alert me  

error building git head GTK on OS X ... IM symbols missing etc.

by Paul Davis :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

just tried a jhbuild of gtk on OS X (tiger). things went well until it
got to the link stage in the input methods code. i got a large number
of messages of this form, one for each (every?) IM module:


Cannot load module
/Users/paul/gtk/source/gtk+/modules/input/im-am-et.la:
dlopen(/Users/paul/gtk/source/gtk+/modules/input/.libs/im-am-et.so,
10): Symbol not found: _res_9_init
  Referenced from: /Users/paul/gtk/inst/lib/libgio-2.0.0.dylib
  Expected in: flat namespace

does anybody have any clues what this might be? the missing symbol is
always _res_9_init

thx,
--p
_______________________________________________
gtk-devel-list mailing list
gtk-devel-list@...
http://mail.gnome.org/mailman/listinfo/gtk-devel-list

Re: error building git head GTK on OS X ... IM symbols missing etc.

by John Ralls-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


On Oct 26, 2009, at 4:50 PM, Paul Davis wrote:

> just tried a jhbuild of gtk on OS X (tiger). things went well until it
> got to the link stage in the input methods code. i got a large number
> of messages of this form, one for each (every?) IM module:
>
>
> Cannot load module
> /Users/paul/gtk/source/gtk+/modules/input/im-am-et.la:
> dlopen(/Users/paul/gtk/source/gtk+/modules/input/.libs/im-am-et.so,
> 10): Symbol not found: _res_9_init
>  Referenced from: /Users/paul/gtk/inst/lib/libgio-2.0.0.dylib
>  Expected in: flat namespace
>
> does anybody have any clues what this might be? the missing symbol is
> always _res_9_init


Found it, after a bit of searching. It's defined in /usr/include/
resolv.h, included from gio/gionetworkingprivate.h

It doesn't show up in my SL build from today. I can't see from  
configure why it would pick it up for your build but not for mine.  
Search for lresolv in configure and config.log; maybe you can see why  
it's getting picked up on yours.

Regards,
John Ralls

_______________________________________________
gtk-devel-list mailing list
gtk-devel-list@...
http://mail.gnome.org/mailman/listinfo/gtk-devel-list

Re: error building git head GTK on OS X ... IM symbols missing etc.

by Kristian Rietveld-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Tue, Oct 27, 2009 at 1:50 AM, Paul Davis <paul@...> wrote:
> just tried a jhbuild of gtk on OS X (tiger). things went well until it
> got to the link stage in the input methods code. i got a large number
> of messages of this form, one for each (every?) IM module:
>
> does anybody have any clues what this might be? the missing symbol is
> always _res_9_init

See bug 586510.   It appears that on Tiger we need to explicitly link
against libresolv, this is not needed on Leopard and higher.  I also
reported this when I ran into it (bug 590482), there seems to be a
patch which has not been reviewed yet.  Unless the GLib maintainers
object I will review and commit a patch for this then :)


-kris.
_______________________________________________
gtk-devel-list mailing list
gtk-devel-list@...
http://mail.gnome.org/mailman/listinfo/gtk-devel-list

RE: error building git head GTK on OS X ... IM symbols missing etc.

by sbaka :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.


On clean copy of SL (upgraded) Xcode 3.2:

downloaded and ran:

prompt> sh gtk-osx-build-setup.sh
prompt> export PATH=$PATH:/Users/sbakhtiar/.local/bin
prompt> jhbuild bootstrap
prompt> jhbuild build meta-gtk-osx-bootstrap
prompt> jhbuild build meta-gtk-osx-core

libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -I.. -DG_LOG_DOMAIN=\"GLib\" -DG_DISABLE_CAST_CHECKS -DG_DISABLE_DEPRECATED -DGLIB_COMPILATION -DPCRE_STATIC -I/Users/sbakhtiar/gtk/inst/include -DG_DISABLE_SINGLE_INCLUDES -D_REENTRANT -g -O2 -Wall -MT gatomic.lo -MD -MP -MF .deps/gatomic.Tpo -c gatomic.c  -fno-common -DPIC -o .libs/gatomic.o
/var/folders/8i/8iPY4ZafEpezLgvmjxSKSU+++TY/-Tmp-//ccNq7o6P.s:103:Incorrect register `%rdx' used with `l' suffix
make[4]: *** [gatomic.lo] Error 1
make[3]: *** [all-recursive] Error 1
make[2]: *** [all] Error 2
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
*** Error during phase build of glib: ########## Error running make   *** [2/11]


Any ideas?


i'm EMAILING FOR THE GREATER GOOD
Join me


> Subject: Re: error building git head GTK on OS X ... IM symbols missing etc.
> From: jralls@...
> Date: Mon, 26 Oct 2009 22:30:54 -0700
> To: paul@...
> CC: gtk-devel-list@...
>
>
> On Oct 26, 2009, at 4:50 PM, Paul Davis wrote:
>
> > just tried a jhbuild of gtk on OS X (tiger). things went well until it
> > got to the link stage in the input methods code. i got a large number
> > of messages of this form, one for each (every?) IM module:
> >
> >
> > Cannot load module
> > /Users/paul/gtk/source/gtk+/modules/input/im-am-et.la:
> > dlopen(/Users/paul/gtk/source/gtk+/modules/input/.libs/im-am-et.so,
> > 10): Symbol not found: _res_9_init
> > Referenced from: /Users/paul/gtk/inst/lib/libgio-2.0.0.dylib
> > Expected in: flat namespace
> >
> > does anybody have any clues what this might be? the missing symbol is
> > always _res_9_init
>
>
> Found it, after a bit of searching. It's defined in /usr/include/
> resolv.h, included from gio/gionetworkingprivate.h
>
> It doesn't show up in my SL build from today. I can't see from
> configure why it would pick it up for your build but not for mine.
> Search for lresolv in configure and config.log; maybe you can see why
> it's getting picked up on yours.
>
> Regards,
> John Ralls
>
> _______________________________________________
> gtk-devel-list mailing list
> gtk-devel-list@...
> http://mail.gnome.org/mailman/listinfo/gtk-devel-list

_______________________________________________
gtk-devel-list mailing list
gtk-devel-list@...
http://mail.gnome.org/mailman/listinfo/gtk-devel-list

Re: error building git head GTK on OS X ... IM symbols missing etc.

by Kristian Rietveld-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Oct 27, 2009, at 5:25 PM, Shawn Bakhtiar wrote:
> libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -I.. -DG_LOG_DOMAIN=
> \"GLib\" -DG_DISABLE_CAST_CHECKS -DG_DISABLE_DEPRECATED -
> DGLIB_COMPILATION -DPCRE_STATIC -I/Users/sbakhtiar/gtk/inst/include -
> DG_DISABLE_SINGLE_INCLUDES -D_REENTRANT -g -O2 -Wall -MT gatomic.lo -
> MD -MP -MF .deps/gatomic.Tpo -c gatomic.c  -fno-common -DPIC -
> o .libs/gatomic.o
> /var/folders/8i/8iPY4ZafEpezLgvmjxSKSU+++TY/-Tmp-//ccNq7o6P.s:
> 103:Incorrect register `%rdx' used with `l' suffix

Ah yes, I think I have stumbled on this as well.  This is probably  
caused because the default jhbuildrc for the Mac forces a build for  
the 486:

# When building on intel, force build to be 486, since glib won't
# enable asm atomic operations otherwise.
#
try:
     _f = os.popen("uname -p")
     if _f.read().startswith("i386"):
     append_autogenargs("glib", "--build=i486-apple-darwin")

I changed the last line to:

      append_autogenargs("glib", "--build=x86_64-apple-darwin")

And that fixed it for me.   (If you have a Mac with a Core2 processor,  
the user land will be in 64-bit in Snow Leopard).


regards,

-kris.
_______________________________________________
gtk-devel-list mailing list
gtk-devel-list@...
http://mail.gnome.org/mailman/listinfo/gtk-devel-list

Re: error building git head GTK on OS X ... IM symbols missing etc.

by John Ralls-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


On Oct 27, 2009, at 2:06 AM, Kristian Rietveld wrote:

> On Tue, Oct 27, 2009 at 1:50 AM, Paul Davis <paul@...
> > wrote:
>> just tried a jhbuild of gtk on OS X (tiger). things went well until  
>> it
>> got to the link stage in the input methods code. i got a large number
>> of messages of this form, one for each (every?) IM module:
>>
>> does anybody have any clues what this might be? the missing symbol is
>> always _res_9_init
>
> See bug 586510.   It appears that on Tiger we need to explicitly link
> against libresolv, this is not needed on Leopard and higher.  I also
> reported this when I ran into it (bug 590482), there seems to be a
> patch which has not been reviewed yet.  Unless the GLib maintainers
> object I will review and commit a patch for this then :)

For the record, 586150.

Looks like Paul and Dan Winship have taken up the matter there.

Regards,
John Ralls

_______________________________________________
gtk-devel-list mailing list
gtk-devel-list@...
http://mail.gnome.org/mailman/listinfo/gtk-devel-list

RE: error building git head GTK on OS X ... IM symbols missing etc.

by sbaka :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.


Yep. That fixed it.

For some reason I still had to download and install libiconv before I can run phase 2 of the meta-gtk-osx-core, when building glib it complains using header without any libraries present?

Also, the script crashes out on the freetype module. gzip complains about a bad file. I downloaded the same version from the website, but now it won't compile with "do not know how to make start".

I don't have any more time for this today... but I will keep cranking and reporting here.

Thanks for all the help.


i'm EMAILING FOR THE GREATER GOOD
Join me


> Subject: Re: error building git head GTK on OS X ... IM symbols missing etc.
> From: kris@...
> Date: Tue, 27 Oct 2009 17:31:03 +0100
> CC: jralls@...; gtk-devel-list@...
> To: shashaness@...
>
> On Oct 27, 2009, at 5:25 PM, Shawn Bakhtiar wrote:
> > libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -I.. -DG_LOG_DOMAIN=
> > \"GLib\" -DG_DISABLE_CAST_CHECKS -DG_DISABLE_DEPRECATED -
> > DGLIB_COMPILATION -DPCRE_STATIC -I/Users/sbakhtiar/gtk/inst/include -
> > DG_DISABLE_SINGLE_INCLUDES -D_REENTRANT -g -O2 -Wall -MT gatomic.lo -
> > MD -MP -MF .deps/gatomic.Tpo -c gatomic.c -fno-common -DPIC -
> > o .libs/gatomic.o
> > /var/folders/8i/8iPY4ZafEpezLgvmjxSKSU+++TY/-Tmp-//ccNq7o6P.s:
> > 103:Incorrect register `%rdx' used with `l' suffix
>
> Ah yes, I think I have stumbled on this as well. This is probably
> caused because the default jhbuildrc for the Mac forces a build for
> the 486:
>
> # When building on intel, force build to be 486, since glib won't
> # enable asm atomic operations otherwise.
> #
> try:
> _f = os.popen("uname -p")
> if _f.read().startswith("i386"):
> append_autogenargs("glib", "--build=i486-apple-darwin")
>
> I changed the last line to:
>
> append_autogenargs("glib", "--build=x86_64-apple-darwin")
>
> And that fixed it for me. (If you have a Mac with a Core2 processor,
> the user land will be in 64-bit in Snow Leopard).
>
>
> regards,
>
> -kris.

_______________________________________________
gtk-devel-list mailing list
gtk-devel-list@...
http://mail.gnome.org/mailman/listinfo/gtk-devel-list

RE: error building git head GTK on OS X ... IM symbols missing etc.

by sbaka :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.


rm -rf  the freetype-2.3.11 files from both gtk/source/pkgs and /gtk/source

re-run jhbuild build meta-gtk-osx-core

its working.


i'm EMAILING FOR THE GREATER GOOD
Join me



From: shashaness@...
To: kris@...
Subject: RE: error building git head GTK on OS X ... IM symbols missing etc.
Date: Tue, 27 Oct 2009 13:40:40 -0400
CC: gtk-devel-list@...



Yep. That fixed it.

For some reason I still had to download and install libiconv before I can run phase 2 of the meta-gtk-osx-core, when building glib it complains using header without any libraries present?

Also, the script crashes out on the freetype module. gzip complains about a bad file. I downloaded the same version from the website, but now it won't compile with "do not know how to make start".

I don't have any more time for this today... but I will keep cranking and reporting here.

Thanks for all the help.


i'm EMAILING FOR THE GREATER GOOD
Join me


> Subject: Re: error building git head GTK on OS X ... IM symbols missing etc.
> From: kris@...
> Date: Tue, 27 Oct 2009 17:31:03 +0100
> CC: jralls@...; gtk-devel-list@...
> To: shashaness@...
>
> On Oct 27, 2009, at 5:25 PM, Shawn Bakhtiar wrote:
> > libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -I.. -DG_LOG_DOMAIN=
> > \"GLib\" -DG_DISABLE_CAST_CHECKS -DG_DISABLE_DEPRECATED -
> > DGLIB_COMPILATION -DPCRE_STATIC -I/Users/sbakhtiar/gtk/inst/include -
> > DG_DISABLE_SINGLE_INCLUDES -D_REENTRANT -g -O2 -Wall -MT gatomic.lo -
> > MD -MP -MF .deps/gatomic.Tpo -c gatomic.c -fno-common -DPIC -
> > o .libs/gatomic.o
> > /var/folders/8i/8iPY4ZafEpezLgvmjxSKSU+++TY/-Tmp-//ccNq7o6P.s:
> > 103:Incorrect register `%rdx' used with `l' suffix
>
> Ah yes, I think I have stumbled on this as well. This is probably
> caused because the default jhbuildrc for the Mac forces a build for
> the 486:
>
> # When building on intel, force build to be 486, since glib won't
> # enable asm atomic operations otherwise.
> #
> try:
> _f = os.popen("uname -p")
> if _f.read().startswith("i386"):
> append_autogenargs("glib", "--build=i486-apple-darwin")
>
> I changed the last line to:
>
> append_autogenargs("glib", "--build=x86_64-apple-darwin")
>
> And that fixed it for me. (If you have a Mac with a Core2 processor,
> the user land will be in 64-bit in Snow Leopard).
>
>
> regards,
>
> -kris.

_______________________________________________
gtk-devel-list mailing list
gtk-devel-list@...
http://mail.gnome.org/mailman/listinfo/gtk-devel-list

RE: error building git head GTK on OS X ... IM symbols missing etc.

by sbaka :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.



Success!

I had to manually edit the ige-mac-integration's Makefile in the src directory and delete -Werror.

I still have to build libglade and mysql before I can build my app and test.


i'm EMAILING FOR THE GREATER GOOD
Join me



From: shashaness@...
To: kris@...
Subject: RE: error building git head GTK on OS X ... IM symbols missing etc.
Date: Tue, 27 Oct 2009 15:52:02 -0400
CC: gtk-devel-list@...



rm -rf  the freetype-2.3.11 files from both gtk/source/pkgs and /gtk/source

re-run jhbuild build meta-gtk-osx-core

its working.


i'm EMAILING FOR THE GREATER GOOD
Join me



From: shashaness@...
To: kris@...
Subject: RE: error building git head GTK on OS X ... IM symbols missing etc.
Date: Tue, 27 Oct 2009 13:40:40 -0400
CC: gtk-devel-list@...



Yep. That fixed it.

For some reason I still had to download and install libiconv before I can run phase 2 of the meta-gtk-osx-core, when building glib it complains using header without any libraries present?

Also, the script crashes out on the freetype module. gzip complains about a bad file. I downloaded the same version from the website, but now it won't compile with "do not know how to make start".

I don't have any more time for this today... but I will keep cranking and reporting here.

Thanks for all the help.


i'm EMAILING FOR THE GREATER GOOD
Join me


> Subject: Re: error building git head GTK on OS X ... IM symbols missing etc.
> From: kris@...
> Date: Tue, 27 Oct 2009 17:31:03 +0100
> CC: jralls@...; gtk-devel-list@...
> To: shashaness@...
>
> On Oct 27, 2009, at 5:25 PM, Shawn Bakhtiar wrote:
> > libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -I.. -DG_LOG_DOMAIN=
> > \"GLib\" -DG_DISABLE_CAST_CHECKS -DG_DISABLE_DEPRECATED -
> > DGLIB_COMPILATION -DPCRE_STATIC -I/Users/sbakhtiar/gtk/inst/include -
> > DG_DISABLE_SINGLE_INCLUDES -D_REENTRANT -g -O2 -Wall -MT gatomic.lo -
> > MD -MP -MF .deps/gatomic.Tpo -c gatomic.c -fno-common -DPIC -
> > o .libs/gatomic.o
> > /var/folders/8i/8iPY4ZafEpezLgvmjxSKSU+++TY/-Tmp-//ccNq7o6P.s:
> > 103:Incorrect register `%rdx' used with `l' suffix
>
> Ah yes, I think I have stumbled on this as well. This is probably
> caused because the default jhbuildrc for the Mac forces a build for
> the 486:
>
> # When building on intel, force build to be 486, since glib won't
> # enable asm atomic operations otherwise.
> #
> try:
> _f = os.popen("uname -p")
> if _f.read().startswith("i386"):
> append_autogenargs("glib", "--build=i486-apple-darwin")
>
> I changed the last line to:
>
> append_autogenargs("glib", "--build=x86_64-apple-darwin")
>
> And that fixed it for me. (If you have a Mac with a Core2 processor,
> the user land will be in 64-bit in Snow Leopard).
>
>
> regards,
>
> -kris.

_______________________________________________
gtk-devel-list mailing list
gtk-devel-list@...
http://mail.gnome.org/mailman/listinfo/gtk-devel-list