piranha gto dev misc prosody make sed CFG_SOURCEDIR CFG_SOURCEDIR usr

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
piranha@gto ~/dev/misc/prosody>make
sed "s|^CFG_SOURCEDIR=.*;$|CFG_SOURCEDIR='/usr/local/lib/prosody';|; \
s|^CFG_CONFIGDIR=.*;$|CFG_CONFIGDIR='/usr/local/etc/prosody';|; \
s|^CFG_DATADIR=.*;$|CFG_DATADIR='/usr/local/var/lib/prosody';|; \
s|^CFG_PLUGINDIR=.*;$|CFG_PLUGINDIR='/usr/local/lib/prosody/modules/';|;" < prosody > prosody.install
sed "s|^CFG_SOURCEDIR=.*;$|CFG_SOURCEDIR='/usr/local/lib/prosody';|; \
s|^CFG_CONFIGDIR=.*;$|CFG_CONFIGDIR='/usr/local/etc/prosody';|; \
s|^CFG_DATADIR=.*;$|CFG_DATADIR='/usr/local/var/lib/prosody';|; \
s|^CFG_PLUGINDIR=.*;$|CFG_PLUGINDIR='/usr/local/lib/prosody/modules/';|;" < prosodyctl > prosodyctl.install
sed 's|certs/|/usr/local/etc/prosody/certs/|' prosody.cfg.lua.dist > prosody.cfg.lua.install
test -e .hg/dirstate && hexdump -n6 -e'6/1 "%01x"' .hg/dirstate \
> prosody.version || true
cp prosody.release prosody.version || true
cp: cannot stat `prosody.release': No such file or directory
make -C util-src install
gcc -fPIC -Wall -I/opt/local/include -c -o encodings.o encodings.c
export MACOSX_DEPLOYMENT_TARGET="10.3"; gcc -shared -o encodings.so encodings.o -L/opt/local/lib -llua -lidn
Undefined symbols:
"_main", referenced from:
__start in crt1.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
make[1]: *** [encodings.so] Error 1
make: *** [all] Error 2