problem with exim compilled from DA sources

hostfast

Verified User
Joined
Jul 28, 2008
Messages
45
Hello,

I compile exim 4.69 from DA sources on debian, and I have error :eek::
.....
gcc -c exim
/usr/bin/ld: cannot find -liconv
collect2: ld returned 1 exit status

please, help me :confused:
 
Do you have iconv-devel installed?

Hmm, what is name of packet on debian etch ???
apt-get don't list iconv-devel, but I have iconv
compilled from DA source ,iconv.h exists in:
/usr/include
/usr/local/include


:confused:
 
There seems to be a similar thread here: http://www.directadmin.com/forum/showthread.php?t=23565, though on CentOS instead of Debian.

I have no idea about Debian, but it might be something with 64bit as well?

Do you have iconv-devel installed?

Is there an iconv-devel package? We don't have it installed on any server and are able to rpmbuild Exim packages just fine (as for hostfast, this will not work on Debian).
 
Now is other errors looooooong list:

make[2]: Leaving directory `/usr/local/src/exim-4.69/build-Linux-i386/auths'

gcc acl.c
gcc child.c
gcc crypt16.c
gcc daemon.c
gcc dbfn.c
gcc debug.c
gcc deliver.c
gcc directory.c
gcc dns.c
gcc drtables.c
gcc enq.c
gcc exim.c
gcc expand.c
gcc filter.c
gcc filtertest.c
gcc globals.c
gcc header.c
gcc host.c
gcc ip.c
gcc log.c
gcc lss.c
gcc match.c
gcc moan.c
gcc os.c
gcc parse.c
gcc queue.c
gcc rda.c
gcc readconf.c
gcc receive.c
gcc retry.c
gcc rewrite.c
gcc rfc2047.c
gcc route.c
gcc search.c
gcc sieve.c
gcc smtp_in.c
gcc smtp_out.c
gcc spool_in.c
gcc spool_out.c
gcc store.c
gcc string.c
gcc tls.c
gcc tod.c
gcc transport.c
gcc tree.c
gcc verify.c
gcc local_scan.c
cc perl.c
perl.c:29:20: error: EXTERN.h: No such file or directory
perl.c:30:18: error: perl.h: No such file or directory
perl.c:31:18: error: XSUB.h: No such file or directory
perl.c:47: error: expected ')' before '*' token
perl.c:50: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
perl.c: In function 'XS':
perl.c:54: error: 'dXSARGS' undeclared (first use in this function)
perl.c:54: error: (Each undeclared identifier is reported only once
perl.c:54: error: for each function it appears in.)
perl.c:56: error: 'STRLEN' undeclared (first use in this function)
perl.c:56: error: expected ';' before 'len'
perl.c:58: error: 'items' undeclared (first use in this function)
perl.c:61: error: 'len' undeclared (first use in this function)
perl.c:62: error: invalid lvalue in assignment
perl.c: At top level:
perl.c:71: error: redefinition of 'XS'
perl.c:53: error: previous definition of 'XS' was here
perl.c: In function 'XS':
perl.c:72: error: 'dXSARGS' undeclared (first use in this function)
perl.c:73: error: 'STRLEN' undeclared (first use in this function)
perl.c:73: error: expected ';' before 'len'
perl.c:74: error: 'items' undeclared (first use in this function)
perl.c:76: error: 'len' undeclared (first use in this function)
perl.c: At top level:
perl.c:80: error: redefinition of 'XS'
perl.c:53: error: previous definition of 'XS' was here
perl.c: In function 'XS':
perl.c:81: error: 'dXSARGS' undeclared (first use in this function)
perl.c:82: error: 'STRLEN' undeclared (first use in this function)
perl.c:82: error: expected ';' before 'len'
perl.c:83: error: 'items' undeclared (first use in this function)
perl.c:85: error: 'len' undeclared (first use in this function)
perl.c: In function 'xs_init':
perl.c:91: error: 'boot_DynaLoader' undeclared (first use in this function)
perl.c:92: error: 'xs_expand_string' undeclared (first use in this function)
perl.c:93: error: 'xs_debug_write' undeclared (first use in this function)
perl.c:94: error: 'xs_log_write' undeclared (first use in this function)
perl.c: In function 'init_perl':
perl.c:102: error: 'SV' undeclared (first use in this function)
perl.c:102: error: 'sv' undeclared (first use in this function)
perl.c:103: error: 'STRLEN' undeclared (first use in this function)
perl.c:103: error: expected ';' before 'len'
perl.c:105: error: 'interp_perl' undeclared (first use in this function)
perl.c:111: error: 'dSP' undeclared (first use in this function)
perl.c:121: error: 'SP' undeclared (first use in this function)
perl.c:122: error: 'G_SCALAR' undeclared (first use in this function)
perl.c:122: error: 'G_DISCARD' undeclared (first use in this function)
perl.c:122: error: 'G_KEEPERR' undeclared (first use in this function)
perl.c:124: error: 'errgv' undeclared (first use in this function)
perl.c:124: error: 'len' undeclared (first use in this function)
perl.c: In function 'cleanup_perl':
perl.c:141: error: 'interp_perl' undeclared (first use in this function)
perl.c: In function 'call_perl_cat':
perl.c:152: error: 'dSP' undeclared (first use in this function)
perl.c:153: error: 'SV' undeclared (first use in this function)
perl.c:153: error: 'sv' undeclared (first use in this function)
perl.c:154: error: 'STRLEN' undeclared (first use in this function)
perl.c:154: error: expected ';' before 'len'
perl.c:158: error: 'interp_perl' undeclared (first use in this function)
perl.c:164: error: 'ENTER' undeclared (first use in this function)
perl.c:165: error: 'SAVETMPS' undeclared (first use in this function)
perl.c:166: error: 'SP' undeclared (first use in this function)
perl.c:168: error: 'PUTBACK' undeclared (first use in this function)
perl.c:169: error: 'G_SCALAR' undeclared (first use in this function)
perl.c:169: error: 'G_EVAL' undeclared (first use in this function)
perl.c:170: error: 'SPAGAIN' undeclared (first use in this function)
perl.c:171: error: 'POPs' undeclared (first use in this function)
perl.c:173: error: 'errgv' undeclared (first use in this function)
perl.c:175: error: 'len' undeclared (first use in this function)
perl.c:185: error: 'FREETMPS' undeclared (first use in this function)
perl.c:186: error: 'LEAVE' undeclared (first use in this function)
make[1]: *** [perl.o] Error 1
make[1]: Leaving directory `/usr/local/src/exim-4.69/build-Linux-i386'
make: *** [go] Error 2
 
