[solved] ld error - in building mtPaint on Puppy 3.01

For discussions about programming, programming questions/advice, and projects that don't really have anything to do with Puppy.
Post Reply
Message
Author
User avatar
Dingo
Posts: 1437
Joined: Tue 11 Dec 2007, 17:48
Location: somewhere at the end of rainbow...
Contact:

[solved] ld error - in building mtPaint on Puppy 3.01

#1 Post by Dingo »

Woof Woof

Dear Puppians, last days I Built successfully mtPaint 3.34.56
- http://github.com/wjaguar/mtPaint/tree/master

in Puppy 4.3.1

as happy Puppy 3.01 user, I then started to compile for this version, but when I invoke make, this error is returned to me:

/mnt/devx_301.sfs/usr/bin/../lib/gcc/i486-slackware-linux/4.1.2/../../../../i486-slackware-linux/bin/ld: cannot find -lX11

but libX11.so esists in /usr/X11R6/lib/ and, in configure, this path it is present

I attach the full log zipped

note: I'm compiling from LIVE CD using very good sfs linker by jrb (not tried the 1.9 version, I used the 1.8), I don't know if this can be the origin of problem (since sfs linker works very fine with devx 431
Attachments
mtpaint-3.01-full-log.zip
(1.66 KiB) Downloaded 238 times
Last edited by Dingo on Sun 07 Nov 2010, 12:03, edited 1 time in total.
replace .co.cc with .info to get access to stuff I posted in forum
dropbox 2GB free
OpenOffice for Puppy Linux

seaside
Posts: 934
Joined: Thu 12 Apr 2007, 00:19

#2 Post by seaside »

Dingo,

I would guess that it's a link problem because in pup 431 this file already exists in the base sfs
/usr/X11R7/lib/libX11.so.6.2.0
It probably just needs a link to /lib/libX11.so

Cheers,
s

User avatar
jrb
Posts: 1536
Joined: Tue 11 Dec 2007, 19:56
Location: Smithers, BC, Canada

Re: ld error - in building mtPaint on Puppy 3.01

#3 Post by jrb »

Dingo wrote:Woof Woof

Dear Puppians, last days I Built successfully mtPaint 3.34.56
- http://github.com/wjaguar/mtPaint/tree/master

in Puppy 4.3.1

as happy Puppy 3.01 user, I then started to compile for this version, but when I invoke make, this error is returned to me:

/mnt/devx_301.sfs/usr/bin/../lib/gcc/i486-slackware-linux/4.1.2/../../../../i486-slackware-linux/bin/ld: cannot find -lX11

but libX11.so esists in /usr/X11R6/lib/ and, in configure, this path it is present

I attach the full log zipped

note: I'm compiling from LIVE CD using very good sfs linker by jrb (not tried the 1.9 version, I used the 1.8), I don't know if this can be the origin of problem (since sfs linker works very fine with devx 431
Hi Dingo, Don't have time to look at it right now, but I suspect that the ldconfig contained in /sbin in SFS_TCZ-Linker is incompatible with 301. I will have some time on Thursday and will try building SFS-Linker with the ldconfig from devx-301.

BFN, J

User avatar
ttuuxxx
Posts: 11171
Joined: Sat 05 May 2007, 10:00
Location: Ontario Canada,Sydney Australia
Contact:

#4 Post by ttuuxxx »

Here's one compiled on 2.14X and should work fine on 3 series since its the same GlibC.
ttuuxxx
http://audio.online-convert.com/ <-- excellent site
http://samples.mplayerhq.hu/A-codecs/ <-- Codec Test Files
http://html5games.com/ <-- excellent HTML5 games :)

User avatar
technosaurus
Posts: 4853
Joined: Mon 19 May 2008, 01:24
Location: Blue Springs, MO
Contact:

#5 Post by technosaurus »

If you are still interested in doing a native compile try adding -CFLAGS=" ..your_compiler_flags.. -I/usr/X11R6/include " \
LDFLAGS=" -Wl,your,linker,flags,here -L/usr/X11R6/lib " \
./configure --your-config-options-here

This is the normal way of doing it, but if I recall mtpaint uses a different configure method and produces a build config file (I forget the name) you can just add -L/usr/X11R6/lib and -I/usr/X11R6/include in there.
Check out my [url=https://github.com/technosaurus]github repositories[/url]. I may eventually get around to updating my [url=http://bashismal.blogspot.com]blogspot[/url].

User avatar
Dingo
Posts: 1437
Joined: Tue 11 Dec 2007, 17:48
Location: somewhere at the end of rainbow...
Contact:

#6 Post by Dingo »

using devx module in a frugal install (with sfs-linker by jrb) solves the problem ( I was using devx with sfs-linker from live cd when I had the problem)
replace .co.cc with .info to get access to stuff I posted in forum
dropbox 2GB free
OpenOffice for Puppy Linux

Post Reply