Opened 15 years ago

Closed 14 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)

diffFixRev2549To2551 (1.0 KB) - added by ModeenF 14 years ago.
"Fix" this ticket and adding some missing includes that was removed around 2545 to 2551

Download all attachments as: .zip

Change History (5)

comment:1 Changed 15 years ago by mezz

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:

#include <libgen.h>
int main()
{
  return 0;
}

Other than remove 'libgen_test', you can do something like this (untest) in configure:

#
# String functions
#
strlcpy_test
strlcat_test
asprintf_test
snprintf_test
if [ "x$SYSTEM" != xBeOS ]; then
libgen_test
fi

The better solution is to tweak in libgen_test.

comment:2 Changed 15 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 14 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 14 years ago by ModeenF

"Fix" this ticket and adding some missing includes that was removed around 2545 to 2551

comment:4 Changed 14 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

Note: See TracTickets for help on using tickets.