Hello,

I recently ran into the error
Code:
perl.c:29:20: error: EXTERN.h: No such file or directory
perl.c:30:18: error: perl.h: No such file or directory
perl.c:31:18: error: XSUB.h: No such file or directory
The solution I found was to set the PERL_CCOPTS and PERL_LIBS option in the Makefile.
The values used can be generated with:
Code:
perl -MExtUtils::Embed -e ccopts
perl -MExtUtils::Embed -e ldopts
respectively.

and tag on $(CLFAGS) onto the end of the PERL_CCOPTS line.
For example, on Fedora 9, the resulting 2 lines was:
Code:
PERL_CCOPTS= -D_REENTRANT -D_GNU_SOURCE -DDEBUGGING -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm  -I/usr/lib/perl5/5.10.0/i386-linux-thread-multi/CORE $(CFLAGS)
PERL_LIBS= -Wl,-E -Wl,-rpath,/usr/lib/perl5/5.10.0/i386-linux-thread-multi/CORE  -L/usr/local/lib  -L/usr/lib/perl5/5.10.0/i386-linux-thread-multi/CORE -lperl -lresolv -lnsl -ldl -lm -lcrypt -lutil -lpthread -lc

I hope that helps anyone who runs into that error.. it took me a few hours to get through it.

Note that you need to have the perl modules:
ExtUtils/Embed.pm
which you can install using yum:
Code:
yum install perl-ExtUtils-Embed perl-devel perl-libs

John
 
Back
Top