[Bug 3664] New: _environ from dlls/msvcrt/data.c conflicts with the same from /usr/lib/crt1.o

Wine Bugs wine-bugs at winehq.org
Wed Oct 26 07:31:09 CDT 2005


http://bugs.winehq.org/show_bug.cgi?id=3664

           Summary: _environ from dlls/msvcrt/data.c conflicts with the same
                    from /usr/lib/crt1.o
           Product: Wine
           Version: 0.9
          Platform: PC
        OS/Version: Solaris
            Status: UNCONFIRMED
          Severity: major
          Priority: P2
         Component: wine-ports
        AssignedTo: wine-bugs at winehq.org
        ReportedBy: grubba at grubba.org


dlls/msvcrt/data.c defines the symbol _environ:

char **_environ = 0;

This symbol conflicts with the _environ from /usr/lib/crt1.o on Solaris 10/x86:

../../tools/winegcc/winegcc -B../../tools/winebuild -shared ./msvcrt.spec   
console.o cpp.o cppexcept.o ctype.o data.o dir.o environ.o errno.o except.o
exit.o file.o heap.o locale.o lock.o main.o math.o mbcs.o misc.o process.o
scanf.o string.o thread.o time.o undname.o wcs.o     -o msvcrt.dll.so
-L../../dlls -L../../dlls/user32 -L../../dlls/kernel32 -L../../dlls/ntdll
-luser32 -lkernel32 -lntdll -Wb,-duser32 -L../../libs/wine -lwine
-L../../libs/unicode -lwine_unicode -L../../libs/port -lwine_port -L/usr/sfw/lib
-R/usr/sfw/lib -L/usr/local/lib -R/usr/local/lib -L/opt/sfw/lib -R/opt/sfw/lib
-L/opt/csw/lib -R/opt/csw/lib -lresolv -lsocket -lnsl 
ld: fatal: symbol `_environ' is multiply-defined:
        (file /usr/lib/crt1.o type=OBJT; file data.o type=OBJT);
ld: fatal: File processing errors. No output written to msvcrt.dll.so
collect2: ld returned 1 exit status
winegcc: gcc failed.
make[2]: *** [msvcrt.dll.so] Error 2

-- 
Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



More information about the wine-bugs mailing list