-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
From: Maurice Lombardi <Maurice.Lombardi@ujf-grenoble.fr> Subject: Re: grx on Mac OS X To: grx@gnu.de Message-ID: <50991504.2000800@ujf-grenoble.fr> Content-Type: text/plain; charset=ISO-8859-1; format=flowed
snip snap explanations of build and install.
OK. I think we reached common ground about proceeding in general and i would like to continue on specific problems when building. I applied your patch to a fresh copy of the sources, configure for osx. make goes quite through a lot of code, but gets stuck when building the library. short log the build:
patch -p1 < ../macosx.diff ... ./configure --target=osx ... make all ... rm -f ../lib/macosx/libgrx20X.so.2.4.9 gcc -m32 -shared -Wl,-soname,libgrx20X.so.2 -o ../lib/macosx/libgrx20X.so.2.4.9 draw/bitblt.lo draw/bitbltnc.lo ... long list of files ... bgi/bgiprint.lo ld: unknown option: -soname collect2: ld returned 1 exit status
As a remedy i changed makefile.x11 to $(CC) $(LDOPT) -shared -L/usr/X11/lib -lX11 -o $(GRX20SHna) $(LO) then the build succeeds and continues with more sources. The next stop is: gcc -c -O2 -fno-strict-aliasing -Wall -m32 -m32 -D__XWIN__ -I. -I./include -I../include -I/usr/include -I../addons/print -I../addons/bmp utilprog/bin2c.c -o utilprog/bin2c.o utilprog/bin2c.c: In function ‘main’: utilprog/bin2c.c:98: warning: pointer targets in assignment differ in signedness utilprog/bin2c.c:106: warning: pointer targets in assignment differ in signedness gcc -m32 -o ../bin/bin2c utilprog/bin2c.o ../lib/macosx/libgrx20X.a -L/usr/lib -lX11 ld: library not found for -lX11 After ./configure --target=osx --with-x11-base=/usr/X11 another "make all" works without an error to the end. Besides this error, there are a couple of warnings. If you intend to work on them, i could send you the complete list. Greetings . Michael Schindler 2 Examples: In file included from bgi/textd.c:25: bgi/text.h:79: warning: ‘packed’ attribute ignored for field of type ‘FontNameTyp’ bgi/text.h:81: warning: ‘packed’ attribute ignored for field of type ‘uchar’ bgi/text.h:82: warning: ‘packed’ attribute ignored for field of type ‘uchar’ bgi/text.h:83: warning: ‘packed’ attribute ignored for field of type ‘uchar’ bgi/text.h:84: warning: ‘packed’ attribute ignored for field of type ‘uchar’ bgi/text.h:88: warning: ‘packed’ attribute ignored for field of type ‘char’ bgi/text.h:90: warning: ‘packed’ attribute ignored for field of type ‘char’ bgi/text.h:91: warning: ‘packed’ attribute ignored for field of type ‘uchar’ bgi/text.h:93: warning: ‘packed’ attribute ignored for field of type ‘uchar’ bgi/text.h:94: warning: ‘packed’ attribute ignored for field of type ‘uchar’ bgi/text.h:95: warning: ‘packed’ attribute ignored for field of type ‘uchar’ bgi/text.h:96: warning: ‘packed’ attribute ignored for field of type ‘schar’ bgi/text.h:97: warning: ‘packed’ attribute ignored for field of type ‘uchar[5]’ bgi/lnestyle.c: In function ‘setlinestyle’: bgi/lnestyle.c:51: warning: pointer targets in assignment differ in signedness bgi/lnestyle.c:54: warning: pointer targets in assignment differ in signedness bgi/lnestyle.c:57: warning: pointer targets in assignment differ in signedness -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.0.18 (Darwin) Comment: GPGTools - http://gpgtools.org iQEcBAEBAgAGBQJQmtb9AAoJEHaCPVPT4dXk6ggIANtrYw5/s0UKrd5x6uKtummJ ME6+P2NsJe1VSqUVm2VlAgTTTDrMv4xD5CPqRyGp6uMYmeUTlPtAubL+bbmlFh5R efKOgW6D6Xok73nWykUZxPWeBHztuu/DGb6eNE4h5n3iDexPwyzbZoU/nQpjgNOE eL2mDDYFikvgo9D4MOVr4QGDkLouktCNUH4lbV7l5dbMipydFkGV2jyKxoGFqty9 OX9cszrbcYdX3ru9RIrbFbY0p4rRjfFYQNsmrVbyrX/C5PP7XeY1gQAyrReLtWMT SI7+JNDEhdZJmD2fIBKjS1FIS7/EfjaoqOAqLmvUj1rhQPKBHGAWQyuVS0qLquA= =s97k -----END PGP SIGNATURE-----
participants (2)
-
Maurice Lombardi -
Schindler Karl-Michael