Re: Problem with Pth or make or what?

From: Daniel Feiglin (dilogsys_at_nonexisting.hamakor.org.il)
Date: Sun 23 Feb 2003 - 11:22:19 IST


Oh, silly me!

It was indeed a name space thing. Enter ./test and it all works.
Yuk.

Thanks all. I suppose I'd better pthread_join(...) or finish up as the
list zombie ...

Daniel

Daniel Feiglin wrote:
> Has anyone come across this:
>
> 1. Environment: SuSE 8.1 as is, kernel 2.4.19 and gcc 3.2
> 2. Build the cannonical "Hello, world!" programme,
> gcc -ohello hello.c
> Everything fine.
> 3. cp hello shalom and then shalom
> Everything fine.
> 4. ln -s hello bonjour and then bonjour
> Everything fine.
>
> Now for the fun: (What follows is true also for the SuSE supplied Pth
> 1.4.0)
> 1. Build, test and install the new GNU Pth 2.0.0 threads library (Mine
> goes to /usr, not /usr/local)
> 2. Open a C project and copy the Pth socket example files, test_httpd.c,
> test_common.c and h.
> 3. gcc -Wall -g -otest test_httpd.c test_common.c -lpth
> You get a clean compile/link, but running test does nothing!
> But wait for it ...
> ddd test (or gdb) and the silly thing works perfectly!
>
> Scratch, scratch.
> 4. gcc -Wall -g -otest_httpd test_httpd.c test_common.h -lpth
> Again, a clean compile/link and this time running it as test_httpd gives
> the required results!
>
> Scratch, scratch again.
> 5. cp test_httpd test and then test. It fails! Uh?
> 6. ln -s test_httpd test0 and then test0. It fails. Screwy.
>
> Does anyone have any ideas? A Pth thing? A dynamic library hangup?
>
> Cheers,
>
> Daniel
>
> PS STFW didn't produce anything. Could have looked in the wrong places.
>
>
>
>
> =================================================================
> To unsubscribe, send mail to linux-il-request_at_linux.org.il with
> the word "unsubscribe" in the message body, e.g., run the command
> echo unsubscribe | mail linux-il-request_at_linux.org.il
>
>

=================================================================
To unsubscribe, send mail to linux-il-request_at_linux.org.il with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail linux-il-request_at_linux.org.il



This archive was generated by hypermail 2.1.7 : Mon 06 Oct 2003 - 23:44:22 IST