Re: Unable to compile Postfix 2.6 on Ubuntu 8.10 or CentOS 5.2

2009-05-13 Thread David Touzeau
Just Notice when do 

ld -lpcre --verbose

i receive error 
ld: warning: cannot find entry symbol _start; not setting start address

but library is found in /usr/lib/libpcre.so

attempt to open /usr/i386-redhat-linux/lib/libpcre.so failed
attempt to open /usr/i386-redhat-linux/lib/libpcre.a failed
attempt to open /usr/local/lib/libpcre.so failed
attempt to open /usr/local/lib/libpcre.a failed
attempt to open /lib/libpcre.so failed
attempt to open /lib/libpcre.a failed
attempt to open /usr/lib/libpcre.so succeeded
-lpcre (/usr/lib/libpcre.so)
libc.so.6 needed by /usr/lib/libpcre.so
found libc.so.6 at /lib/libc.so.6
ld-linux.so.2 needed by /lib/libc.so.6
found ld-linux.so.2 at /lib/ld-linux.so.2
ld: warning: cannot find entry symbol _start; not setting start address



 Message initial 
De: Wietse Venema wie...@porcupine.org
À: da...@touzeau.eu
Cc: postfix-users@postfix.org
Sujet: Re: Unable to compile Postfix 2.6 on Ubuntu 2.10 or CentOS 5.2
Date: Wed, 13 May 2009 09:46:14 -0400 (EDT)


David Touzeau:
 
 Dear 
 
 I'm trying to compile Postfix 2.6 on Ubuntu 2.10 or CentOS 5.2 with the
 following arguments:
 
 make tidy
 /usr/bin/make makefiles CCARGS= -DMAX_DYNAMIC_MAPS -DHAS_PCRE
 -DMYORIGIN_FROM_FILE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
 -DHAS_LDAP -DHAS_SSL -I/usr/include/openssl -DUSE_SASL_AUTH
 -I/usr/include/sasl -DUSE_CYRUS_SASL -DUSE_TLS DEBUG= AUXLIBS=-lssl
 -lcrypto -lsasl2 OPT=-O2
 

What is the output from:

$ pcre-config --cflags
$ pcre-config --libs

Per instructions, if you specify -DHAS_PCRE, you must also
specify the PCRE library.

Wietse


Re: Unable to compile Postfix 2.6 on Ubuntu 8.10 or CentOS 5.2

2009-05-13 Thread Victor Duchovni
On Wed, May 13, 2009 at 05:09:18PM +0200, David Touzeau wrote:

 Just Notice when do 
 
 ld -lpcre --verbose
 
 i receive error 
 ld: warning: cannot find entry symbol _start; not setting start address

This is normal. Your CCARGS recipe is broken. Either:

- Don't include HAS_PCRE and let Postfix figure it out
OR
- Do include HAS_PCRE and specify *ALL* the appropriate linker flags

-- 
Viktor.

Disclaimer: off-list followups get on-list replies or get ignored.
Please do not ignore the Reply-To header.

To unsubscribe from the postfix-users list, visit
http://www.postfix.org/lists.html or click the link below:
mailto:majord...@postfix.org?body=unsubscribe%20postfix-users

If my response solves your problem, the best way to thank me is to not
send an it worked, thanks follow-up. If you must respond, please put
It worked, thanks in the Subject so I can delete these quickly.


Re: Unable to compile Postfix 2.6 on Ubuntu 8.10 or CentOS 5.2

2009-05-13 Thread David Touzeau
Many thanks victor

Without notify HAS_PCRE the compilation run correctly 


 Message initial 
De: Victor Duchovni victor.ducho...@morganstanley.com
Reply-to: postfix-users@postfix.org
À: postfix-users@postfix.org
Sujet: Re: Unable to compile Postfix 2.6 on Ubuntu 8.10 or CentOS 5.2
Date: Wed, 13 May 2009 11:13:19 -0400


On Wed, May 13, 2009 at 05:09:18PM +0200, David Touzeau wrote:

 Just Notice when do 
 
 ld -lpcre --verbose
 
 i receive error 
 ld: warning: cannot find entry symbol _start; not setting start address

This is normal. Your CCARGS recipe is broken. Either:

- Don't include HAS_PCRE and let Postfix figure it out
OR
- Do include HAS_PCRE and specify *ALL* the appropriate linker flags