WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Makefile looks for .so files but treat them as static  (Read 1784 times)

Offline Scampada

  • Full Member
  • ***
  • Posts: 164
Makefile looks for .so files but treat them as static
« on: April 14, 2015, 03:42:38 PM »
Makefile now says me it attempts static link of a dynamic object (/usr/local/lib/libpng16.so).
I've tried both ./configure --disable-static and without this option.



Why is it trying to do static linking with an obviously shared version of a library? Btw, this makefile also builds libpng and libjpeg sources in a subdirectory (containing static .a files) but gets a shared library from /usr/local/lib and tries to link it. It won't build if there weren't built static versions of these libs in a subdirectory, failing with error there is no libs/libpng/.libs/libpng.a and so on. Maybe I should override its behaviour in some way?
The winning entries in UNIX users' hymns competition were 'What's the buzz, tell me what's happening' and 'Strange Thing Mystifying' songs from A.L.Webber's musical.

Tiny Core Linux. Like Gentoo, except Gentoo is easier.

Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 7183
    • My Community Forum
Re: Makefile looks for .so files but treat them as static
« Reply #1 on: April 14, 2015, 10:55:16 PM »
Your question is not related to TC but to Linux in general. For such support please use the generic Linux forums like linuxquestions, stackoverflow, etc.
Béla
Ham Radio callsign: HA5DI

"Amateur Radio: The First Technology-Based Social Network."

Offline Scampada

  • Full Member
  • ***
  • Posts: 164
Re: Makefile looks for .so files but treat them as static
« Reply #2 on: April 15, 2015, 04:48:52 AM »
Surely, but I hoped maybe there are for example such things as lib*-static.tcz. I don't really know much of TC. Well... Maybe it's to the good.
The winning entries in UNIX users' hymns competition were 'What's the buzz, tell me what's happening' and 'Strange Thing Mystifying' songs from A.L.Webber's musical.

Tiny Core Linux. Like Gentoo, except Gentoo is easier.

Offline Scampada

  • Full Member
  • ***
  • Posts: 164
Re: Makefile looks for .so files but treat them as static
« Reply #3 on: April 15, 2015, 04:50:28 PM »
I do not really think this problem has no concern with TC because I have successfully built this package under my openSUSE 13.2 using its tools and its libjpeg, libpng, gpm, freetype, zlib devel packages. All that I loaded as extensions.
So, topic's closed, I'm going on making experiments, just wanted to say.
The winning entries in UNIX users' hymns competition were 'What's the buzz, tell me what's happening' and 'Strange Thing Mystifying' songs from A.L.Webber's musical.

Tiny Core Linux. Like Gentoo, except Gentoo is easier.

Offline Scampada

  • Full Member
  • ***
  • Posts: 164
Re: Makefile looks for .so files but treat them as static
« Reply #4 on: April 16, 2015, 07:53:17 AM »
I have removed libpng.tcz from onboot.lst and installed static libraries manually. Then I edited the PNG flags in Makefile (I know it's a shame but I was too lazy to reconfigure) from png16 (which was 'dynamic object' to png12 (which was static, at least the linker ate that). Any other ways did not work for me. All the ways I was told of on several forums not including this one. --disable-static, --disable-shared, LDFLAGS=-L$(pwd)/libs, LDFLAGS=-shared and so on and on.

So... I'm not too experienced to decide where was the problem and its solution... But obviously for me it was in replacing libpng.tcz with static version of library.
Quote
I hoped maybe there are for example such things as lib*-static.tcz
Maybe it was a pair of crunches, but it worked, and other solutions did not. Cheers
The winning entries in UNIX users' hymns competition were 'What's the buzz, tell me what's happening' and 'Strange Thing Mystifying' songs from A.L.Webber's musical.

Tiny Core Linux. Like Gentoo, except Gentoo is easier.