I have also resolved several compilation errors and now I have reach a
point where I am getting a link error:
emxomf: Input file `../lib/.libs/boinc.a(libboinc_la-app_ipc.o)' is
not an a.out file
emxomfld: a.out to omf conversion failed for '../lib/.libs/boinc.a'.
Is there an obvious (to others but not yet to me) cause for a message
like this? Could it be connected to my change from "ln" to "cp"?
(libboinc.a is one of the files "built" via my use of "cp" in
"solving" my earlier problem.)
The (very long) command which causes this error follows. Should I be
concerned with:
a) libtool: link: warning: library `U:/usr/lib//libstdc++.la' was
moved.
b) all the "-LD:/CODING/LIBC/SVN/BRANCHES/LIBC-0.6..." parameters
in the if no such directories exist on my system? (I don't even have
D:\CODING.):
ash.exe ../libtool --tag=CXX --mode=link g++ -g -Zomf -O3
-march=pentium -mcpu=pentium3 -static -g -Zstack 0x100 -Zbin-files
-Zmap -Zhigh-mem -Zomf -Zexe -Lu:/curl/lib -o boinc_client.exe
-static -L../lib boinc_client-acct_mgr.o boinc_client-acct_setup.o
boinc_client-app.o boinc_client-app_control.o
boinc_client-app_graphics.o boinc_client-app_start.o
boinc_client-auto_update.o boinc_client-check_state.o
boinc_client-client_msgs.o boinc_client-client_state.o
boinc_client-client_types.o boinc_client-cpu_sched.o
boinc_client-cs_account.o boinc_client-cs_apps.o
boinc_client-cs_benchmark.o boinc_client-cs_cmdline.o
boinc_client-cs_files.o boinc_client-cs_platforms.o
boinc_client-cs_prefs.o boinc_client-cs_scheduler.o
boinc_client-cs_statefile.o boinc_client-cs_trickle.o
boinc_client-dhrystone.o boinc_client-dhrystone2.o
boinc_client-file_names.o boinc_client-file_xfer.o
boinc_client-gui_http.o boinc_client-gui_rpc_server.o
boinc_client-gui_rpc_server_ops.o boinc_client-hostinfo_network.o
boinc_client-hostinfo_unix.o boinc_client-http_curl.o
boinc_client-log_flags.o boinc_client-main.o boinc_client-net_stats.o
boinc_client-pers_file_xfer.o boinc_client-rr_sim.o
boinc_client-sandbox.o boinc_client-scheduler_op.o
boinc_client-time_stats.o boinc_client-whetstone.o
boinc_client-work_fetch.o ../lib/libboinc.la -L/curl/lib -lcurl -Zexe
-Zomf -Zmap -Zargs-wild -D__ST_MT_ERRNO__ -s -L/extras/lib -lidn -lssl
-lcrypto -lssl -lcrypto -lz -Lu:/extras -lssl -lcrypto -ldl -lz -ldl
-lsocket -lz -lpthreads -lstdc++ -lgcc -lgcc_eh -lpthread -lc -lm
libtool: ignoring unknown tag CXX
mkdir .libs
libtool: link: warning: library `U:/usr/lib//libstdc++.la' was moved.
libtool: link: warning: library `U:/usr/lib//libstdc++.la' was moved.
g++ -g -Zomf -O3 -march=pentium -mcpu=pentium3 -g
-Zstack 0x100 -Zbin-files -Zmap -Zhigh-mem -Zomf
-Zexe -o boinc_client.exe boinc_client-acct_mgr.o
boinc_client-acct_setup.o boinc_client-app.o
boinc_client-app_control.o boinc_client-app_graphics.o
boinc_client-app_start.o boinc_client-auto_update.o
boinc_client-check_state.o boinc_client-client_msgs.o
boinc_client-client_state.o boinc_client-client_types.o
boinc_client-cpu_sched.o boinc_client-cs_account.o
boinc_client-cs_apps.o boinc_client-cs_benchmark.o
boinc_client-cs_cmdline.o boinc_client-cs_files.o
boinc_client-cs_platforms.o boinc_client-cs_prefs.o
boinc_client-cs_scheduler.o boinc_client-cs_statefile.o
boinc_client-cs_trickle.o boinc_client-dhrystone.o
boinc_client-dhrystone2.o boinc_client-file_names.o
boinc_client-file_xfer.o boinc_client-gui_http.o
boinc_client-gui_rpc_server.o boinc_client-gui_rpc_server_ops.o
boinc_client-hostinfo_network.o boinc_client-hostinfo_unix.o
boinc_client-http_curl.o boinc_client-log_flags.o
boinc_client-main.o boinc_client-net_stats.o
boinc_client-pers_file_xfer.o boinc_client-rr_sim.o
boinc_client-sandbox.o boinc_client-scheduler_op.o
boinc_client-time_stats.o boinc_client-whetstone.o
boinc_client-work_fetch.o -Zexe -Zomf -Zmap -Zargs-wild
-D__ST_MT_ERRNO__ -s -Lu:/curl/lib -L/src/boinc/lib
./lib/.libs/boinc.a -L/usr/local/seti/lib -L/curl/lib
/curl/lib/curl.a -L/extras/lib /extras/lib/idn.a -Lu:/extras
-lssl -lcrypto -ldl -lsocket -lz -lpthreads
U:/usr/lib//libstdc++.a
-LD:/CODING/LIBC/SVN/BRANCHES/LIBC-0.6/obj/OS2/RELEASE/gcc/i386-pc-os2
-emx/libstdc++-v3/src
-LD:/CODING/LIBC/SVN/BRANCHES/LIBC-0.6/obj/OS2/RELEASE/gcc/i386-pc-os2
-emx/libstdc++-v3/src/.libs
-LD:/CODING/LIBC/SVN/BRANCHES/LIBC-0.6/obj/OS2/RELEASE/gcc/gcc
-LD:/CODING/LIBC/SVN/BRANCHES/LIBC-0.6/obj/OS2/RELEASE/builtunix/usr/l
ib/gcc-lib/i386-pc-os2-emx/3.3.5
-LD:/CODING/LIBC/SVN/BRANCHES/LIBC-0.6/obj/OS2/RELEASE/builtunix/usr/l
ib -LD:/CODING/LIBC/SVN/BRANCHES/LIBC-0.6/TOOLS/usr/lib
-LD:/CODING/LIBC/SVN/BRANCHES/LIBC-0.6/TOOLS/x86.os2/gcc/staged/lib/gc
c-lib/i386-pc-os2-emx/3.3.5
-LD:/CODING/LIBC/SVN/BRANCHES/LIBC-0.6/TOOLS/x86.os2/gcc/staged/lib
-lgcc_so_d -lc_alias -lc_dll -los2 -lgcc -lgcc_eh
-lpthread -lm
Can anyone point me to a solution or where I might read to solve this
problem myself? Thanks!
--
John Small
Usually these kind of errors come from using -Zomf in CFLAGS and LDFLAGS
then using ar instead of emxomfar and .a suffix instead of .lib.
Look in your config.site and try removing -Zomf from the CFLAGS. Perhaps
also from LDFLAGS as well.
Dave
I finally got a chance to try this. I get the following error:
ash.exe ../libtool --tag=CXX --mode=link g++ -g -O3 -march=pentium
-mcpu=pentium3 -g -Zstack 0x100 -Zbin-files -Zmap -Zhigh-mem -Zexe
-Lu:/extras/lib -o libboinc_api.la -rpath /usr/local/seti/lib
-L/usr/local/seti/lib -rpath /usr/local/seti/lib -version-number 6:7:0
boinc_api.lo reduce_main.lo graphics2_util.lo
libtool: ignoring unknown tag CXX
mkdir .libs
libtool: link: warning: undefined symbols not allowed in i386-pc-os2
shared libr
aries
emxomfar cru .libs/boinc_api.a boinc_api.o reduce_main.o
graphics2_util.o
emxomfar: .libs/boinc_api.a(boinc_api.o): Record too long
Record too long??
--
John Small
Somewhere (config.site?) you have AR=emxomfar. You need to use plain old
ar if not using -Zomf in CLFAGS.
By default on OS/2 gcc produces AOUT object files and uses the usual
tools like ar.exe.
With -Zomf gcc produces OMF object files like other OS/2 compilers. Uses
emxomfar.exe etc.
Usually AOUT libs end in .a and OMF libs end in .lib.
EMX also used .obj for OMF and .o for AOUT object files, KLIBC just uses .o.
Dave