WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Underlinking - for extension creators  (Read 1913 times)

Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 7183
    • My Community Forum
Underlinking - for extension creators
« on: May 23, 2012, 02:09:42 AM »
I had a strange issue few days ago compiling a program against libax25. Compilation was OK, no error messages nor warnings but running it (a Python module written in C) didn't start claiming a missing reference to inflateEND. Was also strange, that other applications using libax25 were OK without such message.,

Finally I found it was a so called underlinking issue. This is a good summary of the problem:

http://wiki.mandriva.com/en/Underlinking

In my case the solution was to rebuild libax25 with the -lz linker switch.

It may affect other extensions too and the extension building process.
Béla
Ham Radio callsign: HA5DI

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

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 11044
Re: Underlinking - for extension creators
« Reply #1 on: May 23, 2012, 07:39:11 AM »
That's a bug in libax25 (library uses zlib but doesn't link it) then.
The only barriers that can stop you are the ones you create yourself.

Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 7183
    • My Community Forum
Re: Underlinking - for extension creators
« Reply #2 on: May 23, 2012, 07:53:22 AM »
Yes, but google'g around found that it happenes frequently with other libraries too and makes people's life hard to fix. Just good to know.
Béla
Ham Radio callsign: HA5DI

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