LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 04-11-2007, 05:34 PM   #1
bioe007
Member
 
Registered: Apr 2006
Location: lynnwood, wa - usa
Distribution: archlinux
Posts: 654

Rep: Reputation: 30
can't find -lXpm, compiling gEDA


Hi, so I recently undertook reinstalling slack to get rid of dropline gnome stuff.

one of my favorite pieces of software ((gEDA) now won't compile:

Code:
make[2]: Entering directory `/usr/local/src/gedasuite/gedagaf/libgeda-20061020/src'
/bin/sh ../libtool --mode=link gcc -Wall -g -O2   -o libgeda.la -rpath /opt/geda/lib -version-info
 27:0:0 -pthread -lguile -lltdl -L/usr/lib -lgmp -lcrypt -lm -lltdl -L/usr/lib -lXpm -lX11 -ljpeg 
-lfontconfig -lfreetype -lpng12 -lz -lm -lgd -lglib-2.0     -lgdk_pixbuf-2.0 -lm -lgobject-2.0 
-lgmodule-2.0 -ldl -lglib-2.0   -lgdk-x11-2.0 -lgdk_pixbuf-2.0 -lm -lpangocairo-1.0 -lpango-1.0 
-lcairo -lgobject-2.0 -lgmodule-2.0 -ldl -lglib-2.0   a_basic.lo f_basic.lo f_print.lo f_image.lo 
g_basic.lo m_basic.lo o_arc_basic.lo o_attrib.lo o_basic.lo o_box_basic.lo o_circle_basic.lo 
o_complex_basic.lo o_line_basic.lo o_list.lo o_net_basic.lo o_selection.lo o_bus_basic.lo 
o_text_basic.lo o_pin_basic.lo o_image.lo u_basic.lo s_attrib.lo s_basic.lo s_clib.lo s_encoding.lo 
s_hierarchy.lo s_papersizes.lo s_stretch.lo s_log.lo s_page.lo s_slib.lo s_color.lo s_undo.lo 
s_conn.lo s_cue.lo s_tile.lo s_menu.lo s_toplevel.lo g_smob.lo libgeda.lo g_register.lo g_rc.lo 
i_vars.lo o_picture.lo gdk-pixbuf-hacks.lo  

gcc -shared  .libs/a_basic.o .libs/f_basic.o .libs/f_print.o .libs/f_image.o .libs/g_basic.o 
.libs/m_basic.o .libs/o_arc_basic.o .libs/o_attrib.o .libs/o_basic.o .libs/o_box_basic.o 
.libs/o_circle_basic.o .libs/o_complex_basic.o .libs/o_line_basic.o .libs/o_list.o 
.libs/o_net_basic.o .libs/o_selection.o .libs/o_bus_basic.o .libs/o_text_basic.o .libs/o_pin_basic.o 
.libs/o_image.o .libs/u_basic.o .libs/s_attrib.o .libs/s_basic.o .libs/s_clib.o .libs/s_encoding.o 
.libs/s_hierarchy.o .libs/s_papersizes.o .libs/s_stretch.o .libs/s_log.o .libs/s_page.o 
.libs/s_slib.o .libs/s_color.o .libs/s_undo.o .libs/s_conn.o .libs/s_cue.o .libs/s_tile.o 
.libs/s_menu.o .libs/s_toplevel.o .libs/g_smob.o .libs/libgeda.o .libs/g_register.o .libs/g_rc.o 
.libs/i_vars.o .libs/o_picture.o .libs/gdk-pixbuf-hacks.o  /usr/lib/libguile.so -L/usr/lib 
/usr/lib/libgmp.so -lcrypt /usr/lib/libltdl.so -lXpm -lX11 -ljpeg -lfontconfig  
/usr/lib/libfreetype.so -lpng12 -lz /usr/lib/libgd.so /usr/lib/libgdk-x11-2.0.so 
/usr/lib/libgdk_pixbuf-2.0.so -lm /usr/lib/libpangocairo-1.0.so /usr/lib/libpango-1.0.so 
/usr/lib/libcairo.so /usr/lib/libgobject-2.0.so /usr/lib/libgmodule-2.0.so -ldl 
/usr/lib/libglib-2.0.so  -pthread -Wl,-soname -Wl,libgeda.so.27 -o .libs/libgeda.so.27.0.0

/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/gedasuite/gedagaf/libgeda-20061020/src'
make[1]: *** [install-recursive] Error 1
make[1]: Leaving directory `/usr/local/src/gedasuite/gedagaf/libgeda-20061020'
make: *** [libgeda_install] Error 2
it seems that I'm either missing something in libtool-1.5.22-i486-1.tgz, or something that it uses? I have tried both slack11 and slack-current versions of this package but no luck.

Is it something else I'm missing? I saw that there is xpm.h:

Code:
root@darkstar:/usr/local/src/gedasuite/gedagaf# ls /usr/X11R6/include/X11/ | grep xpm
xpm.h
I'm kind of assuming this is looking for a header, is the makefile looking in the wrong place?

Of course I've searched slackpackages for files containing 'Xpm' but found nothing really.
thanks!

Last edited by bioe007; 04-16-2007 at 03:03 AM.
 
Old 04-12-2007, 09:55 AM   #2
erklaerbaer
Member
 
Registered: Mar 2006
Posts: 381

Rep: Reputation: 30
http://geda.seul.org/dist/suite/20070221/INSTALL

you'll need
Quote:
pkg-config
guile
gettext
readline
Tcl/Tk
wxGTK
* Gtk-2.6 or above. (along with its dependencies)
* Gdk-2.6 or above.
* Glib-2.6 or above. (glibc-2.2.X is known to fail due to binary
incompatibilities.)
Tarballs of these packages live on this CD in the SystemPackages
directory.

Build tools:
* make
* gcc
wxgtk is the only package not in slackware 11.0 (,but could be on the cd)
 
Old 04-12-2007, 03:24 PM   #3
bioe007
Member
 
Registered: Apr 2006
Location: lynnwood, wa - usa
Distribution: archlinux
Posts: 654

Original Poster
Rep: Reputation: 30
thanks for the response, this is what I have:

pkgconfig-0.21-i486-3
gtk+-1.2.10-i386-3
gtk+2-2.8.20-i486-1
gdk-pixbuf-0.22.0-i486-1
wxGTK-2.8.3-i486-1kjz
guile-1.8.0-i486-1
readline-5.1-i486-1
gettext-0.15-i486-1
tcl-8.4.13-i486-2
tk-8.4.13-i486-1

I have presumed that Gdk-xxx is the same as slack's gdk-pixbuf ?? I could not find any gdk-xxx package in slack11 packages.

there are lots of glibX's so I thought this would be more complete:
Code:
root@darkstar:/usr/local/src/gedasuite/gedagaf# ls /var/log/packages/ | grep glib
dbus-glib-0.72-i486-1mht
glib-1.2.10-i386-2
glib2-2.10.3-i486-1
glibc-2.3.6-i486-6
glibc-solibs-2.3.6-i486-6
glibc-zoneinfo-2.3.6-noarch-6
taglib-1.4-i486-2
root@darkstar:/usr/local/src/gedasuite/gedagaf#
also to set up the environment for build & run:
Code:
#!/bin/bash
export PATH=/opt/geda/bin:${PATH}
export LD_LIBRARY_PATH=/opt/geda/lib:${LD_LIBRARY_PATH}
export PKG_CONFIG_PATH=/opt/geda/lib/pkgconfig:$PKG_CONFIG_PATH
did I do ^this^ correctly? I pretty much just copied it directly from the geda 'make' output. (it lists /opt/geda because I edited the makefile to put it there.

thanks for the summary of whats needed, I _thought_ I had that covered. (I was missing wxGTK) But I don't see anything else I am missing.

Also after installing wxgtk I still get the same error.

Last edited by bioe007; 04-12-2007 at 03:26 PM.
 
Old 04-12-2007, 04:16 PM   #4
erklaerbaer
Member
 
Registered: Mar 2006
Posts: 381

Rep: Reputation: 30
did you do a ldconfig afterwards?
what about x11-devel? fontconfig? (libxpm ? just to be sure )

gdk is a part of gtk and shouldn't be a problem...

( be prepared to compile gdk-pixbuf for yourself in the future; it was removed in -current )
( a matter of personal preference, but "ls /var/log/packages/ | grep glib" could be written as "ls /var/log/packages/*glib*" )
 
Old 04-12-2007, 06:11 PM   #5
bioe007
Member
 
Registered: Apr 2006
Location: lynnwood, wa - usa
Distribution: archlinux
Posts: 654

Original Poster
Rep: Reputation: 30
yes, i did ldconfig, and after that didn't work I tried rebooting to let slack do its ldconfig on startup - still no luck...

yes do x11-devel and fontconfig.

is there such a thing as libxpm? i will look..

thanks again!
 
Old 04-12-2007, 06:52 PM   #6
bioe007
Member
 
Registered: Apr 2006
Location: lynnwood, wa - usa
Distribution: archlinux
Posts: 654

Original Poster
Rep: Reputation: 30
well, i did installpkg xpm-3.4 - but that didn't help.

these are my x11 packages:

Code:
perry@darkstar:~$ ls /var/log/packages/ | grep x11
x11-6.9.0-i486-11
x11-devel-6.9.0-i486-11
x11-docs-6.9.0-noarch-5
x11-fonts-100dpi-6.9.0-noarch-5
x11-fonts-cyrillic-6.9.0-noarch-5
x11-fonts-misc-6.9.0-noarch-5
x11-fonts-scale-6.9.0-noarch-5
+ fontconfig and deja & now xpm-3.4

see anything missing?

Last edited by bioe007; 04-12-2007 at 07:00 PM.
 
Old 04-13-2007, 04:35 AM   #7
jowa45
Member
 
Registered: Apr 2007
Location: Stockholm, Sweden
Distribution: Slackware11&12
Posts: 94

Rep: Reputation: 15
Hi,
While I have been using Slackware for a long time and following events on this forum I have only just joined to try to answer this.
I have now installed the gEDA suit on three Slackware 11 installations and been very happy with the way it all worked. These are all default installations of Slackware 11 by following the “complete installation “ choice. The installation of gEDA was by downloading the iso image from the gEDA site and burning it in to a CDROM. The whole point of this is that any package you need must be included in a default installation or on the gEDA installation disk.
The gEDA installation disk runs more or less automatically and will inform you of any problems it encounters. It can not be used from tty only from gui. If any package does not install copy it from the CDROM to your hard drive and do the installation manually.
It took about 2 hours to install on an i686 which is longer than Slackware. I install to a high level directory /geda as it is important to me.
What installation way are you using?

John
 
Old 04-13-2007, 12:38 PM   #8
bioe007
Member
 
Registered: Apr 2006
Location: lynnwood, wa - usa
Distribution: archlinux
Posts: 654

Original Poster
Rep: Reputation: 30
thanks John,

I am trying to compile each portion of the gEDA 'suite' individually. Right now I'm stuck in the 'gedagaf' directory.

this is what I do:
Code:
cp -r /mnt/cdrom/gedagaf /usr/local/src/gEDA
vi Makefile      #to change the install directory to /opt/geda
<set the environment as described above>
make install
I am doing it this way for 2 reasons: 1) to learn 2) control

