[Proftpd-user] proftpd 1.3.1 : compilation failed with "wrong ELF
This is a multipart message in MIME format.
--===============1022829548==
Content-Type: multipart/alternative;
boundary="=_alternative 0067181DC12573D1_="
This is a multipart message in MIME format.
--=_alternative 0067181DC12573D1_=
Content-Type: text/plain; charset="US-ASCII"
hi,
I'm trying to compile proftpd1.3.1 for Solaris 9 on 64bits but i still
getting the same error :
my ./config.perso is
export CC="gcc"
export CFLAGS=" -O2 -mcpu=v9 -m64"
export CPPFLAGS=" -I/usr/sfw/include"
export LDFLAGS=" -L/usr/local/lib/sparcv9 -R/usr/local/lib/sparcv9"
../configure \
--prefix=/proftpd \
--with-modules=mod_site_misc:mod_ldap:mod_tls \
--enable-facl \
--with-includes=/openssl/include:/openldap/include \
--with-libraries=/openssl/lib:/openldap/lib
The ./config.perso end without pb but i had some warning :
configure: WARNING: security/pam_modules.h: present but cannot be compiled
configure: WARNING: security/pam_modules.h: check for missing
prerequisite headers?
configure: WARNING: security/pam_modules.h: see the Autoconf documentation
configure: WARNING: security/pam_modules.h: section "Present But
Cannot Be Compiled"
configure: WARNING: security/pam_modules.h: proceeding with the
preprocessor's result
configure: WARNING: security/pam_modules.h: in the future, the compiler
will take precedence
configure: WARNING: ## ------------------------------------------ ##
configure: WARNING: ## Report this to the AC_PACKAGE_NAME lists. ##
configure: WARNING: ## ------------------------------------------ ##
In the config.log file i had this :
.............................
.................................
configure:8016: result: no
configure:8021: checking for dlopen
configure:8078: gcc -o conftest -O2 -mcpu=v9 -m64 -I/usr/sfw/include
-L/usr/local/lib/sparcv9 -R/usr/local/lib/sparcv9 conftest.c[color=blue]
>&5[/color]
Undefined first referenced
symbol in file
dlopen /var/tmp//ccoTuC9n.o (symbol belongs
to implicit dependency /lib/sparcv9/libdl.so.1)
ld: fatal: Symbol referencing errors. No output written to conftest
collect2: ld returned 1 exit status
configure:8084: $? = 1
configure: failed program was:
| /* confdefs.h. */
|
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
................
.................
configure:31704: gcc -o conftest -O2 -mcpu=v9 -m64 -Wall
-I/usr/sfw/include -I/openldap/include -I/openssl/include
-L$(top_srcdir)/lib -L/usr/local/lib/sparcv9 -R/usr/local/lib/sparcv9
-L/openldap/lib -L/openssl/lib -L/usr/ucblib/ conftest.c -lucb -lsocket
-lnsl -lresolv >&5
conftest.c:111: warning: conflicting types for built-in function 'alloca'
ld: fatal: file /usr/ucblib//libucb.so: wrong ELF class: ELFCLASS32
ld: fatal: File processing errors. No output written to conftest
collect2: ld returned 1 exit status
configure:31710: $? = 1
configure: failed program was:
| /* confdefs.h. */
|
| #define PACKAGE_NAME ""
In the config.log i had this :
configure:2534: result: none needed
configure:2552: gcc -c -O2 -mcpu=v9 -m64 -I/usr/sfw/include conftest.c[color=blue]
>&5[/color]
conftest.c:2: error: syntax error before "me"
..........................
.........................
ld: fatal: library -lutil: not found
ld: fatal: File processing errors. No output written to conftest
...............
....................
extern "C" void std::exit (int) throw (); using std::exit;
configure: exit 0
but the make command stop with this error :
ld: fatal: file src/main.o: wrong ELF class: ELFCLASS64
ld: fatal: File processing errors. No output written to proftpd
collect2: ld returned 1 exit status
*** Error code 1
make: Fatal error: Command failed for target `proftpd'
Do you have any idea ?
PS: with proftpd1.3.0a i don't have this problem for compilation on 64bis.
Best Regards
Abdelmounim BAROUDI
--=_alternative 0067181DC12573D1_=
Content-Type: text/html; charset="US-ASCII"
<br><font size=2 face="sans-serif"><b>hi,</b></font>
<br>
<br><font size=2 face="sans-serif"><b>I'm trying to compile proftpd1.3.1
for Solaris 9 on 64bits but i still getting the same error :</b></font>
<br>
<br><font size=2 face="sans-serif"><b>my ./config.perso is </b></font>
<br>
<br><font size=2 color=blue face="sans-serif">export CC="gcc"</font>
<br><font size=2 color=blue face="sans-serif">export CFLAGS=" -O2
-mcpu=v9 -m64"</font>
<br><font size=2 color=blue face="sans-serif">export CPPFLAGS=" -I/usr/sfw/include"</font>
<br><font size=2 color=blue face="sans-serif">export LDFLAGS=" -L/usr/local/lib/sparcv9
-R/usr/local/lib/sparcv9"</font>
<br>
<br><font size=2 color=blue face="sans-serif">./configure \</font>
<br><font size=2 color=blue face="sans-serif">--prefix=/proftpd \</font>
<br><font size=2 color=blue face="sans-serif">--with-modules=mod_site_misc:mod_ldap:mod_tls
\</font>
<br><font size=2 color=blue face="sans-serif">--enable-facl \</font>
<br><font size=2 color=blue face="sans-serif">--with-includes=/openssl/include:/openldap/include
\</font>
<br><font size=2 color=blue face="sans-serif">--with-libraries=/openssl/lib:/openldap/lib</font>
<br>
<br>
<br><font size=2 face="sans-serif"><b>The ./config.perso end without
pb but i had some warning :</b></font>
<br>
<br><font size=2 color=blue face="sans-serif">configure: WARNING: security/pam_modules.h:
present but cannot be compiled</font>
<br><font size=2 color=blue face="sans-serif">configure: WARNING: security/pam_modules.h:
check for missing prerequisite headers?</font>
<br><font size=2 color=blue face="sans-serif">configure: WARNING: security/pam_modules.h:
see the Autoconf documentation</font>
<br><font size=2 color=blue face="sans-serif">configure: WARNING: security/pam_modules.h:
section "Present But Cannot Be Compiled"</font>
<br><font size=2 color=blue face="sans-serif">configure: WARNING: security/pam_modules.h:
proceeding with the preprocessor's result</font>
<br><font size=2 color=blue face="sans-serif">configure: WARNING: security/pam_modules.h:
in the future, the compiler will take precedence</font>
<br><font size=2 color=blue face="sans-serif">configure: WARNING:
## ------------------------------------------ ##</font>
<br><font size=2 color=blue face="sans-serif">configure: WARNING:
## Report this to the AC_PACKAGE_NAME lists. ##</font>
<br><font size=2 color=blue face="sans-serif">configure: WARNING:
## ------------------------------------------ ##</font>
<br>
<br>
<br><font size=2 face="sans-serif"><b>In the config.log file i had this
:</b></font>
<br>
<br><font size=2 color=blue face="sans-serif">............................</font>
<br><font size=2 color=blue face="sans-serif">................................</font>
<br><font size=2 color=blue face="sans-serif">configure:8016: result: no</font>
<br><font size=2 color=blue face="sans-serif">configure:8021: checking
for dlopen</font>
<br><font size=2 color=blue face="sans-serif">configure:8078: gcc -o conftest
-O2 -mcpu=v9 -m64 -I/usr/sfw/include -L/usr/local/lib/sparcv9
-R/usr/local/lib/sparcv9 conftest.c</font>
<br><font size=2 color=blue face="sans-serif"> >&5</font>
<br><font size=2 color=blue face="sans-serif">Undefined
first referenced</font>
<br><font size=2 color=blue face="sans-serif"> symbol
in file</font>
<br><font size=2 color=blue face="sans-serif">dlopen
/var/tmp//ccoTuC9n.o (symbol belongs to implicit dependency
/lib/sparcv9/libdl.so.1)</font>
<br><font size=2 color=blue face="sans-serif">ld: fatal: Symbol referencing
errors. No output written to conftest</font>
<br><font size=2 color=blue face="sans-serif">collect2: ld returned 1 exit
status</font>
<br><font size=2 color=blue face="sans-serif">configure:8084: $? = 1</font>
<br><font size=2 color=blue face="sans-serif">configure: failed program
was:</font>
<br><font size=2 color=blue face="sans-serif">| /* confdefs.h. */</font>
<br><font size=2 color=blue face="sans-serif">| </font>
<br><font size=2 color=blue face="sans-serif">| #define PACKAGE_NAME ""</font>
<br><font size=2 color=blue face="sans-serif">| #define PACKAGE_TARNAME
""</font>
<br><font size=2 color=blue face="sans-serif">| #define PACKAGE_VERSION
""</font>
<br><font size=2 color=blue face="sans-serif">...............</font>
<br><font size=2 color=blue face="sans-serif">................</font>
<br><font size=2 color=blue face="sans-serif">configure:31704: gcc -o conftest
-O2 -mcpu=v9 -m64 -Wall -I/usr/sfw/include -I/openldap/include
-I/openssl/include -L$(top_srcdir)/lib -L/usr/local/lib/sparcv9 -R/usr/local/lib/sparcv9
-L/openldap/lib -L/openssl/lib -L/usr/ucblib/ conftest.c -lucb -lsocket
-lnsl -lresolv >&5</font>
<br><font size=2 color=blue face="sans-serif">conftest.c:111: warning:
conflicting types for built-in function 'alloca'</font>
<br><font size=2 color=blue face="sans-serif">ld: fatal: file /usr/ucblib//libucb.so:
wrong ELF class: ELFCLASS32</font>
<br><font size=2 color=blue face="sans-serif">ld: fatal: File processing
errors. No output written to conftest</font>
<br><font size=2 color=blue face="sans-serif">collect2: ld returned 1 exit
status</font>
<br><font size=2 color=blue face="sans-serif">configure:31710: $? = 1</font>
<br><font size=2 color=blue face="sans-serif">configure: failed program
was:</font>
<br><font size=2 color=blue face="sans-serif">| /* confdefs.h. */</font>
<br><font size=2 color=blue face="sans-serif">| </font>
<br><font size=2 color=blue face="sans-serif">| #define PACKAGE_NAME ""</font>
<br>
<br><font size=2 color=blue face="sans-serif">In the config.log i had this
:</font>
<br><font size=2 color=blue face="sans-serif">configure:2534: result: none
needed</font>
<br><font size=2 color=blue face="sans-serif">configure:2552: gcc -c -O2
-mcpu=v9 -m64 -I/usr/sfw/include conftest.c >&5</font>
<br><font size=2 color=blue face="sans-serif">conftest.c:2: error: syntax
error before "me"</font>
<br><font size=2 color=blue face="sans-serif">.........................</font>
<br><font size=2 color=blue face="sans-serif">........................</font>
<br><font size=2 color=blue face="sans-serif">ld: fatal: library -lutil:
not found</font>
<br><font size=2 color=blue face="sans-serif">ld: fatal: File processing
errors. No output written to conftest</font>
<br><font size=2 color=blue face="sans-serif">..............</font>
<br><font size=2 color=blue face="sans-serif">...................</font>
<br><font size=2 color=blue face="sans-serif">extern "C" void
std::exit (int) throw (); using std::exit;</font>
<br>
<br><font size=2 color=blue face="sans-serif">configure: exit 0</font>
<br>
<br><font size=2 face="sans-serif"><b>but the make command stop with
this error :</b></font>
<br>
<br>
<br><font size=2 color=blue face="sans-serif">ld: fatal: file src/main.o:
wrong ELF class: ELFCLASS64</font>
<br><font size=2 color=blue face="sans-serif">ld: fatal: File processing
errors. No output written to proftpd</font>
<br><font size=2 color=blue face="sans-serif">collect2: ld returned 1 exit
status</font>
<br><font size=2 color=blue face="sans-serif">*** Error code 1</font>
<br><font size=2 color=blue face="sans-serif">make: Fatal error: Command
failed for target `proftpd'</font>
<br>
<br>
<br>
<br>
<br><font size=2 face="sans-serif"><b>Do you have any idea ?</b></font>
<br>
<br><font size=2 face="sans-serif"><b>PS: with proftpd1.3.0a i don't have
this problem for compilation on 64bis.</b></font>
<br><font size=2 face="sans-serif"><br>
</font>
<br><font size=2 face="sans-serif">Best Regards</font>
<br>
<br><font size=2 face="sans-serif">Abdelmounim BAROUDI</font>
--=_alternative 0067181DC12573D1_=--
--===============1022829548==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
[url]http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/[/url]
--===============1022829548==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
_______________________________________________
ProFTPD Users List <proftpd-users@proftpd.org>
Unsubscribe problems?
[url]http://www.proftpd.org/list-unsub.html[/url]
--===============1022829548==--