Missing -lrt for shm* functions in the unix package
Don Stewart
dons at galois.com
Mon Jan 12 18:12:41 EST 2009
The module System.Posix.SharedMem was silently disabling the shm_*
functions due to failing configuration tests on linux (needs the -lrt
lib).
This patch adds -lrt to the configure test/ buildinfo.
-- Don
Mon Jan 12 15:07:58 PST 2009 Don Stewart <dons at galois.com>
* Add check for -lrt to get the shm* functions. Subst. in buildinfo
New patches:
[Add check for -lrt to get the shm* functions. Subst. in buildinfo
Don Stewart <dons at galois.com>**20090112230758] hunk ./configure.ac 30
AC_CHECK_FUNCS([nanosleep])
AC_CHECK_FUNCS([ptsname])
AC_CHECK_FUNCS([setitimer])
+
+# Avoid adding rt if absent or unneeded
+AC_CHECK_LIB(rt, shm_open, [EXTRA_LIBS="$EXTRA_LIBS rt" CFLAGS="$CFLAGS -lrt"])
+
+# needs -lrt on linux
AC_CHECK_FUNCS([shm_open shm_unlink])
FP_CHECK_CONSTS([SIGABRT SIGALRM SIGBUS SIGCHLD SIGCONT SIGFPE SIGHUP SIGILL SIGINT SIGKILL SIGPIPE SIGQUIT SIGSEGV SIGSTOP SIGTERM SIGTSTP SIGTTIN SIGTTOU SIGUSR1 SIGUSR2 SIGPOLL SIGPROF SIGSYS SIGTRAP SIGURG SIGVTALRM SIGXCPU SIGXFSZ SIG_BLOCK SIG_SETMASK SIG_UNBLOCK], [
Context:
[Avoid using IOError internals
Ian Lynagh <igloo at earth.li>**20090104173221]
[fix pthread linkage problem for openbsd
Matthias Kilian <kili at outback.escape.de>**20081129000638
This should make my openbsd build slave happy when SplitObjs=NO.
May be useful for other BSDs and even Linux, regardless wether you
need -pthread or -lpthread. Time will tell...
]
[catch up with exception changes
Simon Marlow <marlowsd at gmail.com>**20080927135428]
[Bump version number to 2.3.1.0
Ian Lynagh <igloo at earth.li>**20080920160248]
[TAG 6.10 branch has been forked
Ian Lynagh <igloo at earth.li>**20080919123439]
[follow library changes
Ian Lynagh <igloo at earth.li>**20080903223616]
[add category field
Ross Paterson <ross at soi.city.ac.uk>**20080824003014]
[We now depend on concurrent (split off from base)
Ian Lynagh <igloo at earth.li>**20080824135158]
[Fix the build when CONST_SIGPOLL == -1
Ian Lynagh <igloo at earth.li>**20080823160346
We were defining, but not using, sigPOLL
]
[Fix warnings in the unix package
Ian Lynagh <igloo at earth.li>**20080821120138]
[move some stuff here from System.Directory, now the dependencies are reversed
Simon Marlow <marlowsd at gmail.com>**20080821144754]
[Follow extensible exceptions changes
Ian Lynagh <igloo at earth.li>**20080623193152]
[Allow C's unsetenv to return either void or int
Ian Lynagh <igloo at earth.li>**20080703190603
Fixes, and patch from donn in, trac #2352.
]
[Avoid using deprecated flags
Ian Lynagh <igloo at earth.li>**20080616145425]
[move __hscore_{mkstemp,getrlimit,setrlimit} here from base
Ross Paterson <ross at soi.city.ac.uk>**20080615224248]
[TAG 2008-05-28
Ian Lynagh <igloo at earth.li>**20080528004441]
Patch bundle hash:
dd0767ff90044fe756b71c7e1bf58467ba9d7203
-------------- next part --------------
Mon Jan 12 15:07:58 PST 2009 Don Stewart <dons at galois.com>
* Add check for -lrt to get the shm* functions. Subst. in buildinfo
New patches:
[Add check for -lrt to get the shm* functions. Subst. in buildinfo
Don Stewart <dons at galois.com>**20090112230758] hunk ./configure.ac 30
AC_CHECK_FUNCS([nanosleep])
AC_CHECK_FUNCS([ptsname])
AC_CHECK_FUNCS([setitimer])
+
+# Avoid adding rt if absent or unneeded
+AC_CHECK_LIB(rt, shm_open, [EXTRA_LIBS="$EXTRA_LIBS rt" CFLAGS="$CFLAGS -lrt"])
+
+# needs -lrt on linux
AC_CHECK_FUNCS([shm_open shm_unlink])
FP_CHECK_CONSTS([SIGABRT SIGALRM SIGBUS SIGCHLD SIGCONT SIGFPE SIGHUP SIGILL SIGINT SIGKILL SIGPIPE SIGQUIT SIGSEGV SIGSTOP SIGTERM SIGTSTP SIGTTIN SIGTTOU SIGUSR1 SIGUSR2 SIGPOLL SIGPROF SIGSYS SIGTRAP SIGURG SIGVTALRM SIGXCPU SIGXFSZ SIG_BLOCK SIG_SETMASK SIG_UNBLOCK], [
Context:
[Avoid using IOError internals
Ian Lynagh <igloo at earth.li>**20090104173221]
[fix pthread linkage problem for openbsd
Matthias Kilian <kili at outback.escape.de>**20081129000638
This should make my openbsd build slave happy when SplitObjs=NO.
May be useful for other BSDs and even Linux, regardless wether you
need -pthread or -lpthread. Time will tell...
]
[catch up with exception changes
Simon Marlow <marlowsd at gmail.com>**20080927135428]
[Bump version number to 2.3.1.0
Ian Lynagh <igloo at earth.li>**20080920160248]
[TAG 6.10 branch has been forked
Ian Lynagh <igloo at earth.li>**20080919123439]
[follow library changes
Ian Lynagh <igloo at earth.li>**20080903223616]
[add category field
Ross Paterson <ross at soi.city.ac.uk>**20080824003014]
[We now depend on concurrent (split off from base)
Ian Lynagh <igloo at earth.li>**20080824135158]
[Fix the build when CONST_SIGPOLL == -1
Ian Lynagh <igloo at earth.li>**20080823160346
We were defining, but not using, sigPOLL
]
[Fix warnings in the unix package
Ian Lynagh <igloo at earth.li>**20080821120138]
[move some stuff here from System.Directory, now the dependencies are reversed
Simon Marlow <marlowsd at gmail.com>**20080821144754]
[Follow extensible exceptions changes
Ian Lynagh <igloo at earth.li>**20080623193152]
[Allow C's unsetenv to return either void or int
Ian Lynagh <igloo at earth.li>**20080703190603
Fixes, and patch from donn in, trac #2352.
]
[Avoid using deprecated flags
Ian Lynagh <igloo at earth.li>**20080616145425]
[move __hscore_{mkstemp,getrlimit,setrlimit} here from base
Ross Paterson <ross at soi.city.ac.uk>**20080615224248]
[TAG 2008-05-28
Ian Lynagh <igloo at earth.li>**20080528004441]
Patch bundle hash:
dd0767ff90044fe756b71c7e1bf58467ba9d7203
More information about the Libraries
mailing list