SlackwareThis Forum is for the discussion of Slackware Linux.
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.
thanks for the replies. I think I have figured out the problem, but havent got a solution yet. Between my last post and now I downloaded libXpm, compiled it, made a package and installed it. However, that only got me to a 'cant find -lX11' error.
I have since removpkg'd my libXpm creation, because I see now I do have the libXpm.so.4 files that are working for others (thanks @ jowa45)
My advice would be to look at the libgeda stuff again, and if it has no ./configure, think about getting a new ISO image that has one, or look into where you got libgeda from - it may need to be autoconf'd (think SVN or CVS source checkouts) to generate that file.
For completeness, the commands as requested returned (on slamd64, so lib64 == lib):
Code:
psartain@pes0:~$ ls -l /usr/lib/Xp*
ls: /usr/lib/Xp*: No such file or directory
psartain@pes0:~$ ls -l /usr/lib64/Xp*
ls: /usr/lib64/Xp*: No such file or directory
psartain@pes0:~$ ls -l /usr/X11R6/lib/X11/Xp*
ls: /usr/X11R6/lib/X11/Xp*: No such file or directory
psartain@pes0:~$ ls -l /usr/X11R6/lib64/X11/Xp*
ls: /usr/X11R6/lib64/X11/Xp*: No such file or directory
psartain@pes0:~$ ls /usr/X11R6/lib/libXp*
ls: /usr/X11R6/lib/libXp*: No such file or directory
psartain@pes0:~$ ls /usr/X11R6/lib64/libXp*
/usr/X11R6/lib64/libXp.a /usr/X11R6/lib64/libXpm.so@
/usr/X11R6/lib64/libXp.so@ /usr/X11R6/lib64/libXpm.so.4@
/usr/X11R6/lib64/libXp.so.6@ /usr/X11R6/lib64/libXpm.so.4.11*
/usr/X11R6/lib64/libXp.so.6.2* /usr/X11R6/lib64/libXprintAppUtil.a
/usr/X11R6/lib64/libXpm.a /usr/X11R6/lib64/libXprintUtil.a
No Xpm links, only libXpm. I don't think Xpm is at fault here, since you clearly have it available (you pasted output that was basically identical to mine) ... I'm reckoning on libgeda itself.
libgeda stuff again, and if it has no ./configure, think about getting a new ISO image that has one, or look into where you got libgeda from - it may need to be autoconf'd (think SVN or CVS source checkouts) to generate that file.
libgeda _does_ have ./configure, but libgeda lives inside of gedagaf/ which has no ./configure (IIRC) and so it was the gedagaf/Makefile I was tweaking.
That was also on a 2006 release, I have since d/l'ed the 2007=current release.
this seems odd to me:
Quote:
psartain@pes0:~$ ls -l /usr/X11R6/lib/X11/Xp*
ls: /usr/X11R6/lib/X11/Xp*: No such file or directory
psartain@pes0:~$ ls -l /usr/X11R6/lib64/X11/Xp*
ls: /usr/X11R6/lib64/X11/Xp*: No such file or directory
psartain@pes0:~$ ls /usr/X11R6/lib/libXp*
on my lappy I have Xpm@ in /usr/X11R6/lib/X11
also still disconcerting is that if I copy libXpm.* into /usr/lib then it works (except then it says it can not find X11 libs)
Oooh, ok, I'm starting to get a feeling for what you're doing ... sorry it's taken me so long to engage my brain!
FWIW, I took the dep list (check my script, back a few posts) and then built by hand (i mean: ./configure && make && make install) each one in turn. I didn't even bother with the scripts, just headed straight inside gedagaf to build it. For packaging, simply add DESTDIR to your make install line, then you can package the whole gedagaf-shebang together if you keep the DESTDIR the same for each one.
Quote:
on my lappy I have Xpm@ in /usr/X11R6/lib/X11
That is very odd. I've a stock slack11 install elsewhere, I'll check that later on, but I don't think there is an Xpm there. Could this be a remnant of one of your previous symlinks, as opposed to a link that's installed as part of a package?
Can you confirm that ./configure fails when called directly from libgeda without using the Makefile in gedagaf or setting the environment variables?
I reckon no ... I think it fails when you start setting up the environment variables. However, to be sure, a major variable that'd be nice to check on both before and after you set them is:
Code:
echo $LD_LIBRARY_PATH
LD_LIBRARY_PATH should contain /usr/X11R6/lib somewhere in there, which is why symlinking is a bit redundant ... and the fact it complains about no X11 libraries makes me think that this variable has been borked somewhere along the line.
We'll get to the bottom of this problem I have no doubt, but I'm concerned about your build environment in the long term. I wish i was knowledgable enough to advise you on fixing it good & proper - beyond checking your bash startup scripts and local bash scripts against slack11 stock, however, I've no fantastic one-liner suggestions.
/usr/X11R6/lib somewhere in there, which is why symlinking is a bit redundant ... and the fact it complains about no X11 libraries makes me think that this variable has been borked somewhere along the line.
ah ha! i think you may be right on to something here.. before I set LD_LIBRARY_PATH for gedaenv an echo $LD_LIBRARY_PATH returns a blank line... being so n00bish i simply thought this was a novel variable for the geda libraries...
it must be that $LD_LIBRARY_PATH has been screwed up? where can i check that?
Quote:
./configure && make && make install) each one in turn
right, that is what i'm doing now. and how i'll assemble the whole package.
Quote:
We'll get to the bottom of this problem I have no doubt, but I'm concerned about your build environment in the long term. I wish i was knowledgable enough to advise you on fixing it good & proper - beyond checking your bash startup scripts and local bash scripts against slack11 stock, however, I've no fantastic one-liner suggestions.
i appreciate your effort and candor Piete - and I'll look into the bash script stuff asap.
<+later>
i was just thinking, the only non-stock package i have added to this lappy is xfce-4.4, from linuxpackages.net (xfce-4.4.0-i486-1mht.tgz) is there a chance this package had something to do with my current dilemma?
Today I compiled the latest Geda suite (extracted from iso file) using current Slack. No problem met, all went fine.
I was just about to say that. I've ran into these errors before with various apps using X11R6... What's it's complaining about is that your running X11R6 and not X11R7... I guarantee it. Even if you symlinked to hell and back within /usr, it'll probably still bomb due to missing calls and functions from within various updated X11R7 bits. Your fighting an uphill battle unless you install 7.2.. If your not willing to deal with that, then roll back to an old release and try your luck there.
I've just built some 2006 version with stock slack11, make succeeded.
So, ldconfig says everything is ok. LD_LIBRARY_PATH is empty (same as mine). Yet libraries are not being found ...
It seems to be ok going through ./configure, right? No errors thrown there? It's just on make that libraries located in /usr/X11/lib/ can't be found to compile against.
Just to clarify, you're not using any unconventional build settings like make -j4 or CFLAGS='<some weird stuff>' ./configure ?
Could you just post the steps you take one by one, to make sure we're not missing anything stupidly obvious. Also check your toolchain is ok by looking for glibc, gcc and binutils and making sure the versions correspond with slack11 stock.
Having said that ... are you running 11-stock? Patched? How "clean" was your reinstallation (format/reinstall or "upgradepkg")? Have you cherry-picked any -current packages?
well, i'm _not_ saying you're wrong but i have built this in the same way before, the only difference(s) being I had a full slack install and had also installed dropline gnome.
also at the beginning of this thread (i know its getting looong ) i was compiling and older 2006 release, so I doubt its the X11R6/R7, but I will try that too...
Quote:
latest Geda suite (extracted from iso file) using current Slack
i am still running -11, not current. though if I knew this would work i'd update to -current. but i've read here -curent is not too stable, and this is my 'work' computer, so I can't have it die on me either..
my steps, i show ./configure in its entirety:
Code:
perry@phargrave:/usr/local/src/gEDA/libgeda-20070216$ ./configure
Configuring libgeda version 20070216
checking for a BSD-compatible install... /usr/bin/ginstall -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /usr/bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking for style of include used by make... GNU
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking dependency style of gcc... gcc3
checking for a sed that does not truncate output... /usr/bin/sed
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for ld used by gcc... /usr/i486-slackware-linux/bin/ld
checking if the linker (/usr/i486-slackware-linux/bin/ld) is GNU ld... yes
checking for /usr/i486-slackware-linux/bin/ld option to reload object files... -r
checking for BSD-compatible nm... /usr/bin/nm -B
checking whether ln -s works... yes
checking how to recognise dependent libraries... pass_all
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... gcc3
checking how to run the C++ preprocessor... g++ -E
checking for g77... g77
checking whether we are using the GNU Fortran 77 compiler... yes
checking whether g77 accepts -g... yes
checking the maximum length of command line arguments... 32768
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for objdir... .libs
checking for ar... ar
checking for ranlib... ranlib
checking for strip... strip
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC
checking if gcc PIC flag -fPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking whether the gcc linker (/usr/i486-slackware-linux/bin/ld) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
configure: creating libtool
appending configuration tag "CXX" to libtool
checking for ld used by g++... /usr/i486-slackware-linux/bin/ld
checking if the linker (/usr/i486-slackware-linux/bin/ld) is GNU ld... yes
checking whether the g++ linker (/usr/i486-slackware-linux/bin/ld) supports shared libraries... yes
checking for g++ option to produce PIC... -fPIC
checking if g++ PIC flag -fPIC works... yes
checking if g++ static flag -static works... yes
checking if g++ supports -c -o file.o... yes
checking whether the g++ linker (/usr/i486-slackware-linux/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
appending configuration tag "F77" to libtool
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking for g77 option to produce PIC... -fPIC
checking if g77 PIC flag -fPIC works... yes
checking if g77 static flag -static works... yes
checking if g77 supports -c -o file.o... yes
checking whether the g77 linker (/usr/i486-slackware-linux/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether to enable maintainer-specific portions of Makefiles... no
checking for gcc... (cached) gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ISO C89... (cached) none needed
checking dependency style of gcc... (cached) gcc3
checking how to run the C preprocessor... gcc -E
checking whether make sets $(MAKE)... (cached) yes
checking for guile... /usr/bin/guile
checking for guile-config... /usr/bin/guile-config
checking for guile-tools... /usr/bin/guile-tools
checking libguile compile flags... -pthread
checking libguile link flags... -pthread -lguile -lltdl -L/usr/lib -lgmp -lcrypt -lm -lltdl
checking for guile-config... (cached) /usr/bin/guile-config
checking if scm_eval_x() takes a second module argument... yes
checking for scm_make_smob_type in -lguile... yes
checking for scm_set_smob_mark in -lguile... yes
checking for scm_set_smob_free in -lguile... yes
checking for scm_set_smob_print in -lguile... yes
checking for rint in -lm... yes
checking for dlopen in -ldl... yes
checking for gdlib-config... /usr/bin/gdlib-config
checking for X... libraries /usr/X11R6/lib, headers /usr/X11R6/include
checking whether -R must be followed by a space... neither works
checking for gethostbyname... yes
checking for connect... yes
checking for remove... yes
checking for shmat... yes
checking for IceConnectionNumber in -lICE... yes
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for GTK24... yes
checking for GLIB24... yes
checking for pkg-config... (cached) /usr/bin/pkg-config
checking for GDK... yes
checking for pkg-config... (cached) /usr/bin/pkg-config
checking for GDK_PIXBUF... yes
checking for doxygen... no
** Cannot find Doxygen! **
** Documentation creation disabled **
checking for indent... no
checking for gindent... no
** Cannot find GNU indent or gindent, C code formatting disabled **
checking for ANSI C header files... (cached) yes
checking for sys/wait.h that is POSIX.1 compatible... yes
checking for dirent.h that defines DIR... yes
checking for library containing opendir... none required
checking for unistd.h... (cached) yes
checking for string.h... (cached) yes
checking for stdlib.h... (cached) yes
checking stdarg.h usability... yes
checking stdarg.h presence... yes
checking for stdarg.h... yes
checking assert.h usability... yes
checking assert.h presence... yes
checking for assert.h... yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking errno.h usability... yes
checking errno.h presence... yes
checking for errno.h... yes
checking for optarg in unistd.h... yes
checking for an ANSI C-conforming const... yes
checking return type of signal handlers... void
checking for getcwd... yes
checking for strstr... yes
checking for vsnprintf... yes
checking for snprintf... yes
checking if dmalloc debugging should be enabled... no
checking if ElectricFence debugging should be enabled... no
configure: creating ./config.status
config.status: creating Makefile
config.status: creating src/Makefile
config.status: creating scripts/Makefile
config.status: creating include/Makefile
config.status: creating docs/Makefile
config.status: creating libgeda.pc
config.status: creating share/Makefile
config.status: creating config.h
config.status: executing depfiles commands
** Configuration summary for libgeda 20070216:
GLIB library version: 2.10.3
GTK+ library version: 2.8.20
GUILE library version: 1.8.0
libgd (png output): yes 2.0.34
mingw build: no
data directory: ${prefix}/share/gEDA
rc directory: ${prefix}/share/gEDA
LIBGEDA .so version: 28:0:0
dmalloc debugging: no
ElectricFence debugging: no
now, I'm no supergenius, but nothing there looks outrageous to me..
sorry i forgot to ./configure --prefix for that one but the result is the same either way.
the rest of the steps..
Code:
make
<snip> # just posting the error here...
/usr/lib/gcc/i486-slackware-linux/3.4.6/../../../../i486-slackware-linux/bin/ld: cannot find -lXpm
collect2: ld returned 1 exit status
make[2]: *** [libgeda.la] Error 1
make[2]: Leaving directory `/usr/local/src/gEDA/libgeda-20070216/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/local/src/gEDA/libgeda-20070216'
make: *** [all] Error 2
and thats as far as I get...
Quote:
Originally Posted by Piete
Just to clarify, you're not using any unconventional build settings like make -j4 or CFLAGS='<some weird stuff>' ./configure ?
only using ./configure --prefix=/opt/gEDA
more package info:
/var/log/packages/binutils-2.15.92.0.2-i486-3
/var/log/packages/glib-1.2.10-i386-2
/var/log/packages/glibc-2.3.6-i486-6
/var/log/packages/glibc-zoneinfo-2.3.6-noarch-6
/var/log/packages/glib2-2.10.3-i486-1
/var/log/packages/glibc-solibs-2.3.6-i486-6
also available in post #1.. sorry i didn't know if it was worse etiquette to post the same thing twice, or to skip posting it...
(or did you want to see _all_ the make progress? cause there is several pages.
note to all helping.. i am giving up (sort of) and re-installing slack 11 (disk one only) right now. i'll install wxGTK and then try and recompile + post results.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.