I am trying to compile bigloo-lib-0.19 for bigloo2.5c. (I believe this is the 'final' version of bigloo2.5c since I downloaded and installed it today!) When configuring the library, I have to tell it where to find the bigloo executable, i.e. I run it with the command $bigloo_executable=<my directory>/bin/bigloo ./configure. This seems to complete without problems. When I run 'make' for the next step, however, it runs for a while, and then I get the error message:
Global variable redefinition -- every
gcc <various options> os.c
os.c: In function 'BGL_unsetenvz00zzosz00':
os.c:1147: void value not ignored as it ought to be
make[2]: *** [os.o] error1
make[2]: leaving directory <blah blah>/common
and the process aborts. Can someone help?
Many thanks, sdyck
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Many thanks. Your suggestion allows the compiler to get past the original problem. However, the make process now aborts signalling a long series of new problems which all look roughly like this:
libbldap.a(ldap.o): In function 'BGL_ldapzd2<longname>':
<directory>/ldap/ldap.c:<nmbr>: undefined reference to 'ldap_set_option' (or 'ldap_get_option', or 'ldap_explode_dn', or 'ldap_flush_cache', etc., etc.).
As regards the platform, I'm running Mandrake Linux 7.0 on a 700 Mhz Pentium III. This version of linux uses gcc version 2.95.2. Maybe I just need a more up-to-date Linux?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
> Many thanks. Your suggestion allows the compiler to get past the
> original problem. However, the make process now aborts signalling a
> long series of new problems which all look roughly like this:
>
> libbldap.a(ldap.o): In function 'BGL_ldapzd2<longname>':
> <directory>/ldap/ldap.c:<nmbr>: undefined reference to 'ldap_set_option' (or 'ldap_get_option', or 'ldap_explode_dn', or 'ldap_flush_cache', etc., etc.).
>
It seems, you linked with the wrong ldap library.
Please, send me the the config.log file created by configure.
Which ldap client version do you use?
Meanwhile, as a workaround, if you do not need ldap support in bigloo-lib,
reconfigure it as
./configure --with-ldap=no
> As regards the platform, I'm running Mandrake Linux 7.0 on a 700 Mhz
> Pentium III. This version of linux uses gcc version 2.95.2. Maybe I
> just need a more up-to-date Linux?
No, it it very unlikely
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I am trying to compile bigloo-lib-0.19 for bigloo2.5c. (I believe this is the 'final' version of bigloo2.5c since I downloaded and installed it today!) When configuring the library, I have to tell it where to find the bigloo executable, i.e. I run it with the command $bigloo_executable=<my directory>/bin/bigloo ./configure. This seems to complete without problems. When I run 'make' for the next step, however, it runs for a while, and then I get the error message:
Global variable redefinition -- every
gcc <various options> os.c
os.c: In function 'BGL_unsetenvz00zzosz00':
os.c:1147: void value not ignored as it ought to be
make[2]: *** [os.o] error1
make[2]: leaving directory <blah blah>/common
and the process aborts. Can someone help?
Many thanks, sdyck
Thank you for the report. The unsetenv doesn't return value, so the
binding should be defined in the os.defs as follows:
(define-export (unsetenv name::string)
(pragma::bool "unsetenv($1)" name)
#unspecified
)
BTW on which platform do you run Bigloo?
Many thanks. Your suggestion allows the compiler to get past the original problem. However, the make process now aborts signalling a long series of new problems which all look roughly like this:
libbldap.a(ldap.o): In function 'BGL_ldapzd2<longname>':
<directory>/ldap/ldap.c:<nmbr>: undefined reference to 'ldap_set_option' (or 'ldap_get_option', or 'ldap_explode_dn', or 'ldap_flush_cache', etc., etc.).
As regards the platform, I'm running Mandrake Linux 7.0 on a 700 Mhz Pentium III. This version of linux uses gcc version 2.95.2. Maybe I just need a more up-to-date Linux?
> Many thanks. Your suggestion allows the compiler to get past the
> original problem. However, the make process now aborts signalling a
> long series of new problems which all look roughly like this:
>
> libbldap.a(ldap.o): In function 'BGL_ldapzd2<longname>':
> <directory>/ldap/ldap.c:<nmbr>: undefined reference to 'ldap_set_option' (or 'ldap_get_option', or 'ldap_explode_dn', or 'ldap_flush_cache', etc., etc.).
>
It seems, you linked with the wrong ldap library.
Please, send me the the config.log file created by configure.
Which ldap client version do you use?
Meanwhile, as a workaround, if you do not need ldap support in bigloo-lib,
reconfigure it as
./configure --with-ldap=no
> As regards the platform, I'm running Mandrake Linux 7.0 on a 700 Mhz
> Pentium III. This version of linux uses gcc version 2.95.2. Maybe I
> just need a more up-to-date Linux?
No, it it very unlikely