Hello,
I just tried to compile synapse (newest release) on Debian Squeez, which
runs on an ARM Hardware (raspberry Pi) and get the following error
during linking:
FPC is installed on the ARm system locally.
My program hallo uses your mailsend function, just for testing.
If I compile the whole packet under windows, everythings works.
------------------------------------------------------------------------
---------------
root@raspberrypi:/home/pi/rpi# fpc hallo
Free Pascal Compiler version 2.4.0-2 [2010/02/20] for arm
Copyright (c) 1993-2009 by Florian Klaempfl
Target OS: Linux for ARMEL
Compiling hallo.pas
Compiling sf_tcp.pas
Compiling sf_func1.pas
Assembling sf_func1
Compiling sf_log.pas
Assembling sf_log
Compiling synautil.pas
Compiling synafpc.pas
Assembling synafpc
synautil.pas(1922,3) Note: Local variable "BackStop" is assigned but
never used
Assembling synautil
Compiling blcksock.pas
Compiling synsock.pas
Assembling synsock
Compiling synacode.pas
Assembling synacode
Compiling synaip.pas
Assembling synaip
Assembling blcksock
Compiling httpsend.pas
Assembling httpsend
Compiling smtpsend.pas
Assembling smtpsend
Compiling pop3send.pas
Assembling pop3send
Compiling pingsend.pas
pingsend.pas(337,3) Note: Local variable "b" not used
pingsend.pas(481,3) Note: Local variable "ICMP6Ptr" not used
pingsend.pas(482,3) Note: Local variable "s" not used
pingsend.pas(483,3) Note: Local variable "b" not used
pingsend.pas(484,3) Note: Local variable "ip6" not used
pingsend.pas(485,3) Note: Local variable "x" not used
Assembling pingsend
Compiling ftpsend.pas
Assembling ftpsend
Assembling sf_tcp
Assembling hallo
Linking hallo
/usr/bin/ld: warning: link.res contains output sections; did you forget
-T?
/usr/bin/ld: warning: ld-linux.so.2, needed by ./libdl.so, not found
(try using -rpath or -rpath-link)
./libc.so: undefined reference to `__libc_stack_end@GLIBC_2.1'
./libdl.so: undefined reference to `_dl_catch_error@GLIBC_PRIVATE'
./libc.so: undefined reference to `_dl_map_object@GLIBC_PRIVATE'
./libc.so: undefined reference to `_dl_start_profile@GLIBC_PRIVATE'
./libc.so: undefined reference to
`_dl_lookup_versioned_symbol_skip@GLIBC_PRIVAT
E'
./libc.so: undefined reference to `_dl_debug_printf@GLIBC_PRIVATE'
./libc.so: undefined reference to `_r_debug@GLIBC_2.0'
./libc.so: undefined reference to `_dl_argv@GLIBC_PRIVATE'
./libc.so: undefined reference to `_dl_init@GLIBC_PRIVATE'
./libc.so: undefined reference to `_dl_dst_count@GLIBC_PRIVATE'
./libdl.so: undefined reference to `_dl_signal_error@GLIBC_PRIVATE'
./libc.so: undefined reference to `_dl_map_object_deps@GLIBC_PRIVATE'
./libc.so: undefined reference to `_dl_check_map_versions@GLIBC_PRIVATE'
./libc.so: undefined reference to `_dl_unload_cache@GLIBC_PRIVATE'
./libc.so: undefined reference to `_dl_lookup_symbol_skip@GLIBC_PRIVATE'
./libdl.so: undefined reference to `_dl_rtld_di_serinfo@GLIBC_PRIVATE'
./libc.so: undefined reference to `_dl_dst_substitute@GLIBC_PRIVATE'
./libc.so: undefined reference to `_dl_get_origin@GLIBC_PRIVATE'
./libc.so: undefined reference to `_dl_out_of_memory@GLIBC_PRIVATE'
./libc.so: undefined reference to `_dl_lookup_symbol@GLIBC_PRIVATE'
./libc.so: undefined reference to `_dl_mcount@GLIBC_2.1'
./libc.so: undefined reference to `_rtld_global@GLIBC_PRIVATE'
./libc.so: undefined reference to `_dl_relocate_object@GLIBC_PRIVATE'
./libc.so: undefined reference to `__libc_enable_secure@GLIBC_PRIVATE'
./libc.so: undefined reference to `_dl_debug_state@GLIBC_PRIVATE'
./libc.so: undefined reference to
`_dl_lookup_versioned_symbol@GLIBC_PRIVATE'
rpi_const.inc(13,3) Error: Error while linking
rpi_const.inc(13,3) Fatal: There were 1 errors compiling module,
stopping
Fatal: Compilation aborted
Error: /usr/bin/ppcarm returned an error exitcode (normal if you did no
a source file to be compiled)
root@raspberrypi:/home/pi/rpi# ls -l ld-li*
-rwxrwxrwx 1 root root 23135 Jun 4 12:20 ld-linux.so
-rwxrwxrwx 1 root root 23135 Jun 4 12:20 ld-linux.so.2
root@raspberrypi:/home/pi/rpi#
------------------------------------------------------------------------
---------------
As you can see, ld-linux.so.2 is in the local directory. Why do I get a
linking error ?
Mit freundlichen Grüßen / with best regards
Stefan Fischer
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
synalist-public mailing list
synalist-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/synalist-public