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

Context Navigation

  • ← Previous Version
  • View Latest Version
  • Next Version →


Version 17 (modified by scottmc, 7 years ago) (diff)

update on the `restrict' being fixed now

Common Porting Problems

This page serves to collect information about common problems encountered when porting applications/libraries to the Haiku/BeOS platform. The problems should be identified by the (compiler) errors that typify them.

Information about BeOS's POSIX compatibility, see BeOSPosix.

no undefined references allowed in i586-pc-beos shared libraries

ports: dev-util/subversion, dev-libs/apr

You need to pass the -no-undefined option to libtool

Alternatively, libtool can be patched to always exhibit this behavior, at the risk of breaking static compilation when dynamic linking fails. -- andreasf

(stat) structure has no member named `st_blocks'

ports: app-arch/tar (make check), net-fs/samba?, dev-util/cvs

The stat struct in sys/stat.h in BeOS and Haiku doesn't have an st_blocks member. In projects with autoconf, you can check for HAVE_STAT_ST_BLOCKS.

 http://lists.samba.org/archive/samba-technical/2005-January/039275.html

-lm

ports: dev-lang/lua, others

You can remove the -lm. The -lm refers to libm which isn't needed for Haiku or BeOS as the math library is part of libroot and linked by default

 http://www.freelists.org/archives/haiku-development/04-2008/msg00904.html

conflicting types for `restrict'

/boot/develop/headers/posix/search.h:35: conflicting types for `restrict' /boot/develop/headers/posix/search.h:35: previous declaration of `restrict' This seems to be an issue with Haiku and has been reported  Haiku-2262 This has been fixed in Haiku. If using a version prior to the fix you can copy the search.h file over the one in your headers/posix folder.

stdbool.in.h

This has been fixed:  http://tools.assembla.com/BePorts/wiki/dev-libs/gnulib So any releases posted AFTER May 25, 2008 'should' include an updated stdbool.in.h

Download in other formats:

  • Plain Text

Trac Powered

Powered by Trac 0.13dev-r10686
By Edgewall Software.

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