HaikuPorts
  • Login
  • Preferences
  • Help/Guide
  • Wiki
  • Timeline
  • Roadmap
  • View Tickets
  • Search
  • Port Log
  • Blog

Context Navigation

  • ← Previous Change
  • Wiki History
  • Next Change →

Changes between Version 42 and Version 43 of CommonProblems


Ignore:
Timestamp:
08/02/10 19:01:42 (5 years ago)
Author:
mmu_man
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • CommonProblems

    v42 v43  
    138138Also, Both libbind (on BeOS) and libnetwork (on Haiku) have some usual symbols mangled with a prepended underscore (or 2), so typically a test for {{{inet_aton}}} like above changed to {{{AC_SEARCH_LIBS(inet_aton, resolv bind)}}} will fail to find {{{libbind}}} (which exports it as {{{__inet_aton}}}). 
    139139This is because headers use preprocessor defines to make {{{inet_aton()}}} available, and the linking checks done by autoconf does not include the proper headers. 
    140 This can be fixed by checking for another (unmangled) symbol. You will want to contact the project to ask for guidance here. 
     140This can be fixed by checking for another (unmangled) symbol like {{{gethostbyname2}}}. 
     141The cleanest checks for the above patch would then be: 
     142 
     143{{{ 
     144diff -Naur libevent-1.4.13-stable/configure.in libevent-1.4.13-stable-haiku/configure.in 
     145--- libevent-1.4.13-stable/configure.in 2009-05-24 13:37:49.000000000 +0000 
     146+++ libevent-1.4.13-stable-haiku/configure.in   2009-05-28 16:55:17.000000000 +0000 
     147@@ -33,7 +33,6 @@ 
     148 AC_SUBST(LIBTOOL_DEPS) 
     149 
     150 dnl Checks for libraries. 
     151-AC_CHECK_LIB(socket, socket) 
     152+AC_SEARCH_LIBS(socket, socket network) 
     153-AC_CHECK_LIB(resolv, inet_aton) 
     154+AC_SEARCH_LIBS(gethostbyname2, bind nsl resolv) 
     155 AC_CHECK_LIB(rt, clock_gettime) 
     156-AC_CHECK_LIB(nsl, inet_ntoa) 
     157}}} 
     158 
     159You will want to contact the project to ask for guidance here though, as it might impact other platforms. 
     160Also don't forget to fix the use of the HAVE_FOO macros in the code. 
     161 
     162Actually, it seems Haiku provides {{{inet_ntoa()}}} as a weak alias for {{{__inet_ntoa}}}, (plus libnetwork is also checked for for socket(), though some applications won't use the tested symbols if the tested libraries are not there... which is why AC_SEARCH_LIBS is better than AC_CHECK_LIBS, as it first checks if the symbol is available already). 
    141163 
    142164=== Missing syslog() === 

Trac Powered

Powered by Trac 0.13dev-r10686
By Edgewall Software.

Visit the Trac open source project at
http://trac.edgewall.org/