Your SYSTEM_ID environment variable is probably not set
right, it will
link in pthreads only if your are setting this. You should
be setting
it to "linux-2.6-glibc23-i686".
As far as libbfd.a, I think creating the system link like
you did is
a good solution, otherwise you can customize this in:
server/engine/bin/plus/linux2.pcf
server/engine/bin/nodist/linux2.pcf
Dean
On Tue, May 30, 2006 at 08:39:05AM +0200, Uwe Toenjes wrote:
> hello,
>
> I am trying to build the helix server at a gentoo
system (intel).
>
> the first error:
>
>
> build -u -c -y -m SERVER_11_1 -P helix-server-nodist
servinst
>
> ...
> g++ -o dbg/hlxserver dbg/obj/par1/main.o
dbg/obj/par1/server_version.o
> dbg/hlxserver_libs.a -L/usr/X11R6/lib -Wl,-Bstatic
/usr/lib/libbfd.a
> -Wl,-Bdynamic -lm -liberty -ldl -lm
> g++: /usr/lib/libbfd.a: No such file or directory
> make: *** [dbg/hlxserver] Error 1
> Time used: 0.96 seconds
> ERROR: UNIXCompile(server/engine/bin/nodist) ERROR:
Make failed.
>
> --- Build System Error
------------------------------------
> Make failed.
>
-----------------------------------------------------------
> ...
>
>
> Now I have created the following link:
>
> ln -s /usr/i686-pc-linux-gnu/lib/libbfd.a
/usr/lib/libbfd.a
>
>
> build -u -c -y -m SERVER_11_1 -P helix-server-nodist
servinst
> ...
> g++ -o dbg/hlxserver dbg/obj/par1/main.o
dbg/obj/par1/server_version.o
> dbg/hlxserver_libs.a -L/usr/X11R6/lib -Wl,-Bstatic
/usr/lib/libbfd.a
> -Wl,-Bdynamic -lm -liberty -ldl -lm
> dbg/hlxserver_libs.a(servenglib._main.o): In function
`MakeThread(char
> const*, SimpleCallback*, DispatchQueue*, int)':
>
/home/helix/helix-server/server/engine/core/_main.cpp:1258:
undefined
> reference to `pthread_attr_setstack'
> dbg/hlxserver_libs.a(servenglib._main.o): In function
`perform_restart()':
>
/home/helix/helix-server/server/engine/core/_main.cpp:2174:
undefined
> reference to `pthread_kill'
> collect2: ld returned 1 exit status
> make: *** [dbg/hlxserver] Error 1
> Time used: 3.77 seconds
> ERROR: UNIXCompile(server/engine/bin/nodist) ERROR:
Make failed.
>
>
> If I add the pthread library to the g++ call
>
> g++ -o rel/hlxserver rel/obj/par1/main.o
rel/obj/par1/server_version.o
> rel/obj/dlltab.o rel/hlxserver_libs.a -L/usr/X11R6/lib
-lm -ldl -lm
> -lpthread
>
> it seams to works, but I can't continue the server
build.
>
>
> My questions:
>
> How can I change the path to libbfd.a?
> How can I add the pthread library?
>
>
> Thank you for your efforts
> Uwe
>
>
>
> _______________________________________________
> Helix-server-dev mailing list
> Helix-server-dev helixcommunity.org
> http://lists.helixcommunity.org/mailman/listinf
o/helix-server-dev
--
Dean Collins
Server Technical Lead, RealNetworks, Inc. -- http://www.realnetworks.c
om
Helix Server Project Owner -- http://helix-s
erver.helixcommunity.org
_______________________________________________
Helix-server-dev mailing list
Helix-server-dev helixcommunity.org
http://lists.helixcommunity.org/mailman/listinf
o/helix-server-dev
|