This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: Link problem when building cygwin1.dll (parsing cygwin.def)



Dave, attached is the def file after I ran d2u on it.
I'm getting a different error in the link. I was wondering if we could compare this def file and the one you might have. I am wondering if a .def should be considered a "linker script" for this linker.


Here is the output:

Making version.o and winver.o
Version 1.5.19
c++ -L/slv/src/build/i686-pc-cygwin/winsup -L/slv/src/build/i686-pc-cygwin/win
p/cygwin -L/slv/src/build/i686-pc-cygwin/winsup/w32api/lib -isystem /slv/src/w
sup/include -isystem /slv/src/winsup/cygwin/include -isystem /slv/src/winsup/w
api/include -B/slv/src/build/i686-pc-cygwin/newlib/ -isystem /slv/src/build/i6
-pc-cygwin/newlib/targ-include -isystem /slv/src/newlib/libc/include -g -O2 -W
--gc-sections -nostdlib -Wl,-T../../../../winsup/cygwin/cygwin.sc \
-Wl,--heap=0 -Wl,--out-implib,cygdll.a -shared -o cygwin0.dll \
-e _dll_entry@12 cygwin.def assert.o autoload.o bsdlib.o ctype.o cxx.o cygheap
cygthread.o cygtls.o dcrt0.o debug.o delqueue.o devices.o dir.o dlfcn.o dll_i
t.o dtable.o environ.o errno.o exceptions.o exec.o external.o fcntl.o fhandler
fhandler_clipboard.o fhandler_console.o fhandler_disk_file.o fhandler_dsp.o f
ndler_fifo.o fhandler_floppy.o fhandler_mailslot.o fhandler_mem.o fhandler_net
ive.o fhandler_nodevice.o fhandler_proc.o fhandler_process.o fhandler_random.o
handler_raw.o fhandler_registry.o fhandler_serial.o fhandler_socket.o fhandler
ape.o fhandler_termios.o fhandler_tty.o fhandler_virtual.o fhandler_windows.o
andler_zero.o flock.o fnmatch.o fork.o getopt.o glob.o grp.o heap.o hookapi.o
it.o ioctl.o ipc.o iruserok.o localtime.o lsearch.o malloc_wrapper.o miscfuncs
mktemp.o mmap.o msg.o net.o netdb.o ntea.o passwd.o path.o pinfo.o pipe.o pol
o pthread.o regcomp.o regerror.o regexec.o regfree.o registry.o resource.o sca
ir.o sched.o sec_acl.o sec_helper.o security.o select.o sem.o shared.o shm.o s
fe.o signal.o sigproc.o smallprint.o spawn.o strace.o strsep.o strsig.o sync.o
yscalls.o sysconf.o syslog.o termios.o thread.o timer.o times.o tty.o uinfo.o
ame.o v8_regexp.o v8_regerror.o v8_regsub.o wait.o wincap.o window.o /slv/src
uild/i686-pc-cygwin/libiberty/random.o malloc.o version.o winver.o \
/slv/src/build/i686-pc-cygwin/winsup/cygserver/libcygserver.a /slv/src/build/
86-pc-cygwin/newlib/libm/libm.a /slv/src/build/i686-pc-cygwin/newlib/libc/libc
\
-lgcc /slv/src/build/i686-pc-cygwin/winsup/w32api/lib/libkernel32.a /slv/src/b
ld/i686-pc-cygwin/winsup/w32api/lib/libadvapi32.a
/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../i686-pc-cygwin/bin/ld: cygwin.de
4: syntax error
/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../i686-pc-cygwin/bin/ld:cygwin.def
file format not recognized; treating as linker script
/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../i686-pc-cygwin/bin/ld:cygwin.def
: syntax error
collect2: ld returned 1 exit status
make[2]: *** [cygwin0.dll] Error 1
make[2]: Leaving directory `/slv/src/build/i686-pc-cygwin/winsup/cygwin'
make[1]: *** [install_cygwin] Error 1
make[1]: Leaving directory `/slv/src/build/i686-pc-cygwin/winsup'
make: *** [install-target-winsup] Error 2



Thanks, Eitan




To: <cygwin@cygwin.com> Subject: RE: Link problem when building cygwin1.dll (parsing cygwin.def) Date: Wed, 27 Jul 2005 13:07:25 +0100

----Original Message----
>From: Eitan Eliahu
>Sent: 27 July 2005 05:46

> Dave,
> I'm still having this problem. I configured cygwin to be in UNIX mode (all
> mounts are binaries) and added the packages you mentioned.
>
> Should I try to build the code from the cygwin itself rather than the one
> from the CVS?


No, let's try and actually figure out the problem.

  One thing to try would be to run d2u on that .def file and see if it
solves it.  Some of the binutils are known to segfault on bad input and I
think that DOS-style lineendings in textfiles to ld may well be one of them.
Even though you've remounted UNIX mode, it's possible the .def file itself
has become permanently DOSified.

  Another thing to try and understand is why gcc version 3.3.1 is getting
involved in the process.  That should _not_ be happening.  However, we'll
get into that if the d2u trick doesn't fix it.

    cheers,
      DaveK
--
Can't think of a witty .sigline today....


-- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/



--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]