Whoa, your replies already showed up in the archive, and I haven't received yet. What kind of email server does yahoo have???
Anyway, following Rob's suggestion, I did the patch, and it can get pass that issue.
Rich, I have perl in my path (perl v5.8.3), but I don't think the build script actually generated the files oiddata.h/c. Both files are there, but the last modify time seems to date back to 2002-01-04. And the oidgen.perl is there too.
Now, I'm getting a new problem:
rm -f .libs/client.lo cc -DHAVE_CONFIG_H -I. -I. -I.. -I../include -I../plugins -I../include -I/tmp/fedora-ds-build/include -I/tmp/fedora-ds-build/include -I/tmp/fedora-ds-build/include -Wall -W -I/tmp/fedora-ds-build/include -L/tmp/fedora-ds-build/lib -O2 -pipe -I/tmp/fedora-ds-build/include -L/tmp/fedora-ds-build/lib -O2 -pipe -I/tmp/fedora-ds-build/include -L/tmp/fedora-ds-build/lib -O2 -pipe -MT client.lo -MD -MP -MF .deps/client.Tpo -c client.c -fPIC -DPIC -o .libs/client.lo client.c:64: error: static declaration of 'global_callbacks' follows non-static declaration saslint.h:112: error: previous declaration of 'global_callbacks' was here make[4]: *** [client.lo] Error 1 make[4]: Leaving directory `/home/csp/redhat/dsbuild/ds/cyrus-sasl/work/cyrus-sasl-2.1.20/lib' make[3]: *** [all-recursive] Error 1 make[3]: Leaving directory `/home/csp/redhat/dsbuild/ds/cyrus-sasl/work/cyrus-sasl-2.1.20' make[2]: *** [all] Error 2 make[2]: Leaving directory `/home/csp/redhat/dsbuild/ds/cyrus-sasl/work/cyrus-sasl-2.1.20' make[1]: *** [build-work/cyrus-sasl-2.1.20/Makefile] Error 2 make[1]: Leaving directory `/home/csp/redhat/dsbuild/ds/cyrus-sasl' make: *** [dep-../../ds/cyrus-sasl] Error 2
:(
thx
sz
__________________________________ Yahoo! Mail - PC Magazine Editors' Choice 2005 http://mail.yahoo.com
Hmm - not sure. Looks like it could also be compiler related. Perhaps there is some other config option? I'm not really sure how the compiler/linker is supposed to handle the case where you have a variable declared as an external global and defined as a static in the same compilation unit e.g. saslint.h:112 extern sasl_global_callbacks_t global_callbacks;
client.c:64 static sasl_global_callbacks_t global_callbacks;
And client.c includes saslint.h. There don't appear to be any ifdefs that protect one or the other. I wonder if there is some gcc4 compiler flag to allow this? In server.c, global_callbacks is defined as a _global_, not as a static, so I think the intention is that the definition of global_callbacks as a static in client.c is supposed to be a different variable than the one that is declared as global in saslint.h . . . weird.
speedy zinc wrote:
Whoa, your replies already showed up in the archive, and I haven't received yet. What kind of email server does yahoo have???
Anyway, following Rob's suggestion, I did the patch, and it can get pass that issue.
Rich, I have perl in my path (perl v5.8.3), but I don't think the build script actually generated the files oiddata.h/c. Both files are there, but the last modify time seems to date back to 2002-01-04. And the oidgen.perl is there too.
Now, I'm getting a new problem:
rm -f .libs/client.lo cc -DHAVE_CONFIG_H -I. -I. -I.. -I../include -I../plugins -I../include -I/tmp/fedora-ds-build/include -I/tmp/fedora-ds-build/include -I/tmp/fedora-ds-build/include -Wall -W -I/tmp/fedora-ds-build/include -L/tmp/fedora-ds-build/lib -O2 -pipe -I/tmp/fedora-ds-build/include -L/tmp/fedora-ds-build/lib -O2 -pipe -I/tmp/fedora-ds-build/include -L/tmp/fedora-ds-build/lib -O2 -pipe -MT client.lo -MD -MP -MF .deps/client.Tpo -c client.c -fPIC -DPIC -o .libs/client.lo client.c:64: error: static declaration of 'global_callbacks' follows non-static declaration saslint.h:112: error: previous declaration of 'global_callbacks' was here make[4]: *** [client.lo] Error 1 make[4]: Leaving directory `/home/csp/redhat/dsbuild/ds/cyrus-sasl/work/cyrus-sasl-2.1.20/lib' make[3]: *** [all-recursive] Error 1 make[3]: Leaving directory `/home/csp/redhat/dsbuild/ds/cyrus-sasl/work/cyrus-sasl-2.1.20' make[2]: *** [all] Error 2 make[2]: Leaving directory `/home/csp/redhat/dsbuild/ds/cyrus-sasl/work/cyrus-sasl-2.1.20' make[1]: *** [build-work/cyrus-sasl-2.1.20/Makefile] Error 2 make[1]: Leaving directory `/home/csp/redhat/dsbuild/ds/cyrus-sasl' make: *** [dep-../../ds/cyrus-sasl] Error 2
:(
thx
sz
__________________________________ Yahoo! Mail - PC Magazine Editors' Choice 2005 http://mail.yahoo.com
-- Fedora-directory-users mailing list Fedora-directory-users@redhat.com https://www.redhat.com/mailman/listinfo/fedora-directory-users
Sorry, this is an old issue. Has anyone succeeded in building the server on Ubuntu 5.10?
I'd appreciate if someone can share some experience.
regards
sz.
--- Rich Megginson rmeggins@redhat.com wrote:
Hmm - not sure. Looks like it could also be compiler related. Perhaps there is some other config option? I'm not really sure how the compiler/linker is supposed to handle the case where you have a variable declared as an external global and defined as a static in the same compilation unit e.g. saslint.h:112 extern sasl_global_callbacks_t global_callbacks;
client.c:64 static sasl_global_callbacks_t global_callbacks;
And client.c includes saslint.h. There don't appear to be any ifdefs that protect one or the other. I wonder if there is some gcc4 compiler flag to allow this? In server.c, global_callbacks is defined as a _global_, not as a static, so I think the intention is that the definition of global_callbacks as a static in client.c is supposed to be a different variable than the one that is declared as global in saslint.h . . . weird.
__________________________________ Start your day with Yahoo! - Make it your home page! http://www.yahoo.com/r/hs
speedy zinc wrote:
Sorry, this is an old issue. Has anyone succeeded in building the server on Ubuntu 5.10?
I'd appreciate if someone can share some experience.
I just upgraded my workstation from Ubuntu 5.04 to 5.10 over the weekend, and it's building fine, but I'm using gcc 3.4 (not 4.0 as you have reported earlier).
You might want to downgrade to gcc 3.4 to build it. Some modules use the command "cc", so you might have to create a link from "cc" to your gcc command.
The whole thing builds just fine, assuming that you have all the req devel packages installed.
csp
--- David Boreham david_list@boreham.org wrote:
It should build ok on any moderately recent Linux. What build problem are you having ?
I followed Rob's suggestion by doing a patch for gcc 4, it went pass the first problem, but I still can't get it pass the second.
The second problem is:
rm -f .libs/client.lo cc -DHAVE_CONFIG_H -I. -I. -I.. -I../include -I../plugins -I../include -I/tmp/fedora-ds-build/include -I/tmp/fedora-ds-build/include -I/tmp/fedora-ds-build/include -Wall -W -I/tmp/fedora-ds-build/include -L/tmp/fedora-ds-build/lib -O2 -pipe -I/tmp/fedora-ds-build/include -L/tmp/fedora-ds-build/lib -O2 -pipe -I/tmp/fedora-ds-build/include -L/tmp/fedora-ds-build/lib -O2 -pipe -MT client.lo -MD -MP -MF .deps/client.Tpo -c client.c -fPIC -DPIC -o .libs/client.lo client.c:64: error: static declaration of 'global_callbacks' follows non-static declaration saslint.h:112: error: previous declaration of 'global_callbacks' was here make[4]: *** [client.lo] Error 1 make[4]: Leaving directory `/home/csp/redhat/dsbuild/ds/cyrus-sasl/work/cyrus-sasl-2.1.20/lib' make[3]: *** [all-recursive] Error 1 make[3]: Leaving directory `/home/csp/redhat/dsbuild/ds/cyrus-sasl/work/cyrus-sasl-2.1.20' make[2]: *** [all] Error 2 make[2]: Leaving directory `/home/csp/redhat/dsbuild/ds/cyrus-sasl/work/cyrus-sasl-2.1.20' make[1]: *** [build-work/cyrus-sasl-2.1.20/Makefile] Error 2 make[1]: Leaving directory `/home/csp/redhat/dsbuild/ds/cyrus-sasl' make: *** [dep-../../ds/cyrus-sasl] Error 2
---------------
Rich thinks it might have anything to do with gcc 4, but I really don't know how to change gcc4 compile options to get around this.
Chen reported he can build with gcc 3.4, and that's whayt I'm going to try to see if I can pass that.
Anyways, this dsbuild thingy is getting me really dizzy... should be sleeping anyway.
thanks sz
__________________________________ Yahoo! Mail - PC Magazine Editors' Choice 2005 http://mail.yahoo.com
client.c:64: error: static declaration of 'global_callbacks' follows non-static declaration saslint.h:112: error: previous declaration of
this looks like another gcc4 problem. there are two patches for gcc4 listed on the build page. do you have them both ? (one for cyrus-sasl, the other for DS).
Ok, I uninstalled gcc4 and installed gcc3.4, and I'm getting further than before. But I'm still getting build error... grr :(
./mozilla/dist/Linux2.6_x86_glibc_PTH_OPT.OBJ/lib -lsvrcore -L../../../../cyrus-sasl-2.1.20/lib -lsasl 2 -L/usr/kerberos/lib -lgssapi_krb5 -lcrypt -lpthread -L../../../../db-4.2.52.NC/built/.libs -ldb-4.2 ../../../../cyrus-sasl-2.1.20/lib/libsasl2.a(db_berkeley.o): In function `berkeleydb_open': db_berkeley.c:(.text+0x41): undefined reference to `db_create_4002' db_berkeley.c:(.text+0xb5): undefined reference to `db_strerror_4002' ../../../../cyrus-sasl-2.1.20/lib/libsasl2.a(db_berkeley.o): In function `berkeleydb_close': db_berkeley.c:(.text+0x165): undefined reference to `db_strerror_4002' ../../../../cyrus-sasl-2.1.20/lib/libsasl2.a(db_berkeley.o): In function `_sasldb_getdata': db_berkeley.c:(.text+0x31b): undefined reference to `db_strerror_4002' ../../../../cyrus-sasl-2.1.20/lib/libsasl2.a(db_berkeley.o): In function `_sasldb_putdata': db_berkeley.c:(.text+0x530): undefined reference to `db_strerror_4002' db_berkeley.c:(.text+0x585): undefined reference to `db_strerror_4002' collect2: ld returned 1 exit status
I have db4.3 installed, so what's wrong with that?
thanks
Chris S. P.
__________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
speedy zinc wrote:
Ok, I uninstalled gcc4 and installed gcc3.4, and I'm getting further than before. But I'm still getting build error... grr :(
./mozilla/dist/Linux2.6_x86_glibc_PTH_OPT.OBJ/lib -lsvrcore -L../../../../cyrus-sasl-2.1.20/lib -lsasl 2 -L/usr/kerberos/lib -lgssapi_krb5 -lcrypt -lpthread -L../../../../db-4.2.52.NC/built/.libs -ldb-4.2
It's using db4.2 because that's the version that we use for the slapd database. It conflicts with the version of bdb that was used to build sasl, which is the one on your OS.
../../../../cyrus-sasl-2.1.20/lib/libsasl2.a(db_berkeley.o): In function `berkeleydb_open': db_berkeley.c:(.text+0x41): undefined reference to `db_create_4002' db_berkeley.c:(.text+0xb5): undefined reference to `db_strerror_4002' ../../../../cyrus-sasl-2.1.20/lib/libsasl2.a(db_berkeley.o): In function `berkeleydb_close': db_berkeley.c:(.text+0x165): undefined reference to `db_strerror_4002' ../../../../cyrus-sasl-2.1.20/lib/libsasl2.a(db_berkeley.o): In function `_sasldb_getdata': db_berkeley.c:(.text+0x31b): undefined reference to `db_strerror_4002' ../../../../cyrus-sasl-2.1.20/lib/libsasl2.a(db_berkeley.o): In function `_sasldb_putdata': db_berkeley.c:(.text+0x530): undefined reference to `db_strerror_4002' db_berkeley.c:(.text+0x585): undefined reference to `db_strerror_4002' collect2: ld returned 1 exit status
I have db4.3 installed, so what's wrong with that?
thanks
Chris S. P.
Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
-- Fedora-directory-users mailing list Fedora-directory-users@redhat.com https://www.redhat.com/mailman/listinfo/fedora-directory-users
--- Richard Megginson rmeggins@redhat.com wrote:
speedy zinc wrote:
Ok, I uninstalled gcc4 and installed gcc3.4, and
I'm
getting further than before. But I'm still getting build error... grr :(
./mozilla/dist/Linux2.6_x86_glibc_PTH_OPT.OBJ/lib -lsvrcore -L../../../../cyrus-sasl-2.1.20/lib
-lsasl 2
-L/usr/kerberos/lib -lgssapi_krb5 -lcrypt -lpthread
-L../../../../db-4.2.52.NC/built/.libs -ldb-4.2
It's using db4.2 because that's the version that we use for the slapd database. It conflicts with the version of bdb that was used to build sasl, which is the one on your OS.
Ok, I'm removing db4.3 and installed db4.2.
But why is "make buildclean" not working? the readme file said it should reconfigure, no?
thanks
sz
__________________________________ Yahoo! FareChase: Search multiple travel sites in one click. http://farechase.yahoo.com
speedy zinc wrote:
--- Richard Megginson rmeggins@redhat.com wrote:
speedy zinc wrote:
Ok, I uninstalled gcc4 and installed gcc3.4, and
I'm
getting further than before. But I'm still getting build error... grr :(
./mozilla/dist/Linux2.6_x86_glibc_PTH_OPT.OBJ/lib -lsvrcore -L../../../../cyrus-sasl-2.1.20/lib
-lsasl 2
-L/usr/kerberos/lib -lgssapi_krb5 -lcrypt -lpthread
-L../../../../db-4.2.52.NC/built/.libs -ldb-4.2
It's using db4.2 because that's the version that we use for the slapd database. It conflicts with the version of bdb that was used to build sasl, which is the one on your OS.
Ok, I'm removing db4.3 and installed db4.2.
But why is "make buildclean" not working? the readme file said it should reconfigure, no?
I'm not sure.
thanks
sz
__________________________________ Yahoo! FareChase: Search multiple travel sites in one click. http://farechase.yahoo.com
-- Fedora-directory-users mailing list Fedora-directory-users@redhat.com https://www.redhat.com/mailman/listinfo/fedora-directory-users
--- speedy zinc speedy_zinc@yahoo.com wrote:
--- Richard Megginson rmeggins@redhat.com wrote:
speedy zinc wrote:
Ok, I uninstalled gcc4 and installed gcc3.4, and
I'm
getting further than before. But I'm still getting build error... grr :(
./mozilla/dist/Linux2.6_x86_glibc_PTH_OPT.OBJ/lib -lsvrcore -L../../../../cyrus-sasl-2.1.20/lib
-lsasl 2
-L/usr/kerberos/lib -lgssapi_krb5 -lcrypt
-lpthread
-L../../../../db-4.2.52.NC/built/.libs -ldb-4.2
It's using db4.2 because that's the version that
we
use for the slapd database. It conflicts with the version of bdb
that
was used to build sasl, which is the one on your OS.
Ok, I'm removing db4.3 and installed db4.2.
Dang.... I'm still getting the same problem after installing db4.2, even doing a clean rebuild from scratch :(
sz
__________________________________ Yahoo! FareChase: Search multiple travel sites in one click. http://farechase.yahoo.com
Thanks, I'll try that.
But, my home internet connection is such a pig that I really don't want download anything if I don't have too.
sz
--- Chen Shaopeng chen_shaopeng@idsignet.com wrote:
I just upgraded my workstation from Ubuntu 5.04 to 5.10 over the weekend, and it's building fine, but I'm using gcc 3.4 (not 4.0 as you have reported earlier).
You might want to downgrade to gcc 3.4 to build it. Some modules use the command "cc", so you might have to create a link from "cc" to your gcc command.
The whole thing builds just fine, assuming that you have all the req devel packages installed.
csp
Chen Shaopeng http://www.idsignet.com
__________________________________ Yahoo! FareChase: Search multiple travel sites in one click. http://farechase.yahoo.com
Hi Chen,
--- Chen Shaopeng wrote:
speedy zinc wrote:
Sorry, this is an old issue. Has anyone succeeded
in
building the server on Ubuntu 5.10?
I'd appreciate if someone can share some
experience.
I just upgraded my workstation from Ubuntu 5.04 to 5.10 over the weekend, and it's building fine, but I'm using gcc 3.4 (not 4.0 as you have reported earlier).
You might want to downgrade to gcc 3.4 to build it. Some modules use the command "cc", so you might have to create a link from "cc" to your gcc command.
The whole thing builds just fine, assuming that you have all the req devel packages installed.
Could you share how you made it build on your Ubuntu? I'm also using gcc 3.4, but I have struggling to make it build for so long, it's unbelievable.
I want to learn about the internals, and I want to be able to walk through some of the codes in a debugger, so I want to be able to build this on my machine.
I have never thought getting this to build is such a pig... it's harder than compiling my own kernel.
Guys, is learning this special build framework part of what I must learn before I can build the DS? Sorry, I've been banging my head for too long ...
thanks
sz
__________________________________ Yahoo! Mail - PC Magazine Editors' Choice 2005 http://mail.yahoo.com
speedy zinc wrote:
Hi Chen,
--- Chen Shaopeng wrote:
speedy zinc wrote:
Sorry, this is an old issue. Has anyone succeeded
in
building the server on Ubuntu 5.10?
I'd appreciate if someone can share some
experience.
I just upgraded my workstation from Ubuntu 5.04 to 5.10 over the weekend, and it's building fine, but I'm using gcc 3.4 (not 4.0 as you have reported earlier).
You might want to downgrade to gcc 3.4 to build it. Some modules use the command "cc", so you might have to create a link from "cc" to your gcc command.
The whole thing builds just fine, assuming that you have all the req devel packages installed.
Could you share how you made it build on your Ubuntu? I'm also using gcc 3.4, but I have struggling to make it build for so long, it's unbelievable.
I want to learn about the internals, and I want to be able to walk through some of the codes in a debugger, so I want to be able to build this on my machine.
I have never thought getting this to build is such a pig... it's harder than compiling my own kernel.
It was never meant to be easy to build, being a proprietary product for so long :-( We've been trying to make it easier to build as we go along with new features, sort of like trying to build the bridge and cross it at the same time . . .
Guys, is learning this special build framework part of what I must learn before I can build the DS? Sorry, I've been banging my head for too long ...
We're working on it. We're working on an improved build framework using the dsbuild/gar stuff that should (hopefully) allow you to build on more platforms than just rhel/fedora core.
thanks
sz
__________________________________ Yahoo! Mail - PC Magazine Editors' Choice 2005 http://mail.yahoo.com
-- Fedora-directory-users mailing list Fedora-directory-users@redhat.com https://www.redhat.com/mailman/listinfo/fedora-directory-users
speedy zinc wrote:
Could you share how you made it build on your Ubuntu? I'm also using gcc 3.4, but I have struggling to make it build for so long, it's unbelievable.
I want to learn about the internals, and I want to be able to walk through some of the codes in a debugger, so I want to be able to build this on my machine.
I have never thought getting this to build is such a pig... it's harder than compiling my own kernel.
Guys, is learning this special build framework part of what I must learn before I can build the DS? Sorry, I've been banging my head for too long ...
Hmm, I didn't do anything special though. According to the build page on wiki, it said you need:
- db4-devel - krb5-devel - libtermcap-devel - ncurses-devel
All the packages are availabe on Ubuntu, except libtermcap-devel. So I installed termcap-compat.
Your problem seems to be with db4. Unfortunately, I'm currently at work now, and here I have a Centos 4.1 for my build, and an older version of ubuntu for other works. My ubuntu machine is at home, which I can't check right now.
I can't remember which version of db4 I have, I think I have both db4-2 and db4-3 installed. I'll give a list of the package versions I have, when I get home this evening. But it's early morning now, in Shanghai :)
But I'm not well versed with that build environment though. Makefile and stuff have never been my cup of tea.
csp
--- Chen Shaopeng wrote:
Hmm, I didn't do anything special though. According to the build page on wiki, it said you need:
- db4-devel
- krb5-devel
- libtermcap-devel
- ncurses-devel
All the packages are availabe on Ubuntu, except libtermcap-devel. So I installed termcap-compat.
Thanks, here is my environment:
- libdb4-2 - libdb4.2++c2 - libdb4-2.dev - libdb4.2++-dev - libdb4.3 (I can't remove this completely, it has too many apps depend on it) - libncurses5 (5.4.9) - libncurses5-dev - libncursesw5 (5.4.9) - libncursesw5-dev - termcap-compat 1.2.3 - libkrb53 (1.3.6-4) - libkrb5-dev (1.3.6-4) - perl 5.8.7 - cvs 1.12.9 - gcc 3.4.4-6 - g++ 3.4.4-6 - gmake 4.80-9
Other stuffs are just default Ubuntu 5.10.
I'd appreciate if you can help me get pass this build problem.
thanks
sz
__________________________________ Yahoo! FareChase: Search multiple travel sites in one click. http://farechase.yahoo.com
speedy zinc wrote:
Thanks, here is my environment:
- libdb4-2
- libdb4.2++c2
- libdb4-2.dev
- libdb4.2++-dev
- libdb4.3 (I can't remove this completely, it has too
many apps depend on it)
- libncurses5 (5.4.9)
- libncurses5-dev
- libncursesw5 (5.4.9)
- libncursesw5-dev
- termcap-compat 1.2.3
- libkrb53 (1.3.6-4)
- libkrb5-dev (1.3.6-4)
- perl 5.8.7
- cvs 1.12.9
- gcc 3.4.4-6
- g++ 3.4.4-6
- gmake 4.80-9
Other stuffs are just default Ubuntu 5.10.
I'd appreciate if you can help me get pass this build problem.
That looks almost the same as I have, but I have libdb4.3-devel instead.
Here's the little note I took when I built it, probably not helpful.
How to build DS:
================================================================ Prereq: - db4-devel - krb5-devel (MIT) - libtermcap-devel (???) - ncurses-devel
Add "." to PATH
cd dsbuild/meta/ds gmake
================================================================
Admin server port config:
/opt/fedora-ds/admin-serv/config/server.xml
Netscape httpd port config
================================================================
csp
--- Chen Shaopeng chen_shaopeng@idsignet.com wrote:
That looks almost the same as I have, but I have libdb4.3-devel instead.
Here's the little note I took when I built it, probably not helpful.
How to build DS:
================================================================
Prereq:
- db4-devel
- krb5-devel (MIT)
- libtermcap-devel (???)
- ncurses-devel
Add "." to PATH
cd dsbuild/meta/ds gmake
Still doesn't work for me :(
regards
sz
__________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
389-users@lists.fedoraproject.org