[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Condor-users] Problems when compiling NS-2 (network simulator 2) with Condor



Hi,

I have the same problem and no solution.

I read in
https://lists.cs.wisc.edu/archive/condor-users/2006-May/msg00303.shtml
that it is a problem with dynamic linking.

I think it can work with static compile of ns-2, but I don't know how I do
it. Someone can help me?

Thank you.



> hi, all
>
> I need Condor's checkpointing library during the NS-2 (network simulator
> 2) simulation, so need to compile NS-2 with Condor.
>
> I installed Condor 6.8.6 on a Redhat Linux 9.0 (Linux 2.4.20, glibc
> 2.3.2) computer,
> and NS 2.31.
>
> I modified the NS-2 Makefile following the way BGP++(
> http://www.ece.gatech.edu/research/labs/MANIACS/BGP++/) used, by appending
> the -DHAVE_CONDOR on the DEFINE macro and the -lcondorsyscall in the LIB
> macro in the Makefile of NS-2.
>
> And then some errors occurred during make, error message as follows:
>
> ****************************************************************************
>
> Error Information:
>
> ********************
>
> ~/condor/lib/libcondorsyscall.a(switches.o)(.text+0x6560): In function
> `__wctomb_chk':
> : undefined reference to `__no_r_state'
>
> ~/condor/lib/libcondorsyscall.a(condor_file_compress.o)(.text+0x2f5): In
> function `CondorFileCompress::end_compression()':
> : undefined reference to `deflateEnd'
>
> ... ...
>
> ~/condor/lib/libcondorsyscall.a(GETCWD.o)(.text+0x3b8): In function
> `generic_GETCWD':
> : undefined reference to `__opendir'
>
> ~/condor/lib/libcondorsyscall.a(GETCWD.o)(.text+0x3fe): In function
> `generic_GETCWD':
> : undefined reference to `__readdir'
>
> ~/condor/lib/libcondorsyscall.a(GETCWD.o)(.text+0x5a8): In function
> `generic_GETCWD':
> : undefined reference to `__closedir'
>
> ... ...
>
> ~/condor/lib/libcondorsyscall.a(GETEUID.o)(.text+0x1): In function
> `GETEUID':
> : undefined reference to `__libc_missing_32bit_uids'
>
> ~/condor/lib/libcondorsyscall.a(GETEGID.o)(.text+0x2d): In function
> `GETEGID':
> : undefined reference to `__libc_missing_32bit_uids'
>
> ~/condor/lib/libcondorsyscall.a(GETLOGIN.o)(.text+0x1a): In function
> `GETLOGIN':
> : undefined reference to `__ttyname_r'
>
> ~/condor/lib/libcondorsyscall.a(GETLOGIN.o)(.text+0x35): In function
> `GETLOGIN':
> : undefined reference to `__setutent'
>
> ~/condor/lib/libcondorsyscall.a(SIGSUSPEND.o)(.text+0x93): In function
> `__libc_SIGSUSPEND':
> : undefined reference to `__libc_multiple_threads'
>
> ~/condor/lib/libcondorsyscall.a(SIGSUSPEND.o)(.text+0xaa): In function
> `__libc_SIGSUSPEND':
> : undefined reference to `__libc_enable_asynccancel'
>
> ~/condor/lib/libcondorsyscall.a(SIGSUSPEND.o)(.text+0xbe): In function
> `__libc_SIGSUSPEND':
> : undefined reference to `__libc_disable_asynccancel'
>
> collect2: ld returned 1 exit status
> make: *** [ns] Error 1
> ****************************************************************************
> I searched these errors, found that the '__no_r_state', 'deflateEnd' were
> in
> the Zlib.h. And '__opendir', '__closedir', '__readdir',
> '__libc_missing_32bit_uids' and so on were some parts of glibc.
>
> I think maybe the Make tool cannot find the libraries, but  not sure.  If
> it
> was the problem, what should I do to add the right library path?
>
> Thanks in advance.
>
> --
> Sincerely yours,
> Zhao Shiyang
> _______________________________________________
> Condor-users mailing list
> To unsubscribe, send a message to condor-users-request@xxxxxxxxxxx with a
> subject: Unsubscribe
> You can also unsubscribe by visiting
> https://lists.cs.wisc.edu/mailman/listinfo/condor-users
>
> The archives can be found at:
> https://lists.cs.wisc.edu/archive/condor-users/
>