Opened 16 years ago
Closed 16 years ago
#273 closed Bug (fixed)
basename and dirname gives an error in Zeta
Reported by: | ModeenF | Owned by: | somebody |
---|---|---|---|
Priority: | Normal | Milestone: | Sometime |
Component: | Transmission | Version: | 0.80 |
Severity: | Normal | Keywords: | |
Cc: |
Description
Some how basename and dirname don't work in Zeta so -DHAVE_LIBGEN have to be removed from configure for BEOS (or Zeta anyway) how do one remove -DHAVE_LIBGEN from configure for a specific OS?
Attachments (1)
Change History (5)
comment:1 Changed 16 years ago by mezz
comment:2 Changed 16 years ago by charles
This doesn't make sense to me. are you certain that dirname() and basename() don't work on Zeta?
comment:3 Changed 16 years ago by ModeenF
I don't know but this are the error I get. Link transmissioncli ../libtransmission/libtransmission.a(makemeta.o)(.text+0x1fd): In function `tr_metaInfoBuilderCreate': /libtransmission/makemeta.c:123: undefined reference to `dirname' ../libtransmission/libtransmission.a(makemeta.o)(.text+0x208):libtransmission/makemeta.c:124: undefined reference to `basename' ../libtransmission/libtransmission.a(makemeta.o)(.text+0xa30): In function `makeInfoDict': /libtransmission/makemeta.c:334: undefined reference to `basename'collect2: ld returned 1 exit status
Changed 16 years ago by ModeenF
"Fix" this ticket and adding some missing includes that was removed around 2545 to 2551
comment:4 Changed 16 years ago by ModeenF
- Resolution set to fixed
- Status changed from new to closed
don't include the patch in here. An total patch for the latest svn will be in ticket 280
You can remove 'libgen_test' under the '# String functions' in the configure. If the libgen function doesn't work in BeOS, then perhaps it needs to be tweak in the test in libgen_test to be more specific?
Current in the configure only do a very simple test:
Other than remove 'libgen_test', you can do something like this (untest) in configure:
The better solution is to tweak in libgen_test.