problem with regapi on Solaris 8 x86

lawson_whitney at juno.com lawson_whitney at juno.com
Wed Mar 14 21:59:08 CST 2001


On Thu, 15 Mar 2001, Timothy Naple wrote:

> Thanks for the info.
>
> To check the state of regapi.so, I ran
>
> make clean
> make
>
> in the programs/regapi/ directory to rebuild regapi.so
>
> I noticed a great many errors (I apologize for the large transcript that
> follows):
>
> bash-2.03# make
> gcc -c -I. -I. -I../../include -I../../include  -g -O2 -Wall
> -fno-strength-reduce -mpreferred-stack-boundary=2 -fPIC -DSTRICT
> -D_REENTRANT  -o regapi.o regapi.c
> regapi.c: In function `processSetValue':
> regapi.c:640: warning: implicit declaration of function `strsep'

?? You can't have gotten this far without having whatever serves solaris
for glibc-devel (libc headers and so on) - or is strsep a linuxism?  I
guess it might be.  Might have to ifdef around that one and figure out
how to code the functionality without that function.

> regapi.c:640: warning: assignment makes pointer from integer without a
> cast
> regapi.c: In function `processQueryValue':
> regapi.c:697: warning: assignment makes pointer from integer without a
> cast
> regapi.c: In function `WinMain':
> regapi.c:1021: warning: assignment makes pointer from integer without a
> cast
> ld -r  regapi.o      -o regapi.tmp.o
> strip --strip-unneeded regapi.tmp.o
> LD_LIBRARY_PATH="../../unicode:$LD_LIBRARY_PATH"
> ../../tools/winebuild/winebuild -fPIC -L../../dlls -sym regapi.tmp.o -o
> regapi.spec.c -spec ./regapi.spec
> gcc -c -I. -I. -I../../include -I../../include  -g -O2 -Wall
> -fno-strength-reduce -mpreferred-stack-boundary=2 -fPIC -DSTRICT
> -D_REENTRANT  -o regapi.spec.o regapi.spec.c
> gcc -shared  -Wl,-rpath,/usr/local/lib -Wl,-Bsymbolic regapi.spec.o
> regapi.o      -o regapi.so -L../../library -lwine  -lsocket -lnsl -lm
> regapi.o: In function `getDataType':
> /usr/local/software/wine-20010305/programs/regapi/regapi.c:244: undefined
> reference to `strncasecmp'
> regapi.o: In function `getRegKeyName':
> /usr/local/software/wine-20010305/programs/regapi/regapi.c:271: undefined
...
> undefined reference to `fgets'
> /usr/local/software/wine-20010305/programs/regapi/regapi.c:1087:
> undefined reference to `strcat'
>
These should all be defined in libc, I think.  gcc on linux does a sort
of implicit -lc (it passes it to the linker always, I think).  Maybe you
could hack a -lc into the Makefile, just to see, or is your libc in a
directory where the linker doesn't look by default and needs to be
passed a path with -L?  I am used to a linker that acts as if it had
been passed -L/lib -L/usr/lib and I gcc that gives it -lc

> Thanks again for any help.
>
> Tim
> tnaple at ligos.com
>
>
I really know bless-all about solaris - you will have to be the expert
there - but I have been working with Wine on linux for a good while now.

Lawson

>> Build a better mousetrap, and the world will build a better mouse.>>
		- Proverbs of Hell Revisited


________________________________________________________________
GET INTERNET ACCESS FROM JUNO!
Juno offers FREE or PREMIUM Internet access for less!
Join Juno today!  For your FREE software, visit:
http://dl.www.juno.com/get/tagj.




More information about the wine-users mailing list