[Gambas-user] Compilation on OSX 10.3
George Russell
grrussel at ...786...
Mon Jan 10 21:43:50 CET 2005
Compiling 1.9.1
gbx_date.c: In function `DATE_init':
gbx_date.c:120: warning: assignment makes integer from pointer without a
cast
gbx_date.c:121: error: `daylight' undeclared (first use in this function)
gbx_date.c:121: error: (Each undeclared identifier is reported only once
gbx_date.c:121: error: for each function it appears in.)
make[3]: *** [gbx_date.lo] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
The following fix lets this file compile
#ifdef __FreeBSD__
date_timezone = tm->tm_gmtoff;
date_daylight = tm->tm_isdst;
#elif __APPLE__
date_timezone = tm->tm_gmtoff;
date_daylight = tm->tm_isdst;
#else
date_timezone = timezone;
date_daylight = daylight;
#endif
There is a 2nd compilation failure in vb.c due to a missing exp10
definition.
gcc -DHAVE_CONFIG_H -I. -I. -I../../.. -I../../../src/share -g -O2
-pipe -Wall -fno-strict-aliasing -g -Os -MT vb.lo -MD -MP -MF
.deps/vb.Tpo -c vb.c -fno-common -DPIC -o .libs/vb.o
vb.c: In function `CVB_Round':
vb.c:263: warning: implicit declaration of function `exp10'
/bin/sh ../../../libtool --mode=link gcc -g -O2 -pipe -Wall
-fno-strict-aliasing -g -Os -o lib.gb.vb.la -rpath /sw/lib/gambas2
-no-undefined main.lo vb.lo vbdate.lo
rm -fr .libs/lib.gb.vb.0.0.0.dylib .libs/lib.gb.vb.0.dylib
.libs/lib.gb.vb.dylib .libs/lib.gb.vb.la .libs/lib.gb.vb.lai
gcc -dynamiclib -o .libs/lib.gb.vb.0.0.0.dylib .libs/main.o .libs/vb.o
.libs/vbdate.o -install_name /sw/lib/gambas2/lib.gb.vb.0.dylib
-compatibility_version 1 -current_version 1.0
ld: Undefined symbols:
_exp10
/usr/bin/libtool: internal link edit command failed
make: *** [lib.gb.vb.la] Error 1
George-Russells-Computer:~/Desktop/gambas2-1.9.1/src/lib/vb georgerussell$
Make install now fails at the following stage:
--------<snip>
make[4]: Nothing to be done for `install-data-am'.
make[4]: Nothing to be done for `install-data-am'.
make[3]: Nothing to be done for `install-exec-am'.
make[3]: Nothing to be done for `install-data-am'.
Making symbolic links in /usr/bin...
Creating the library info files...
gbi: /sw/lib/gambas2/lib.gb.so: not found
make[2]: *** [install-exec-local] Error 1
make[1]: *** [install-am] Error 2
make: *** [install-recursive] Error 1
George-Russells-Computer:~/Desktop/gambas2-1.9.1 georgerussell$
Running the gbi2 executable cannot load a shared library
George-Russells-Computer:~/gambas georgerussell$ /sw/bin/gbi2 test.gamba
gbi: /sw/lib/gambas2/lib.test.gamba.so: not found
There will never be .so shared libraries on OSX. These are .dylib, as
mentioned in configure.
Regards
George Russell
More information about the User
mailing list