I don't want gEDA installer putting stuff where it wants it and replacing any of my slackware pkgs. I also wanted to try and make .tgz out of it by doing:
Code:
make DESTDIR=/tmp/gEDA install
makepkg gedagaf.tgz
I have recently gone away from using the 'full' install option for slackware because I don't use/want KDE and many other things that slack full install includes + I want to learn more about my system, and what is actually _required_ for me.

btw- just to see what the installer would want to do/install. after all these failed attempts I have tried:
Code:
~$sh /mnt/cdrom/installer --log
but I get an error, something like '/bin/env bad interpreter' ..

-last note- I have built geda this way before (compiling all the individual packages) on this same lappy, but I was running slackware (full install) + dropline GNOME. So I'm pretty sure its something that I am missing on this particular install, or some gnome dependency?

perhaps I should post my 'ls /var/log/packages' ?


I really appreciate your help!

Last edited by bioe007; 04-13-2007 at 12:48 PM.
 
Old 04-16-2007, 03:02 AM   #9
bioe007
Member
 
Registered: Apr 2006
Location: lynnwood, wa - usa
Distribution: archlinux
Posts: 654

Original Poster
Rep: Reputation: 30
hi all, a lack of progress note...

I have installed many packages, including xpm, libstroke, and checked against all of the gEDA 'System-packages' listed on the cdrom, I can not see anything I am missing.

