Solaris / OpenSolarisThis forum is for the discussion of Solaris, OpenSolaris, OpenIndiana, and illumos.
General Sun, SunOS and Sparc related questions also go here. Any Solaris fork or distribution is welcome.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Alright.. this is a cry for help here. I'm having two problems for the past week that have been driving me mad. I've been having alot of trouble compilng certain applications in Solaris 10.. PArticularely two which give me a hell of alot of common problems.
The errors i get are similar to
Code:
ds -lwx_base-2.6 -lwx_base_net-2.6 -lz -lresolv -lnsl -lbfd -liberty -lgen
Undefined first referenced
symbol in file
nanosleep amuled-AICHSyncThread.o (symbol belongs to implicit dependency /usr/lib/librt.so.1)
ld: fatal: Symbol referencing errors. No output written to amuled
collect2: ld returned 1 exit status
make[3]: *** [amuled] Error 1
make[3]: Leaving directory `
or
Code:
Undefined first referenced
symbol in file
XParseGeometry amule-amule-gui.o (symbol belongs to implic it dependency /usr/lib/libX11.so.4)
ld: fatal: Symbol referencing errors. No output written to amule
collect2: ld returned 1 exit status
I've googled alot about this, but the two answers i got either say that i should use GNU's ld (which i am), or to add something to the makefile which i couldn't really figure out. Heck i don't even know why i'm getting this problem in the first place..
Another problem i'm getting is when i'm trying to compile wxWindows (wxGTK 2.6.0) with GTK2 support. I am absolutely certain i have GTK2 installed. I asked in an irc chat for some help, everything they asked me to do showed that i have GTK2 installed, and that it should work.. but it just doesn't.. When i ./configure , i get this
Code:
checking for GTK+ - version >= 2.0.0... no
*** Could not run GTK+ test program, checking why...
*** The test program failed to compile or link. See the file config.log for the
*** exact error that occured. This usually means GTK+ is incorrectly installed.
configure: error:
The development files for GTK+ were not found. For GTK+ 2, please
ensure that pkg-config is in the path and that gtk+-2.0.pc is
installed. For GTK+ 1.2 please check that gtk-config is in the path,
and that the version is 1.2.3 or above. Also check that the
libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config
--libs' are in the LD_LIBRARY_PATH or equivalent.
Ii know for a fact that GTK2 is installed, along with the devl package,
Code:
root@yooniks:/download/wxGTK-2.6.0# pkginfo | grep gtk
system CSWgtk gtk - the Gimp ToolKit library, libgtk
application CSWgtk2 gtk2 - GTK+, The GIMP Toolkit
application CSWgtkspell gtkspell - Spell checking enhancement for the GtkTextView widget
If you check the config.log file, you will see that when it checks for GTK2 and fails, the reason for failing is not the absence of GTK2, is that in the compilation command of the test program, there is an "unknown option m" specified. Searching in google, I found that seems to be a thread model in some architecture/OS, but in solaris should be pthread instead of m, so that's the failure (at least on my system, YMMV) that could be a start point for your investigation on this GTK2 issue.
I'm really confused here.. The two problems are holding me back, and i don't know where to start.. Any help would be greatly appreciated.
From your message, it appears that you were trying to use the copy of GTK+, that you installed under /opt/csw. But from the log, it appears that the make system is trying to use another copy of GTK+, that it found under /usr/lib Or /opt/sfw. So, make sure to point it to the correct version (ie., version of your choice) of the library. Also if there is a choice to disable the gtk+ test, disable it during configure; and you can fix it later with run-time linker's search path, LD_LIBRARY_PATH
Originally posted by technopark02 From your message, it appears that you were trying to use the copy of GTK+, that you installed under /opt/csw. But from the log, it appears that the make system is trying to use another copy of GTK+, that it found under /usr/lib Or /opt/sfw.
Could it be that it's getting confused between CSWgtk and CSWgtk2 ?
Quote:
So, make sure to point it to the correct version (ie., version of your choice) of the library.
On a side note, to compile it and link it against GTK2, i'm using the following
./configure --prefix=/usr --with-gtk --enable-unicode --disable-compat24 --enable-optimise && make
Ok thanks for the info, it made a few things more clear, but still i have the same problem.. bare with me, and tell me if i'm doing anything wrong =)
Quote:
Originally posted by technopark02 From your message, it appears that you were trying to use the copy of GTK+, that you installed under /opt/csw. But from the log, it appears that the make system is trying to use another copy of GTK+, that it found under /usr/lib Or /opt/sfw.
Ok, i've gone through my system again, I found SUNWGtk which i didn;t know i had before, and i killed it.
Also if there is a choice to disable the gtk+ test, disable it during configure; and you can fix it later with run-time linker's search path, LD_LIBRARY_PATH
Configured wxWidgets 2.6.0 for `sparc-sun-solaris2.10'
Which GUI toolkit should wxWidgets use? GTK+ 2
Should wxWidgets be compiled into single library? no
Should wxWidgets be compiled in debug mode? no
Should wxWidgets be linked as a shared library? yes
Should wxWidgets be compiled in Unicode mode? yes
What level of wxWidgets compatibility should be enabled?
wxWidgets 2.2 no
wxWidgets 2.4 no
Which libraries should wxWidgets use?
jpeg sys
png sys
regex builtin
tiff sys
zlib sys
odbc no
expat sys
libmspack no
sdl no
gnomeprint no
And a nasty error not even 0.1 seconds through the compilation
I did (on x86), and in the very first attempt it picked up "motif" for the toolkit. Since the problem is with GTK, then I tried "configure --with-gtk". It is able to configure it properly, but in my case it failed during the compilation of some file. I didn't bother to fix the compilation issue, as I was just trying to reproduce the problem (the compilation issue is easy to fix, I believe).
If you still see the problem in your environment with "configure" and "configure --with-gtk", try to configure with "--with-gtk --with-gtk-prefix=/opt/csw" options. You can add the rest of the options, if it succeeds.
_____
Note:
Irrespective of the OS, it is always good to have only one "clean" copy of the libraries. So, uninstall the unwanted copies of the same library.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.