tst2005googlecode2 / lxmppd

Automatically exported from code.google.com/p/lxmppd
0 stars 0 forks source link

stringprep.h validation missing on ./configure #411

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Have no package with stringprep.h available on your system (e.g. 
libidn11-dev), but all necessary lua headers.
2. Do a successful ./configure, type make
3. See the abortion message

What is the expected output? What do you see instead?
Expected:
gcc -fPIC -Wall -ggdb -I/usr/include/lua5.2 -c -o encodings.o encodings.c
encodings.c: In function ‘luaopen_util_encodings’:
encodings.c:374:2: warning: implicit declaration of function 
‘luaL_register’ [-Wimplicit-function-declaration
Instead:
gcc -fPIC -Wall -ggdb -I/usr/include/lua5.1 -c -o encodings.o encodings.c
encodings.c:203:24: fatal error: stringprep.h: Datei oder Verzeichnis nicht 
gefunden
compilation terminated

What version of the product are you using? On what operating system?
Version of product: 0.9 and 0.10 from the mercurial repositories
OS: Debian Wheezy 64Bit

Please provide any additional information below.
Solution could be: Include a stringprep.h of whatever sort into the ./configure 
proceess.

Original issue reported on code.google.com by ri.ruir...@googlemail.com on 5 May 2014 at 9:08

GoogleCodeExporter commented 9 years ago
Hi,
I had a similar issue on Mac OS X:

gcc -fPIC -Wall -ggdb -I/usr/local/include -c -o encodings.o encodings.c
encodings.c:207:10: fatal error: 'stringprep.h' file not found
#include <stringprep.h>

So this indicates that libidn is missing by default.

I installed it using MacPorts:

sudo port install libidn

Further after executing ./configure --ostype=macosx I had to modify config.unix 
to specify the correct include and library path:

$ diff -u config.unix config.unix.patched 
--- config.unix 2014-12-07 09:12:25.000000000 +0100
+++ config.unix.patched 2014-12-07 09:12:08.000000000 +0100
@@ -13,8 +13,8 @@
 IDN_LIB=idn
 IDNA_LIBS=-lidn
 OPENSSL_LIB=crypto
-CFLAGS=-fPIC -Wall
-LDFLAGS=-bundle -undefined dynamic_lookup
+CFLAGS=-fPIC -Wall -I/opt/local/include
+LDFLAGS=-bundle -undefined dynamic_lookup -L/opt/local/lib
 CC=gcc
 CXX=g++
 LD=gcc

Maybe this helps somebody.

Original comment by manuel.b...@gmail.com on 7 Dec 2014 at 8:16

GoogleCodeExporter commented 9 years ago
Assigning to Waqas, as he is master of the OS X platform now.

Original comment by MWild1 on 22 Feb 2015 at 10:41