1
0
Fork 0
mirror of git://git.psyced.org/git/psyclpc synced 2024-08-15 03:20:16 +00:00

getting it to compile on linux...

This commit is contained in:
psyc://psyced.org/~lynX 2011-08-23 19:13:08 +02:00
parent adc7990a40
commit 912a78bcd6
3 changed files with 24 additions and 27 deletions

15
INSTALL
View file

@ -95,20 +95,13 @@ Unix or Unix-like system
install-headers: install the driver header files in ${includedir}. install-headers: install the driver header files in ${includedir}.
install-all: compile and install everything. install-all: compile and install everything.
To actually run this, you need either psyced or a mudlib. To actually use psyclpc, you need either psyced or a mudlib.
pthreads: Debian/Ubuntu Linux:
If your systems supports pthreads, --enable-use-pthreads will allow to apt-get install libssl-dev libidn11-dev libpcre3 bison autoconf
compile the driver with pthread support. Currently this means that
background threads will be used to write data to the network.
WARNING: pthreads support is still experimental and might crash
your driver!
FreeBSD: FreeBSD:
When using gcc, it could happen that the compiler aborts with signal 10 ...
or 11. The reasons are unknown, but you can restart the compilation
process by typing "make" again (and again...).
AIX 3.4: AIX 3.4:
The native compiler comes in several forms, of which only the The native compiler comes in several forms, of which only the

4
TODO
View file

@ -3,6 +3,10 @@ FROM LDMUD
that we are active in. syncing with ldmud is a good idea. that we are active in. syncing with ldmud is a good idea.
BUGS BUGS
- configure should warn more vehemently when libidn is missing
- libpsyc isnt recognized even if properly installed
- x86_64 seems to require -ldl explicitly at the end of libs
- sometimes -lpsyc and -lpcre are added twice to $LIBS !?
- should autoconf to sysmalloc also for osol (OpenSolaris) - should autoconf to sysmalloc also for osol (OpenSolaris)
- #define USE_EXPAT und JSON werden trotzdem gesetzt in config.h - #define USE_EXPAT und JSON werden trotzdem gesetzt in config.h
auch wenn configure keine libs gefunden hat (egal, wir verwenden beide nicht) auch wenn configure keine libs gefunden hat (egal, wir verwenden beide nicht)

View file

@ -1389,27 +1389,27 @@ int main(void)
lp_cv_need_lib_iconv=no, lp_cv_need_lib_iconv=no,
lp_cv_need_lib_iconv=yes lp_cv_need_lib_iconv=yes
)) ))
if test "$lp_cv_need_lib_iconv" = "yes"; then # if test "$lp_cv_need_lib_iconv" = "yes"; then
# Search the libraries # # Search the libraries
tmp="" # tmp=""
AC_CHECK_LIB(iconv,libiconv_close, tmp="$PKGLIBS -liconv") # AC_CHECK_LIB(iconv,libiconv_close, tmp="$PKGLIBS -liconv")
if test "x$tmp" = "x"; then # if test "x$tmp" = "x"; then
CFLAGS="$saveflags -L/usr/local/lib" # CFLAGS="$saveflags -L/usr/local/lib"
AC_CHECK_LIB(iconv,libiconv_close, tmp="$PKGLIBS -L/usr/local/lib -liconv") # AC_CHECK_LIB(iconv,libiconv_close, tmp="$PKGLIBS -L/usr/local/lib -liconv")
fi # fi
if test "x$tmp" = "x"; then # if test "x$tmp" = "x"; then
echo "iconv library not found." # echo "iconv library not found."
lp_cv_has_iconv="no" # lp_cv_has_iconv="no"
else # else
PKGLIBS="$tmp" # PKGLIBS="$tmp"
fi # fi
CFLAGS="$saveflags" # CFLAGS="$saveflags"
fi # fi
fi fi
if test "x$lp_cv_has_iconv" = "xyes"; then if test "x$lp_cv_has_iconv" = "xyes"; then