Howdy.. I am building * on a barebones server, running just the minimum config (no X, etc..) when I build, I get this error, and I'm trying to track it down. Has anyone ran into this before or have a general idea? gcc -shared -Xlinker -x -o pbx_gtkconsole.so pbx_gtkconsole.o `gtk-config --libs gthread` /usr/i386-slackware-linux/bin/ld: cannot find -lXext collect2: ld returned 1 exit status make[1]: *** [pbx_gtkconsole.so] Error 1 Thx, cj
Tilghman Lesher
2004-Feb-17 09:19 UTC
[Asterisk-Users] cannot find -lXext when building * ?
On Monday 16 February 2004 20:07, C. Johnson wrote:> Howdy.. I am building * on a barebones server, > running just the minimum config (no X, etc..) > when I build, I get this error, and I'm trying to > track it down. Has anyone ran into this before or > have a general idea? > > gcc -shared -Xlinker -x -o pbx_gtkconsole.so > pbx_gtkconsole.o `gtk-config --libs gthread` > /usr/i386-slackware-linux/bin/ld: cannot find > -lXext > collect2: ld returned 1 exit status > make[1]: *** [pbx_gtkconsole.so] Error 1You have GTK installed, but not X? If you don't intend to run X applications on the server, then deinstall GTK (as the X libraries are required to run GTK apps). -Tilghman
As Tilghman indicated X is definitely not required to build Asterisk, we run RH9 without any X related packages installed and it compiles and runs perfectly. -----Original Message----- From: Brian Capouch [mailto:brianc@palaver.net] Sent: 17 February 2004 19:17 To: asterisk-users@lists.digium.com Subject: Re: [Asterisk-Users] cannot find -lXext when building * ? Tilghman Lesher wrote:> > > You have GTK installed, but not X? If you don't intend to > run X applications on the server, then deinstall GTK (as the > X libraries are required to run GTK apps). >This leads to a question that has been bugging us for a while. Is X required to build asterisk? When we tried to do so on machines that didn't have any X libraries installed, we would get errors at link time building pbx.c If we removed the lines that called for those libraries, asterisk would build, but then other weirdnesses would ensue and we finally just started installing the X libraries even though we will never run X on those boxes (low-end servers talking to one or two channels). Could anyone comment on "the right way to do it?" It's got to be either me or the code :-) Thx. b. _______________________________________________ Asterisk-Users mailing list Asterisk-Users@lists.digium.com http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users ********* DISCLAIMER ********* This message and any attachment are confidential and may be privileged or otherwise protected from disclosure and may include proprietary information. If you are not the intended recipient, please telephone or email the sender and delete this message and any attachment from your system. If you are not the intended recipient you must not copy this message or attachment or disclose the contents to any other person