googling -lXpm returned me no results. apparently i'm unique in my ineptitude..

it seems I can compile most everything on the gEDA .iso, but not the library (which is essential AFAIK for all the netlisting and schematic/capture tools)

so until I figure this out I'm up a creek.

please any ideas?
 
Old 04-16-2007, 05:53 AM   #10
jowa45
Member
 
Registered: Apr 2007
Location: Stockholm, Sweden
Distribution: Slackware11&12
Posts: 94

Rep: Reputation: 15
Hi,
Good you are trying to make a Slackware installation pakage for gEDA. I would like to make a Slackware installation package myself but not for gEDA and as this has nothing to do with this post I will start another but you might just tell me where I can find some information to get started.

It almost has to be somthing in that wxGTK package which is on the gEDA CDROM as this always has to be installed by root. The rest may be installed to home by user, not that I think this is a very good idea.

I do not have gnome so it has nothing to do with gnome dependency.

If you can possibly think of anything I can of course check my own installation.

John

Last edited by jowa45; 04-16-2007 at 05:55 AM.
 
Old 04-16-2007, 10:37 AM   #11
bioe007
Member
 
Registered: Apr 2006
Location: lynnwood, wa - usa
Distribution: archlinux
Posts: 654

Original Poster
Rep: Reputation: 30
thanks for the response. i installed wxGTK from linuxpackages.net, which is newer than the one for the cdrom I have. (i am still working off of a 2006 release)

