Re: error building mozilla-- cannot find -lglib

2002-09-26 Thread Mark J. Miller

Found it-- /usr/ports/www/mozilla/work/mozilla/config/autoconf.mk.  There
are several macro definitions for -lglib12, but LIBIDL_LIBS is defined to
include -lglib.

I haven't investigated this further to figure out where this should have
been set (ie, if it's a patch problem or a configure problem), but the
build just progressed past the xpidl stage where it was failing before.  I
will let you know if it builds successfully, and if you want me to do any
more tests I'd be glad to do so if it would help the porting process.

Thanks for all your help,
Mark

On 25 Sep 2002, Joe Marcus Clarke wrote:

On Sat, 2002-09-21 at 02:49, Mark J. Miller wrote:


  Somehow your Mozilla is being configured incorrectly.  Make sure your
  /usr/ports/Mk directory is up-to-date, then do a make clean in the
  mozilla directory, and try to rebuild.  It shouldn't be looking for
  -lglib, but rather -lglib12.
 
 This is handled by the glib12-config script (installed as part of
 glib12).  What does glib12-config --libs report?  What revision of
 /usr/ports/Mk/bsd.port.mk do you have?

 % glib12-config --libs
 -L/usr/local/lib -lglib12

 I did a 'locate glib| grep config' and found another binary called
 glib-config in /usr/local/bin.  The version it reported was 1.2.8, while
 glib12-config reports 1.2.10 .  I removed the old binary, ran a make clean
 install again, but got the same error.

 The version of /usr/ports/Mk/bsd.port.mk is
 # $FreeBSD: ports/Mk/bsd.port.mk,v 1.424 2002/09/19 00:16:39 kris Exp $

 I should note that earlier I had a problem with libIDL which I've just
 come across again:

 cc -o xpidl.o -c -DOSTYPE=\FreeBSD4\ -DOSARCH=\FreeBSD\ -DOJI
 -I../../../dist/include/xpcom -I../../../dist/include
 -I/usr/ports/www/mozilla/work/mozilla/dist/include/nspr
 -I/usr/local/include -I/usr/local/include -I/usr/X11R6/include -fPIC
 -I/usr/X11R6/include -I/usr/X11R6/include -Wall -W -Wno-unused
 -Wpointer-arith -Wcast-align -Wno-long-long -O -pipe -march=pentiumpro
 -pipe -DNDEBUG -DTRIMMED -ffunction-sections -I/usr/local/include/glib12
 -I/usr/local/include/orbit-1.0 -I/usr/local/include -I/usr/X11R6/include
 -I/usr/X11R6/include -include ../../../config-defs.h -DMOZILLA_CLIENT
 xpidl.c
 In file included from xpidl.c:42:
  xpidl.h:53: libIDL/IDL.h: No such file or directory

 To get around this, I installed libIDL, which had a dependency on glib20.
 This did solve the IDL problem.  After seeing the glib problem, I did a
 pkg_delete -f on glib20, reinstalled glib12, and got the same error I have
 now (can't find -lglib).  I don't think this would have any effect (I'm
 doing make clean install each time), but am I missing something?  Should
 mozilla have its own version of IDL?

It should.  I have not seen this error previously.  The only other user
I can recall that had this problem symlinked libglib12.so to
libglib.so.  However, this might not solve the libIDL problem.


 Here are the lines from the build process that have to do with glib:
 ===  Cleaning for glib-1.2.10_7
 ===   mozilla-1.0.1,2 depends on shared library: glib12.3 - found
 checking for glib-config... /usr/local/bin/glib12-config
 checking for GLIB - version = 1.2.0... yes

 It seems like config is detecting the correct version, but it's still
 using -lglib, not -lglib12 as you mentioned.

Can you hunt through the makefiles to see which one has the -lglib and
figure out where it's coming from?  It might help to determine why this
is happening.

Joe


 Thanks for your continuing help,
 Mark


--
PGP Key : http://www.marcuscom.com/pgp.asc




To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Re: error building mozilla-- cannot find -lglib

2002-09-25 Thread Joe Marcus Clarke

On Sat, 2002-09-21 at 02:49, Mark J. Miller wrote:
 
 
  Somehow your Mozilla is being configured incorrectly.  Make sure your
  /usr/ports/Mk directory is up-to-date, then do a make clean in the
  mozilla directory, and try to rebuild.  It shouldn't be looking for
  -lglib, but rather -lglib12.
 
 This is handled by the glib12-config script (installed as part of
 glib12).  What does glib12-config --libs report?  What revision of
 /usr/ports/Mk/bsd.port.mk do you have?
 
 % glib12-config --libs
 -L/usr/local/lib -lglib12
 
 I did a 'locate glib| grep config' and found another binary called
 glib-config in /usr/local/bin.  The version it reported was 1.2.8, while
 glib12-config reports 1.2.10 .  I removed the old binary, ran a make clean
 install again, but got the same error.
 
 The version of /usr/ports/Mk/bsd.port.mk is
 # $FreeBSD: ports/Mk/bsd.port.mk,v 1.424 2002/09/19 00:16:39 kris Exp $
 
 I should note that earlier I had a problem with libIDL which I've just
 come across again:
 
 cc -o xpidl.o -c -DOSTYPE=\FreeBSD4\ -DOSARCH=\FreeBSD\ -DOJI
 -I../../../dist/include/xpcom -I../../../dist/include
 -I/usr/ports/www/mozilla/work/mozilla/dist/include/nspr
 -I/usr/local/include -I/usr/local/include -I/usr/X11R6/include -fPIC
 -I/usr/X11R6/include -I/usr/X11R6/include -Wall -W -Wno-unused
 -Wpointer-arith -Wcast-align -Wno-long-long -O -pipe -march=pentiumpro
 -pipe -DNDEBUG -DTRIMMED -ffunction-sections -I/usr/local/include/glib12
 -I/usr/local/include/orbit-1.0 -I/usr/local/include -I/usr/X11R6/include
 -I/usr/X11R6/include -include ../../../config-defs.h -DMOZILLA_CLIENT
 xpidl.c
 In file included from xpidl.c:42:
   xpidl.h:53: libIDL/IDL.h: No such file or directory
 
 To get around this, I installed libIDL, which had a dependency on glib20.
 This did solve the IDL problem.  After seeing the glib problem, I did a
 pkg_delete -f on glib20, reinstalled glib12, and got the same error I have
 now (can't find -lglib).  I don't think this would have any effect (I'm
 doing make clean install each time), but am I missing something?  Should
 mozilla have its own version of IDL?

It should.  I have not seen this error previously.  The only other user
I can recall that had this problem symlinked libglib12.so to
libglib.so.  However, this might not solve the libIDL problem.

 
 Here are the lines from the build process that have to do with glib:
 ===  Cleaning for glib-1.2.10_7
 ===   mozilla-1.0.1,2 depends on shared library: glib12.3 - found
 checking for glib-config... /usr/local/bin/glib12-config
 checking for GLIB - version = 1.2.0... yes
 
 It seems like config is detecting the correct version, but it's still
 using -lglib, not -lglib12 as you mentioned.

Can you hunt through the makefiles to see which one has the -lglib and
figure out where it's coming from?  It might help to determine why this
is happening.

Joe

 
 Thanks for your continuing help,
 Mark
 
 
-- 
PGP Key : http://www.marcuscom.com/pgp.asc


To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Re: error building mozilla-- cannot find -lglib

2002-09-21 Thread Mark J. Miller



 Somehow your Mozilla is being configured incorrectly.  Make sure your
 /usr/ports/Mk directory is up-to-date, then do a make clean in the
 mozilla directory, and try to rebuild.  It shouldn't be looking for
 -lglib, but rather -lglib12.

This is handled by the glib12-config script (installed as part of
glib12).  What does glib12-config --libs report?  What revision of
/usr/ports/Mk/bsd.port.mk do you have?

% glib12-config --libs
-L/usr/local/lib -lglib12

I did a 'locate glib| grep config' and found another binary called
glib-config in /usr/local/bin.  The version it reported was 1.2.8, while
glib12-config reports 1.2.10 .  I removed the old binary, ran a make clean
install again, but got the same error.

The version of /usr/ports/Mk/bsd.port.mk is
# $FreeBSD: ports/Mk/bsd.port.mk,v 1.424 2002/09/19 00:16:39 kris Exp $

I should note that earlier I had a problem with libIDL which I've just
come across again:

cc -o xpidl.o -c -DOSTYPE=\FreeBSD4\ -DOSARCH=\FreeBSD\ -DOJI
-I../../../dist/include/xpcom -I../../../dist/include
-I/usr/ports/www/mozilla/work/mozilla/dist/include/nspr
-I/usr/local/include -I/usr/local/include -I/usr/X11R6/include -fPIC
-I/usr/X11R6/include -I/usr/X11R6/include -Wall -W -Wno-unused
-Wpointer-arith -Wcast-align -Wno-long-long -O -pipe -march=pentiumpro
-pipe -DNDEBUG -DTRIMMED -ffunction-sections -I/usr/local/include/glib12
-I/usr/local/include/orbit-1.0 -I/usr/local/include -I/usr/X11R6/include
-I/usr/X11R6/include -include ../../../config-defs.h -DMOZILLA_CLIENT
xpidl.c
In file included from xpidl.c:42:
xpidl.h:53: libIDL/IDL.h: No such file or directory

To get around this, I installed libIDL, which had a dependency on glib20.
This did solve the IDL problem.  After seeing the glib problem, I did a
pkg_delete -f on glib20, reinstalled glib12, and got the same error I have
now (can't find -lglib).  I don't think this would have any effect (I'm
doing make clean install each time), but am I missing something?  Should
mozilla have its own version of IDL?

Here are the lines from the build process that have to do with glib:
===  Cleaning for glib-1.2.10_7
===   mozilla-1.0.1,2 depends on shared library: glib12.3 - found
checking for glib-config... /usr/local/bin/glib12-config
checking for GLIB - version = 1.2.0... yes

It seems like config is detecting the correct version, but it's still
using -lglib, not -lglib12 as you mentioned.

Thanks for your continuing help,
Mark


To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Re: error building mozilla-- cannot find -lglib

2002-09-20 Thread Adam Weinberger

when was the last time you updated your ports tree?

-Adam


 (09.20.2002 @ 1343 PST): Mark Miller said, in 1.6K: 
 Hi,
 
 I'm trying to build mozilla from ports and I get the following error:
 
 gmake[4]: Entering directory 
`/usr/ports/www/mozilla/work/mozilla/xpcom/typelib/xpidl'
 
 cc -o xpidl -I/usr/X11R6/include -I/usr/X11R6/include -Wall -W -Wno-unused
 -Wpointer-arith -Wcast-alig n -Wno-long-long -O -pipe -march=pentiumpro
 -pipe -DNDEBUG -DTRIMMED -ffunction-sections -I/usr/local/ include/glib12
 -I/usr/local/include/orbit-1.0 -I/usr/local/include xpidl.o xpidl_idl.o
 xpidl_util.o xp idl_header.o xpidl_typelib.o xpidl_doc.o xpidl_java.o
 -L../../../dist/bin -L../../../dist/lib ../../.  ./dist/lib/libxpt.a
 -L/usr/local/lib -lIDL -lglib -lm
 /usr/libexec/elf/ld: cannot find -lglib
 gmake[4]: *** [xpidl] Error 1
 gmake[4]: Leaving directory
 `/usr/ports/www/mozilla/work/mozilla/xpcom/typelib/xpidl'
 gmake[3]: *** [export] Error 2
 gmake[3]: Leaving directory
 `/usr/ports/www/mozilla/work/mozilla/xpcom/typelib'
 gmake[2]: *** [export] Error 2
 gmake[2]: Leaving directory `/usr/ports/www/mozilla/work/mozilla/xpcom'
 gmake[1]: *** [tier_9] Error 2
 gmake[1]: Leaving directory `/usr/ports/www/mozilla/work/mozilla'
 gmake: *** [default] Error 2
 *** Error code 2
 
 I deleted and then reinstalled glib via ports, and ran ldconfig -R to
 update the hints file.  Here's what my system looks like now:
 
 % ldconfig -r |grep glib
 303:-lglib12.3 = /usr/local/lib/libglib12.so.3
 % ls -l /usr/local/lib/libglib12.so.3
 -rwxr-xr-x  1 root  wheel  163973 Sep 19 20:45 /usr/local/lib/libglib12.so.3*
 
 Why would ld be unable to find glib?  Is there something I'm doing wrong?
 
 Thanks,
 Mark
 
 
 To Unsubscribe: send mail to [EMAIL PROTECTED]
 with unsubscribe freebsd-questions in the body of the message
 
 end of error building mozilla-- cannot find -lglib from Mark Miller 


--
Oh good, my dog found the chainsaw.
-Lilo, Lilo  Stitch
Adam Weinberger
[EMAIL PROTECTED]
http://vectors.cx


To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Re: error building mozilla-- cannot find -lglib

2002-09-20 Thread Joe Marcus Clarke

On Fri, 2002-09-20 at 16:43, Mark Miller wrote:
 Hi,
 
 I'm trying to build mozilla from ports and I get the following error:
 
 gmake[4]: Entering directory 
`/usr/ports/www/mozilla/work/mozilla/xpcom/typelib/xpidl'
 
 cc -o xpidl -I/usr/X11R6/include -I/usr/X11R6/include -Wall -W -Wno-unused
 -Wpointer-arith -Wcast-alig n -Wno-long-long -O -pipe -march=pentiumpro
 -pipe -DNDEBUG -DTRIMMED -ffunction-sections -I/usr/local/ include/glib12
 -I/usr/local/include/orbit-1.0 -I/usr/local/include xpidl.o xpidl_idl.o
 xpidl_util.o xp idl_header.o xpidl_typelib.o xpidl_doc.o xpidl_java.o
 -L../../../dist/bin -L../../../dist/lib ../../.  ./dist/lib/libxpt.a
 -L/usr/local/lib -lIDL -lglib -lm
 /usr/libexec/elf/ld: cannot find -lglib
 gmake[4]: *** [xpidl] Error 1
 gmake[4]: Leaving directory
 `/usr/ports/www/mozilla/work/mozilla/xpcom/typelib/xpidl'
 gmake[3]: *** [export] Error 2
 gmake[3]: Leaving directory
 `/usr/ports/www/mozilla/work/mozilla/xpcom/typelib'
 gmake[2]: *** [export] Error 2
 gmake[2]: Leaving directory `/usr/ports/www/mozilla/work/mozilla/xpcom'
 gmake[1]: *** [tier_9] Error 2
 gmake[1]: Leaving directory `/usr/ports/www/mozilla/work/mozilla'
 gmake: *** [default] Error 2
 *** Error code 2
 
 I deleted and then reinstalled glib via ports, and ran ldconfig -R to
 update the hints file.  Here's what my system looks like now:
 
 % ldconfig -r |grep glib
 303:-lglib12.3 = /usr/local/lib/libglib12.so.3
 % ls -l /usr/local/lib/libglib12.so.3
 -rwxr-xr-x  1 root  wheel  163973 Sep 19 20:45 /usr/local/lib/libglib12.so.3*
 
 Why would ld be unable to find glib?  Is there something I'm doing wrong?

Somehow your Mozilla is being configured incorrectly.  Make sure your
/usr/ports/Mk directory is up-to-date, then do a make clean in the
mozilla directory, and try to rebuild.  It shouldn't be looking for
-lglib, but rather -lglib12.

Joe

 
 Thanks,
 Mark
 
 
 To Unsubscribe: send mail to [EMAIL PROTECTED]
 with unsubscribe freebsd-questions in the body of the message
 
-- 
PGP Key : http://www.marcuscom.com/pgp.asc


To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Re: error building mozilla-- cannot find -lglib

2002-09-20 Thread Joe Marcus Clarke

On Fri, 2002-09-20 at 18:30, Mark J. Miller wrote:
  Why would ld be unable to find glib?  Is there something I'm doing wrong?
 
 Somehow your Mozilla is being configured incorrectly.  Make sure your
 /usr/ports/Mk directory is up-to-date, then do a make clean in the
 mozilla directory, and try to rebuild.  It shouldn't be looking for
 -lglib, but rather -lglib12.
 
 Joe
 
 I just re-cvsup'ed and tried it again (make clean install), same error--
 can't find -lglib.  How do I change it to specify glib12?

This is handled by the glib12-config script (installed as part of
glib12).  What does glib12-config --libs report?  What revision of
/usr/ports/Mk/bsd.port.mk do you have?

Joe

 
 Thanks,
 Mark
 
 
-- 
PGP Key : http://www.marcuscom.com/pgp.asc



signature.asc
Description: This is a digitally signed message part