Quote:
Slackware installation package myself but not for gEDA and as this has nothing to do with this post I will start another but you might just tell me where I can find some information to get started.
i am no expert at this, I simply make a /tmp directory for the SW then do as above with the
Code:
#make DESTDIR=/tmp/<dirname> install
#cd /tmp/<dirname>
#mkpkg <somepkgname>.tgz
basically the only thing i can think of is to keep installing packages until i get libgeda to compile. I was really hoping a fellow slacker would know what the -lXpm flag comes from.

one thing i was wondering if there are supposed to be files in /usr/include or /usr/lib for xpm libraries? i can do ls /usr/<include or lib> | grep xpm and get nothing except the imlib stuff.

Last edited by bioe007; 04-16-2007 at 10:39 AM.
 
Old 04-17-2007, 12:42 AM   #12
bioe007
Member
 
Registered: Apr 2006
Location: lynnwood, wa - usa
Distribution: archlinux
Posts: 654

Original Poster
Rep: Reputation: 30
well i'll keep posting what i'm trying... i hate talking to myself - its even worse when I start arguing with myself.

so now the error i'm getting (still the same really, I'm just compiling piecewise):

Code:
/bin/sh ../libtool --silent --tag=CC   --mode=link gcc -Wall -g -O2 -version-info 28:0:0 -pthread -lguile -lltdl -L/usr/lib -lgmp -lcrypt -lm -lltdl -L/usr/lib -lXpm -lX11 -ljpeg -lfontconfig -lfreetype -lpng12 -lz -lm -lgd -lglib-2.0     -lgdk_pixbuf-2.0 -lm -lgobject-2.0 -lgmodule-2.0 -ldl -lglib-2.0   -lgdk-x11-2.0 -lgdk_pixbuf-2.0 -lm -lpangocairo-1.0 -lpango-1.0 -lcairo -lgobject-2.0 -lgmodule-2.0 -ldl -lglib-2.0    -o libgeda.la -rpath /opt/gEDA//lib a_basic.lo f_basic.lo f_print.lo f_image.lo g_basic.lo m_basic.lo o_arc_basic.lo o_attrib.lo o_basic.lo o_box_basic.lo o_circle_basic.lo o_complex_basic.lo o_line_basic.lo o_list.lo o_net_basic.lo o_selection.lo o_bus_basic.lo o_text_basic.lo o_pin_basic.lo o_image.lo o_embed.lo u_basic.lo s_attrib.lo s_basic.lo s_clib.lo s_encoding.lo s_hierarchy.lo s_papersizes.lo s_stretch.lo s_log.lo s_page.lo s_slib.lo s_color.lo s_undo.lo s_conn.lo s_cue.lo s_tile.lo s_menu.lo s_toplevel.lo g_smob.lo libgeda.lo g_register.lo g_rc.lo i_vars.lo o_picture.lo gdk-pixbuf-hacks.lo  
/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
it'd be great if anyone can give me some insight to where /usr/lib -lXpm _should_ be pointing to? I have tried making a symlink from:
Code:
perry@darkstar:/usr/local/src/gEDA/libgeda-20070216$ ls -l /usr/lib | grep X
lrwxrwxrwx   1 root root       18 2007-04-09 13:18 X11 -> /usr/X11R6/lib/X11/
lrwxrwxrwx   1 root root       18 2007-04-16 21:33 Xpm -> /usr/X11R6/lib/X11/
because :
Code:
perry@darkstar:$ ls /usr/X11R6/lib/ | grep Xpm
libXpm.a
libXpm.so@
libXpm.so.4@
libXpm.so.4.11*
perry@darkstar:$
so i (apparently incoreclty) assumed that gEDA wants to find the libXpm, which if follows suit with lib X11 should use a symlink... no? please someone help.... argghhh..

Last edited by bioe007; 04-17-2007 at 12:43 AM.
 
Old 04-19-2007, 08:04 AM   #13
jowa45
Member
 
Registered: Apr 2007
Location: Stockholm, Sweden
Distribution: Slackware11&12
Posts: 94

Rep: Reputation: 15
Hi,
Is this of any help at all.


john@slackbox1:~$ slocate Xpm
/usr/lib/tix8.1/demos/samples/Xpm.tcl
/usr/lib/tix8.1/demos/samples/Xpm1.tcl
/usr/X11R6/lib/libXpm.so.4.11
/usr/X11R6/lib/libXpm.so.4
/usr/X11R6/lib/libXpm.a
/usr/X11R6/lib/libXpm.so
/usr/X11R6/include/Xm/XpmP.h

slocating lXpm gave no result

John
 
Old 04-19-2007, 10:22 AM   #14
piete
Member
 
Registered: Apr 2005
Location: Havant, Hampshire, UK
Distribution: Slamd64, Slackware, PS2Linux
Posts: 465

Rep: Reputation: 44
Code:
i486-slackware-linux/bin/ld: cannot find -lXpm
IIUC this means that ld (your linker) cannot find the Xpm library files (as specified on the command line like -l<library>) and thus ... compilation fails. Google takes a look at -lXpm and sees "don't search for lXpm" =)

I'm just tinkering now, bear with me and I'll see what crops up ...

- Piete.
 
Old 04-19-2007, 10:49 AM   #15
piete
Member
 
Registered: Apr 2005
Location: Havant, Hampshire, UK
Distribution: Slamd64, Slackware, PS2Linux
Posts: 465

Rep: Reputation: 44
Right, back!

Erm ... a question:

Why are you vi'ing the Makefile instead of using the configure script provided?

I just configured and built libgeda 20060123 (sorry I don't have yours to hand), and in the past I've had some success with downloading the installer CDROM, mounting it somewhere and then running the following script twice, once with --extract and once with --build. It's not a neat script, it's pretty ugly, so you might want to do these steps by hand to ensure that you don't loose any of the learning (and/or wreck your system!) - feel free to clean it up, and repost a better one

Code:
#!/bin/bash

# Prerequisites:
#flist[0]=gd  <-- install this by hand to the system libdir, not /opt/geda

# geda-install-20060731.iso
# Build order:
flist[1]=libgeda-
flist[2]=geda-utils-
flist[3]=geda-symbols-
flist[4]=geda-gschem-
flist[5]=geda-gattrib-
flist[6]=geda-gnetlist-
flist[7]=geda-docs-
flist[8]=geda-examples-
flist[9]=geda-2
flist[10]=pcb
flist[11]=geda-gsymcheck-

case x"$1" in
	x"--extract")

mkdir -p src
GEDAV=geda-install-20060731.iso
cmd="mount -o loop $GEDAV src/"
su -c '$cmd'

mkdir -p build
 
# for file in `ls src/SystemPackages/gd*.tar.gz`
#   do
#     if [ `file ${file} | grep gzip | wc -l` = "1"  ]; then
# 	echo "Extracting:  ${file}"
#	cd build
#	tar xfz ../${file}
#	echo ${file#.tar.gz}
#	cd ..
#     fi
#   done

 for file in `ls src/gedagaf/*.tar.gz`
   do
     if [ `file ${file} | grep gzip | wc -l` = "1"  ]; then
		echo "Extracting:  ${file}"
		cd build
		tar xfz ../${file}
		echo ${file#.tar.gz}
		cd ..
     fi
   done
   
 for file in `ls src/pcb/*.tar.gz`
   do
     if [ `file ${file} | grep gzip | wc -l` = "1"  ]; then
 	echo "Extracting:  ${file}"
	cd build
	tar xfz ../${file}
	echo ${file#.tar.gz}
	cd ..
     fi
   done

;;

	x"--build")

cd build
rm blog

for file in ${flist[@]}
do
	echo "Building $file" >> blog
	export PKG_CONFIG_PATH=/opt/geda/lib/pkgconfig
	export PATH=$PATH:/opt/geda/bin
	cd $file*
	( \
	./configure --prefix=/opt/geda && \
	make \ 
	)
	make install
	cd ..
	# You might need to run this after installing the libraries.
	#ldconfig
done

;;
esac
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
gEDA for Slackware? bioe007 Slackware 10 02-08-2007 03:09 AM
gEDA in linux Suse 10.1 marcoguillen Linux - Software 1 12-13-2006 08:00 AM
gEDA Install Error secureoffice Linux - Software 0 10-31-2005 08:43 PM
Installing GEDA. hgb Suse/Novell 5 10-31-2005 12:11 PM
gEDA Installation Error secureoffice Suse/Novell 0 10-11-2005 11:01 AM


All times are GMT -5. The time now is 04:06 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration